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

Unified Diff: ui/gfx/screen.h

Issue 10540091: Rename gfx::Monitor to gfx::Display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months 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 | « ui/gfx/monitor_unittest.cc ('k') | ui/gfx/screen_android.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 286ef94f21581e002d66e7d6d1995d5ac478e62c..12ecb6c2babf88396dff6b155cf4223c1249f582 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -7,8 +7,8 @@
#pragma once
#include "ui/base/ui_export.h"
+#include "ui/gfx/display.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/monitor.h"
#include "ui/gfx/point.h"
namespace gfx {
@@ -42,17 +42,17 @@ class UI_EXPORT Screen {
// number of distinct, usable displays.
static int GetNumMonitors();
oshima 2012/06/12 00:48:01 GetNumDisplays
- // Returns the monitor nearest the specified window.
- static gfx::Monitor GetMonitorNearestWindow(gfx::NativeView view);
+ // Returns the display nearest the specified window.
+ static gfx::Display GetMonitorNearestWindow(gfx::NativeView view);
oshima 2012/06/12 00:48:01 GetDisplayNearestWindow same for others
- // Returns the the monitor nearest the specified point.
- static gfx::Monitor GetMonitorNearestPoint(const gfx::Point& point);
+ // Returns the the display nearest the specified point.
+ static gfx::Display GetMonitorNearestPoint(const gfx::Point& point);
// Returns the bounds of the work area of the primary monitor.
- static gfx::Monitor GetPrimaryMonitor();
+ static gfx::Display GetPrimaryMonitor();
- // Returns the monitor that most closely intersects the provided bounds.
- static gfx::Monitor GetMonitorMatching(const gfx::Rect& match_rect);
+ // Returns the display that most closely intersects the provided bounds.
+ static gfx::Display GetMonitorMatching(const gfx::Rect& match_rect);
};
} // namespace gfx
« no previous file with comments | « ui/gfx/monitor_unittest.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698