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

Unified Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 15724023: Vibration API: use runtime flag, change from client to platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fold Vibration into NavigatorVibration. Update interface and algorithm. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
index 96767821a458d8fdfd676da5d83b692c38e3011d..019574266f19a0f614f222613c94ec4406ee33c6 100644
--- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -602,4 +602,14 @@ bool WebRuntimeFeatures::isInputTypeColorEnabled()
return RuntimeEnabledFeatures::inputTypeColorEnabled();
}
+void WebRuntimeFeatures::enableVibration(bool enable)
+{
+ RuntimeEnabledFeatures::setVibrationEnabled(enable);
+}
+
+bool WebRuntimeFeatures::isVibrationEnabled()
+{
+ return RuntimeEnabledFeatures::vibrationEnabled();
+}
+
} // namespace WebKit
« no previous file with comments | « no previous file | Source/core/page/RuntimeEnabledFeatures.in » ('j') | Source/core/page/RuntimeEnabledFeatures.in » ('J')

Powered by Google App Engine
This is Rietveld 408576698