Index: ui/aura/test/test_screen.h |
diff --git a/ui/aura/test/test_screen.h b/ui/aura/test/test_screen.h |
index 59fe63dba8f5056eba6dbbe18ea549dca950c9ea..46c24c682d8f7f10264f5d53f85327ec51d162f2 100644 |
--- a/ui/aura/test/test_screen.h |
+++ b/ui/aura/test/test_screen.h |
@@ -7,36 +7,31 @@ |
#pragma once |
#include "base/compiler_specific.h" |
-#include "ui/gfx/insets.h" |
-#include "ui/gfx/screen.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "ui/gfx/screen_impl.h" |
namespace aura { |
class RootWindow; |
// A minimal, testing Aura implementation of gfx::Screen. |
-class TestScreen : public gfx::Screen { |
+class TestScreen : public gfx::ScreenImpl { |
public: |
explicit TestScreen(aura::RootWindow* root_window); |
virtual ~TestScreen(); |
protected: |
- virtual gfx::Point GetCursorScreenPointImpl() OVERRIDE; |
- virtual gfx::Rect GetMonitorWorkAreaNearestWindowImpl( |
- gfx::NativeView view) OVERRIDE; |
- virtual gfx::Rect GetMonitorAreaNearestWindowImpl( |
- gfx::NativeView view) OVERRIDE; |
- virtual gfx::Rect GetMonitorWorkAreaNearestPointImpl( |
- const gfx::Point& point) OVERRIDE; |
- virtual gfx::Rect GetMonitorAreaNearestPointImpl( |
- const gfx::Point& point) OVERRIDE; |
- virtual gfx::NativeWindow GetWindowAtCursorScreenPointImpl() OVERRIDE; |
- virtual gfx::Size GetPrimaryMonitorSizeImpl() OVERRIDE; |
- virtual int GetNumMonitorsImpl() OVERRIDE; |
+ // gfx::ScreenImpl overrides: |
+ virtual gfx::Point GetCursorScreenPoint() OVERRIDE; |
+ virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE; |
+ virtual int GetNumMonitors() OVERRIDE; |
+ virtual gfx::Monitor GetMonitorNearestWindow( |
+ gfx::NativeView view) const OVERRIDE; |
+ virtual gfx::Monitor GetMonitorNearestPoint( |
+ const gfx::Point& point) const OVERRIDE; |
+ virtual gfx::Monitor GetPrimaryMonitor() const OVERRIDE; |
private: |
- // We currently support only one monitor. These two methods return the bounds |
- // and work area. |
- gfx::Rect GetBounds(); |
+ gfx::Monitor GetMonitor() const; |
aura::RootWindow* root_window_; |