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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void InitPrimaryDisplay(); | 86 void InitPrimaryDisplay(); |
87 | 87 |
88 // Initialize secondary displays. | 88 // Initialize secondary displays. |
89 void InitSecondaryDisplays(); | 89 void InitSecondaryDisplays(); |
90 | 90 |
91 // Add/Remove observers. | 91 // Add/Remove observers. |
92 void AddObserver(Observer* observer); | 92 void AddObserver(Observer* observer); |
93 void RemoveObserver(Observer* observer); | 93 void RemoveObserver(Observer* observer); |
94 | 94 |
95 // Returns the root window for primary display. | 95 // Returns the root window for primary display. |
96 aura::RootWindow* GetPrimaryRootWindow(); | 96 aura::Window* GetPrimaryRootWindow(); |
97 | 97 |
98 // Returns the root window for |display_id|. | 98 // Returns the root window for |display_id|. |
99 aura::RootWindow* GetRootWindowForDisplayId(int64 id); | 99 aura::Window* GetRootWindowForDisplayId(int64 id); |
100 | 100 |
101 // Toggle mirror mode. | 101 // Toggle mirror mode. |
102 void ToggleMirrorMode(); | 102 void ToggleMirrorMode(); |
103 | 103 |
104 // Swap primary and secondary display. | 104 // Swap primary and secondary display. |
105 void SwapPrimaryDisplay(); | 105 void SwapPrimaryDisplay(); |
106 | 106 |
107 // Sets the ID of the primary display. If the display is not connected, it | 107 // Sets the ID of the primary display. If the display is not connected, it |
108 // will switch the primary display when connected. | 108 // will switch the primary display when connected. |
109 void SetPrimaryDisplayId(int64 id); | 109 void SetPrimaryDisplayId(int64 id); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // restore the cursor location when display configuration | 216 // restore the cursor location when display configuration |
217 // changed. | 217 // changed. |
218 gfx::Point cursor_location_in_native_coords_for_restore_; | 218 gfx::Point cursor_location_in_native_coords_for_restore_; |
219 | 219 |
220 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 220 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
221 }; | 221 }; |
222 | 222 |
223 } // namespace ash | 223 } // namespace ash |
224 | 224 |
225 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 225 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |