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

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

Issue 2859533003: WebVR: lock focus while presenting to presenting window (Closed)
Patch Set: Update comment + fix comment line lengths 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 const OnActivateCallback& on_handled) override; 134 const OnActivateCallback& on_handled) override;
135 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; 135 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override;
136 136
137 void OnVSync(device::mojom::blink::VRPosePtr, 137 void OnVSync(device::mojom::blink::VRPosePtr,
138 mojo::common::mojom::blink::TimeDeltaPtr, 138 mojo::common::mojom::blink::TimeDeltaPtr,
139 int16_t frame_id, 139 int16_t frame_id,
140 device::mojom::blink::VRVSyncProvider::Status); 140 device::mojom::blink::VRVSyncProvider::Status);
141 void ConnectVSyncProvider(); 141 void ConnectVSyncProvider();
142 void OnVSyncConnectionError(); 142 void OnVSyncConnectionError();
143 143
144 bool FocusedOrPresenting();
145
144 ScriptedAnimationController& EnsureScriptedAnimationController(Document*); 146 ScriptedAnimationController& EnsureScriptedAnimationController(Document*);
145 void ProcessScheduledAnimations(double timestamp); 147 void ProcessScheduledAnimations(double timestamp);
146 void ProcessScheduledWindowAnimations(double timestamp); 148 void ProcessScheduledWindowAnimations(double timestamp);
147 149
148 Member<NavigatorVR> navigator_vr_; 150 Member<NavigatorVR> navigator_vr_;
149 unsigned display_id_ = 0; 151 unsigned display_id_ = 0;
150 String display_name_; 152 String display_name_;
151 bool is_connected_ = false; 153 bool is_connected_ = false;
152 bool is_presenting_ = false; 154 bool is_presenting_ = false;
153 bool is_valid_device_for_presenting_ = true; 155 bool is_valid_device_for_presenting_ = true;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 kRequestDenied = 12, 221 kRequestDenied = 12,
220 kFullscreenNotEnabled = 13, 222 kFullscreenNotEnabled = 13,
221 kPresentationResultMax, // Must be last member of enum. 223 kPresentationResultMax, // Must be last member of enum.
222 }; 224 };
223 225
224 void ReportPresentationResult(PresentationResult); 226 void ReportPresentationResult(PresentationResult);
225 227
226 } // namespace blink 228 } // namespace blink
227 229
228 #endif // VRDisplay_h 230 #endif // VRDisplay_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698