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

Unified Diff: Source/modules/battery/BatteryDispatcher.cpp

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.h ('k') | public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/BatteryDispatcher.cpp
diff --git a/Source/modules/battery/BatteryDispatcher.cpp b/Source/modules/battery/BatteryDispatcher.cpp
index 010413386cf17c1fc339e1d5e2915b9072f7b9b6..88a6dba5eb802bb61b55260209a0a5a3acd32fbd 100644
--- a/Source/modules/battery/BatteryDispatcher.cpp
+++ b/Source/modules/battery/BatteryDispatcher.cpp
@@ -85,12 +85,12 @@ void BatteryDispatcher::didChangeBatteryStatus(const AtomicString& eventType)
void BatteryDispatcher::startListening()
{
- notImplemented();
+ blink::Platform::current()->setBatteryStatusListener(this);
}
void BatteryDispatcher::stopListening()
{
- notImplemented();
+ blink::Platform::current()->setBatteryStatusListener(0);
}
}
« no previous file with comments | « Source/modules/battery/BatteryDispatcher.h ('k') | public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698