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

Unified 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: file-move 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 side-by-side diff with in-line comments
Download patch
Index: content/common/battery_status_messages.h
diff --git a/content/common/battery_status_messages.h b/content/common/battery_status_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..4579333fafe3a2d05880d59de77eb763552a89a4
--- /dev/null
+++ b/content/common/battery_status_messages.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for battery status api.
+// Multiply-included message file, hence no include guard.
+
+
+#include "ipc/ipc_message_macros.h"
+
+#define IPC_MESSAGE_START BatteryStatusMsgStart
+
+// Messages sent from the renderer to the browser.
+
+// Asks the browser process to start or stop sending battery status updates.
+IPC_MESSAGE_CONTROL1(BatteryStatusHostMsg_StartUpdating,
+ int /* render_view_id */)
+
+IPC_MESSAGE_CONTROL1(BatteryStatusHostMsg_StopUpdating,
+ int /* render_view_id */)
+
+// Messages sent from the browser to the renderer.
+
+// Sends the battery-status update to the renderer. The message payload includes
+// a blot that should be cast to WebBatteryStatus.
jam 2012/04/12 01:55:10 we generally don't send structs this way over ipc.
sadrul 2012/04/12 05:20:09 Done.
+IPC_MESSAGE_ROUTED0(BatteryStatusMsg_Updated)

Powered by Google App Engine
This is Rietveld 408576698