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

Unified Diff: content/browser/battery_status/battery_status_update_callback.h

Issue 267893003: Battery Status API: add plumbing for multi-platform support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/battery_status/battery_status_manager_default.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/battery_status/battery_status_update_callback.h
diff --git a/content/browser/battery_status/battery_status_update_callback.h b/content/browser/battery_status/battery_status_update_callback.h
new file mode 100644
index 0000000000000000000000000000000000000000..b34a353c0f0dc59195e6210f5cb8842faf93bdd5
--- /dev/null
+++ b/content/browser/battery_status/battery_status_update_callback.h
@@ -0,0 +1,18 @@
+// 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.
+
+#ifndef CONTENT_BROWSER_BATTERY_STATUS_BATTERY_STATUS_UPDATE_CALLBACK_H_
+#define CONTENT_BROWSER_BATTERY_STATUS_BATTERY_STATUS_UPDATE_CALLBACK_H_
+
+#include "base/callback.h"
+#include "third_party/WebKit/public/platform/WebBatteryStatus.h"
+
+namespace content {
+
+typedef base::Callback<void(const blink::WebBatteryStatus&)>
+ BatteryStatusUpdateCallback;
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_BATTERY_STATUS_BATTERY_STATUS_UPDATE_CALLBACK_H_
« no previous file with comments | « content/browser/battery_status/battery_status_manager_default.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698