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

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

Issue 14466008: Switch speech synthesis from compile-flag to runtime-flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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 f263e2c390e070ba5d5accbfb29a8514cbb245e0..bb56d0a355a0cf2661c8046e91641b4a9e6eb87b 100644
--- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -500,4 +500,14 @@ bool WebRuntimeFeatures::isIMEAPIEnabled()
return RuntimeEnabledFeatures::imeAPIEnabled();
}
+void WebRuntimeFeatures::enableSpeechSynthesis(bool enable)
+{
+ RuntimeEnabledFeatures::setSpeechSynthesisEnabled(enable);
+}
+
+bool WebRuntimeFeatures::isSpeechSynthesisEnabled()
+{
+ return RuntimeEnabledFeatures::speechSynthesisEnabled();
+}
+
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698