Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Unified Diff: ui/gfx/screen.h

Issue 8549008: Extract MonitorInfoProvider from WindowSizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add docs Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/window_sizer_win.cc ('k') | ui/gfx/screen_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen.h
diff --git a/ui/gfx/screen.h b/ui/gfx/screen.h
index 45a15adf3cb4e78e6acefd7593377de16d031377..cd363b366985b4a519c0a3784875a9b5fcf3d25f 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -43,6 +43,17 @@ class UI_EXPORT Screen {
// the monitor nearest the specified point.
static gfx::Rect GetMonitorAreaNearestPoint(const gfx::Point& point);
+ // Returns the bounds of the work area of the primary monitor.
+ static gfx::Rect GetPrimaryMonitorWorkArea();
+
+ // Returns the bounds of the primary monitor.
+ static gfx::Rect GetPrimaryMonitorBounds();
+
+ // Returns the bounds of the work area of the monitor that most closely
+ // intersects the provided bounds.
+ static gfx::Rect GetMonitorWorkAreaMatching(
+ const gfx::Rect& match_rect);
+
// Returns the window under the cursor.
static gfx::NativeWindow GetWindowAtCursorScreenPoint();
« no previous file with comments | « chrome/browser/ui/window_sizer_win.cc ('k') | ui/gfx/screen_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698