| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef VRDisplay_h | 5 #ifndef VRDisplay_h |
| 6 #define VRDisplay_h | 6 #define VRDisplay_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/dom/FrameRequestCallback.h" | 10 #include "core/dom/FrameRequestCallback.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; | 119 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; |
| 120 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; | 120 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; |
| 121 | 121 |
| 122 ScriptedAnimationController& ensureScriptedAnimationController(Document*); | 122 ScriptedAnimationController& ensureScriptedAnimationController(Document*); |
| 123 | 123 |
| 124 Member<NavigatorVR> m_navigatorVR; | 124 Member<NavigatorVR> m_navigatorVR; |
| 125 unsigned m_displayId; | 125 unsigned m_displayId; |
| 126 String m_displayName; | 126 String m_displayName; |
| 127 bool m_isConnected; | 127 bool m_isConnected; |
| 128 bool m_isPresenting; | 128 bool m_isPresenting; |
| 129 bool m_isValidDeviceForPresenting; |
| 129 bool m_canUpdateFramePose; | 130 bool m_canUpdateFramePose; |
| 130 Member<VRDisplayCapabilities> m_capabilities; | 131 Member<VRDisplayCapabilities> m_capabilities; |
| 131 Member<VRStageParameters> m_stageParameters; | 132 Member<VRStageParameters> m_stageParameters; |
| 132 Member<VREyeParameters> m_eyeParametersLeft; | 133 Member<VREyeParameters> m_eyeParametersLeft; |
| 133 Member<VREyeParameters> m_eyeParametersRight; | 134 Member<VREyeParameters> m_eyeParametersRight; |
| 134 device::mojom::blink::VRPosePtr m_framePose; | 135 device::mojom::blink::VRPosePtr m_framePose; |
| 135 VRLayer m_layer; | 136 VRLayer m_layer; |
| 136 double m_depthNear; | 137 double m_depthNear; |
| 137 double m_depthFar; | 138 double m_depthFar; |
| 138 | 139 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 ServiceInactive = 11, | 172 ServiceInactive = 11, |
| 172 RequestDenied = 12, | 173 RequestDenied = 12, |
| 173 PresentationResultMax, // Must be last member of enum. | 174 PresentationResultMax, // Must be last member of enum. |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 void ReportPresentationResult(PresentationResult); | 177 void ReportPresentationResult(PresentationResult); |
| 177 | 178 |
| 178 } // namespace blink | 179 } // namespace blink |
| 179 | 180 |
| 180 #endif // VRDisplay_h | 181 #endif // VRDisplay_h |
| OLD | NEW |