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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 Timer<VRDisplay> m_fullscreenCheckTimer; | 139 Timer<VRDisplay> m_fullscreenCheckTimer; |
140 String m_fullscreenOrigWidth; | 140 String m_fullscreenOrigWidth; |
141 String m_fullscreenOrigHeight; | 141 String m_fullscreenOrigHeight; |
142 gpu::gles2::GLES2Interface* m_contextGL; | 142 gpu::gles2::GLES2Interface* m_contextGL; |
143 Member<WebGLRenderingContextBase> m_renderingContext; | 143 Member<WebGLRenderingContextBase> m_renderingContext; |
144 | 144 |
145 Member<ScriptedAnimationController> m_scriptedAnimationController; | 145 Member<ScriptedAnimationController> m_scriptedAnimationController; |
146 bool m_animationCallbackRequested; | 146 bool m_animationCallbackRequested; |
147 bool m_inAnimationFrame; | 147 bool m_inAnimationFrame; |
148 bool m_displayBlurred; | 148 bool m_displayBlurred; |
| 149 bool m_reenteredFullscreen; |
149 | 150 |
150 device::mojom::blink::VRDisplayPtr m_display; | 151 device::mojom::blink::VRDisplayPtr m_display; |
151 | 152 |
152 mojo::Binding<device::mojom::blink::VRDisplayClient> m_binding; | 153 mojo::Binding<device::mojom::blink::VRDisplayClient> m_binding; |
153 }; | 154 }; |
154 | 155 |
155 using VRDisplayVector = HeapVector<Member<VRDisplay>>; | 156 using VRDisplayVector = HeapVector<Member<VRDisplay>>; |
156 | 157 |
157 enum class PresentationResult { | 158 enum class PresentationResult { |
158 Requested = 0, | 159 Requested = 0, |
(...skipping 10 matching lines...) Expand all Loading... |
169 ServiceInactive = 11, | 170 ServiceInactive = 11, |
170 RequestDenied = 12, | 171 RequestDenied = 12, |
171 PresentationResultMax, // Must be last member of enum. | 172 PresentationResultMax, // Must be last member of enum. |
172 }; | 173 }; |
173 | 174 |
174 void ReportPresentationResult(PresentationResult); | 175 void ReportPresentationResult(PresentationResult); |
175 | 176 |
176 } // namespace blink | 177 } // namespace blink |
177 | 178 |
178 #endif // VRDisplay_h | 179 #endif // VRDisplay_h |
OLD | NEW |