PlatformVideoWindowPrivate.h [plain text]
#ifndef PlatformVideoWindowPrivate_h
#define PlatformVideoWindowPrivate_h
#include <QEvent>
#include <QTimer>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QWindow>
#else
#include <QWidget>
#endif
namespace WebCore {
class HTMLVideoElement;
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
typedef QWindow Base;
#else
typedef QWidget Base;
#endif
class FullScreenVideoWindow: public Base {
Q_OBJECT
public:
FullScreenVideoWindow();
void setVideoElement(HTMLVideoElement*);
signals:
void closed();
protected:
void keyPressEvent(QKeyEvent*);
bool event(QEvent*);
public slots:
void showFullScreen();
private slots:
void hideCursor();
private:
void showCursor();
QTimer m_cursorTimer;
HTMLVideoElement* m_mediaElement;
};
}
#endif // PlatformVideoWindowPrivate_h