OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 // IPC messages for battery status api. |
| 6 // Multiply-included message file, hence no include guard. |
| 7 |
| 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBatteryStatus.h" |
| 10 |
| 11 #define IPC_MESSAGE_START BatteryStatusMsgStart |
| 12 |
| 13 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebBatteryStatus) |
| 14 IPC_STRUCT_TRAITS_MEMBER(charging) |
| 15 IPC_STRUCT_TRAITS_MEMBER(chargingTime) |
| 16 IPC_STRUCT_TRAITS_MEMBER(dischargingTime) |
| 17 IPC_STRUCT_TRAITS_MEMBER(level) |
| 18 IPC_STRUCT_TRAITS_END() |
| 19 |
| 20 // Messages sent from the renderer to the browser. |
| 21 |
| 22 // Asks the browser process to start or stop sending battery status updates. |
| 23 IPC_MESSAGE_CONTROL1(BatteryStatusHostMsg_StartUpdating, |
| 24 int /* render_view_id */) |
| 25 |
| 26 IPC_MESSAGE_CONTROL1(BatteryStatusHostMsg_StopUpdating, |
| 27 int /* render_view_id */) |
| 28 |
| 29 // Messages sent from the browser to the renderer. |
| 30 |
| 31 // Sends the battery-status update to the renderer. |
| 32 IPC_MESSAGE_ROUTED1(BatteryStatusMsg_Updated, |
| 33 WebKit::WebBatteryStatus) |
OLD | NEW |