blob: 625e80f93642a1fac6f839a996603bd2cf97f88b [file] [log] [blame]
David Sodmanbbcb0522014-09-19 10:34:07 -07001/*
2 * Copyright 2014 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef DBUS_INTERFACE_H_
8#define DBUS_INTERFACE_H_
9
10/* Minimal set of power manager constants copied from
11 platform/system_api/dbus/service_constants.h which are C++
12 header file so we can't use it in our code directly */
13
14static const char kPowerManagerInterface[] = "org.chromium.PowerManager";
15static const char kPowerManagerServicePath[] = "/org/chromium/PowerManager";
16static const char kPowerManagerServiceName[] = "org.chromium.PowerManager";
17/* Methods exposed by powerd. */
18static const char kDecreaseScreenBrightnessMethod[] = "DecreaseScreenBrightness";
19static const char kIncreaseScreenBrightnessMethod[] = "IncreaseScreenBrightness";
20static const char kHandleUserActivityMethod[] = "HandleUserActivity";
21/* Values */
22static const int kBrightnessTransitionGradual = 1;
23static const int kBrightnessTransitionInstant = 2;
24enum UserActivityType {
Stéphane Marchesinc3274ab2015-12-14 16:57:30 -080025 USER_ACTIVITY_OTHER = 0,
26 USER_ACTIVITY_BRIGHTNESS_UP_KEY_PRESS = 1,
27 USER_ACTIVITY_BRIGHTNESS_DOWN_KEY_PRESS = 2,
28 USER_ACTIVITY_VOLUME_UP_KEY_PRESS = 3,
29 USER_ACTIVITY_VOLUME_DOWN_KEY_PRESS = 4,
30 USER_ACTIVITY_VOLUME_MUTE_KEY_PRESS = 5,
David Sodmanbbcb0522014-09-19 10:34:07 -070031};
32
Dominik Behr1883c042016-04-27 12:31:02 -070033static const char kSuspendDoneSignal[] = "SuspendDone";
34static const char kSuspendDoneRule[] = "interface='org.chromium.PowerManager',type='signal'";
35
David Sodmanbbcb0522014-09-19 10:34:07 -070036static const char kSessionManagerInterface[] = "org.chromium.SessionManagerInterface";
37static const char kSessionManagerServicePath[] = "/org/chromium/SessionManager";
38static const char kSessionManagerServiceName[] = "org.chromium.SessionManager";
39
40static const char kLoginPromptVisibleSignal[] = "LoginPromptVisible";
Dominik Behr46c567f2016-03-08 15:11:48 -080041static const char kLoginPromptVisibleRule[] = "interface='org.chromium.SessionManagerInterface',type='signal'";
David Sodmanbbcb0522014-09-19 10:34:07 -070042
Lann Martin059fe662017-07-24 15:22:39 -060043static const char kDisplayServiceName[] = "org.chromium.DisplayService";
44static const char kDisplayServicePath[] = "/org/chromium/DisplayService";
45static const char kDisplayServiceInterface[] =
46 "org.chromium.DisplayServiceInterface";
47static const char kTakeOwnership[] = "TakeOwnership";
48static const char kReleaseOwnership[] = "ReleaseOwnership";
David Sodmanbbcb0522014-09-19 10:34:07 -070049
David Sodman8ef20062015-01-06 09:23:40 -080050static const char kFreconDbusInterface[] = "org.chromium.frecon";
51static const char kFreconDbusPath[] = "/org/chromium/frecon";
52
David Sodmanbbcb0522014-09-19 10:34:07 -070053#endif // FRECON_DBUS_API_H_