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