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 |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
12 #include "ash/display/display_manager.h" | 12 #include "ash/display/display_manager.h" |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "ui/aura/window.h" | 20 #include "ui/aura/window.h" |
21 #include "ui/aura/window_tree_host_observer.h" | 21 #include "ui/aura/window_tree_host_observer.h" |
| 22 #include "ui/base/ime/input_method.h" |
22 #include "ui/gfx/display_observer.h" | 23 #include "ui/gfx/display_observer.h" |
23 #include "ui/gfx/geometry/point.h" | 24 #include "ui/gfx/geometry/point.h" |
24 | 25 |
25 namespace aura { | 26 namespace aura { |
26 class Display; | 27 class Display; |
27 class WindowTreeHost; | 28 class WindowTreeHost; |
28 } | 29 } |
29 | 30 |
30 namespace base { | 31 namespace base { |
31 class Value; | 32 class Value; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 212 |
212 // Store the primary window tree host temporarily while replacing | 213 // Store the primary window tree host temporarily while replacing |
213 // display. | 214 // display. |
214 AshWindowTreeHost* primary_tree_host_for_replace_; | 215 AshWindowTreeHost* primary_tree_host_for_replace_; |
215 | 216 |
216 scoped_ptr<FocusActivationStore> focus_activation_store_; | 217 scoped_ptr<FocusActivationStore> focus_activation_store_; |
217 | 218 |
218 scoped_ptr<CursorWindowController> cursor_window_controller_; | 219 scoped_ptr<CursorWindowController> cursor_window_controller_; |
219 scoped_ptr<MirrorWindowController> mirror_window_controller_; | 220 scoped_ptr<MirrorWindowController> mirror_window_controller_; |
220 | 221 |
| 222 scoped_ptr<ui::InputMethod> input_method_; |
| 223 |
221 // Stores the current cursor location (in native coordinates and screen | 224 // Stores the current cursor location (in native coordinates and screen |
222 // coordinates respectively). The locations are used to restore the cursor | 225 // coordinates respectively). The locations are used to restore the cursor |
223 // location when the display configuration changes and to determine whether | 226 // location when the display configuration changes and to determine whether |
224 // the mouse should be moved after a display configuration change. | 227 // the mouse should be moved after a display configuration change. |
225 gfx::Point cursor_location_in_native_coords_for_restore_; | 228 gfx::Point cursor_location_in_native_coords_for_restore_; |
226 gfx::Point cursor_location_in_screen_coords_for_restore_; | 229 gfx::Point cursor_location_in_screen_coords_for_restore_; |
227 | 230 |
228 // Stores the cursor's display. The id is used to determine whether the mouse | 231 // Stores the cursor's display. The id is used to determine whether the mouse |
229 // should be moved after a display configuration change. | 232 // should be moved after a display configuration change. |
230 int64 cursor_display_id_for_restore_; | 233 int64 cursor_display_id_for_restore_; |
231 | 234 |
232 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; | 235 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; |
233 | 236 |
234 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 237 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
235 }; | 238 }; |
236 | 239 |
237 } // namespace ash | 240 } // namespace ash |
238 | 241 |
239 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 242 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |