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

Unified Diff: third_party/WebKit/Source/modules/sensor/Accelerometer.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/Accelerometer.h
diff --git a/third_party/WebKit/Source/modules/sensor/Accelerometer.h b/third_party/WebKit/Source/modules/sensor/Accelerometer.h
index a7cc237e75f5081b2babb95b79e2af2660bbc0a3..5c82bc6238c7d2125e71bd67a1c3ffab6c03b82c 100644
--- a/third_party/WebKit/Source/modules/sensor/Accelerometer.h
+++ b/third_party/WebKit/Source/modules/sensor/Accelerometer.h
@@ -10,8 +10,6 @@
namespace blink {
-class AccelerometerReading;
-
class Accelerometer final : public Sensor {
DEFINE_WRAPPERTYPEINFO();
@@ -21,7 +19,9 @@ class Accelerometer final : public Sensor {
ExceptionState&);
static Accelerometer* create(ExecutionContext*, ExceptionState&);
- AccelerometerReading* reading() const;
+ double x(bool& isNull) const;
+ double y(bool& isNull) const;
+ double z(bool& isNull) const;
bool includesGravity() const;
DECLARE_VIRTUAL_TRACE();
@@ -31,7 +31,6 @@ class Accelerometer final : public Sensor {
const AccelerometerOptions&,
ExceptionState&);
// Sensor overrides.
- std::unique_ptr<SensorReadingFactory> createSensorReadingFactory() override;
AccelerometerOptions m_accelerometerOptions;
};
« no previous file with comments | « third_party/WebKit/Source/modules/modules_idl_files.gni ('k') | third_party/WebKit/Source/modules/sensor/Accelerometer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698