Changeset 160303 in webkit


Ignore:
Timestamp:
Dec 9, 2013 1:54:09 AM (10 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK][WK2] Move WebFullScreenManagerProxyGtk logic to PageClientImpl
https://bugs.webkit.org/show_bug.cgi?id=125440

Reviewed by Martin Robinson.

Make PageClientImpl a WebFullScreenManagerProxyClient. This brings the GTK port in line
with changes in r160296 and fixes the WK2 build for that port.

  • GNUmakefile.list.am:
  • UIProcess/API/gtk/PageClientImpl.cpp:

(WebKit::PageClientImpl::fullScreenManagerProxyClient):
(WebKit::PageClientImpl::closeFullScreenManager):
(WebKit::PageClientImpl::isFullScreen):
(WebKit::PageClientImpl::enterFullScreen):
(WebKit::PageClientImpl::exitFullScreen):
(WebKit::PageClientImpl::beganEnterFullScreen):
(WebKit::PageClientImpl::beganExitFullScreen):

  • UIProcess/API/gtk/PageClientImpl.h:
  • UIProcess/API/gtk/WebKitWebViewBase.cpp:

(webkitWebViewBaseCreateWebPage):

  • UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
Location:
trunk/Source/WebKit2
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160302 r160303  
     12013-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
    1252013-12-09  Brian Holt  <brian.holt@samsung.com>
    226
  • trunk/Source/WebKit2/GNUmakefile.list.am

    r160302 r160303  
    895895        Source/WebKit2/UIProcess/gtk/WebFullScreenClientGtk.cpp \
    896896        Source/WebKit2/UIProcess/gtk/WebFullScreenClientGtk.h \
    897         Source/WebKit2/UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp \
    898897        Source/WebKit2/UIProcess/gtk/WebInspectorClientGtk.cpp \
    899898        Source/WebKit2/UIProcess/gtk/WebInspectorClientGtk.h \
  • trunk/Source/WebKit2/UIProcess/API/gtk/PageClientImpl.cpp

    r159862 r160303  
    290290}
    291291
     292#if ENABLE(FULLSCREEN_API)
     293WebFullScreenManagerProxyClient& PageClientImpl::fullScreenManagerProxyClient()
     294{
     295    return *this;
     296}
     297
     298void PageClientImpl::closeFullScreenManager()
     299{
     300    notImplemented();
     301}
     302
     303bool PageClientImpl::isFullScreen()
     304{
     305    notImplemented();
     306    return false;
     307}
     308
     309void PageClientImpl::enterFullScreen()
     310{
     311    if (!m_viewWidget)
     312        return;
     313
     314    webkitWebViewBaseEnterFullScreen(WEBKIT_WEB_VIEW_BASE(m_viewWidget));
     315}
     316
     317void PageClientImpl::exitFullScreen()
     318{
     319    if (!m_viewWidget)
     320        return;
     321
     322    webkitWebViewBaseExitFullScreen(WEBKIT_WEB_VIEW_BASE(m_viewWidget));
     323}
     324
     325void PageClientImpl::beganEnterFullScreen(const IntRect& initialFrame, const IntRect& finalFrame)
     326{
     327    notImplemented();
     328}
     329
     330void PageClientImpl::beganExitFullScreen(const IntRect& initialFrame, const IntRect& finalFrame)
     331{
     332    notImplemented();
     333}
     334
     335#endif // ENABLE(FULLSCREEN_API)
     336
    292337} // namespace WebKit
  • trunk/Source/WebKit2/UIProcess/API/gtk/PageClientImpl.h

    r159862 r160303  
    3232#include "KeyBindingTranslator.h"
    3333#include "PageClient.h"
     34#include "WebFullScreenManagerProxy.h"
    3435#include "WebPageProxy.h"
    3536#include "WindowsKeyboardCodes.h"
     
    4243class WebPageNamespace;
    4344
    44 class PageClientImpl : public PageClient {
     45class PageClientImpl : public PageClient
     46#if ENABLE(FULLSCREEN_API)
     47    , public WebFullScreenManagerProxyClient
     48#endif
     49{
    4550public:
    4651    ~PageClientImpl();
     
    5560    explicit PageClientImpl(GtkWidget*);
    5661
     62    // PageClient
    5763    virtual std::unique_ptr<DrawingAreaProxy> createDrawingAreaProxy() OVERRIDE;
    5864    virtual void setViewNeedsDisplay(const WebCore::IntRect&) OVERRIDE;
     
    102108    virtual void didCommitLoadForMainFrame() OVERRIDE;
    103109
     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
    104125    // Members of PageClientImpl class
    105126    GtkWidget* m_viewWidget;
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp

    r160075 r160303  
    935935    priv->pageProxy->initializeWebPage();
    936936
    937 #if ENABLE(FULLSCREEN_API)
    938     priv->pageProxy->fullScreenManager()->setWebView(webkitWebViewBase);
    939 #endif
    940 
    941937#if USE(TEXTURE_MAPPER_GL)
    942938    if (priv->redirectedWindow)
Note: See TracChangeset for help on using the changeset viewer.