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

Side by Side Diff: ui/display/chromeos/display_configurator.h

Issue 1130823003: Wait for display configuration to finish before suspending (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittests 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void SetDisplayMode(MultipleDisplayState new_state); 217 void SetDisplayMode(MultipleDisplayState new_state);
218 218
219 // NativeDisplayDelegate::Observer overrides: 219 // NativeDisplayDelegate::Observer overrides:
220 void OnConfigurationChanged() override; 220 void OnConfigurationChanged() override;
221 221
222 void AddObserver(Observer* observer); 222 void AddObserver(Observer* observer);
223 void RemoveObserver(Observer* observer); 223 void RemoveObserver(Observer* observer);
224 224
225 // Sets all the displays into pre-suspend mode; usually this means 225 // Sets all the displays into pre-suspend mode; usually this means
226 // configure them for their resume state. This allows faster resume on 226 // configure them for their resume state. This allows faster resume on
227 // machines where display configuration is slow. 227 // machines where display configuration is slow.
oshima 2015/05/06 20:25:20 nit: document |callback|.
dnicoara 2015/05/06 20:28:55 Done.
228 void SuspendDisplays(); 228 void SuspendDisplays(const ConfigurationCallback& callback);
229 229
230 // Reprobes displays to handle changes made while the system was 230 // Reprobes displays to handle changes made while the system was
231 // suspended. 231 // suspended.
232 void ResumeDisplays(); 232 void ResumeDisplays();
233 233
234 // Registers a client for display protection and requests a client id. Returns 234 // Registers a client for display protection and requests a client id. Returns
235 // 0 if requesting failed. 235 // 0 if requesting failed.
236 ContentProtectionClientId RegisterContentProtectionClient(); 236 ContentProtectionClientId RegisterContentProtectionClient();
237 237
238 // Unregisters the client. 238 // Unregisters the client.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 // This must be the last variable. 414 // This must be the last variable.
415 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 415 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
416 416
417 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 417 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
418 }; 418 };
419 419
420 } // namespace ui 420 } // namespace ui
421 421
422 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 422 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/power/power_event_observer.cc ('k') | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698