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 |
| 9 #include "ipc/ipc_message_macros.h" |
| 10 |
| 11 #define IPC_MESSAGE_START BatteryStatusMsgStart |
| 12 |
| 13 // Messages sent from the renderer to the browser. |
| 14 |
| 15 // Asks the browser process to start or stop sending battery status updates. |
| 16 IPC_MESSAGE_CONTROL1(BatteryStatusHostMsg_StartUpdating, |
| 17 int /* render_view_id */) |
| 18 |
| 19 IPC_MESSAGE_CONTROL1(BatteryStatusHostMsg_StopUpdating, |
| 20 int /* render_view_id */) |
| 21 |
| 22 // Messages sent from the browser to the renderer. |
| 23 |
| 24 // Sends the battery-status update to the renderer. The message payload includes |
| 25 // a blot that should be cast to WebBatteryStatus. |
| 26 IPC_MESSAGE_ROUTED0(BatteryStatusMsg_Updated) |
OLD | NEW |