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..5cdda55841212f561c3e2382d459d7db4b4e820a |
| --- /dev/null |
| +++ b/Source/modules/vr/HMDVRDevice.idl |
| @@ -0,0 +1,20 @@ |
| +// 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, |
|
philipj_slow
2015/02/06 01:57:14
Add TypeChecking=Interface to all interfaces where
|
| +] interface HMDVRDevice : VRDevice { |
| + DOMPoint getEyeTranslation(VREye whichEye); |
|
philipj_slow
2015/02/06 01:57:14
I guess you know about https://groups.google.com/a
|
| + VRFieldOfView getCurrentEyeFieldOfView(VREye whichEye); |
| + VRFieldOfView getRecommendedEyeFieldOfView(VREye whichEye); |
| + VRFieldOfView getMaximumEyeFieldOfView(VREye whichEye); |
| + void setFieldOfView(optional VRFieldOfView leftFov, optional VRFieldOfView rightFov); |
| + DOMRect getRecommendedEyeRenderRect(VREye whichEye); |
| +}; |