Index: Source/modules/vr/PositionSensorVRDevice.idl |
diff --git a/Source/modules/vr/PositionSensorVRDevice.idl b/Source/modules/vr/PositionSensorVRDevice.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dc34a565abd6f0e06d699d2c515dc3906dfc12dc |
--- /dev/null |
+++ b/Source/modules/vr/PositionSensorVRDevice.idl |
@@ -0,0 +1,16 @@ |
+// Copyright 2015 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. |
+ |
+// An PositionSensorVRDevice represents a user interface that provides an |
+// orientation and position in space. This may be a Head Mounted Display or |
+// any number of other six-degree-of-freedom devices that provide, for example, |
+// hand tracking. |
+// http://mozvr.github.io/webvr-spec/webvr.html#positionsensorvrdevice |
+[ |
+ RuntimeEnabled=VRDevice, |
+] interface PositionSensorVRDevice : VRDevice { |
+ VRPositionState getState(); |
+ VRPositionState getImmediateState(); |
+ void resetSensor(); |
+}; |