OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMECAST_PUBLIC_AVSETTINGS_H_ | 5 #ifndef CHROMECAST_PUBLIC_AVSETTINGS_H_ |
6 #define CHROMECAST_PUBLIC_AVSETTINGS_H_ | 6 #define CHROMECAST_PUBLIC_AVSETTINGS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "output_restrictions.h" | 10 #include "output_restrictions.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
158 // |delegate| must not be null. | 158 // |delegate| must not be null. |
159 virtual void Initialize(Delegate* delegate) = 0; | 159 virtual void Initialize(Delegate* delegate) = 0; |
160 | 160 |
161 // Finalizes avsettings. It must assume |delegate| passed to Initialize() is | 161 // Finalizes avsettings. It must assume |delegate| passed to Initialize() is |
162 // invalid after this call and stop delivering events. | 162 // invalid after this call and stop delivering events. |
163 virtual void Finalize() = 0; | 163 virtual void Finalize() = 0; |
164 | 164 |
165 // Returns current active state. | 165 // Returns current active state. |
166 virtual ActiveState GetActiveState() = 0; | 166 virtual ActiveState GetActiveState() = 0; |
167 | 167 |
168 // Turns the screen on and sets the active input to the cast receiver. | 168 // Turns the screen on. Sets the active input to the cast receiver iff |
169 // also_switch_inputs == true. | |
169 // If successful, it must return true and fire ACTIVE_STATE_CHANGED. | 170 // If successful, it must return true and fire ACTIVE_STATE_CHANGED. |
170 virtual bool TurnActive() = 0; | 171 virtual bool TurnActive(bool also_switch_inputs) = 0; |
gfhuang
2017/05/03 01:11:03
"switch_to_cast" is better name.
| |
171 | 172 |
172 // Turns the screen off (or stand-by). If the device is connecting to HDMI | 173 // Turns the screen off (or stand-by). If the device is connecting to HDMI |
173 // sinks, broadcasts a CEC standby message on the HDMI control bus to put all | 174 // sinks, broadcasts a CEC standby message on the HDMI control bus to put all |
174 // sink devices (TV, AVR) into a standby state. | 175 // sink devices (TV, AVR) into a standby state. |
175 // If successful, it must return true and fire ACTIVE_STATE_CHANGED. | 176 // If successful, it must return true and fire ACTIVE_STATE_CHANGED. |
176 virtual bool TurnStandby() = 0; | 177 virtual bool TurnStandby() = 0; |
177 | 178 |
178 // Requests the system where cast receiver is running on to be kept awake for | 179 // Requests the system where cast receiver is running on to be kept awake for |
179 // |time_ms|. If the system is already being kept awake, the period should be | 180 // |time_ms|. If the system is already being kept awake, the period should be |
180 // extended from |time_ms| in the future. | 181 // extended from |time_ms| in the future. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 // the current HDMI mode. Returns false otherwise. | 334 // the current HDMI mode. Returns false otherwise. |
334 // | 335 // |
335 // Non-HDMI devices should return false. | 336 // Non-HDMI devices should return false. |
336 virtual bool IsHdrOutputSupportedByCurrentHdmiVideoMode( | 337 virtual bool IsHdrOutputSupportedByCurrentHdmiVideoMode( |
337 HdrOutputType output_type) = 0; | 338 HdrOutputType output_type) = 0; |
338 }; | 339 }; |
339 | 340 |
340 } // namespace chromecast | 341 } // namespace chromecast |
341 | 342 |
342 #endif // CHROMECAST_PUBLIC_AVSETTINGS_H_ | 343 #endif // CHROMECAST_PUBLIC_AVSETTINGS_H_ |
OLD | NEW |