Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1539)

Unified Diff: public/web/WebWidget.h

Issue 513723003: Add pixel readback to page popup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidget.h
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h
index 7d41f7bba823033a714a6c3825ba533e29968608..3c37daa55de8e111961fb8eb84ece9bbab59df4b 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -33,6 +33,7 @@
#include "../platform/WebCanvas.h"
#include "../platform/WebCommon.h"
+#include "../platform/WebPoint.h"
#include "../platform/WebRect.h"
#include "../platform/WebSize.h"
#include "WebBeginFrameArgs.h"
@@ -50,6 +51,7 @@ class WebString;
struct WebPoint;
struct WebRenderingStats;
template <typename T> class WebVector;
+class WebPagePopup;
tkent 2014/09/05 01:59:05 nit: Please insert this between WebMouseEvent and
keishi 2014/09/11 12:53:26 Done.
class WebWidget {
public:
@@ -59,6 +61,8 @@ public:
// Returns the current size of the WebWidget.
virtual WebSize size() { return WebSize(); }
+ virtual WebPoint screenPosition() { return WebPoint(); }
tkent 2014/09/05 01:59:05 This should not be necessary because we already ha
keishi 2014/09/11 12:53:26 Done.
+
// Used to group a series of resize events. For example, if the user
// drags a resizer then willStartLiveResize will be called, followed by a
// sequence of resize events, ending with willEndLiveResize when the user
@@ -254,6 +258,9 @@ public:
// content.
virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHITE */ }
+ // The currently open popup.
+ virtual WebPagePopup* popup() const { return 0; }
tkent 2014/09/05 01:59:04 nit: |popup| sounds too generic. Maybe |pagePopup|
keishi 2014/09/11 12:53:26 Done.
+
protected:
~WebWidget() { }
};
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698