Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: ash/display/display_controller.h

Issue 11644012: Temporarily remember the primary root window while replacing the display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/display/display_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698