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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 // Per-device display layout. | 173 // Per-device display layout. |
174 std::map<int64, DisplayLayout> secondary_layouts_; | 174 std::map<int64, DisplayLayout> secondary_layouts_; |
175 | 175 |
176 // The ID of the display which should be primary when connected. | 176 // The ID of the display which should be primary when connected. |
177 // kInvalidDisplayID if no such preference is specified. | 177 // kInvalidDisplayID if no such preference is specified. |
178 int64 desired_primary_display_id_; | 178 int64 desired_primary_display_id_; |
179 | 179 |
180 ObserverList<Observer> observers_; | 180 ObserverList<Observer> observers_; |
181 | 181 |
| 182 // Store the primary root window temporarily while replacing |
| 183 // display. |
| 184 aura::RootWindow* primary_root_window_for_replace_; |
| 185 |
182 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 186 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
183 }; | 187 }; |
184 | 188 |
185 } // namespace ash | 189 } // namespace ash |
186 | 190 |
187 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 191 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |