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

Unified Diff: content/common/battery_status_messages.h

Issue 457933002: Replace Chrome IPC with Mojo IPC for querying BatteryStatus service Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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
deleted file mode 100644
index dd09ed0ca240a617fee81720cddf378c3d694e52..0000000000000000000000000000000000000000
--- a/content/common/battery_status_messages.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 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"
-#include "third_party/WebKit/public/platform/WebBatteryStatus.h"
-
-#undef IPC_MESSAGE_EXPORT
-#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
-#define IPC_MESSAGE_START BatteryStatusMsgStart
-
-IPC_STRUCT_TRAITS_BEGIN(blink::WebBatteryStatus)
- IPC_STRUCT_TRAITS_MEMBER(charging)
- IPC_STRUCT_TRAITS_MEMBER(chargingTime)
- IPC_STRUCT_TRAITS_MEMBER(dischargingTime)
- IPC_STRUCT_TRAITS_MEMBER(level)
-IPC_STRUCT_TRAITS_END()
-
-// Notifies the browser process that the renderer process wants
-// to listen to battery status updates.
-IPC_MESSAGE_CONTROL0(BatteryStatusHostMsg_Start)
-
-// Notifies the render process with new battery status data.
-IPC_MESSAGE_CONTROL1(BatteryStatusMsg_DidChange,
- blink::WebBatteryStatus /* new status */)
-
-// Notifies the browser process that the renderer process is not using the
-// battery status data anymore.
-IPC_MESSAGE_CONTROL0(BatteryStatusHostMsg_Stop)
« 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