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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Called when the cursor for the widget changes. 80 // Called when the cursor for the widget changes.
81 virtual void didChangeCursor(const WebCursorInfo&) { } 81 virtual void didChangeCursor(const WebCursorInfo&) { }
82 82
83 // Called when the widget should be closed. WebWidget::close() should 83 // Called when the widget should be closed. WebWidget::close() should
84 // be called asynchronously as a result of this notification. 84 // be called asynchronously as a result of this notification.
85 virtual void closeWidgetSoon() { } 85 virtual void closeWidgetSoon() { }
86 86
87 // Called to show the widget according to the given policy. 87 // Called to show the widget according to the given policy.
88 virtual void show(WebNavigationPolicy) { } 88 virtual void show(WebNavigationPolicy) { }
89 89
90 // Called to get/set the position of the widget in screen coordinates. 90 // Called to get/set the position of the widget's window in screen
91 // coordinates. Note, the window includes any decorations such as borders,
92 // scrollbars, URL bar, tab strip, etc. if they exist.
91 virtual WebRect windowRect() { return WebRect(); } 93 virtual WebRect windowRect() { return WebRect(); }
92 virtual void setWindowRect(const WebRect&) { } 94 virtual void setWindowRect(const WebRect&) { }
93 95
96 // Called to get the view rect in screen coordinates. This is the actual
97 // content view area, i.e. doesn't include any window decorations.
98 virtual WebRect viewRect() { return WebRect(); }
99
94 // Called when a tooltip should be shown at the current cursor position. 100 // Called when a tooltip should be shown at the current cursor position.
95 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } 101 virtual void setToolTipText(const WebString&, WebTextDirection hint) { }
96 102
97 // Called to get the position of the resizer rect in window coordinates. 103 // Called to get the position of the resizer rect in window coordinates.
98 virtual WebRect windowResizerRect() { return WebRect(); } 104 virtual WebRect windowResizerRect() { return WebRect(); }
99 105
100 // Called to query information about the screen where this widget is 106 // Called to query information about the screen where this widget is
101 // displayed. 107 // displayed.
102 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } 108 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); }
103 109
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // migration is completed. 186 // migration is completed.
181 virtual void convertWindowToViewport(WebFloatRect* rect) {} 187 virtual void convertWindowToViewport(WebFloatRect* rect) {}
182 188
183 protected: 189 protected:
184 ~WebWidgetClient() { } 190 ~WebWidgetClient() { }
185 }; 191 };
186 192
187 } // namespace blink 193 } // namespace blink
188 194
189 #endif 195 #endif
OLDNEW
« 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