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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorReading.h

Issue 2356133002: Reland of [sensors] Ambient light sensor bindings implementation (Closed)
Patch Set: Rebased and fixed review comment from haraken. Created 4 years, 3 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
Index: third_party/WebKit/Source/modules/sensor/SensorReading.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorReading.h b/third_party/WebKit/Source/modules/sensor/SensorReading.h
index 2eaf7e6a177db48e75962b885ee31ae8b643de3d..9bc2a72f64adb85ef967a93cb62c46dfd93d4e15 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorReading.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorReading.h
@@ -16,7 +16,7 @@ class ExecutionContext;
class ScriptState;
class SensorReading
- : public GarbageCollected<SensorReading>
+ : public GarbageCollectedFinalized<SensorReading>
, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
@@ -28,6 +28,8 @@ public:
// previous one; otherwise returns 'false'.
virtual bool isReadingUpdated(const SensorProxy::Reading& previous) const = 0;
+ virtual ~SensorReading();
+
protected:
explicit SensorReading(SensorProxy*);
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/BUILD.gn ('k') | third_party/WebKit/Source/modules/sensor/SensorReading.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698