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

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: 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/WebBatteryStatus.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..c801bc7f0b419c7f6ea3d11fe66c9525539b08fe 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -36,6 +36,7 @@
#endif
#include "WebAudioDevice.h"
+#include "WebBatteryListener.h"
timvolodine 2014/04/23 17:32:37 no need for include if you are forward-declaring i
#include "WebCommon.h"
#include "WebData.h"
#include "WebGamepadListener.h"
@@ -55,6 +56,7 @@ class GrContext;
namespace blink {
class WebAudioBus;
+class WebBatteryListener;
timvolodine 2014/04/23 17:32:37 could we rename this to WebBatteryStatusListener?
class WebBlobRegistry;
class WebContentDecryptionModule;
class WebClipboard;
@@ -159,6 +161,10 @@ public:
// creates and owns it.
virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return 0; }
+ // Battery -----------------------------------------------------------------
timvolodine 2014/04/23 17:32:37 seems that other lines have length 72.. don't know
+
+ // Sets the listener for watching battery status updates.
+ virtual void setBatteryListener(blink::WebBatteryListener*) { }
timvolodine 2014/04/23 17:32:37 can we rename the method to setBatteryStatusListen
// Blob ----------------------------------------------------------------
« no previous file with comments | « Source/modules/battery/BatteryDispatcher.cpp ('k') | public/platform/WebBatteryStatus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698