blob: da58f9c8c6a8e60a16d30d8aee335b3ce991ff62 [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/#vr-interface
[
SecureContext,
RuntimeEnabled=WebVR2
] interface VR : EventTarget {
attribute EventHandler ondeviceconnect;
attribute EventHandler ondevicedisconnect;
[CallWith=ScriptState] Promise getDevices();
};