mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Support fetching viewport info
This commit is contained in:
parent
e259ff727e
commit
7e043a33f1
9 changed files with 125 additions and 6 deletions
12
components/script/dom/webidls/XRViewport.webidl
Normal file
12
components/script/dom/webidls/XRViewport.webidl
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://immersive-web.github.io/webxr/#xrviewport-interface
|
||||
|
||||
[SecureContext, Exposed=Window] interface XRViewport {
|
||||
readonly attribute long x;
|
||||
readonly attribute long y;
|
||||
readonly attribute long width;
|
||||
readonly attribute long height;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue