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

Unified Diff: Source/modules/battery/BatteryStatus.h

Issue 212643010: Add Dispatcher class to the Battery Status API module. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove comments and stopUpdating in the destructor. 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/BatteryManager.cpp ('k') | Source/modules/battery/BatteryStatus.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/battery/BatteryStatus.h
diff --git a/Source/modules/battery/BatteryStatus.h b/Source/modules/battery/BatteryStatus.h
index c1a0ed7437baa3b2c50e5ce48a47699daf46a25f..5557bc97650a301ac3ded0a2302f5d9de646f18e 100644
--- a/Source/modules/battery/BatteryStatus.h
+++ b/Source/modules/battery/BatteryStatus.h
@@ -5,15 +5,15 @@
#ifndef BatteryStatus_h
#define BatteryStatus_h
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
namespace WebCore {
-class BatteryStatus {
+class BatteryStatus : public RefCounted<BatteryStatus> {
public:
- static PassOwnPtr<BatteryStatus> create();
- static PassOwnPtr<BatteryStatus> create(bool charging, double chargingTime, double dischargingTime, double level);
+ static PassRefPtr<BatteryStatus> create();
+ static PassRefPtr<BatteryStatus> create(bool charging, double chargingTime, double dischargingTime, double level);
bool charging() const { return m_charging; }
double chargingTime() const { return m_chargingTime; }
« no previous file with comments | « Source/modules/battery/BatteryManager.cpp ('k') | Source/modules/battery/BatteryStatus.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698