Support fetching viewport info

This commit is contained in:
Manish Goregaokar 2018-12-21 14:26:11 -08:00
parent e259ff727e
commit 7e043a33f1
9 changed files with 125 additions and 6 deletions

View 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;
};