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

Unified Diff: third_party/WebKit/Source/modules/sensor/Magnetometer.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/Magnetometer.h
diff --git a/third_party/WebKit/Source/modules/sensor/Magnetometer.h b/third_party/WebKit/Source/modules/sensor/Magnetometer.h
index 6d926acb0bf1338656e8b732e2b568e1946950e0..f1d5b9a3812e95d4193d92d779f3456af1933688 100644
--- a/third_party/WebKit/Source/modules/sensor/Magnetometer.h
+++ b/third_party/WebKit/Source/modules/sensor/Magnetometer.h
@@ -9,8 +9,6 @@
namespace blink {
-class MagnetometerReading;
-
class Magnetometer final : public Sensor {
DEFINE_WRAPPERTYPEINFO();
@@ -20,14 +18,14 @@ class Magnetometer final : public Sensor {
ExceptionState&);
static Magnetometer* create(ExecutionContext*, ExceptionState&);
- MagnetometerReading* reading() const;
+ double x(bool& isNull) const;
+ double y(bool& isNull) const;
+ double z(bool& isNull) const;
DECLARE_VIRTUAL_TRACE();
private:
Magnetometer(ExecutionContext*, const SensorOptions&, ExceptionState&);
- // Sensor overrides.
- std::unique_ptr<SensorReadingFactory> createSensorReadingFactory() override;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698