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

Unified Diff: third_party/WebKit/public/web/WebViewClient.h

Issue 2148463002: Remove rootWindowRect from WebWidgetClient and move it to WebViewClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « content/renderer/render_widget.cc ('k') | third_party/WebKit/public/web/WebWidgetClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebViewClient.h
diff --git a/third_party/WebKit/public/web/WebViewClient.h b/third_party/WebKit/public/web/WebViewClient.h
index 54eff2e93104bc797a7e7384cad9bea5c4e4753c..5a91d418bb3f052054811706e378815bc7804257 100644
--- a/third_party/WebKit/public/web/WebViewClient.h
+++ b/third_party/WebKit/public/web/WebViewClient.h
@@ -110,6 +110,10 @@ public:
// Called when PageImportanceSignals for the WebView is updated.
virtual void pageImportanceSignalsChanged() { }
+ // Called to get the position of the root window containing the widget
+ // in screen coordinates.
+ virtual WebRect rootWindowRect() { return WebRect(); }
+
// Editing -------------------------------------------------------------
// These methods allow the client to intercept and overrule editing
@@ -267,7 +271,6 @@ public:
WebLayerTreeView* layerTreeView() override { return 0; }
void onMouseDown(const WebNode& mouseDownNode) override {}
void resetInputMethod() override {}
- WebRect rootWindowRect() override { return WebRect(); }
void scheduleAnimation() override {}
WebScreenInfo screenInfo() override { return WebScreenInfo(); }
void setToolTipText(const WebString&, WebTextDirection hint) override {}
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698