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 ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 }; | 200 }; |
201 | 201 |
202 // The limiter to throttle how fast a user can | 202 // The limiter to throttle how fast a user can |
203 // change the display configuration. | 203 // change the display configuration. |
204 scoped_ptr<DisplayChangeLimiter> limiter_; | 204 scoped_ptr<DisplayChangeLimiter> limiter_; |
205 | 205 |
206 typedef std::map<int64, AshWindowTreeHost*> WindowTreeHostMap; | 206 typedef std::map<int64, AshWindowTreeHost*> WindowTreeHostMap; |
207 // The mapping from display ID to its window tree host. | 207 // The mapping from display ID to its window tree host. |
208 WindowTreeHostMap window_tree_hosts_; | 208 WindowTreeHostMap window_tree_hosts_; |
209 | 209 |
210 ObserverList<Observer> observers_; | 210 base::ObserverList<Observer> observers_; |
211 | 211 |
212 // Store the primary window tree host temporarily while replacing | 212 // Store the primary window tree host temporarily while replacing |
213 // display. | 213 // display. |
214 AshWindowTreeHost* primary_tree_host_for_replace_; | 214 AshWindowTreeHost* primary_tree_host_for_replace_; |
215 | 215 |
216 scoped_ptr<FocusActivationStore> focus_activation_store_; | 216 scoped_ptr<FocusActivationStore> focus_activation_store_; |
217 | 217 |
218 scoped_ptr<CursorWindowController> cursor_window_controller_; | 218 scoped_ptr<CursorWindowController> cursor_window_controller_; |
219 scoped_ptr<MirrorWindowController> mirror_window_controller_; | 219 scoped_ptr<MirrorWindowController> mirror_window_controller_; |
220 | 220 |
221 // Stores the current cursor location (in native coordinates and screen | 221 // Stores the current cursor location (in native coordinates and screen |
222 // coordinates respectively). The locations are used to restore the cursor | 222 // coordinates respectively). The locations are used to restore the cursor |
223 // location when the display configuration changes and to determine whether | 223 // location when the display configuration changes and to determine whether |
224 // the mouse should be moved after a display configuration change. | 224 // the mouse should be moved after a display configuration change. |
225 gfx::Point cursor_location_in_native_coords_for_restore_; | 225 gfx::Point cursor_location_in_native_coords_for_restore_; |
226 gfx::Point cursor_location_in_screen_coords_for_restore_; | 226 gfx::Point cursor_location_in_screen_coords_for_restore_; |
227 | 227 |
228 // Stores the cursor's display. The id is used to determine whether the mouse | 228 // Stores the cursor's display. The id is used to determine whether the mouse |
229 // should be moved after a display configuration change. | 229 // should be moved after a display configuration change. |
230 int64 cursor_display_id_for_restore_; | 230 int64 cursor_display_id_for_restore_; |
231 | 231 |
232 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; | 232 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; |
233 | 233 |
234 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 234 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
235 }; | 235 }; |
236 | 236 |
237 } // namespace ash | 237 } // namespace ash |
238 | 238 |
239 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 239 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |