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

Unified Diff: chrome/browser/tab_contents/chrome_web_contents_view_delegate_views.cc

Issue 10210005: Ash/aura split: NativeWidgetAura::GetWindowScreenBounds() should return screen bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky+oshima stuff 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
« no previous file with comments | « ash/wm/video_detector.cc ('k') | chrome/browser/ui/views/hung_renderer_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/chrome_web_contents_view_delegate_views.cc
diff --git a/chrome/browser/tab_contents/chrome_web_contents_view_delegate_views.cc b/chrome/browser/tab_contents/chrome_web_contents_view_delegate_views.cc
index 8acb276d2116082208867a71ed6db1ef2464d0d7..cde829d32a3f96dd6b136716cd291a0989ebf550 100644
--- a/chrome/browser/tab_contents/chrome_web_contents_view_delegate_views.cc
+++ b/chrome/browser/tab_contents/chrome_web_contents_view_delegate_views.cc
@@ -133,8 +133,8 @@ void ChromeWebContentsViewDelegateViews::ShowContextMenu(
gfx::Point screen_point(params.x, params.y);
#if defined(USE_AURA)
- gfx::Point view_origin =
- web_contents_->GetView()->GetNativeView()->GetScreenBounds().origin();
+ gfx::Point view_origin = web_contents_->GetView()->GetNativeView()->
+ GetBoundsInRootWindow().origin();
screen_point.Offset(view_origin.x(), view_origin.y());
#else
POINT temp = screen_point.ToPOINT();
« no previous file with comments | « ash/wm/video_detector.cc ('k') | chrome/browser/ui/views/hung_renderer_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698