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

Unified Diff: ui/gfx/screen.h

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: fixes Created 4 years, 11 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
Index: ui/gfx/screen.h
diff --git a/ui/gfx/screen.h b/ui/gfx/screen.h
index 107ee44e2431e1d4a42f2b4b5cad5ac9093ed462..08296e503075e2865b49139f811ae034d7e68b00 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -12,7 +12,6 @@
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/screen_type_delegate.h"
namespace gfx {
class DisplayObserver;
@@ -22,34 +21,16 @@ class Rect;
// cursor position, etc.
//
// Note that this class does not represent an individual display connected to a
-// computer -- see the Display class for that. A single Screen object exists on
-// most operating systems regardless of the number of connected displays. On
-// Windows 8, two Screens exist: one for Metro UI and another for the desktop.
+// computer -- see the Display class for that. A single Screen object exists
+// regardless of the number of connected displays.
class GFX_EXPORT Screen {
public:
- // Retrieves the Screen that the specified NativeView belongs to. A value of
- // NULL is treated as |SCREEN_TYPE_NATIVE|.
- static Screen* GetScreenFor(NativeView view);
-
- // Returns the SCREEN_TYPE_NATIVE Screen. This should be used with caution,
- // as it is likely to be incorrect for code that runs on Windows.
- static Screen* GetNativeScreen();
-
- // Sets the global screen for a particular screen type. Only the _NATIVE
- // ScreenType must be provided.
- // NOTE: this does not take ownership of |screen|. Tests must be sure to
- // reset any state they install.
- static void SetScreenInstance(ScreenType type, Screen* instance);
-
- // Returns the global screen for a particular type. Types other than _NATIVE
- // may be NULL.
- static Screen* GetScreenByType(ScreenType type);
-
- // Sets the global ScreenTypeDelegate. May be left unset if the platform
- // uses only the _NATIVE ScreenType.
- // NOTE: this does not take ownership of |delegate|. Tests must be sure to
- // reset any state they install.
- static void SetScreenTypeDelegate(ScreenTypeDelegate* delegate);
+ // Retrieves the single Screen object.
sky 2016/01/19 22:47:55 nit: constructor/destructor before static function
scottmg 2016/01/20 00:52:57 Done.
+ static Screen* GetScreen();
+
+ // Sets the global screen. NOTE: this does not take ownership of |screen|.
+ // Tests must be sure to reset any state they install.
+ static void SetScreenInstance(Screen* instance);
Screen();
virtual ~Screen();

Powered by Google App Engine
This is Rietveld 408576698