Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRDisplay.h

Issue 2783993002: Send vrdisplayactivate to the most recently focused navigator listening for displayactivate. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/vr/vr_service_impl.cc ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 Member<ScriptedAnimationController> m_scriptedAnimationController; 185 Member<ScriptedAnimationController> m_scriptedAnimationController;
186 bool m_pendingRaf = false; 186 bool m_pendingRaf = false;
187 bool m_pendingVsync = false; 187 bool m_pendingVsync = false;
188 bool m_inAnimationFrame = false; 188 bool m_inAnimationFrame = false;
189 bool m_inDisplayActivate = false; 189 bool m_inDisplayActivate = false;
190 bool m_displayBlurred = false; 190 bool m_displayBlurred = false;
191 double m_timebase = -1; 191 double m_timebase = -1;
192 bool m_pendingPreviousFrameRender = false; 192 bool m_pendingPreviousFrameRender = false;
193 bool m_pendingSubmitFrame = false; 193 bool m_pendingSubmitFrame = false;
194 bool m_VSyncConnectionFailed = false;
194 195
195 device::mojom::blink::VRDisplayPtr m_display; 196 device::mojom::blink::VRDisplayPtr m_display;
196 197
197 mojo::Binding<device::mojom::blink::VRSubmitFrameClient> 198 mojo::Binding<device::mojom::blink::VRSubmitFrameClient>
198 m_submit_frame_client_binding; 199 m_submit_frame_client_binding;
199 mojo::Binding<device::mojom::blink::VRDisplayClient> m_displayClientBinding; 200 mojo::Binding<device::mojom::blink::VRDisplayClient> m_displayClientBinding;
200 device::mojom::blink::VRVSyncProviderPtr m_vrVSyncProvider; 201 device::mojom::blink::VRVSyncProviderPtr m_vrVSyncProvider;
201 202
202 HeapDeque<Member<ScriptPromiseResolver>> m_pendingPresentResolvers; 203 HeapDeque<Member<ScriptPromiseResolver>> m_pendingPresentResolvers;
203 }; 204 };
(...skipping 16 matching lines...) Expand all
220 RequestDenied = 12, 221 RequestDenied = 12,
221 FullscreenNotEnabled = 13, 222 FullscreenNotEnabled = 13,
222 PresentationResultMax, // Must be last member of enum. 223 PresentationResultMax, // Must be last member of enum.
223 }; 224 };
224 225
225 void ReportPresentationResult(PresentationResult); 226 void ReportPresentationResult(PresentationResult);
226 227
227 } // namespace blink 228 } // namespace blink
228 229
229 #endif // VRDisplay_h 230 #endif // VRDisplay_h
OLDNEW
« no previous file with comments | « device/vr/vr_service_impl.cc ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698