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

Side by Side Diff: third_party/WebKit/public/web/WebWidgetClient.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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/web/WebViewClient.h ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Called to get/set the position of the widget in screen coordinates. 94 // Called to get/set the position of the widget in screen coordinates.
95 virtual WebRect windowRect() { return WebRect(); } 95 virtual WebRect windowRect() { return WebRect(); }
96 virtual void setWindowRect(const WebRect&) { } 96 virtual void setWindowRect(const WebRect&) { }
97 97
98 // Called when a tooltip should be shown at the current cursor position. 98 // Called when a tooltip should be shown at the current cursor position.
99 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } 99 virtual void setToolTipText(const WebString&, WebTextDirection hint) { }
100 100
101 // Called to get the position of the resizer rect in window coordinates. 101 // Called to get the position of the resizer rect in window coordinates.
102 virtual WebRect windowResizerRect() { return WebRect(); } 102 virtual WebRect windowResizerRect() { return WebRect(); }
103 103
104 // Called to get the position of the root window containing the widget
105 // in screen coordinates.
106 virtual WebRect rootWindowRect() { return WebRect(); }
107
108 // Called to query information about the screen where this widget is 104 // Called to query information about the screen where this widget is
109 // displayed. 105 // displayed.
110 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } 106 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); }
111 107
112 // When this method gets called, WebWidgetClient implementation should 108 // When this method gets called, WebWidgetClient implementation should
113 // reset the input method by cancelling any ongoing composition. 109 // reset the input method by cancelling any ongoing composition.
114 virtual void resetInputMethod() { } 110 virtual void resetInputMethod() { }
115 111
116 // Requests to lock the mouse cursor. If true is returned, the success 112 // Requests to lock the mouse cursor. If true is returned, the success
117 // result will be asynchronously returned via a single call to 113 // result will be asynchronously returned via a single call to
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // migration is completed. 184 // migration is completed.
189 virtual void convertWindowToViewport(WebFloatRect* rect) {} 185 virtual void convertWindowToViewport(WebFloatRect* rect) {}
190 186
191 protected: 187 protected:
192 ~WebWidgetClient() { } 188 ~WebWidgetClient() { }
193 }; 189 };
194 190
195 } // namespace blink 191 } // namespace blink
196 192
197 #endif 193 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebViewClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698