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

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

Issue 2668173003: [Sensors] Remove SensorReading interfaces (Closed)
Patch Set: updated global-interface-listing.html Created 3 years, 11 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/AmbientLightSensor.h
diff --git a/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h
index 345117c1fcbbacc181af197d5f33af3849c403ad..c5346e7797fb0dbac11a5b00b88e9ed56b7f258d 100644
--- a/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h
+++ b/third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h
@@ -9,8 +9,6 @@
namespace blink {
-class AmbientLightSensorReading;
-
class AmbientLightSensor final : public Sensor {
DEFINE_WRAPPERTYPEINFO();
@@ -20,14 +18,12 @@ class AmbientLightSensor final : public Sensor {
ExceptionState&);
static AmbientLightSensor* create(ExecutionContext*, ExceptionState&);
- AmbientLightSensorReading* reading() const;
+ double illuminance(bool& isNull) const;
DECLARE_VIRTUAL_TRACE();
private:
AmbientLightSensor(ExecutionContext*, const SensorOptions&, ExceptionState&);
- // Sensor overrides.
- std::unique_ptr<SensorReadingFactory> createSensorReadingFactory() override;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698