2011-04-06 Alexis Menard <alexis.menard@openbossa.org>
[WebKit-https.git] / Source / WebCore / platform / graphics / gstreamer / PlatformVideoWindowPrivate.h
index 0ae4587900f3943f6ae760464b6d9eca60589a40..7b441f4b34989b7fa735bb484d06781ce70044c6 100644 (file)
 #ifndef PlatformVideoWindowPrivate_h
 #define PlatformVideoWindowPrivate_h
 
+#include <QTimer>
 #include <QWidget>
 
 class QKeyEvent;
 
 namespace WebCore {
 
+class HTMLVideoElement;
+
 class FullScreenVideoWindow: public QWidget {
 Q_OBJECT
 public:
     FullScreenVideoWindow();
+    void setVideoElement(HTMLVideoElement*);
 signals:
     void closed();
 protected:
-    void keyPressEvent(QKeyEvent* ev);
-    bool event(QEvent* ev);
+    void closeEvent(QCloseEvent*);
+    void keyPressEvent(QKeyEvent*);
+    bool event(QEvent*);
+
+public slots:
+    void showFullScreen();
+
+private slots:
+    void hideCursor();
+
+private:
+    void showCursor();
+    QTimer m_cursorTimer;
+    HTMLVideoElement* m_mediaElement;
 };