| OLD | NEW |
| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // |flags| contains bitwise-or-ed kSetDisplayPower* values. Returns true if | 179 // |flags| contains bitwise-or-ed kSetDisplayPower* values. Returns true if |
| 180 // the system successfully enters (or was already in) |power_state|. | 180 // the system successfully enters (or was already in) |power_state|. |
| 181 bool SetDisplayPower(chromeos::DisplayPowerState power_state, int flags); | 181 bool SetDisplayPower(chromeos::DisplayPowerState power_state, int flags); |
| 182 | 182 |
| 183 // Force switching the display mode to |new_state|. Returns false if | 183 // Force switching the display mode to |new_state|. Returns false if |
| 184 // switching failed (possibly because |new_state| is invalid for the | 184 // switching failed (possibly because |new_state| is invalid for the |
| 185 // current set of connected displays). | 185 // current set of connected displays). |
| 186 bool SetDisplayMode(MultipleDisplayState new_state); | 186 bool SetDisplayMode(MultipleDisplayState new_state); |
| 187 | 187 |
| 188 // NativeDisplayDelegate::Observer overrides: | 188 // NativeDisplayDelegate::Observer overrides: |
| 189 virtual void OnConfigurationChanged() OVERRIDE; | 189 virtual void OnConfigurationChanged() override; |
| 190 | 190 |
| 191 void AddObserver(Observer* observer); | 191 void AddObserver(Observer* observer); |
| 192 void RemoveObserver(Observer* observer); | 192 void RemoveObserver(Observer* observer); |
| 193 | 193 |
| 194 // Sets all the displays into pre-suspend mode; usually this means | 194 // Sets all the displays into pre-suspend mode; usually this means |
| 195 // configure them for their resume state. This allows faster resume on | 195 // configure them for their resume state. This allows faster resume on |
| 196 // machines where display configuration is slow. | 196 // machines where display configuration is slow. |
| 197 void SuspendDisplays(); | 197 void SuspendDisplays(); |
| 198 | 198 |
| 199 // Reprobes displays to handle changes made while the system was | 199 // Reprobes displays to handle changes made while the system was |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 345 |
| 346 // Display protection requests of each client. | 346 // Display protection requests of each client. |
| 347 ProtectionRequests client_protection_requests_; | 347 ProtectionRequests client_protection_requests_; |
| 348 | 348 |
| 349 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); | 349 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); |
| 350 }; | 350 }; |
| 351 | 351 |
| 352 } // namespace ui | 352 } // namespace ui |
| 353 | 353 |
| 354 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 354 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| OLD | NEW |