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

Side by Side Diff: ui/display/win/screen_win.h

Issue 1964153002: Move Screen, its impls, DisplayObserver and DisplayChangeNotifier to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tabs Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « ui/display/test/test_screen.h ('k') | ui/events/events.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/display/test/test_screen.h ('k') | ui/events/events.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698