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

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: Change WebBatteryListener to WebBatteryStatusListener. 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..031825d486ae7812d2b10394daca51ec2b79dfc9 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;
@@ -159,6 +160,10 @@ public:
// creates and owns it.
virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return 0; }
+ // Battery -------------------------------------------------------------
+
+ // Sets the listener for watching battery status updates.
+ virtual void setBatteryStatusListener(blink::WebBatteryStatusListener*) { }
abarth-chromium 2014/04/23 20:17:38 Two blank lines between sections pls.
// Blob ----------------------------------------------------------------
« 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