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

Unified Diff: content/renderer/render_widget.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_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 5f27f7b1669dcb59cbf4382cf2726f366936334e..e468d5379e7752887cf148ce8fe76e99a66f458b 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -244,7 +244,6 @@ class CONTENT_EXPORT RenderWidget
blink::WebTextDirection hint) override;
void setWindowRect(const blink::WebRect&) override;
blink::WebRect windowResizerRect() override;
- blink::WebRect rootWindowRect() override;
blink::WebScreenInfo screenInfo() override;
void resetInputMethod() override;
void didHandleGestureEvent(const blink::WebGestureEvent& event,
@@ -360,6 +359,10 @@ class CONTENT_EXPORT RenderWidget
// Called when the Widget has changed size as a result of an auto-resize.
void DidAutoResize(const gfx::Size& new_size);
+ // Called to get the position of the root window containing the widget in
+ // screen coordinates.
+ gfx::Rect RootWindowRect();
+
// Indicates whether this widget has focus.
bool has_focus() const { return has_focus_; }
@@ -690,7 +693,7 @@ class CONTENT_EXPORT RenderWidget
// While we are waiting for the browser to update window sizes, we track the
// pending size temporarily.
int pending_window_rect_count_;
- blink::WebRect pending_window_rect_;
+ gfx::Rect pending_window_rect_;
// The screen rects of the view and the window that contains it.
gfx::Rect view_screen_rect_;
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698