Chromium Code Reviews| Index: Source/modules/vr/HMDVRDevice.idl |
| diff --git a/Source/modules/vr/HMDVRDevice.idl b/Source/modules/vr/HMDVRDevice.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5d970a9870573d5b42383b34f85c3bc87be3db4d |
| --- /dev/null |
| +++ b/Source/modules/vr/HMDVRDevice.idl |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2014 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. |
| + |
| +enum VREye { |
| + "left", |
| + "right" |
| +}; |
| + |
| +[ |
| + RuntimeEnabled=VRDevice, |
| + GarbageCollected, |
| + TypeChecking=Interface |
| +] interface HMDVRDevice : VRDevice { |
|
sof
2015/02/24 12:35:29
"HMD" - could you spell out that acronym here or i
|
| + DOMPoint getEyeTranslation(VREye whichEye); |
| + VRFieldOfView getCurrentEyeFieldOfView(VREye whichEye); |
| + VRFieldOfView getRecommendedEyeFieldOfView(VREye whichEye); |
| + VRFieldOfView getMaximumEyeFieldOfView(VREye whichEye); |
| + DOMRect getRecommendedEyeRenderRect(VREye whichEye); |
| + void setFieldOfView(optional VRFieldOfView leftFov, optional VRFieldOfView rightFov); |
| +}; |