Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: chromecast/public/avsettings.h

Issue 2859733002: Allow TV turn on without switching inputs (Closed)
Patch Set: Fix target ref Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // switch_to_cast == 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 switch_to_cast) = 0;
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698