- add sources.
[platform/framework/web/crosswalk.git] / src / content / common / power_monitor_messages.h
1 // Copyright (c) 2013 The Chromium 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 // Multiply-included message file, no include guard.
6
7 #include "ipc/ipc_message_macros.h"
8 #include "ipc/ipc_param_traits.h"
9 #include "ipc/ipc_platform_file.h"
10
11 #undef IPC_MESSAGE_EXPORT
12 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
13 #define IPC_MESSAGE_START PowerMonitorMsgStart
14
15 // Messages sent from the browser to the renderer/gpu.
16
17 // Notification of a change in power status of the computer, such
18 // as from switching between battery and A/C power.
19 IPC_MESSAGE_CONTROL1(PowerMonitorMsg_PowerStateChange,
20     bool /* on_battery_power */)
21
22 // Notification that the system is suspending.
23 IPC_MESSAGE_CONTROL0(PowerMonitorMsg_Suspend)
24
25 // Notification that the system is resuming.
26 IPC_MESSAGE_CONTROL0(PowerMonitorMsg_Resume)