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

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

Issue 2864363005: Prevents exiting presentation if triggering DON while presenting. (Closed)
Patch Set: Fix Created 3 years, 7 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
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 Member<ScriptedAnimationController> scripted_animation_controller_; 184 Member<ScriptedAnimationController> scripted_animation_controller_;
185 bool pending_vrdisplay_raf_ = false; 185 bool pending_vrdisplay_raf_ = false;
186 bool pending_vsync_ = false; 186 bool pending_vsync_ = false;
187 bool in_animation_frame_ = false; 187 bool in_animation_frame_ = false;
188 bool in_display_activate_ = false; 188 bool in_display_activate_ = false;
189 bool display_blurred_ = false; 189 bool display_blurred_ = false;
190 double timebase_ = -1; 190 double timebase_ = -1;
191 bool pending_previous_frame_render_ = false; 191 bool pending_previous_frame_render_ = false;
192 bool pending_submit_frame_ = false; 192 bool pending_submit_frame_ = false;
193 bool v_sync_connection_failed_ = false; 193 bool v_sync_connection_failed_ = false;
194 bool pending_present_request_ = false; 194 bool requested_present_in_display_activate_ = false;
195 195
196 device::mojom::blink::VRDisplayPtr display_; 196 device::mojom::blink::VRDisplayPtr display_;
197 197
198 mojo::Binding<device::mojom::blink::VRSubmitFrameClient> 198 mojo::Binding<device::mojom::blink::VRSubmitFrameClient>
199 submit_frame_client_binding_; 199 submit_frame_client_binding_;
200 mojo::Binding<device::mojom::blink::VRDisplayClient> display_client_binding_; 200 mojo::Binding<device::mojom::blink::VRDisplayClient> display_client_binding_;
201 device::mojom::blink::VRVSyncProviderPtr vr_v_sync_provider_; 201 device::mojom::blink::VRVSyncProviderPtr vr_v_sync_provider_;
202 202
203 HeapDeque<Member<ScriptPromiseResolver>> pending_present_resolvers_; 203 HeapDeque<Member<ScriptPromiseResolver>> pending_present_resolvers_;
204 }; 204 };
(...skipping 16 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698