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

Unified Diff: content/public/browser/speech_recognition_session_config.cc

Issue 10629003: Adding support for the SpeechRecognition.maxAlternatives JS API parameter (Speech CL2.5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits + rebase Created 8 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: content/public/browser/speech_recognition_session_config.cc
diff --git a/content/public/browser/speech_recognition_session_config.cc b/content/public/browser/speech_recognition_session_config.cc
index 8a21f331818d96ed66b00e2dbe8b91ec8030516d..7c40cc36726824d5327a4c8881f8b2efc6207ab7 100644
--- a/content/public/browser/speech_recognition_session_config.cc
+++ b/content/public/browser/speech_recognition_session_config.cc
@@ -4,11 +4,16 @@
#include "content/public/browser/speech_recognition_session_config.h"
+namespace {
+const uint32 kDefaultMaxHypotheses = 1;
+}
+
namespace content {
SpeechRecognitionSessionConfig::SpeechRecognitionSessionConfig()
: is_one_shot(true),
filter_profanities(false),
+ max_hypotheses(kDefaultMaxHypotheses),
event_listener(NULL) {
}
« no previous file with comments | « content/public/browser/speech_recognition_session_config.h ('k') | content/renderer/speech_recognition_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698