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

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

Issue 2333353002: Don't set view_screen_rect_ on RequestMove ACK (Closed)
Patch Set: Rebase Created 4 years, 2 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 | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebWidgetClient.h
diff --git a/third_party/WebKit/public/web/WebWidgetClient.h b/third_party/WebKit/public/web/WebWidgetClient.h
index 2fa8b8ebb0b7c6e88c993fe45fbce269b625f5d5..d7e490b1a8ff089d50b2727ee56ffa47f3f3be46 100644
--- a/third_party/WebKit/public/web/WebWidgetClient.h
+++ b/third_party/WebKit/public/web/WebWidgetClient.h
@@ -89,10 +89,16 @@ class WebWidgetClient {
// Called to show the widget according to the given policy.
virtual void show(WebNavigationPolicy) {}
- // Called to get/set the position of the widget in screen coordinates.
+ // Called to get/set the position of the widget's window in screen
+ // coordinates. Note, the window includes any decorations such as borders,
+ // scrollbars, URL bar, tab strip, etc. if they exist.
virtual WebRect windowRect() { return WebRect(); }
virtual void setWindowRect(const WebRect&) {}
+ // Called to get the view rect in screen coordinates. This is the actual
+ // content view area, i.e. doesn't include any window decorations.
+ virtual WebRect viewRect() { return WebRect(); }
+
// Called when a tooltip should be shown at the current cursor position.
virtual void setToolTipText(const WebString&, WebTextDirection hint) {}
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698