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

Unified Diff: chrome/browser/ui/views/app_menu_button_win.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: chrome/browser/ui/views/app_menu_button_win.cc
diff --git a/chrome/browser/ui/views/app_menu_button_win.cc b/chrome/browser/ui/views/app_menu_button_win.cc
index cd5c5f53e8c0022898c413eb36006dfe7e397ffd..7dc043f56807a4a2f7f46a0e97831c3505f9bbbe 100644
--- a/chrome/browser/ui/views/app_menu_button_win.cc
+++ b/chrome/browser/ui/views/app_menu_button_win.cc
@@ -15,7 +15,7 @@ bool AppMenuButtonWin::OnKeyPressed(const views::KeyEvent& event) {
if (event.key_code() == ui::VKEY_SPACE) {
// Typical windows behavior is to show the system menu on space.
views::Widget* widget = GetWidget();
- gfx::Rect bounds = widget->GetClientAreaScreenBounds();
+ gfx::Rect bounds = widget->GetClientAreaBoundsInScreen();
ui::ShowSystemMenu(widget->GetNativeView(), bounds.x(), bounds.y() + 10);
return false;
}
« no previous file with comments | « chrome/browser/ui/views/about_chrome_view.cc ('k') | chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698