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

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

Issue 1133323002: Close mirroring window only when necessary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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
« 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void OnDisplayRemoved(const gfx::Display& display) override; 152 void OnDisplayRemoved(const gfx::Display& display) override;
153 void OnDisplayMetricsChanged(const gfx::Display& display, 153 void OnDisplayMetricsChanged(const gfx::Display& display,
154 uint32_t metrics) override; 154 uint32_t metrics) override;
155 155
156 // aura::WindowTreeHostObserver overrides: 156 // aura::WindowTreeHostObserver overrides:
157 void OnHostResized(const aura::WindowTreeHost* host) override; 157 void OnHostResized(const aura::WindowTreeHost* host) override;
158 158
159 // aura::DisplayManager::Delegate overrides: 159 // aura::DisplayManager::Delegate overrides:
160 void CreateOrUpdateMirroringDisplay( 160 void CreateOrUpdateMirroringDisplay(
161 const DisplayInfoList& info_list) override; 161 const DisplayInfoList& info_list) override;
162 void CloseMirroringDisplay() override; 162 void CloseMirroringDisplayIfNotNecessary() override;
163 void PreDisplayConfigurationChange(bool clear_focus) override; 163 void PreDisplayConfigurationChange(bool clear_focus) override;
164 void PostDisplayConfigurationChange() override; 164 void PostDisplayConfigurationChange() override;
165 165
166 private: 166 private:
167 FRIEND_TEST_ALL_PREFIXES(DisplayControllerTest, BoundsUpdated); 167 FRIEND_TEST_ALL_PREFIXES(DisplayControllerTest, BoundsUpdated);
168 FRIEND_TEST_ALL_PREFIXES(DisplayControllerTest, SecondaryDisplayLayout); 168 FRIEND_TEST_ALL_PREFIXES(DisplayControllerTest, SecondaryDisplayLayout);
169 friend class DisplayManager; 169 friend class DisplayManager;
170 friend class MirrorWindowController; 170 friend class MirrorWindowController;
171 171
172 // Creates a WindowTreeHost for |display| and stores it in the 172 // Creates a WindowTreeHost for |display| and stores it in the
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 int64 cursor_display_id_for_restore_; 230 int64 cursor_display_id_for_restore_;
231 231
232 base::WeakPtrFactory<DisplayController> weak_ptr_factory_; 232 base::WeakPtrFactory<DisplayController> weak_ptr_factory_;
233 233
234 DISALLOW_COPY_AND_ASSIGN(DisplayController); 234 DISALLOW_COPY_AND_ASSIGN(DisplayController);
235 }; 235 };
236 236
237 } // namespace ash 237 } // namespace ash
238 238
239 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ 239 #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