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_DISPLAY_WIN_SCREEN_WIN_H_ | 5 #ifndef UI_DISPLAY_WIN_SCREEN_WIN_H_ |
6 #define UI_DISPLAY_WIN_SCREEN_WIN_H_ | 6 #define UI_DISPLAY_WIN_SCREEN_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "ui/display/display_change_notifier.h" |
14 #include "ui/display/display_export.h" | 15 #include "ui/display/display_export.h" |
15 #include "ui/display/screen.h" | 16 #include "ui/display/screen.h" |
16 #include "ui/gfx/display_change_notifier.h" | |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 #include "ui/gfx/win/singleton_hwnd_observer.h" | 18 #include "ui/gfx/win/singleton_hwnd_observer.h" |
19 | 19 |
20 namespace gfx { | 20 namespace gfx { |
21 class Display; | 21 class Display; |
22 class Point; | 22 class Point; |
23 class Rect; | 23 class Rect; |
24 class Size; | 24 class Size; |
25 } // namespace gfx | 25 } // namespace gfx |
26 | 26 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Returns the ScreenWinDisplay closest to or enclosing |screen_point|. | 137 // Returns the ScreenWinDisplay closest to or enclosing |screen_point|. |
138 ScreenWinDisplay GetScreenWinDisplayNearestScreenPoint( | 138 ScreenWinDisplay GetScreenWinDisplayNearestScreenPoint( |
139 const gfx::Point& screen_point) const; | 139 const gfx::Point& screen_point) const; |
140 | 140 |
141 // Returns the ScreenWinDisplay corresponding to the primary monitor. | 141 // Returns the ScreenWinDisplay corresponding to the primary monitor. |
142 ScreenWinDisplay GetPrimaryScreenWinDisplay() const; | 142 ScreenWinDisplay GetPrimaryScreenWinDisplay() const; |
143 | 143 |
144 ScreenWinDisplay GetScreenWinDisplay(const MONITORINFOEX& monitor_info) const; | 144 ScreenWinDisplay GetScreenWinDisplay(const MONITORINFOEX& monitor_info) const; |
145 | 145 |
146 // Helper implementing the DisplayObserver handling. | 146 // Helper implementing the DisplayObserver handling. |
147 gfx::DisplayChangeNotifier change_notifier_; | 147 DisplayChangeNotifier change_notifier_; |
148 | 148 |
149 std::unique_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_; | 149 std::unique_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_; |
150 | 150 |
151 // Current list of ScreenWinDisplays. | 151 // Current list of ScreenWinDisplays. |
152 std::vector<ScreenWinDisplay> screen_win_displays_; | 152 std::vector<ScreenWinDisplay> screen_win_displays_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(ScreenWin); | 154 DISALLOW_COPY_AND_ASSIGN(ScreenWin); |
155 }; | 155 }; |
156 | 156 |
157 } // namespace win | 157 } // namespace win |
158 } // namespace display | 158 } // namespace display |
159 | 159 |
160 #endif // UI_DISPLAY_WIN_SCREEN_WIN_H_ | 160 #endif // UI_DISPLAY_WIN_SCREEN_WIN_H_ |
OLD | NEW |