diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 18:04:14 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 18:04:14 +0000 |
commit | a65808d30e438a889aac5a97227ca5a0704bc471 (patch) | |
tree | 353d270c3f80f7097580d486f53163c66d3626a1 /views/screen.h | |
parent | 3fe92d85a949ff4b7b58405d1a91ba9752e4f477 (diff) | |
download | chromium_src-a65808d30e438a889aac5a97227ca5a0704bc471.zip chromium_src-a65808d30e438a889aac5a97227ca5a0704bc471.tar.gz chromium_src-a65808d30e438a889aac5a97227ca5a0704bc471.tar.bz2 |
Adds views::Screen::GetMonitorAreaNearestPoint.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/199023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25476 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/screen.h')
-rw-r--r-- | views/screen.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/screen.h b/views/screen.h index c4e5bd6..013cb06 100644 --- a/views/screen.h +++ b/views/screen.h @@ -20,6 +20,10 @@ class Screen { // Returns the work area of the monitor nearest the specified window. static gfx::Rect GetMonitorWorkAreaNearestWindow(gfx::NativeWindow window); + + // Returns the monitor area (not the work area, but the complete bounds) of + // the monitor nearest the specified point. + static gfx::Rect GetMonitorAreaNearestPoint(const gfx::Point& point); }; } // namespace views |