summaryrefslogtreecommitdiffstats
path: root/views/controls/button
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-12 22:48:37 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-12 22:48:37 +0000
commita2d2ebb2bebebb570439c39e8eb5f6940dd2f788 (patch)
tree1ba145974abb0bb91cf4a9b63a79ca15909a9277 /views/controls/button
parentafb56b486dd195e57a9b412fcb0b77cc7ac711e7 (diff)
downloadchromium_src-a2d2ebb2bebebb570439c39e8eb5f6940dd2f788.zip
chromium_src-a2d2ebb2bebebb570439c39e8eb5f6940dd2f788.tar.gz
chromium_src-a2d2ebb2bebebb570439c39e8eb5f6940dd2f788.tar.bz2
Use TabContentsViewViews for RenderWidgetHostViweViews.
* Removed TabContentsViewTouch. * Changed so that mouse and resize event goes through NativeWidgetViews so that NativeTabContentsViewViews can invoke NativeTabContentsViewDelegates. BUG=none TEST=none Review URL: http://codereview.chromium.org/7460001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/button')
-rw-r--r--views/controls/button/menu_button.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/views/controls/button/menu_button.cc b/views/controls/button/menu_button.cc
index 64f4795..e9d8f61 100644
--- a/views/controls/button/menu_button.cc
+++ b/views/controls/button/menu_button.cc
@@ -258,9 +258,7 @@ int MenuButton::GetMaximumScreenXCoordinate() {
return 0;
}
- gfx::Rect monitor_bounds =
- gfx::Screen::GetMonitorWorkAreaNearestWindow(
- GetWidget()->GetTopLevelWidget()->GetNativeView());
+ gfx::Rect monitor_bounds = GetWidget()->GetWorkAreaBoundsInScreen();
return monitor_bounds.right() - 1;
}