Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1047)

Unified Diff: third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.idl

Issue 1918143007: Updated Blink WebVR interfaces to WebVR v1 spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webvr_mojo
Patch Set: Fixed layout test Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.idl
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.idl b/third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.idl
new file mode 100644
index 0000000000000000000000000000000000000000..684115e25d3f316514cb4d1c682b6bc8700d461c
--- /dev/null
+++ b/third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.idl
@@ -0,0 +1,31 @@
+// 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#vrdisplaycapabilities
+[
+ RuntimeEnabled=WebVR
+] interface VRDisplayCapabilities {
+ // Whether or not the VR display is capable of reporting user orientation.
+ readonly attribute boolean hasOrientation;
+
+ // Whether or not the VR display is capable of reporting user position.
+ // If false position may still be reported using simulated values like
+ // neck modeling.
+ readonly attribute boolean hasPosition;
+
+ // Whether or not the VRDisplay is separate from the device’s primary display.
+ // If presenting VR content will obscure other content on the device, this
+ // should be false. When false VR content should not be mirrored.
+ readonly attribute boolean hasExternalDisplay;
+
+ // Whether or not the VRDisplay is capable of presenting content to an HMD or
+ // similar device. Can be used to indicate “magic window” devices that are
+ // capable of 6DoF tracking but for which requestPresent is not meaningful. If
+ // false then calls to requestPresent should always fail, and getEyeParameters
+ // should return null.
+ readonly attribute boolean canPresent;
+
+ // The maximum length of the array that VRDisplay.requestPresent will accept.
+ readonly attribute unsigned long maxLayers;
+};

Powered by Google App Engine
This is Rietveld 408576698