OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_AURA_TEST_TEST_SCREEN_H_ | 5 #ifndef UI_AURA_TEST_TEST_SCREEN_H_ |
6 #define UI_AURA_TEST_TEST_SCREEN_H_ | 6 #define UI_AURA_TEST_TEST_SCREEN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/gfx/screen_impl.h" | 9 #include "ui/gfx/screen.h" |
10 | 10 |
11 namespace aura { | 11 namespace aura { |
12 class RootWindow; | 12 class RootWindow; |
13 | 13 |
14 // A minimal, testing Aura implementation of gfx::Screen. | 14 // A minimal, testing Aura implementation of gfx::Screen. |
15 class TestScreen : public gfx::ScreenImpl { | 15 class TestScreen : public gfx::Screen { |
16 public: | 16 public: |
17 explicit TestScreen(aura::RootWindow* root_window); | 17 explicit TestScreen(aura::RootWindow* root_window); |
18 virtual ~TestScreen(); | 18 virtual ~TestScreen(); |
19 | 19 |
20 protected: | 20 protected: |
21 // gfx::ScreenImpl overrides: | 21 // gfx::Screen overrides: |
| 22 virtual bool IsDIPEnabled() OVERRIDE; |
22 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; | 23 virtual gfx::Point GetCursorScreenPoint() OVERRIDE; |
23 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE; | 24 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() OVERRIDE; |
24 virtual int GetNumDisplays() OVERRIDE; | 25 virtual int GetNumDisplays() OVERRIDE; |
25 virtual gfx::Display GetDisplayNearestWindow( | 26 virtual gfx::Display GetDisplayNearestWindow( |
26 gfx::NativeView view) const OVERRIDE; | 27 gfx::NativeView view) const OVERRIDE; |
27 virtual gfx::Display GetDisplayNearestPoint( | 28 virtual gfx::Display GetDisplayNearestPoint( |
28 const gfx::Point& point) const OVERRIDE; | 29 const gfx::Point& point) const OVERRIDE; |
29 virtual gfx::Display GetDisplayMatching( | 30 virtual gfx::Display GetDisplayMatching( |
30 const gfx::Rect& match_rect) const OVERRIDE; | 31 const gfx::Rect& match_rect) const OVERRIDE; |
31 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; | 32 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE; |
32 | 33 |
33 private: | 34 private: |
34 gfx::Display GetMonitor() const; | 35 gfx::Display GetMonitor() const; |
35 | 36 |
36 aura::RootWindow* root_window_; | 37 aura::RootWindow* root_window_; |
37 | 38 |
38 DISALLOW_COPY_AND_ASSIGN(TestScreen); | 39 DISALLOW_COPY_AND_ASSIGN(TestScreen); |
39 }; | 40 }; |
40 | 41 |
41 } // namespace aura | 42 } // namespace aura |
42 | 43 |
43 #endif // UI_AURA_TEST_TEST_SCREEN_H_ | 44 #endif // UI_AURA_TEST_TEST_SCREEN_H_ |
OLD | NEW |