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 RuntimeEnabled=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; |
(...skipping 10 matching lines...) Expand all Loading... |
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 |