• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef SYSTEM_API_DBUS_CECSERVICE_DBUS_CONSTANTS_H_
6 #define SYSTEM_API_DBUS_CECSERVICE_DBUS_CONSTANTS_H_
7 
8 namespace cecservice {
9 const char kCecServiceInterface[] = "org.chromium.CecService";
10 const char kCecServicePath[] = "/org/chromium/CecService";
11 const char kCecServiceName[] = "org.chromium.CecService";
12 
13 // Methods.
14 const char kSendStandByToAllDevicesMethod[] = "SendStandByToAllDevices";
15 const char kSendWakeUpToAllDevicesMethod[] = "SendWakeUpToAllDevices";
16 const char kGetTvsPowerStatus[] = "GetTvsPowerStatus";
17 
18 // Result of a TV power status query.
19 enum TvPowerStatus {
20   kTvPowerStatusError = 0,  // There was an error querying the TV.
21   kTvPowerStatusAdapterNotConfigured =
22       1,                        // The adapter is not configured (no EDID).
23   kTvPowerStatusNoTv = 2,       // There is no TV (the request was not acked).
24   kTvPowerStatusOn = 3,         // TV is on.
25   kTvPowerStatusStandBy = 4,    // TV is on standby.
26   kTvPowerStatusToOn = 5,       // TV transitions to on.
27   kTvPowerStatusToStandBy = 6,  // TV transitions to standby.
28   kTvPowerStatusUnknown = 7,    // Unknown power status read from TV.
29 };
30 
31 }  // namespace cecservice
32 
33 #endif  // SYSTEM_API_DBUS_CECSERVICE_DBUS_CONSTANTS_H_
34