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

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

Issue 258173004: [NO SUBMIT] Battery Status API skeleton implementation ASYNC Base URL: https://chromium.googlesource.com/chromium/src.git@April-17-battery-status-renderer-and-IPC
Patch Set: Created 6 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2014 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 "ipc/ipc_param_traits.h"
10 #include "ipc/ipc_platform_file.h"
11
12 #include "third_party/WebKit/public/platform/WebBatteryStatus.h"
13
14 #define IPC_MESSAGE_START BatteryStatusMsgStart
15
16 IPC_STRUCT_TRAITS_BEGIN(blink::WebBatteryStatus)
17 IPC_STRUCT_TRAITS_MEMBER(charging)
18 IPC_STRUCT_TRAITS_MEMBER(chargingTime)
19 IPC_STRUCT_TRAITS_MEMBER(dischargingTime)
20 IPC_STRUCT_TRAITS_MEMBER(level)
21 IPC_STRUCT_TRAITS_END()
22
23 // Notifies the browser process that the renderer process wants
24 // to listen to battery status updates.
25 IPC_MESSAGE_CONTROL0(BatteryStatusHostMsg_Start)
26
27 // Notifies the render process with new battery status data.
28 IPC_MESSAGE_CONTROL1(BatteryStatusMsg_DidChange,
29 blink::WebBatteryStatus /* new status */)
30
31 // Notifies the browser process that the renderer process is not using the
32 // battery status data anymore.
33 IPC_MESSAGE_CONTROL0(BatteryStatusHostMsg_Stop)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698