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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
174 | 174 |
175 // Per-device display layout. | 175 // Per-device display layout. |
176 std::map<std::string, DisplayLayout> secondary_layouts_; | 176 std::map<std::string, DisplayLayout> secondary_layouts_; |
177 | 177 |
178 // The ID of the display which should be primary when connected. | 178 // The ID of the display which should be primary when connected. |
179 // kInvalidDisplayID if no such preference is specified. | 179 // kInvalidDisplayID if no such preference is specified. |
180 int64 desired_primary_display_id_; | 180 int64 desired_primary_display_id_; |
181 | 181 |
182 ObserverList<Observer> observers_; | 182 ObserverList<Observer> observers_; |
183 | 183 |
184 // Store the primary root window temporarily while replacing | |
185 // display. | |
186 aura::RootWindow* primary_root_window_for_replace_; | |
Daniel Erat
2012/12/19 16:49:13
can you store this in a scoped_ptr instead so it w
oshima
2012/12/19 16:59:51
If it ever leaked, many bad things will happen, an
Daniel Erat
2012/12/19 17:02:26
Doesn't this get leaked if OnDisplayRemoved() is c
| |
187 | |
184 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 188 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
185 }; | 189 }; |
186 | 190 |
187 } // namespace ash | 191 } // namespace ash |
188 | 192 |
189 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 193 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
OLD | NEW |