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 module content.mojom; | 5 module blink.mojom; |
6 | 6 |
7 struct VRVector3 { | 7 struct VRVector3 { |
8 float x; | 8 float x; |
9 float y; | 9 float y; |
10 float z; | 10 float z; |
11 }; | 11 }; |
12 | 12 |
13 struct VRVector4 { | 13 struct VRVector4 { |
14 float x; | 14 float x; |
15 float y; | 15 float y; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 }; | 61 }; |
62 | 62 |
63 struct VRDeviceInfo { | 63 struct VRDeviceInfo { |
64 uint32 index; | 64 uint32 index; |
65 string deviceName; | 65 string deviceName; |
66 VRHMDInfo? hmdInfo; | 66 VRHMDInfo? hmdInfo; |
67 }; | 67 }; |
68 | 68 |
69 interface VRService { | 69 interface VRService { |
70 GetDevices() => (array<VRDeviceInfo> devices); | 70 GetDevices() => (array<VRDeviceInfo> devices); |
| 71 [Sync] |
71 GetSensorState(uint32 index) => (VRSensorState state); | 72 GetSensorState(uint32 index) => (VRSensorState state); |
72 ResetSensor(uint32 index); | 73 ResetSensor(uint32 index); |
73 }; | 74 }; |
OLD | NEW |