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

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

Issue 2908393002: [Sensors] Bindings for RelativeOrientationSensor (Closed)
Patch Set: updated webexposed tests results Created 3 years, 7 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/RelativeOrientationSensor.h
diff --git a/third_party/WebKit/Source/modules/sensor/RelativeOrientationSensor.h b/third_party/WebKit/Source/modules/sensor/RelativeOrientationSensor.h
new file mode 100644
index 0000000000000000000000000000000000000000..3b5a9be30fb409a4002fb36c4cefb754822c553e
--- /dev/null
+++ b/third_party/WebKit/Source/modules/sensor/RelativeOrientationSensor.h
@@ -0,0 +1,31 @@
+// Copyright 2017 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 RelativeOrientationSensor_h
+#define RelativeOrientationSensor_h
+
+#include "modules/sensor/OrientationSensor.h"
+
+namespace blink {
+
+class RelativeOrientationSensor final : public OrientationSensor {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static RelativeOrientationSensor* Create(ExecutionContext*,
+ const SensorOptions&,
+ ExceptionState&);
+ static RelativeOrientationSensor* Create(ExecutionContext*, ExceptionState&);
+
+ DECLARE_VIRTUAL_TRACE();
+
+ private:
+ RelativeOrientationSensor(ExecutionContext*,
+ const SensorOptions&,
+ ExceptionState&);
+};
+
+} // namespace blink
+
+#endif // RelativeOrientationSensor_h

Powered by Google App Engine
This is Rietveld 408576698