PlatformVideoWindowPrivate.h [plain text]
#ifndef PlatformVideoWindowPrivate_h
#define PlatformVideoWindowPrivate_h
#if ENABLE(VIDEO) && USE(GSTREAMER) && USE(NATIVE_FULLSCREEN_VIDEO)
#include <QEvent>
#include <QTimer>
#include <QWindow>
namespace WebCore {
class HTMLVideoElement;
class FullScreenVideoWindow: public QWindow {
Q_OBJECT
public:
FullScreenVideoWindow();
void setVideoElement(HTMLVideoElement*);
Q_SIGNALS:
void closed();
protected:
void keyPressEvent(QKeyEvent*);
bool event(QEvent*);
public Q_SLOTS:
void showFullScreen();
private Q_SLOTS:
void hideCursor();
private:
void showCursor();
QTimer m_cursorTimer;
HTMLVideoElement* m_mediaElement;
};
}
#endif // ENABLE(VIDEO) && USE(GSTREAMER) && USE(NATIVE_FULLSCREEN_VIDEO)
#endif // PlatformVideoWindowPrivate_h