diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-08 02:01:40 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-08 02:01:40 +0000 |
commit | 8581ac3868091773691cd2c9798ed6f905614368 (patch) | |
tree | 14fb383b7f5c7b6560c9c8836db63dc83e01c798 /ui/gfx/screen_aura.cc | |
parent | a62479b9b7ab4979454eb0bef7e29120f8e9f209 (diff) | |
download | chromium_src-8581ac3868091773691cd2c9798ed6f905614368.zip chromium_src-8581ac3868091773691cd2c9798ed6f905614368.tar.gz chromium_src-8581ac3868091773691cd2c9798ed6f905614368.tar.bz2 |
Extract MonitorInfoProvider from WindowSizer.
And move the functionality into gfx::Screen.
BUG=101507
R=ben@chromium.org
Review URL: http://codereview.chromium.org/8549008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/screen_aura.cc')
-rw-r--r-- | ui/gfx/screen_aura.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/gfx/screen_aura.cc b/ui/gfx/screen_aura.cc index 0093af6..ea4216f 100644 --- a/ui/gfx/screen_aura.cc +++ b/ui/gfx/screen_aura.cc @@ -48,6 +48,21 @@ gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { } // static +gfx::Rect Screen::GetPrimaryMonitorWorkArea() { + return instance_->GetMonitorWorkAreaNearestPoint(gfx::Point()); +} + +// static +gfx::Rect Screen::GetPrimaryMonitorBounds() { + return instance_->GetMonitorAreaNearestPoint(gfx::Point()); +} + +// static +gfx::Rect Screen::GetMonitorWorkAreaMatching(const gfx::Rect& match_rect) { + return instance_->GetMonitorWorkAreaNearestPoint(gfx::Point()); +} + +// static gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { return instance_->GetWindowAtCursorScreenPointImpl(); } |