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

Side by Side Diff: content/common/battery_status_messages.h

Issue 10024013: chromeos: Add support for the battery status API on chromeos. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
(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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698