Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ | 5 #ifndef CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
| 6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ | 6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 // it. | 52 // it. |
| 53 class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher { | 53 class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher { |
| 54 public: | 54 public: |
| 55 class Observer { | 55 class Observer { |
| 56 public: | 56 public: |
| 57 // Called when the change of the display mode finished. It will usually | 57 // Called when the change of the display mode finished. It will usually |
| 58 // start the fading in the displays. | 58 // start the fading in the displays. |
| 59 virtual void OnDisplayModeChanged() {} | 59 virtual void OnDisplayModeChanged() {} |
| 60 | 60 |
| 61 // Called when the change of the display mode is issued but failed. | 61 // Called when the change of the display mode is issued but failed. |
| 62 virtual void OnDisplayModeChangeFailed() {} | 62 // |new_state| is the new state which the system failed to enter. |
| 63 virtual void OnDisplayModeChangeFailed(OutputState new_state) {} | |
|
oshima
2013/02/14 00:01:50
failed_new_state would be better.
Jun Mukai
2013/02/14 00:54:03
Done.
| |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 OutputConfigurator(); | 66 OutputConfigurator(); |
| 66 virtual ~OutputConfigurator(); | 67 virtual ~OutputConfigurator(); |
| 67 | 68 |
| 68 int connected_output_count() const { return connected_output_count_; } | 69 int connected_output_count() const { return connected_output_count_; } |
| 69 | 70 |
| 70 OutputState output_state() const { return output_state_; } | 71 OutputState output_state() const { return output_state_; } |
| 71 | 72 |
| 72 // Initialization, must be called right after constructor. | 73 // Initialization, must be called right after constructor. |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 212 | 213 |
| 213 // Indicates the time at which |output_state_| was entered. | 214 // Indicates the time at which |output_state_| was entered. |
| 214 base::TimeTicks last_enter_state_time_; | 215 base::TimeTicks last_enter_state_time_; |
| 215 | 216 |
| 216 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); | 217 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 } // namespace chromeos | 220 } // namespace chromeos |
| 220 | 221 |
| 221 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ | 222 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
| OLD | NEW |