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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 10210005: Ash/aura split: NativeWidgetAura::GetWindowScreenBounds() should return screen bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 9ef2727d28824b5a54222ee90947cb990331947f..0afbd744a7d4b9fd664297bd23f2f995ab493e23 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -256,7 +256,7 @@ gfx::NativeWindow WebContentsViewAura::GetTopLevelNativeWindow() const {
}
void WebContentsViewAura::GetContainerBounds(gfx::Rect *out) const {
- *out = window_->GetScreenBounds();
+ *out = window_->GetBoundsInRootWindow();
}
void WebContentsViewAura::SetPageTitle(const string16& title) {
@@ -343,7 +343,7 @@ void WebContentsViewAura::CloseTabAfterEventTracking() {
}
void WebContentsViewAura::GetViewBounds(gfx::Rect* out) const {
- *out = window_->GetScreenBounds();
+ *out = window_->GetBoundsInRootWindow();
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698