summaryrefslogtreecommitdiffstats
path: root/content/browser/speech/speech_recognition_engine.h
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-04 19:48:43 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-04 19:48:43 +0000
commit60a6304a7b078bef71f3977f9bd216ac0fdc4919 (patch)
treed082351727bd05487324be107df1425d0e4b42fe /content/browser/speech/speech_recognition_engine.h
parent968f460f3ad1f286bcc16fddbb7066b72767cb38 (diff)
downloadchromium_src-60a6304a7b078bef71f3977f9bd216ac0fdc4919.zip
chromium_src-60a6304a7b078bef71f3977f9bd216ac0fdc4919.tar.gz
chromium_src-60a6304a7b078bef71f3977f9bd216ac0fdc4919.tar.bz2
Speech JavaScript API: Pass 'interimResults' and 'continuous' flags to server.
Also replace SpeechRecognitionSessionConfig::is_one_shot with is_legacy_api, used by the old x-webkit-speech input elements and speech extensions. This way the new speech API will always use the new server, both for continuous and non-continuous recognition. BUG=116954 Review URL: https://chromiumcodereview.appspot.com/11032032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/speech/speech_recognition_engine.h')
-rw-r--r--content/browser/speech/speech_recognition_engine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/speech/speech_recognition_engine.h b/content/browser/speech/speech_recognition_engine.h
index 47eb2cb..0e90ec8 100644
--- a/content/browser/speech/speech_recognition_engine.h
+++ b/content/browser/speech/speech_recognition_engine.h
@@ -55,6 +55,8 @@ class SpeechRecognitionEngine {
std::string language;
content::SpeechRecognitionGrammarArray grammars;
bool filter_profanities;
+ bool continuous;
+ bool interim_results;
uint32 max_hypotheses;
std::string hardware_info;
std::string origin_url;