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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index fa120ca1f19be88e9650ba3b6625c09e035c04f5..fec99ea006c0a4b5a3e21736f71d8e2c38f70229 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -339,7 +339,7 @@ bool RenderWidgetHostViewAura::IsShowing() {
}
gfx::Rect RenderWidgetHostViewAura::GetViewBounds() const {
- return window_->GetRootWindowBounds();
+ return window_->GetBoundsInRootWindow();
}
void RenderWidgetHostViewAura::UpdateCursor(const WebCursor& cursor) {
@@ -699,8 +699,8 @@ void RenderWidgetHostViewAura::GetScreenInfo(WebKit::WebScreenInfo* results) {
GetScreenInfoForWindow(results, window_);
}
-gfx::Rect RenderWidgetHostViewAura::GetRootWindowBounds() {
- return window_->GetToplevelWindow()->bounds();
+gfx::Rect RenderWidgetHostViewAura::GetBoundsInRootWindow() {
+ return window_->GetToplevelWindow()->GetBoundsInRootWindow();
}
void RenderWidgetHostViewAura::ProcessTouchAck(

Powered by Google App Engine
This is Rietveld 408576698