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