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); |
}; |