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 device; | 5 module device; |
6 | 6 |
7 // A field of view, given by 4 degrees describing the view from a center point. | 7 // A field of view, given by 4 degrees describing the view from a center point. |
8 struct VRFieldOfView { | 8 struct VRFieldOfView { |
9 float upDegrees; | 9 float upDegrees; |
10 float downDegrees; | 10 float downDegrees; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 RequestPresent(uint32 index) => (bool success); | 72 RequestPresent(uint32 index) => (bool success); |
73 ExitPresent(uint32 index); | 73 ExitPresent(uint32 index); |
74 SubmitFrame(uint32 index, VRPose pose); | 74 SubmitFrame(uint32 index, VRPose pose); |
75 UpdateLayerBounds(uint32 index, VRLayerBounds leftBounds, VRLayerBounds rightB
ounds); | 75 UpdateLayerBounds(uint32 index, VRLayerBounds leftBounds, VRLayerBounds rightB
ounds); |
76 }; | 76 }; |
77 | 77 |
78 interface VRServiceClient { | 78 interface VRServiceClient { |
79 OnDisplayChanged(VRDisplay display); | 79 OnDisplayChanged(VRDisplay display); |
80 OnExitPresent(uint32 index); | 80 OnExitPresent(uint32 index); |
| 81 OnDisplayConnected(VRDisplay display); |
| 82 OnDisplayDisconnected(uint32 index); |
81 }; | 83 }; |
OLD | NEW |