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

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: . 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. On completion of the display
228 void SuspendDisplays(); 228 // configuration |callback| is executed.
229 void SuspendDisplays(const ConfigurationCallback& callback);
229 230
230 // Reprobes displays to handle changes made while the system was 231 // Reprobes displays to handle changes made while the system was
231 // suspended. 232 // suspended.
232 void ResumeDisplays(); 233 void ResumeDisplays();
233 234
234 // Registers a client for display protection and requests a client id. Returns 235 // Registers a client for display protection and requests a client id. Returns
235 // 0 if requesting failed. 236 // 0 if requesting failed.
236 ContentProtectionClientId RegisterContentProtectionClient(); 237 ContentProtectionClientId RegisterContentProtectionClient();
237 238
238 // Unregisters the client. 239 // Unregisters the client.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 414
414 // This must be the last variable. 415 // This must be the last variable.
415 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 416 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
416 417
417 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 418 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
418 }; 419 };
419 420
420 } // namespace ui 421 } // namespace ui
421 422
422 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 423 #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