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

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

Issue 2472403002: [Sensors] Align sensor reading attribute implementation with the specification (Closed)
Patch Set: Comments from Tim Created 4 years, 1 month 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/AmbientLightSensorReading.h
diff --git a/third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.h b/third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.h
index 6bbf4aeb3cfb4aadf140fd994a21f8032b494fef..8d1081fea7adb605d7a430ba47bcf923b7e11a11 100644
--- a/third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.h
+++ b/third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.h
@@ -19,24 +19,21 @@ class AmbientLightSensorReading final : public SensorReading {
return new AmbientLightSensorReading(init);
}
- static AmbientLightSensorReading* create(SensorProxy* proxy) {
- return new AmbientLightSensorReading(proxy);
+ static AmbientLightSensorReading* create(const device::SensorReading& data) {
+ return new AmbientLightSensorReading(data);
}
~AmbientLightSensorReading() override;
double illuminance() const;
- bool isReadingUpdated(const SensorProxy::Reading&) const override;
+ bool isReadingUpdated(const device::SensorReading&) const override;
DECLARE_VIRTUAL_TRACE();
private:
explicit AmbientLightSensorReading(const AmbientLightSensorReadingInit&);
- explicit AmbientLightSensorReading(SensorProxy*);
-
- private:
- AmbientLightSensorReadingInit mAmbientLightSensorReadingInit;
+ explicit AmbientLightSensorReading(const device::SensorReading&);
};
} // namepsace blink

Powered by Google App Engine
This is Rietveld 408576698