| 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 "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/FrameRequestCallback.h" | 9 #include "core/dom/FrameRequestCallback.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; | 134 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; |
| 135 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; | 135 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; |
| 136 | 136 |
| 137 void OnVSync(device::mojom::blink::VRPosePtr, | 137 void OnVSync(device::mojom::blink::VRPosePtr, |
| 138 mojo::common::mojom::blink::TimeDeltaPtr, | 138 mojo::common::mojom::blink::TimeDeltaPtr, |
| 139 int16_t frameId, | 139 int16_t frameId, |
| 140 device::mojom::blink::VRVSyncProvider::Status); | 140 device::mojom::blink::VRVSyncProvider::Status); |
| 141 void ConnectVSyncProvider(); | 141 void ConnectVSyncProvider(); |
| 142 | 142 |
| 143 ScriptedAnimationController& ensureScriptedAnimationController(Document*); | 143 ScriptedAnimationController& ensureScriptedAnimationController(Document*); |
| 144 void processScheduledAnimations(double timestamp); |
| 144 | 145 |
| 145 Member<NavigatorVR> m_navigatorVR; | 146 Member<NavigatorVR> m_navigatorVR; |
| 146 unsigned m_displayId = 0; | 147 unsigned m_displayId = 0; |
| 147 String m_displayName; | 148 String m_displayName; |
| 148 bool m_isConnected = false; | 149 bool m_isConnected = false; |
| 149 bool m_isPresenting = false; | 150 bool m_isPresenting = false; |
| 150 bool m_isValidDeviceForPresenting = true; | 151 bool m_isValidDeviceForPresenting = true; |
| 151 Member<VRDisplayCapabilities> m_capabilities; | 152 Member<VRDisplayCapabilities> m_capabilities; |
| 152 Member<VRStageParameters> m_stageParameters; | 153 Member<VRStageParameters> m_stageParameters; |
| 153 Member<VREyeParameters> m_eyeParametersLeft; | 154 Member<VREyeParameters> m_eyeParametersLeft; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 RequestDenied = 12, | 205 RequestDenied = 12, |
| 205 FullscreenNotEnabled = 13, | 206 FullscreenNotEnabled = 13, |
| 206 PresentationResultMax, // Must be last member of enum. | 207 PresentationResultMax, // Must be last member of enum. |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 void ReportPresentationResult(PresentationResult); | 210 void ReportPresentationResult(PresentationResult); |
| 210 | 211 |
| 211 } // namespace blink | 212 } // namespace blink |
| 212 | 213 |
| 213 #endif // VRDisplay_h | 214 #endif // VRDisplay_h |
| OLD | NEW |