blob: cfd38e23dfaf62e68c668cdad1a61b8cf45eba04 [file] [log] [blame]
// Copyright 2017 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.
// https://w3c.github.io/webvr/spec/latest/#vrsession-interface
[
RuntimeEnabled=WebVR2
] interface VRSession : EventTarget {
readonly attribute VRDevice device;
readonly attribute boolean exclusive;
attribute double depthNear;
attribute double depthFar;
attribute EventHandler onblur;
attribute EventHandler onfocus;
attribute EventHandler onresetpose;
attribute EventHandler onend;
[CallWith=ScriptState] Promise<VRFrameOfReference> requestFrameOfReference(VRFrameOfReferenceType type, [PermissiveDictionaryConversion] optional VRFrameOfReferenceOptions options);
[CallWith=ScriptState] Promise<void> end();
};