| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; | 139 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; |
| 140 | 140 |
| 141 void OnVSync(device::mojom::blink::VRPosePtr, | 141 void OnVSync(device::mojom::blink::VRPosePtr, |
| 142 mojo::common::mojom::blink::TimeDeltaPtr, | 142 mojo::common::mojom::blink::TimeDeltaPtr, |
| 143 int16_t frameId, | 143 int16_t frameId, |
| 144 device::mojom::blink::VRVSyncProvider::Status); | 144 device::mojom::blink::VRVSyncProvider::Status); |
| 145 void ConnectVSyncProvider(); | 145 void ConnectVSyncProvider(); |
| 146 void OnVSyncConnectionError(); | 146 void OnVSyncConnectionError(); |
| 147 | 147 |
| 148 ScriptedAnimationController& ensureScriptedAnimationController(Document*); | 148 ScriptedAnimationController& ensureScriptedAnimationController(Document*); |
| 149 void processScheduledAnimations(double timestamp); |
| 149 | 150 |
| 150 Member<NavigatorVR> m_navigatorVR; | 151 Member<NavigatorVR> m_navigatorVR; |
| 151 unsigned m_displayId = 0; | 152 unsigned m_displayId = 0; |
| 152 String m_displayName; | 153 String m_displayName; |
| 153 bool m_isConnected = false; | 154 bool m_isConnected = false; |
| 154 bool m_isPresenting = false; | 155 bool m_isPresenting = false; |
| 155 bool m_isValidDeviceForPresenting = true; | 156 bool m_isValidDeviceForPresenting = true; |
| 156 Member<VRDisplayCapabilities> m_capabilities; | 157 Member<VRDisplayCapabilities> m_capabilities; |
| 157 Member<VRStageParameters> m_stageParameters; | 158 Member<VRStageParameters> m_stageParameters; |
| 158 Member<VREyeParameters> m_eyeParametersLeft; | 159 Member<VREyeParameters> m_eyeParametersLeft; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 RequestDenied = 12, | 219 RequestDenied = 12, |
| 219 FullscreenNotEnabled = 13, | 220 FullscreenNotEnabled = 13, |
| 220 PresentationResultMax, // Must be last member of enum. | 221 PresentationResultMax, // Must be last member of enum. |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 void ReportPresentationResult(PresentationResult); | 224 void ReportPresentationResult(PresentationResult); |
| 224 | 225 |
| 225 } // namespace blink | 226 } // namespace blink |
| 226 | 227 |
| 227 #endif // VRDisplay_h | 228 #endif // VRDisplay_h |
| OLD | NEW |