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

Unified Diff: third_party/WebKit/Source/modules/sensor/AccelerometerReading.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/AccelerometerReading.h
diff --git a/third_party/WebKit/Source/modules/sensor/AccelerometerReading.h b/third_party/WebKit/Source/modules/sensor/AccelerometerReading.h
deleted file mode 100644
index 260a7ccba4e2ae4c063f356ee3afea55bde4a529..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/sensor/AccelerometerReading.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef AccelerometerReading_h
-#define AccelerometerReading_h
-
-#include "modules/sensor/AccelerometerReadingInit.h"
-#include "modules/sensor/SensorReading.h"
-
-namespace blink {
-
-class AccelerometerReading final : public SensorReading {
- DEFINE_WRAPPERTYPEINFO();
-
- public:
- static AccelerometerReading* create(const AccelerometerReadingInit& init) {
- return new AccelerometerReading(init);
- }
-
- static AccelerometerReading* create(const device::SensorReading& data) {
- return new AccelerometerReading(data);
- }
-
- ~AccelerometerReading() override;
-
- double x() const;
- double y() const;
- double z() const;
-
- bool isReadingUpdated(const device::SensorReading&) const override;
-
- DECLARE_VIRTUAL_TRACE();
-
- private:
- explicit AccelerometerReading(const AccelerometerReadingInit&);
- explicit AccelerometerReading(const device::SensorReading&);
-};
-
-} // namepsace blink
-
-#endif // AccelerometerReading_h

Powered by Google App Engine
This is Rietveld 408576698