OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // http://mozvr.github.io/webvr-spec/webvr.html#vrdisplaycapabilities | 5 // http://mozvr.github.io/webvr-spec/webvr.html#vrdisplaycapabilities |
6 [ | 6 [ |
7 RuntimeEnabled=WebVR | 7 OriginTrialEnabled=WebVR |
8 ] interface VRDisplayCapabilities { | 8 ] interface VRDisplayCapabilities { |
9 // Whether or not the VR display is capable of reporting user orientation. | 9 // Whether or not the VR display is capable of reporting user orientation. |
10 readonly attribute boolean hasOrientation; | 10 readonly attribute boolean hasOrientation; |
11 | 11 |
12 // Whether or not the VR display is capable of reporting user position. | 12 // Whether or not the VR display is capable of reporting user position. |
13 // If false position may still be reported using simulated values like | 13 // If false position may still be reported using simulated values like |
14 // neck modeling. | 14 // neck modeling. |
15 readonly attribute boolean hasPosition; | 15 readonly attribute boolean hasPosition; |
16 | 16 |
17 // Whether or not the VRDisplay is separate from the device’s primary display. | 17 // Whether or not the VRDisplay is separate from the device’s primary display. |
18 // If presenting VR content will obscure other content on the device, this | 18 // If presenting VR content will obscure other content on the device, this |
19 // should be false. When false VR content should not be mirrored. | 19 // should be false. When false VR content should not be mirrored. |
20 readonly attribute boolean hasExternalDisplay; | 20 readonly attribute boolean hasExternalDisplay; |
21 | 21 |
22 // Whether or not the VRDisplay is capable of presenting content to an HMD or | 22 // Whether or not the VRDisplay is capable of presenting content to an HMD or |
23 // similar device. Can be used to indicate “magic window” devices that are | 23 // similar device. Can be used to indicate “magic window” devices that are |
24 // capable of 6DoF tracking but for which requestPresent is not meaningful. If | 24 // capable of 6DoF tracking but for which requestPresent is not meaningful. If |
25 // false then calls to requestPresent should always fail, and getEyeParameters | 25 // false then calls to requestPresent should always fail, and getEyeParameters |
26 // should return null. | 26 // should return null. |
27 readonly attribute boolean canPresent; | 27 readonly attribute boolean canPresent; |
28 | 28 |
29 // The maximum length of the array that VRDisplay.requestPresent will accept. | 29 // The maximum length of the array that VRDisplay.requestPresent will accept. |
30 readonly attribute unsigned long maxLayers; | 30 readonly attribute unsigned long maxLayers; |
31 }; | 31 }; |
OLD | NEW |