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

Unified Diff: public/platform/Platform.h

Issue 246773007: Add setBatteryListener into Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add double space between sections. Created 6 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
« no previous file with comments | « Source/modules/battery/BatteryDispatcher.cpp ('k') | public/platform/WebBatteryListener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 5682f3b71b830bb9a438f994ec089eb7e61fdb51..ab1c577a75539d67a9d5f60e17288b0570ce7775 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -55,6 +55,7 @@ class GrContext;
namespace blink {
class WebAudioBus;
+class WebBatteryStatusListener;
class WebBlobRegistry;
class WebContentDecryptionModule;
class WebClipboard;
@@ -160,6 +161,12 @@ public:
virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return 0; }
+ // Battery -------------------------------------------------------------
+
+ // Sets the listener for watching battery status updates.
+ virtual void setBatteryStatusListener(blink::WebBatteryStatusListener*) { }
+
+
// Blob ----------------------------------------------------------------
// Must return non-null.
« no previous file with comments | « Source/modules/battery/BatteryDispatcher.cpp ('k') | public/platform/WebBatteryListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698