summaryrefslogtreecommitdiffstats
path: root/views/screen.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 18:03:47 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 18:03:47 +0000
commit08a3b713ae113c58893e7daddbbc4afd178d446f (patch)
treed2f1dee12be5cb34f4acdc1cf269021e5948a7ef /views/screen.h
parent56008bf3dc79ab9d76f09769317ac4307c385b08 (diff)
downloadchromium_src-08a3b713ae113c58893e7daddbbc4afd178d446f.zip
chromium_src-08a3b713ae113c58893e7daddbbc4afd178d446f.tar.gz
chromium_src-08a3b713ae113c58893e7daddbbc4afd178d446f.tar.bz2
Fixes regression in menu button. I converted a call from GetWidget to
GetWindow, the problem is in certain scenarios GetWindow can return null. I've changed the code back to GetWidget and converted Screen from taking a NativeWindow to a NativeView. BUG=none TEST=none Review URL: http://codereview.chromium.org/269076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/screen.h')
-rw-r--r--views/screen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/screen.h b/views/screen.h
index 0c0d940..f7c023c 100644
--- a/views/screen.h
+++ b/views/screen.h
@@ -19,10 +19,10 @@ class Screen {
static gfx::Point GetCursorScreenPoint();
// Returns the work area of the monitor nearest the specified window.
- static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window);
+ static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeView view);
// Returns the bounds of the monitor nearest the specified window.
- static gfx::Rect GetMonitorAreaNearestWindow(gfx::NativeWindow window);
+ static gfx::Rect GetMonitorAreaNearestWindow(gfx::NativeView view);
// Returns the monitor area (not the work area, but the complete bounds) of
// the monitor nearest the specified point.