Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: device/vr/vr_service.mojom

Issue 2167643003: Refactored VRService interaction and added VRServiceClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Liberal sprinkling of 'u's Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/vr/vr_device_manager.cc ('k') | device/vr/vr_service_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 struct VRDisplay { 48 struct VRDisplay {
49 uint32 index; 49 uint32 index;
50 string displayName; 50 string displayName;
51 VRDisplayCapabilities capabilities; 51 VRDisplayCapabilities capabilities;
52 VRStageParameters? stageParameters; 52 VRStageParameters? stageParameters;
53 VREyeParameters leftEye; 53 VREyeParameters leftEye;
54 VREyeParameters rightEye; 54 VREyeParameters rightEye;
55 }; 55 };
56 56
57 interface VRService { 57 interface VRService {
58 SetClient(VRServiceClient client);
59
58 GetDisplays() => (array<VRDisplay> displays); 60 GetDisplays() => (array<VRDisplay> displays);
59 [Sync] 61 [Sync]
60 GetPose(uint32 index) => (VRPose pose); 62 GetPose(uint32 index) => (VRPose pose);
61 ResetPose(uint32 index); 63 ResetPose(uint32 index);
62 }; 64 };
65
66 interface VRServiceClient {
67 OnDisplayChanged(VRDisplay display);
68 };
OLDNEW
« no previous file with comments | « device/vr/vr_device_manager.cc ('k') | device/vr/vr_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698