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

Unified Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2543723002: Add switch to disable WebVR gesture requirement
Patch Set: Addressed ddorwin@'s naming comments Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
diff --git a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
index 97ecac1a41e3f562b5086696267049b4124e991f..b3a887a4a7067c7925484719d89a4fcbfae9996a 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -296,6 +296,10 @@ void WebRuntimeFeatures::enableWebVR(bool enable) {
RuntimeEnabledFeatures::setWebVREnabled(enable);
}
+void WebRuntimeFeatures::enableWebVrGestureRequirement(bool enable) {
+ RuntimeEnabledFeatures::setWebVrRequiresUserGestureEnabled(enable);
+}
+
void WebRuntimeFeatures::enablePresentationAPI(bool enable) {
RuntimeEnabledFeatures::setPresentationEnabled(enable);
}

Powered by Google App Engine
This is Rietveld 408576698