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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 // Store the primary window tree host temporarily while replacing | 205 // Store the primary window tree host temporarily while replacing |
206 // display. | 206 // display. |
207 AshWindowTreeHost* primary_tree_host_for_replace_; | 207 AshWindowTreeHost* primary_tree_host_for_replace_; |
208 | 208 |
209 scoped_ptr<FocusActivationStore> focus_activation_store_; | 209 scoped_ptr<FocusActivationStore> focus_activation_store_; |
210 | 210 |
211 scoped_ptr<CursorWindowController> cursor_window_controller_; | 211 scoped_ptr<CursorWindowController> cursor_window_controller_; |
212 scoped_ptr<MirrorWindowController> mirror_window_controller_; | 212 scoped_ptr<MirrorWindowController> mirror_window_controller_; |
213 | 213 |
214 // Stores the curent cursor location (in native coordinates) used to | 214 // Stores the current cursor location (in native coordinates and screen |
215 // restore the cursor location when display configuration | 215 // coordinates respectively). The locations are used to restore the cursor |
216 // changed. | 216 // location when the display configuration changes and to determine whether |
| 217 // the mouse should be moved after a display configuration change. |
217 gfx::Point cursor_location_in_native_coords_for_restore_; | 218 gfx::Point cursor_location_in_native_coords_for_restore_; |
| 219 gfx::Point cursor_location_in_screen_coords_for_restore_; |
| 220 |
| 221 // Stores the cursor's display. The id is used to determine whether the mouse |
| 222 // should be moved after a display configuration change. |
| 223 int64 cursor_display_id_for_restore_; |
218 | 224 |
219 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; | 225 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; |
220 | 226 |
221 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 227 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
222 }; | 228 }; |
223 | 229 |
224 } // namespace ash | 230 } // namespace ash |
225 | 231 |
226 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 232 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |