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

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

Issue 2398763003: Don't set view_screen_rect_ on RequestMove ACK (Closed)
Patch Set: 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 9918c4999c9c6e93a3deb699d43a9a785287f3c3..577f9a04dbab82af81fa630e228c89b607cfc409 100644
--- a/third_party/WebKit/public/web/WebWidgetClient.h
+++ b/third_party/WebKit/public/web/WebWidgetClient.h
@@ -87,10 +87,16 @@ public:
// 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