diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
commit | 284837daa07b29d6a63a748544a90b1f5842ac5c (patch) | |
tree | ecd258180bde91fe741e0cfd2638beb3c6da7e8e /Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp | |
parent | 2e2ba8ff45915f40ed3e014101269c175f2a89a0 (diff) | |
download | qtwebkit-284837daa07b29d6a63a748544a90b1f5842ac5c.tar.gz |
Imported WebKit commit 68645295d2e3e09af2c942f092556f06aa5f8b0d (http://svn.webkit.org/repository/webkit/trunk@128073)
New snapshot
Diffstat (limited to 'Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp')
-rw-r--r-- | Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp b/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp index 726caaae1..24bda6305 100644 --- a/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp +++ b/Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp @@ -33,6 +33,7 @@ #include "WebContextMenuProxy.h" #include "WebPageGroup.h" #include "WebPageProxy.h" +#include "WebPopupMenuProxyEfl.h" #include "WebPreferences.h" #include "ewk_context.h" #include "ewk_context_private.h" @@ -44,18 +45,9 @@ using namespace WebCore; namespace WebKit { -PageClientImpl::PageClientImpl(WebContext* context, WebPageGroup* pageGroup, Evas_Object* viewWidget) +PageClientImpl::PageClientImpl(Evas_Object* viewWidget) : m_viewWidget(viewWidget) { - m_page = context->createWebPage(this, pageGroup); - -#if USE(COORDINATED_GRAPHICS) - m_page->pageGroup()->preferences()->setAcceleratedCompositingEnabled(true); - m_page->pageGroup()->preferences()->setForceCompositingMode(true); - m_page->setUseFixedLayout(true); -#endif - - m_page->initializeWebPage(); } PageClientImpl::~PageClientImpl() @@ -65,7 +57,7 @@ PageClientImpl::~PageClientImpl() // PageClient PassOwnPtr<DrawingAreaProxy> PageClientImpl::createDrawingAreaProxy() { - return DrawingAreaProxyImpl::create(m_page.get()); + return DrawingAreaProxyImpl::create(ewk_view_page_get(m_viewWidget)); } void PageClientImpl::setViewNeedsDisplay(const WebCore::IntRect& rect) @@ -204,10 +196,9 @@ void PageClientImpl::doneWithTouchEvent(const NativeWebTouchEvent&, bool wasEven } #endif -PassRefPtr<WebPopupMenuProxy> PageClientImpl::createPopupMenuProxy(WebPageProxy*) +PassRefPtr<WebPopupMenuProxy> PageClientImpl::createPopupMenuProxy(WebPageProxy* page) { - notImplemented(); - return 0; + return WebPopupMenuProxyEfl::create(m_viewWidget, page); } PassRefPtr<WebContextMenuProxy> PageClientImpl::createContextMenuProxy(WebPageProxy*) @@ -217,7 +208,7 @@ PassRefPtr<WebContextMenuProxy> PageClientImpl::createContextMenuProxy(WebPagePr } #if ENABLE(INPUT_TYPE_COLOR) -PassRefPtr<WebColorChooserProxy> PageClientImpl::createColorChooserProxy(WebPageProxy*, const WebCore::Color&) +PassRefPtr<WebColorChooserProxy> PageClientImpl::createColorChooserProxy(WebPageProxy*, const WebCore::Color&, const WebCore::IntRect&) { notImplemented(); return 0; |