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

Side by Side Diff: dbus/power_manager/dbus-constants.h

Issue 3010253002: [For-Debug] Add constants.
Patch Set: Created 3 years, 3 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 OS Authors. All rights reserved. 1 // Copyright 2015 The Chromium OS 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 SYSTEM_API_DBUS_POWER_MANAGER_DBUS_CONSTANTS_H_ 5 #ifndef SYSTEM_API_DBUS_POWER_MANAGER_DBUS_CONSTANTS_H_
6 #define SYSTEM_API_DBUS_POWER_MANAGER_DBUS_CONSTANTS_H_ 6 #define SYSTEM_API_DBUS_POWER_MANAGER_DBUS_CONSTANTS_H_
7 7
8 namespace power_manager { 8 namespace power_manager {
9 // powerd 9 // powerd
10 const char kPowerManagerInterface[] = "org.chromium.PowerManager"; 10 const char kPowerManagerInterface[] = "org.chromium.PowerManager";
(...skipping 21 matching lines...) Expand all
32 const char kRegisterSuspendDelayMethod[] = "RegisterSuspendDelay"; 32 const char kRegisterSuspendDelayMethod[] = "RegisterSuspendDelay";
33 const char kUnregisterSuspendDelayMethod[] = "UnregisterSuspendDelay"; 33 const char kUnregisterSuspendDelayMethod[] = "UnregisterSuspendDelay";
34 const char kHandleSuspendReadinessMethod[] = "HandleSuspendReadiness"; 34 const char kHandleSuspendReadinessMethod[] = "HandleSuspendReadiness";
35 const char kRegisterDarkSuspendDelayMethod[] = "RegisterDarkSuspendDelay"; 35 const char kRegisterDarkSuspendDelayMethod[] = "RegisterDarkSuspendDelay";
36 const char kUnregisterDarkSuspendDelayMethod[] = "UnregisterDarkSuspendDelay"; 36 const char kUnregisterDarkSuspendDelayMethod[] = "UnregisterDarkSuspendDelay";
37 const char kHandleDarkSuspendReadinessMethod[] = "HandleDarkSuspendReadiness"; 37 const char kHandleDarkSuspendReadinessMethod[] = "HandleDarkSuspendReadiness";
38 const char kHandlePowerButtonAcknowledgmentMethod[] = 38 const char kHandlePowerButtonAcknowledgmentMethod[] =
39 "HandlePowerButtonAcknowledgment"; 39 "HandlePowerButtonAcknowledgment";
40 const char kIgnoreNextPowerButtonPressMethod[] = "IgnoreNextPowerButtonPress"; 40 const char kIgnoreNextPowerButtonPressMethod[] = "IgnoreNextPowerButtonPress";
41 const char kRecordDarkResumeWakeReasonMethod[] = "RecordDarkResumeWakeReason"; 41 const char kRecordDarkResumeWakeReasonMethod[] = "RecordDarkResumeWakeReason";
42 const char kCreateArcTimersMethod[] = "CreateArcTimers";
43 const char kSetArcTimerMethod[] = "SetArcTimer";
42 // Signals emitted by powerd. 44 // Signals emitted by powerd.
43 const char kBrightnessChangedSignal[] = "BrightnessChanged"; 45 const char kBrightnessChangedSignal[] = "BrightnessChanged";
44 const char kKeyboardBrightnessChangedSignal[] = "KeyboardBrightnessChanged"; 46 const char kKeyboardBrightnessChangedSignal[] = "KeyboardBrightnessChanged";
45 const char kPeripheralBatteryStatusSignal[] = "PeripheralBatteryStatus"; 47 const char kPeripheralBatteryStatusSignal[] = "PeripheralBatteryStatus";
46 const char kPowerSupplyPollSignal[] = "PowerSupplyPoll"; 48 const char kPowerSupplyPollSignal[] = "PowerSupplyPoll";
47 const char kSuspendImminentSignal[] = "SuspendImminent"; 49 const char kSuspendImminentSignal[] = "SuspendImminent";
48 const char kDarkSuspendImminentSignal[] = "DarkSuspendImminent"; 50 const char kDarkSuspendImminentSignal[] = "DarkSuspendImminent";
49 const char kSuspendDoneSignal[] = "SuspendDone"; 51 const char kSuspendDoneSignal[] = "SuspendDone";
50 const char kInputEventSignal[] = "InputEvent"; 52 const char kInputEventSignal[] = "InputEvent";
51 const char kIdleActionImminentSignal[] = "IdleActionImminent"; 53 const char kIdleActionImminentSignal[] = "IdleActionImminent";
52 const char kIdleActionDeferredSignal[] = "IdleActionDeferred"; 54 const char kIdleActionDeferredSignal[] = "IdleActionDeferred";
53 // Values 55 // Values
54 const int kBrightnessTransitionGradual = 1; 56 const int kBrightnessTransitionGradual = 1;
55 const int kBrightnessTransitionInstant = 2; 57 const int kBrightnessTransitionInstant = 2;
56 enum UserActivityType { 58 enum UserActivityType {
57 USER_ACTIVITY_OTHER = 0, 59 USER_ACTIVITY_OTHER = 0,
58 USER_ACTIVITY_BRIGHTNESS_UP_KEY_PRESS = 1, 60 USER_ACTIVITY_BRIGHTNESS_UP_KEY_PRESS = 1,
59 USER_ACTIVITY_BRIGHTNESS_DOWN_KEY_PRESS = 2, 61 USER_ACTIVITY_BRIGHTNESS_DOWN_KEY_PRESS = 2,
60 USER_ACTIVITY_VOLUME_UP_KEY_PRESS = 3, 62 USER_ACTIVITY_VOLUME_UP_KEY_PRESS = 3,
61 USER_ACTIVITY_VOLUME_DOWN_KEY_PRESS = 4, 63 USER_ACTIVITY_VOLUME_DOWN_KEY_PRESS = 4,
62 USER_ACTIVITY_VOLUME_MUTE_KEY_PRESS = 5, 64 USER_ACTIVITY_VOLUME_MUTE_KEY_PRESS = 5,
63 }; 65 };
64 enum RequestRestartReason { 66 enum RequestRestartReason {
65 REQUEST_RESTART_FOR_USER = 0, 67 REQUEST_RESTART_FOR_USER = 0,
66 REQUEST_RESTART_FOR_UPDATE = 1, 68 REQUEST_RESTART_FOR_UPDATE = 1,
67 }; 69 };
68 } // namespace power_manager 70 } // namespace power_manager
69 71
70 #endif // SYSTEM_API_DBUS_POWER_MANAGER_DBUS_CONSTANTS_H_ 72 #endif // SYSTEM_API_DBUS_POWER_MANAGER_DBUS_CONSTANTS_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