Changeset 160303 in webkit
- Timestamp:
- Dec 9, 2013 1:54:09 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r160302 r160303 1 2013-12-09 Zan Dobersek <zdobersek@igalia.com> 2 3 [GTK][WK2] Move WebFullScreenManagerProxyGtk logic to PageClientImpl 4 https://bugs.webkit.org/show_bug.cgi?id=125440 5 6 Reviewed by Martin Robinson. 7 8 Make PageClientImpl a WebFullScreenManagerProxyClient. This brings the GTK port in line 9 with changes in r160296 and fixes the WK2 build for that port. 10 11 * GNUmakefile.list.am: 12 * UIProcess/API/gtk/PageClientImpl.cpp: 13 (WebKit::PageClientImpl::fullScreenManagerProxyClient): 14 (WebKit::PageClientImpl::closeFullScreenManager): 15 (WebKit::PageClientImpl::isFullScreen): 16 (WebKit::PageClientImpl::enterFullScreen): 17 (WebKit::PageClientImpl::exitFullScreen): 18 (WebKit::PageClientImpl::beganEnterFullScreen): 19 (WebKit::PageClientImpl::beganExitFullScreen): 20 * UIProcess/API/gtk/PageClientImpl.h: 21 * UIProcess/API/gtk/WebKitWebViewBase.cpp: 22 (webkitWebViewBaseCreateWebPage): 23 * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp: 24 1 25 2013-12-09 Brian Holt <brian.holt@samsung.com> 2 26 -
trunk/Source/WebKit2/GNUmakefile.list.am
r160302 r160303 895 895 Source/WebKit2/UIProcess/gtk/WebFullScreenClientGtk.cpp \ 896 896 Source/WebKit2/UIProcess/gtk/WebFullScreenClientGtk.h \ 897 Source/WebKit2/UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp \898 897 Source/WebKit2/UIProcess/gtk/WebInspectorClientGtk.cpp \ 899 898 Source/WebKit2/UIProcess/gtk/WebInspectorClientGtk.h \ -
trunk/Source/WebKit2/UIProcess/API/gtk/PageClientImpl.cpp
r159862 r160303 290 290 } 291 291 292 #if ENABLE(FULLSCREEN_API) 293 WebFullScreenManagerProxyClient& PageClientImpl::fullScreenManagerProxyClient() 294 { 295 return *this; 296 } 297 298 void PageClientImpl::closeFullScreenManager() 299 { 300 notImplemented(); 301 } 302 303 bool PageClientImpl::isFullScreen() 304 { 305 notImplemented(); 306 return false; 307 } 308 309 void PageClientImpl::enterFullScreen() 310 { 311 if (!m_viewWidget) 312 return; 313 314 webkitWebViewBaseEnterFullScreen(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); 315 } 316 317 void PageClientImpl::exitFullScreen() 318 { 319 if (!m_viewWidget) 320 return; 321 322 webkitWebViewBaseExitFullScreen(WEBKIT_WEB_VIEW_BASE(m_viewWidget)); 323 } 324 325 void PageClientImpl::beganEnterFullScreen(const IntRect& initialFrame, const IntRect& finalFrame) 326 { 327 notImplemented(); 328 } 329 330 void PageClientImpl::beganExitFullScreen(const IntRect& initialFrame, const IntRect& finalFrame) 331 { 332 notImplemented(); 333 } 334 335 #endif // ENABLE(FULLSCREEN_API) 336 292 337 } // namespace WebKit -
trunk/Source/WebKit2/UIProcess/API/gtk/PageClientImpl.h
r159862 r160303 32 32 #include "KeyBindingTranslator.h" 33 33 #include "PageClient.h" 34 #include "WebFullScreenManagerProxy.h" 34 35 #include "WebPageProxy.h" 35 36 #include "WindowsKeyboardCodes.h" … … 42 43 class WebPageNamespace; 43 44 44 class PageClientImpl : public PageClient { 45 class PageClientImpl : public PageClient 46 #if ENABLE(FULLSCREEN_API) 47 , public WebFullScreenManagerProxyClient 48 #endif 49 { 45 50 public: 46 51 ~PageClientImpl(); … … 55 60 explicit PageClientImpl(GtkWidget*); 56 61 62 // PageClient 57 63 virtual std::unique_ptr<DrawingAreaProxy> createDrawingAreaProxy() OVERRIDE; 58 64 virtual void setViewNeedsDisplay(const WebCore::IntRect&) OVERRIDE; … … 102 108 virtual void didCommitLoadForMainFrame() OVERRIDE; 103 109 110 // Auxiliary Client Creation 111 #if ENABLE(FULLSCREEN_API) 112 virtual WebFullScreenManagerProxyClient& fullScreenManagerProxyClient() FINAL; 113 #endif 114 115 #if ENABLE(FULLSCREEN_API) 116 // WebFullScreenManagerProxyClient 117 virtual void closeFullScreenManager() OVERRIDE; 118 virtual bool isFullScreen() OVERRIDE; 119 virtual void enterFullScreen() OVERRIDE; 120 virtual void exitFullScreen() OVERRIDE; 121 virtual void beganEnterFullScreen(const WebCore::IntRect& initialFrame, const WebCore::IntRect& finalFrame) OVERRIDE; 122 virtual void beganExitFullScreen(const WebCore::IntRect& initialFrame, const WebCore::IntRect& finalFrame) OVERRIDE; 123 #endif 124 104 125 // Members of PageClientImpl class 105 126 GtkWidget* m_viewWidget; -
trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp
r160075 r160303 935 935 priv->pageProxy->initializeWebPage(); 936 936 937 #if ENABLE(FULLSCREEN_API)938 priv->pageProxy->fullScreenManager()->setWebView(webkitWebViewBase);939 #endif940 941 937 #if USE(TEXTURE_MAPPER_GL) 942 938 if (priv->redirectedWindow)
Note: See TracChangeset
for help on using the changeset viewer.