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

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

Issue 2747373002: Update WebVR API based on prerelease 1.1 except window and navigator interface (Closed)
Patch Set: Update wpt test Created 3 years, 9 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/VRDisplay.idl
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.idl b/third_party/WebKit/Source/modules/vr/VRDisplay.idl
index 2a00e74454067a232042a7d6d445792280fad8bf..0d08dda34b7c429d1fc5cd99e65b66c401a7aaff 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.idl
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.idl
@@ -23,9 +23,9 @@ enum VREye {
readonly attribute boolean isPresenting;
// [Constant]?
- readonly attribute VRDisplayCapabilities capabilities;
+ [SaveSameObject]readonly attribute VRDisplayCapabilities capabilities;
- readonly attribute VRStageParameters stageParameters;
+ readonly attribute VRStageParameters? stageParameters;
boolean getFrameData(VRFrameData frameData);
[DeprecateAs=VRDeprecatedGetPose] VRPose getPose();
@@ -41,13 +41,13 @@ enum VREye {
// Begin presenting to the VRDisplay. Must be called in response to a user gesture.
// Repeat calls while already presenting will update the VRLayer being displayed.
- [CallWith=ScriptState] Promise requestPresent(sequence<VRLayer> layers);
+ [CallWith=ScriptState] Promise requestPresent(sequence<VRLayerInit> layers);
// Stops presenting to the VRDisplay.
[CallWith=ScriptState] Promise exitPresent();
// Get the sources currently being presented.
- sequence<VRLayer> getLayers();
+ sequence<VRLayerInit> getLayers();
// The VRLayer provided to the `VRDisplay` will be captured and presented
// in the HMD. Calling this function has the same effect on the source
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRDisplay.cpp ('k') | third_party/WebKit/Source/modules/vr/VRDisplayEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698