| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // VRDisplayClient | 128 // VRDisplayClient |
| 129 void OnChanged(device::mojom::blink::VRDisplayInfoPtr) override; | 129 void OnChanged(device::mojom::blink::VRDisplayInfoPtr) override; |
| 130 void OnExitPresent() override; | 130 void OnExitPresent() override; |
| 131 void OnBlur() override; | 131 void OnBlur() override; |
| 132 void OnFocus() override; | 132 void OnFocus() override; |
| 133 void OnActivate(device::mojom::blink::VRDisplayEventReason, | 133 void OnActivate(device::mojom::blink::VRDisplayEventReason, |
| 134 const OnActivateCallback& on_handled) override; | 134 const OnActivateCallback& on_handled) 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 WTF::TimeDelta, |
| 139 int16_t frame_id, | 139 int16_t frame_id, |
| 140 device::mojom::blink::VRVSyncProvider::Status); | 140 device::mojom::blink::VRVSyncProvider::Status); |
| 141 void ConnectVSyncProvider(); | 141 void ConnectVSyncProvider(); |
| 142 void OnVSyncConnectionError(); | 142 void OnVSyncConnectionError(); |
| 143 | 143 |
| 144 bool FocusedOrPresenting(); | 144 bool FocusedOrPresenting(); |
| 145 | 145 |
| 146 ScriptedAnimationController& EnsureScriptedAnimationController(Document*); | 146 ScriptedAnimationController& EnsureScriptedAnimationController(Document*); |
| 147 void ProcessScheduledAnimations(double timestamp); | 147 void ProcessScheduledAnimations(double timestamp); |
| 148 void ProcessScheduledWindowAnimations(double timestamp); | 148 void ProcessScheduledWindowAnimations(double timestamp); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 kRequestDenied = 12, | 221 kRequestDenied = 12, |
| 222 kFullscreenNotEnabled = 13, | 222 kFullscreenNotEnabled = 13, |
| 223 kPresentationResultMax, // Must be last member of enum. | 223 kPresentationResultMax, // Must be last member of enum. |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 void ReportPresentationResult(PresentationResult); | 226 void ReportPresentationResult(PresentationResult); |
| 227 | 227 |
| 228 } // namespace blink | 228 } // namespace blink |
| 229 | 229 |
| 230 #endif // VRDisplay_h | 230 #endif // VRDisplay_h |
| OLD | NEW |