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

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

Issue 2329893002: Isolate a presenting VR device from pages other than the one presenting. (Closed)
Patch Set: Unit tests Created 4 years, 3 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_unittest.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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 float top; 59 float top;
60 float width; 60 float width;
61 float height; 61 float height;
62 }; 62 };
63 63
64 interface VRService { 64 interface VRService {
65 SetClient(VRServiceClient client); 65 SetClient(VRServiceClient client);
66 66
67 GetDisplays() => (array<VRDisplay> displays); 67 GetDisplays() => (array<VRDisplay> displays);
68 [Sync] 68 [Sync]
69 GetPose(uint32 index) => (VRPose pose); 69 GetPose(uint32 index) => (VRPose? pose);
70 ResetPose(uint32 index); 70 ResetPose(uint32 index);
71 71
72 RequestPresent(uint32 index); 72 RequestPresent(uint32 index) => (bool success);
73 ExitPresent(uint32 index); 73 ExitPresent(uint32 index);
74 SubmitFrame(uint32 index); 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 }; 81 };
OLDNEW
« no previous file with comments | « device/vr/vr_device_manager_unittest.cc ('k') | device/vr/vr_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698