| 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 // Pending requests. These values are used when triggering the next display | 390 // Pending requests. These values are used when triggering the next display |
| 391 // configuration. | 391 // configuration. |
| 392 // | 392 // |
| 393 // Stores the user requested state or INVALID if nothing was requested. | 393 // Stores the user requested state or INVALID if nothing was requested. |
| 394 MultipleDisplayState requested_display_state_; | 394 MultipleDisplayState requested_display_state_; |
| 395 | 395 |
| 396 // Stores the requested power state. | 396 // Stores the requested power state. |
| 397 chromeos::DisplayPowerState requested_power_state_; | 397 chromeos::DisplayPowerState requested_power_state_; |
| 398 | 398 |
| 399 // The display power state before suspend. |
| 400 chromeos::DisplayPowerState saved_power_state_; |
| 401 |
| 399 // True if |requested_power_state_| has been changed due to a user request. | 402 // True if |requested_power_state_| has been changed due to a user request. |
| 400 bool requested_power_state_change_; | 403 bool requested_power_state_change_; |
| 401 | 404 |
| 402 // Bitwise-or value of the |kSetDisplayPower*| flags defined above. | 405 // Bitwise-or value of the |kSetDisplayPower*| flags defined above. |
| 403 int requested_power_flags_; | 406 int requested_power_flags_; |
| 404 | 407 |
| 405 // List of callbacks from callers waiting for the display configuration to | 408 // List of callbacks from callers waiting for the display configuration to |
| 406 // start/finish. Note these callbacks belong to the pending request, not a | 409 // start/finish. Note these callbacks belong to the pending request, not a |
| 407 // request currently active. | 410 // request currently active. |
| 408 std::vector<ConfigurationCallback> queued_configuration_callbacks_; | 411 std::vector<ConfigurationCallback> queued_configuration_callbacks_; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 463 |
| 461 // This must be the last variable. | 464 // This must be the last variable. |
| 462 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; | 465 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; |
| 463 | 466 |
| 464 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); | 467 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); |
| 465 }; | 468 }; |
| 466 | 469 |
| 467 } // namespace ui | 470 } // namespace ui |
| 468 | 471 |
| 469 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 472 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| OLD | NEW |