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() { } |
}; |