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

Unified Diff: ui/gfx/screen.h

Issue 10540123: Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX. (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/base/x/events_x.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 12ecb6c2babf88396dff6b155cf4223c1249f582..69a6726932614844b11612b52f102449fa887427 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -6,6 +6,7 @@
#define UI_GFX_SCREEN_H_
#pragma once
+#include "base/basictypes.h"
#include "ui/base/ui_export.h"
#include "ui/gfx/display.h"
#include "ui/gfx/native_widget_types.h"
@@ -15,12 +16,10 @@ namespace gfx {
class Rect;
class ScreenImpl;
-// A utility class for getting various info about screen size, monitors,
+// A utility class for getting various info about screen size, displays,
// cursor position, etc.
class UI_EXPORT Screen {
public:
- virtual ~Screen() {}
-
#if defined(USE_AURA)
// Sets the instance to use. This takes owernship of |screen|, deleting the
// old instance. This is used on aura to avoid circular dependencies between
@@ -37,24 +36,27 @@ class UI_EXPORT Screen {
// Returns the window under the cursor.
static gfx::NativeWindow GetWindowAtCursorScreenPoint();
- // Returns the number of monitors.
+ // Returns the number of displays.
// Mirrored displays are excluded; this method is intended to return the
// number of distinct, usable displays.
- static int GetNumMonitors();
+ static int GetNumDisplays();
// Returns the display nearest the specified window.
- static gfx::Display GetMonitorNearestWindow(gfx::NativeView view);
+ static gfx::Display GetDisplayNearestWindow(gfx::NativeView view);
// Returns the the display nearest the specified point.
- static gfx::Display GetMonitorNearestPoint(const gfx::Point& point);
+ static gfx::Display GetDisplayNearestPoint(const gfx::Point& point);
- // Returns the bounds of the work area of the primary monitor.
- static gfx::Display GetPrimaryMonitor();
+ // Returns the bounds of the work area of the primary display.
+ static gfx::Display GetPrimaryDisplay();
// Returns the display that most closely intersects the provided bounds.
- static gfx::Display GetMonitorMatching(const gfx::Rect& match_rect);
+ static gfx::Display GetDisplayMatching(const gfx::Rect& match_rect);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(Screen);
};
} // namespace gfx
-#endif // VIEWS_SCREEN_H_
+#endif // UI_GFX_SCREEN_H_
« no previous file with comments | « ui/base/x/events_x.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698