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

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: 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 | « no previous file | public/platform/Platform.h » ('j') | public/platform/Platform.h » ('J')
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..8548bdeb50e600dd5c31f3670958eb2c9e2f16b5 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()->setBatteryListener(this);
}
void BatteryDispatcher::stopListening()
{
- notImplemented();
+ blink::Platform::current()->setBatteryListener(0);
}
}
« no previous file with comments | « no previous file | public/platform/Platform.h » ('j') | public/platform/Platform.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698