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

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

Issue 2662213006: Reject requestPresent requests when fullscreen is not enabled. (Closed)
Patch Set: rebase + address comment Created 3 years, 10 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 VRDisplayCannotPresent = 3, 185 VRDisplayCannotPresent = 3,
186 PresentationNotSupportedByDisplay = 4, 186 PresentationNotSupportedByDisplay = 4,
187 VRDisplayNotFound = 5, 187 VRDisplayNotFound = 5,
188 NotInitiatedByUserGesture = 6, 188 NotInitiatedByUserGesture = 6,
189 InvalidNumberOfLayers = 7, 189 InvalidNumberOfLayers = 7,
190 InvalidLayerSource = 8, 190 InvalidLayerSource = 8,
191 LayerSourceMissingWebGLContext = 9, 191 LayerSourceMissingWebGLContext = 9,
192 InvalidLayerBounds = 10, 192 InvalidLayerBounds = 10,
193 ServiceInactive = 11, 193 ServiceInactive = 11,
194 RequestDenied = 12, 194 RequestDenied = 12,
195 FullscreenNotEnabled = 13,
195 PresentationResultMax, // Must be last member of enum. 196 PresentationResultMax, // Must be last member of enum.
196 }; 197 };
197 198
198 void ReportPresentationResult(PresentationResult); 199 void ReportPresentationResult(PresentationResult);
199 200
200 } // namespace blink 201 } // namespace blink
201 202
202 #endif // VRDisplay_h 203 #endif // VRDisplay_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/NavigatorVR.cpp ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698