summaryrefslogtreecommitdiffstats
path: root/views/controls/button
diff options
context:
space:
mode:
authoroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-13 01:37:35 +0000
committeroshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-13 01:37:35 +0000
commitcaee17863b73aa083656381a918a98e76d93b61f (patch)
tree37621788206406eac0fd880fe31e4639be79164a /views/controls/button
parent86da286163563a0c1fd3079e677289b2ebc8a932 (diff)
downloadchromium_src-caee17863b73aa083656381a918a98e76d93b61f.zip
chromium_src-caee17863b73aa083656381a918a98e76d93b61f.tar.gz
chromium_src-caee17863b73aa083656381a918a98e76d93b61f.tar.bz2
Relanding 100792
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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100792 Review URL: http://codereview.chromium.org/7460001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100834 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;
}