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_GFX_SCREEN_IMPL_H_ | 5 #ifndef UI_GFX_SCREEN_IMPL_H_ |
6 #define UI_GFX_SCREEN_IMPL_H_ | 6 #define UI_GFX_SCREEN_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include "ui/gfx/display.h" |
9 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
10 #include "ui/gfx/monitor.h" | |
11 #include "ui/gfx/point.h" | 11 #include "ui/gfx/point.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 | 14 |
15 // A class that provides |gfx::Screen|'s implementation on aura. | 15 // A class that provides |gfx::Screen|'s implementation on aura. |
16 class UI_EXPORT ScreenImpl { | 16 class UI_EXPORT ScreenImpl { |
17 public: | 17 public: |
18 virtual ~ScreenImpl() {} | 18 virtual ~ScreenImpl() {} |
19 | 19 |
20 virtual gfx::Point GetCursorScreenPoint() = 0; | 20 virtual gfx::Point GetCursorScreenPoint() = 0; |
21 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() = 0; | 21 virtual gfx::NativeWindow GetWindowAtCursorScreenPoint() = 0; |
22 | 22 |
23 virtual int GetNumMonitors() = 0; | 23 virtual int GetNumMonitors() = 0; |
24 virtual gfx::Monitor GetMonitorNearestWindow( | 24 virtual gfx::Display GetMonitorNearestWindow( |
25 gfx::NativeView window) const = 0; | 25 gfx::NativeView window) const = 0; |
26 virtual gfx::Monitor GetMonitorNearestPoint( | 26 virtual gfx::Display GetMonitorNearestPoint( |
27 const gfx::Point& point) const = 0; | 27 const gfx::Point& point) const = 0; |
28 virtual gfx::Monitor GetPrimaryMonitor() const = 0; | 28 virtual gfx::Display GetPrimaryMonitor() const = 0; |
29 }; | 29 }; |
30 | 30 |
31 } // namespace gfx | 31 } // namespace gfx |
32 | 32 |
33 #endif // UI_GFX_SCREEN_IMPL_H_ | 33 #endif // UI_GFX_SCREEN_IMPL_H_ |
OLD | NEW |