blob: 16a783161071cd353ecba5ba24a552c794ab5890 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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://immersive-web.github.io/webxr/#xrdevice-interface
[
SecureContext,
OriginTrialEnabled=WebXR
] interface XRDevice : EventTarget {
[CallWith=ScriptState, MeasureAs=XRSupportsSession] Promise supportsSession([PermissiveDictionaryConversion] optional XRSessionCreationOptions options);
[CallWith=ScriptState, MeasureAs=XRRequestSession] Promise requestSession([PermissiveDictionaryConversion] optional XRSessionCreationOptions options);
};
|