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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; | 133 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; |
134 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; | 134 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; |
135 | 135 |
136 void OnVSync(device::mojom::blink::VRPosePtr, | 136 void OnVSync(device::mojom::blink::VRPosePtr, |
137 mojo::common::mojom::blink::TimeDeltaPtr, | 137 mojo::common::mojom::blink::TimeDeltaPtr, |
138 int16_t frame_id, | 138 int16_t frame_id, |
139 device::mojom::blink::VRVSyncProvider::Status); | 139 device::mojom::blink::VRVSyncProvider::Status); |
140 void ConnectVSyncProvider(); | 140 void ConnectVSyncProvider(); |
141 void OnVSyncConnectionError(); | 141 void OnVSyncConnectionError(); |
142 | 142 |
| 143 bool FocusedOrPresenting(); |
| 144 |
143 ScriptedAnimationController& EnsureScriptedAnimationController(Document*); | 145 ScriptedAnimationController& EnsureScriptedAnimationController(Document*); |
144 void ProcessScheduledAnimations(double timestamp); | 146 void ProcessScheduledAnimations(double timestamp); |
145 void ProcessScheduledWindowAnimations(double timestamp); | 147 void ProcessScheduledWindowAnimations(double timestamp); |
146 | 148 |
147 Member<NavigatorVR> navigator_vr_; | 149 Member<NavigatorVR> navigator_vr_; |
148 unsigned display_id_ = 0; | 150 unsigned display_id_ = 0; |
149 String display_name_; | 151 String display_name_; |
150 bool is_connected_ = false; | 152 bool is_connected_ = false; |
151 bool is_presenting_ = false; | 153 bool is_presenting_ = false; |
152 bool is_valid_device_for_presenting_ = true; | 154 bool is_valid_device_for_presenting_ = true; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 kRequestDenied = 12, | 219 kRequestDenied = 12, |
218 kFullscreenNotEnabled = 13, | 220 kFullscreenNotEnabled = 13, |
219 kPresentationResultMax, // Must be last member of enum. | 221 kPresentationResultMax, // Must be last member of enum. |
220 }; | 222 }; |
221 | 223 |
222 void ReportPresentationResult(PresentationResult); | 224 void ReportPresentationResult(PresentationResult); |
223 | 225 |
224 } // namespace blink | 226 } // namespace blink |
225 | 227 |
226 #endif // VRDisplay_h | 228 #endif // VRDisplay_h |
OLD | NEW |