Index: public/web/WebWidget.h |
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h |
index 149e98356e253b38acd64e09c1e2971084011947..063a4585b7b7e6a7e712fd0070b8b4ceab44cae9 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" |
@@ -46,7 +47,9 @@ class WebCompositeAndReadbackAsyncCallback; |
class WebInputEvent; |
class WebLayerTreeView; |
class WebMouseEvent; |
+class WebPagePopup; |
class WebString; |
+class WebWidgetClient; |
struct WebPoint; |
struct WebRenderingStats; |
template <typename T> class WebVector; |
@@ -255,6 +258,13 @@ public: |
// content. |
virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHITE */ } |
+ // The currently open page popup, which are calendar and datalist pickers |
+ // but not the select popup. |
+ virtual WebPagePopup* pagePopup() const { return 0; } |
+ |
+ // Returns the client for this widget. |
+ virtual WebWidgetClient* client() const { return 0; } |
tkent
2014/09/12 02:17:49
Why do you need this? An embedder should know who
keishi
2014/09/12 02:27:22
I can get the WebWidgetClient for the main view by
tkent
2014/09/12 03:08:28
I don't know. Don't we have a way to get content:
|
+ |
protected: |
~WebWidget() { } |
}; |