OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // http://mozvr.github.io/webvr-spec/webvr.html#vrdevice |
| 6 [ |
| 7 RuntimeEnabled=VRDevice, |
| 8 GarbageCollected, |
| 9 ] interface VRDevice { |
| 10 // An identifier for the distinct hardware unit that this |
| 11 // VR Device is a part of. All VRDevice/Sensors that come |
| 12 // from the same hardware will have the same hardwareId. |
| 13 readonly attribute DOMString hardwareUnitId; |
| 14 |
| 15 // An identifier for this distinct sensor/device on a physical |
| 16 // hardware device. This shouldn't change across browser |
| 17 // restrats, allowing configuration data to be saved based on it. |
| 18 readonly attribute DOMString deviceId; |
| 19 |
| 20 // A user-readable name identifying the device. |
| 21 readonly attribute DOMString deviceName; |
| 22 }; |
OLD | NEW |