| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void cancelAnimationFrame(int id); | 72 void cancelAnimationFrame(int id); |
| 73 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 73 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
| 74 | 74 |
| 75 ScriptPromise requestPresent(ScriptState*, const HeapVector<VRLayer>& layers); | 75 ScriptPromise requestPresent(ScriptState*, const HeapVector<VRLayer>& layers); |
| 76 ScriptPromise exitPresent(ScriptState*); | 76 ScriptPromise exitPresent(ScriptState*); |
| 77 | 77 |
| 78 HeapVector<VRLayer> getLayers(); | 78 HeapVector<VRLayer> getLayers(); |
| 79 | 79 |
| 80 void submitFrame(); | 80 void submitFrame(); |
| 81 | 81 |
| 82 Document* document(); |
| 83 |
| 82 DECLARE_VIRTUAL_TRACE(); | 84 DECLARE_VIRTUAL_TRACE(); |
| 83 | 85 |
| 84 protected: | 86 protected: |
| 85 friend class VRController; | 87 friend class VRController; |
| 86 | 88 |
| 87 VRDisplay(NavigatorVR*, | 89 VRDisplay(NavigatorVR*, |
| 88 device::mojom::blink::VRDisplayPtr, | 90 device::mojom::blink::VRDisplayPtr, |
| 89 device::mojom::blink::VRDisplayClientRequest); | 91 device::mojom::blink::VRDisplayClientRequest); |
| 90 | 92 |
| 91 void update(const device::mojom::blink::VRDisplayInfoPtr&); | 93 void update(const device::mojom::blink::VRDisplayInfoPtr&); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 ServiceInactive = 11, | 171 ServiceInactive = 11, |
| 170 RequestDenied = 12, | 172 RequestDenied = 12, |
| 171 PresentationResultMax, // Must be last member of enum. | 173 PresentationResultMax, // Must be last member of enum. |
| 172 }; | 174 }; |
| 173 | 175 |
| 174 void ReportPresentationResult(PresentationResult); | 176 void ReportPresentationResult(PresentationResult); |
| 175 | 177 |
| 176 } // namespace blink | 178 } // namespace blink |
| 177 | 179 |
| 178 #endif // VRDisplay_h | 180 #endif // VRDisplay_h |
| OLD | NEW |