| 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 | |
| 92 // Initializes primary display. | 87 // Initializes primary display. |
| 93 void InitPrimaryDisplay(); | 88 void InitPrimaryDisplay(); |
| 94 | 89 |
| 95 // Initialize secondary displays. | 90 // Initialize secondary displays. |
| 96 void InitSecondaryDisplays(); | 91 void InitSecondaryDisplays(); |
| 97 | 92 |
| 98 // Add/Remove observers. | 93 // Add/Remove observers. |
| 99 void AddObserver(Observer* observer); | 94 void AddObserver(Observer* observer); |
| 100 void RemoveObserver(Observer* observer); | 95 void RemoveObserver(Observer* observer); |
| 101 | 96 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // restore the cursor location when display configuration | 219 // restore the cursor location when display configuration |
| 225 // changed. | 220 // changed. |
| 226 gfx::Point cursor_location_in_native_coords_for_restore_; | 221 gfx::Point cursor_location_in_native_coords_for_restore_; |
| 227 | 222 |
| 228 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 223 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
| 229 }; | 224 }; |
| 230 | 225 |
| 231 } // namespace ash | 226 } // namespace ash |
| 232 | 227 |
| 233 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 228 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |