diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-13 00:12:52 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-13 00:12:52 +0000 |
commit | 5ad65b545d9f0b465e41a19bce5c15e6c0d0027a (patch) | |
tree | 0b935d520d8e644d29910550db03a6152a55cd82 /views/controls/button/menu_button.cc | |
parent | 43129860c569ddf6176858e2e010645bbadaf554 (diff) | |
download | chromium_src-5ad65b545d9f0b465e41a19bce5c15e6c0d0027a.zip chromium_src-5ad65b545d9f0b465e41a19bce5c15e6c0d0027a.tar.gz chromium_src-5ad65b545d9f0b465e41a19bce5c15e6c0d0027a.tar.bz2 |
Revert 100792 "Use TabContentsViewViews for RenderWidgetHostViweViews."
This reverts commit a8938434c75e2a7300e04c1f23fe363bdcb67bc6.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7878008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/button/menu_button.cc')
-rw-r--r-- | views/controls/button/menu_button.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/views/controls/button/menu_button.cc b/views/controls/button/menu_button.cc index e9d8f61..64f4795 100644 --- a/views/controls/button/menu_button.cc +++ b/views/controls/button/menu_button.cc @@ -258,7 +258,9 @@ int MenuButton::GetMaximumScreenXCoordinate() { return 0; } - gfx::Rect monitor_bounds = GetWidget()->GetWorkAreaBoundsInScreen(); + gfx::Rect monitor_bounds = + gfx::Screen::GetMonitorWorkAreaNearestWindow( + GetWidget()->GetTopLevelWidget()->GetNativeView()); return monitor_bounds.right() - 1; } |