Index: third_party/WebKit/Source/modules/vr/VRStageParameters.idl |
diff --git a/third_party/WebKit/Source/modules/vr/VRStageParameters.idl b/third_party/WebKit/Source/modules/vr/VRStageParameters.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fe3851b73246217cb7b8eaa9ceb3f849c5f9a122 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/vr/VRStageParameters.idl |
@@ -0,0 +1,25 @@ |
+// 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. |
+ |
+// http://mozvr.github.io/webvr-spec/webvr.html#vrstageparameters |
+[ |
+ RuntimeEnabled=WebVR |
+] interface VRStageParameters { |
+ // A 16 element array containing the components of a 4x4 transform |
+ // matrix. This matrix transforms the sitting space position |
+ // returned by get{Immediate}Pose() to a standing space position. |
+ readonly attribute Float32Array sittingToStandingTransform; |
+ |
+ // Dimensions of the play area bounds. The bounds are defined |
+ // as an axis aligned rectangle on the floor. |
+ // The center of the rectangle is at (0,0,0) in standing space |
+ // coordinates. |
+ // These bounds are defined for safety purposes. |
+ // Content should not require the user to move beyond these |
+ // bounds; however, it is possible for the user to ignore |
+ // the bounds resulting in position values outside of |
+ // this rectangle. |
+ readonly attribute float sizeX; |
+ readonly attribute float sizeZ; |
+}; |