diff options
Diffstat (limited to 'WebKit/win/FullscreenVideoController.h')
-rw-r--r-- | WebKit/win/FullscreenVideoController.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/WebKit/win/FullscreenVideoController.h b/WebKit/win/FullscreenVideoController.h index 31acc63..9ac8c69 100644 --- a/WebKit/win/FullscreenVideoController.h +++ b/WebKit/win/FullscreenVideoController.h @@ -28,7 +28,7 @@ #if ENABLE(VIDEO) -#include "QTMovieGWorld.h" +#include "MediaPlayerPrivateFullscreenWindow.h" #include <WebCore/HTMLMediaElement.h> #include <WebCore/Image.h> @@ -38,6 +38,9 @@ namespace WebCore { class GraphicsContext; +#if USE(ACCELERATED_COMPOSITING) +class WKCACFLayer; +#endif } class HUDWidget { @@ -99,7 +102,7 @@ private: int m_dragStartOffset; }; -class FullscreenVideoController : QTMovieGWorldFullscreenClient, public Noncopyable { +class FullscreenVideoController : WebCore::MediaPlayerPrivateFullscreenClient, public Noncopyable { public: FullscreenVideoController(); virtual ~FullscreenVideoController(); @@ -111,12 +114,11 @@ public: void exitFullscreen(); private: - // QTMovieGWorldFullscreenClient + // MediaPlayerPrivateFullscreenWindowClient virtual LRESULT fullscreenClientWndProc(HWND, UINT message, WPARAM, LPARAM); - + void ensureWindow(); - QTMovieGWorld* movie() const; - + bool canPlay() const; void play(); void pause(); @@ -145,13 +147,21 @@ private: void onMouseDown(const WebCore::IntPoint&); void onMouseMove(const WebCore::IntPoint&); void onMouseUp(const WebCore::IntPoint&); + void onKeyDown(int virtualKey); RefPtr<WebCore::HTMLMediaElement> m_mediaElement; - HWND m_hudWindow, m_videoWindow; + HWND m_hudWindow; OwnPtr<HBITMAP> m_bitmap; WebCore::IntSize m_fullscreenSize; WebCore::IntPoint m_hudPosition; + OwnPtr<WebCore::MediaPlayerPrivateFullscreenWindow> m_fullscreenWindow; +#if USE(ACCELERATED_COMPOSITING) + RefPtr<WebCore::WKCACFLayer> m_rootChild; + class LayoutClient; + friend class LayoutClient; + OwnPtr<LayoutClient> m_layoutClient; +#endif HUDButton m_playPauseButton; HUDButton m_timeSliderButton; |