Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index a170b30c711d430597a550f8a410233e7b41e766..00f1a7c29cd501129cd4c241e85b64f791c7dd8b 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -114,6 +114,7 @@ |
#include "platform/scroll/ScrollbarTheme.h" |
#include "platform/weborigin/SchemeRegistry.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/WebCompositeAndReadbackAsyncCallback.h" |
#include "public/platform/WebDragData.h" |
#include "public/platform/WebFloatPoint.h" |
#include "public/platform/WebGestureCurve.h" |
@@ -1613,6 +1614,12 @@ WebSize WebViewImpl::size() |
return m_size; |
} |
+WebPoint WebViewImpl::screenPosition() |
+{ |
+ WebRect rect = m_client->rootWindowRect(); |
+ return WebPoint(rect.x, rect.y); |
+} |
+ |
void WebViewImpl::resizePinchViewport(const WebSize& newSize) |
{ |
if (!pinchVirtualViewportEnabled()) |
@@ -2482,6 +2489,11 @@ WebColor WebViewImpl::backgroundColor() const |
return view->documentBackgroundColor().rgb(); |
} |
+WebPagePopup* WebViewImpl::popup() const |
+{ |
+ return m_pagePopup.get(); |
+} |
+ |
bool WebViewImpl::caretOrSelectionRange(size_t* location, size_t* length) |
{ |
const LocalFrame* focused = toLocalFrame(focusedCoreFrame()); |