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

Unified Diff: chrome/browser/speech/speech_input_manager.cc

Issue 3595018: Language tag for speech. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: rebase. Created 10 years, 2 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
« no previous file with comments | « chrome/browser/speech/speech_input_manager.h ('k') | chrome/browser/speech/speech_recognition_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_input_manager.cc
diff --git a/chrome/browser/speech/speech_input_manager.cc b/chrome/browser/speech/speech_input_manager.cc
index 24f0f5d7ef3014762c5aa9445ff84fd66e006b4a..181234eb05417066d82d10dfbe2bab167bdb8f61 100644
--- a/chrome/browser/speech/speech_input_manager.cc
+++ b/chrome/browser/speech/speech_input_manager.cc
@@ -29,6 +29,7 @@ class SpeechInputManagerImpl : public SpeechInputManager,
int render_process_id,
int render_view_id,
const gfx::Rect& element_rect,
+ const std::string& language,
const std::string& grammar);
virtual void CancelRecognition(int caller_id);
virtual void StopRecording(int caller_id);
@@ -106,6 +107,7 @@ void SpeechInputManagerImpl::StartRecognition(
int render_process_id,
int render_view_id,
const gfx::Rect& element_rect,
+ const std::string& language,
const std::string& grammar) {
DCHECK(!HasPendingRequest(caller_id));
@@ -114,7 +116,8 @@ void SpeechInputManagerImpl::StartRecognition(
SpeechInputRequest* request = &requests_[caller_id];
request->delegate = delegate;
- request->recognizer = new SpeechRecognizer(this, caller_id, grammar);
+ request->recognizer = new SpeechRecognizer(this, caller_id, language,
+ grammar);
request->is_active = false;
StartRecognitionForRequest(caller_id);
« no previous file with comments | « chrome/browser/speech/speech_input_manager.h ('k') | chrome/browser/speech/speech_recognition_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698