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.
] 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();