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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/webvr/idlharness.html

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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/webvr/idlharness-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset=utf-8> 4 <meta charset=utf-8>
5 <title>WebVR IDL test</title> 5 <title>WebVR IDL test</title>
6 <link rel="help" href="https://w3c.github.io/webvr/"> 6 <link rel="help" href="https://w3c.github.io/webvr/">
7 7
8 <script src=/resources/testharness.js></script> 8 <script src=/resources/testharness.js></script>
9 <script src=/resources/testharnessreport.js></script> 9 <script src=/resources/testharnessreport.js></script>
10 <script src=/resources/WebIDLParser.js></script> 10 <script src=/resources/WebIDLParser.js></script>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 * `cancelAnimationFrame` will unregister the callback. 104 * `cancelAnimationFrame` will unregister the callback.
105 */ 105 */
106 void cancelAnimationFrame(long handle); 106 void cancelAnimationFrame(long handle);
107 107
108 /** 108 /**
109 * Begin presenting to the VRDisplay. Must be called in response to a user ges ture. 109 * Begin presenting to the VRDisplay. Must be called in response to a user ges ture.
110 * Repeat calls while already presenting will update the VRLayers being displa yed. 110 * Repeat calls while already presenting will update the VRLayers being displa yed.
111 * If the number of values in the leftBounds/rightBounds arrays is not 0 or 4 for any of the passed layers the promise is rejected 111 * If the number of values in the leftBounds/rightBounds arrays is not 0 or 4 for any of the passed layers the promise is rejected
112 * If the source of any of the layers is not present (null), the promise is re jected. 112 * If the source of any of the layers is not present (null), the promise is re jected.
113 */ 113 */
114 Promise<void> requestPresent(sequence<VRLayer> layers); 114 Promise<void> requestPresent(sequence<VRLayerInit> layers);
115 115
116 /** 116 /**
117 * Stops presenting to the VRDisplay. 117 * Stops presenting to the VRDisplay.
118 */ 118 */
119 Promise<void> exitPresent(); 119 Promise<void> exitPresent();
120 120
121 /** 121 /**
122 * Get the layers currently being presented. 122 * Get the layers currently being presented.
123 */ 123 */
124 sequence<VRLayer> getLayers(); 124 sequence<VRLayerInit> getLayers();
125 125
126 /** 126 /**
127 * The VRLayer provided to the VRDisplay will be captured and presented 127 * The VRLayer provided to the VRDisplay will be captured and presented
128 * in the HMD. Calling this function has the same effect on the source 128 * in the HMD. Calling this function has the same effect on the source
129 * canvas as any other operation that uses its source image, and canvases 129 * canvas as any other operation that uses its source image, and canvases
130 * created without preserveDrawingBuffer set to true will be cleared. 130 * created without preserveDrawingBuffer set to true will be cleared.
131 */ 131 */
132 void submitFrame(); 132 void submitFrame();
133 }; 133 };
134 134
135 typedef (HTMLCanvasElement or 135 typedef (HTMLCanvasElement or
136 OffscreenCanvas) VRSource; 136 OffscreenCanvas) VRSource;
137 137
138 dictionary VRLayer { 138 dictionary VRLayerInit {
139 VRSource? source = null; 139 VRSource? source = null;
140 140
141 sequence<float> leftBounds = []; 141 sequence<float> leftBounds = [];
142 sequence<float> rightBounds = []; 142 sequence<float> rightBounds = [];
143 }; 143 };
144 144
145 interface VRDisplayCapabilities { 145 interface VRDisplayCapabilities {
146 readonly attribute boolean hasPosition; 146 readonly attribute boolean hasPosition;
147 readonly attribute boolean hasOrientation; 147 readonly attribute boolean hasOrientation;
148 readonly attribute boolean hasExternalDisplay; 148 readonly attribute boolean hasExternalDisplay;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 idl_array.add_untested_idls("interface Gamepad {};"); 261 idl_array.add_untested_idls("interface Gamepad {};");
262 262
263 idl_array.add_idls(document.getElementById("webvr_idl").textContent); 263 idl_array.add_idls(document.getElementById("webvr_idl").textContent);
264 264
265 idl_array.test(); 265 idl_array.test();
266 done(); 266 done();
267 }, {explicit_done: true}); 267 }, {explicit_done: true});
268 </script> 268 </script>
269 </body> 269 </body>
270 </html> 270 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/webvr/idlharness-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698