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

Unified Diff: device/vr/vr_service.mojom

Issue 2505493004: Wired up vrdisplayactivate/deactivate (Closed)
Patch Set: Again with the upstream issues Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/vr/vr_device.cc ('k') | third_party/WebKit/Source/modules/vr/NavigatorVR.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_service.mojom
diff --git a/device/vr/vr_service.mojom b/device/vr/vr_service.mojom
index 08d6e684cf5355a3fd9e70e0da464360c920d7b2..dc904dfde36d630c41c4d320dce20af1c3e2e46e 100644
--- a/device/vr/vr_service.mojom
+++ b/device/vr/vr_service.mojom
@@ -63,6 +63,13 @@ struct VRLayerBounds {
float height;
};
+enum VRDisplayEventReason {
+ NONE = 0,
+ NAVIGATION = 1,
+ MOUNTED = 2,
+ UNMOUNTED = 3
+};
+
// TODO(shaobo.yan@intel.com) : Add comments to describe these interfaces about how to use and where they live.
interface VRService {
// TODO(shaobo.yan@intel.com) : Use a factory function which took a VRServiceClient
@@ -75,7 +82,6 @@ interface VRServiceClient {
};
interface VRDisplay {
-
[Sync]
GetPose() => (VRPose? pose);
ResetPose();
@@ -87,8 +93,10 @@ interface VRDisplay {
};
interface VRDisplayClient {
- OnDisplayChanged(VRDisplayInfo display);
+ OnChanged(VRDisplayInfo display);
OnExitPresent();
- OnDisplayBlur();
- OnDisplayFocus();
+ OnBlur();
+ OnFocus();
+ OnActivate(VRDisplayEventReason reason);
+ OnDeactivate(VRDisplayEventReason reason);
};
« no previous file with comments | « device/vr/vr_device.cc ('k') | third_party/WebKit/Source/modules/vr/NavigatorVR.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698