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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 static const gfx::Display& GetPrimaryDisplay(); | 77 static const gfx::Display& GetPrimaryDisplay(); |
78 | 78 |
79 // Returns the number of display. This is safe to use after | 79 // Returns the number of display. This is safe to use after |
80 // ash::Shell is deleted. | 80 // ash::Shell is deleted. |
81 static int GetNumDisplays(); | 81 static int GetNumDisplays(); |
82 | 82 |
83 internal::MirrorWindowController* mirror_window_controller() { | 83 internal::MirrorWindowController* mirror_window_controller() { |
84 return mirror_window_controller_.get(); | 84 return mirror_window_controller_.get(); |
85 } | 85 } |
86 | 86 |
| 87 internal::VirtualKeyboardWindowController* |
| 88 virtual_keyboard_window_controller() { |
| 89 return virtual_keyboard_window_controller_.get(); |
| 90 } |
| 91 |
87 // Initializes primary display. | 92 // Initializes primary display. |
88 void InitPrimaryDisplay(); | 93 void InitPrimaryDisplay(); |
89 | 94 |
90 // Initialize secondary displays. | 95 // Initialize secondary displays. |
91 void InitSecondaryDisplays(); | 96 void InitSecondaryDisplays(); |
92 | 97 |
93 // Add/Remove observers. | 98 // Add/Remove observers. |
94 void AddObserver(Observer* observer); | 99 void AddObserver(Observer* observer); |
95 void RemoveObserver(Observer* observer); | 100 void RemoveObserver(Observer* observer); |
96 | 101 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // restore the cursor location when display configuration | 224 // restore the cursor location when display configuration |
220 // changed. | 225 // changed. |
221 gfx::Point cursor_location_in_native_coords_for_restore_; | 226 gfx::Point cursor_location_in_native_coords_for_restore_; |
222 | 227 |
223 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 228 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
224 }; | 229 }; |
225 | 230 |
226 } // namespace ash | 231 } // namespace ash |
227 | 232 |
228 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 233 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |