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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 166 // Interface for classes that make decisions about which output state | 166 // Interface for classes that make decisions about which output state |
| 167 // should be used. | 167 // should be used. |
| 168 class StateController { | 168 class StateController { |
| 169 public: | 169 public: |
| 170 virtual ~StateController() {} | 170 virtual ~StateController() {} |
| 171 | 171 |
| 172 // Called when displays are detected. | 172 // Called when displays are detected. |
| 173 virtual OutputState GetStateForDisplayIds( | 173 virtual OutputState GetStateForDisplayIds( |
| 174 const std::vector<int64>& display_ids) const = 0; | 174 const std::vector<int64>& display_ids) const = 0; |
| 175 | 175 |
| 176 // Queries the resolution (|width|x|height|) in pixels | 176 // Queries the resolution (|width|x|height|) in pixels and |refresh_rate| in |
| 177 // to select output mode for the given display id. | 177 // Hz to select output mode for the given display id. |
| 178 virtual bool GetResolutionForDisplayId(int64 display_id, | 178 virtual bool GetResolutionForDisplayId(int64 display_id, |
| 179 int* width, | 179 int* width, |
| 180 int* height) const = 0; | 180 int* height, |
| 181 float* refresh_rate) const = 0; | |
|
oshima
2014/01/27 18:53:22
Looks like you're not using refresh_rate in output
sheu
2014/01/28 21:30:42
Done.
| |
| 181 }; | 182 }; |
| 182 | 183 |
| 183 // Interface for classes that implement software based mirroring. | 184 // Interface for classes that implement software based mirroring. |
| 184 class SoftwareMirroringController { | 185 class SoftwareMirroringController { |
| 185 public: | 186 public: |
| 186 virtual ~SoftwareMirroringController() {} | 187 virtual ~SoftwareMirroringController() {} |
| 187 | 188 |
| 188 // Called when the hardware mirroring failed. | 189 // Called when the hardware mirroring failed. |
| 189 virtual void SetSoftwareMirroring(bool enabled) = 0; | 190 virtual void SetSoftwareMirroring(bool enabled) = 0; |
| 190 }; | 191 }; |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 561 int casting_session_count_; | 562 int casting_session_count_; |
| 562 | 563 |
| 563 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); | 564 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); |
| 564 }; | 565 }; |
| 565 | 566 |
| 566 typedef std::vector<OutputConfigurator::OutputSnapshot> OutputSnapshotList; | 567 typedef std::vector<OutputConfigurator::OutputSnapshot> OutputSnapshotList; |
| 567 | 568 |
| 568 } // namespace chromeos | 569 } // namespace chromeos |
| 569 | 570 |
| 570 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ | 571 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
| OLD | NEW |