diff options
Diffstat (limited to 'Source/WebKit/chromium/src/WebRuntimeFeatures.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/WebRuntimeFeatures.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp index f1960eb31..d297a828c 100644 --- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp +++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp @@ -34,7 +34,7 @@ #include "AbstractDatabase.h" #include "RuntimeEnabledFeatures.h" #include "WebMediaPlayerClientImpl.h" -#include "websockets/WebSocket.h" +#include "Modules/websockets/WebSocket.h" #include <wtf/UnusedParam.h> @@ -260,6 +260,22 @@ bool WebRuntimeFeatures::isSpeechInputEnabled() return RuntimeEnabledFeatures::speechInputEnabled(); } +void WebRuntimeFeatures::enableScriptedSpeech(bool enable) +{ +#if ENABLE(SCRIPTED_SPEECH) + RuntimeEnabledFeatures::setScriptedSpeechEnabled(enable); +#endif +} + +bool WebRuntimeFeatures::isScriptedSpeechEnabled() +{ +#if ENABLE(SCRIPTED_SPEECH) + return RuntimeEnabledFeatures::scriptedSpeechEnabled(); +#else + return false; +#endif +} + void WebRuntimeFeatures::enableXHRResponseBlob(bool enable) { #if ENABLE(XHR_RESPONSE_BLOB) |