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

Side by Side Diff: content/browser/speech/speech_recognition_engine.h

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, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_
6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 }; 49 };
50 50
51 // Remote engine configuration. 51 // Remote engine configuration.
52 struct CONTENT_EXPORT Config { 52 struct CONTENT_EXPORT Config {
53 Config(); 53 Config();
54 ~Config(); 54 ~Config();
55 55
56 std::string language; 56 std::string language;
57 content::SpeechRecognitionGrammarArray grammars; 57 content::SpeechRecognitionGrammarArray grammars;
58 bool filter_profanities; 58 bool filter_profanities;
59 uint32 max_hypotheses;
59 std::string hardware_info; 60 std::string hardware_info;
60 std::string origin_url; 61 std::string origin_url;
61 int audio_sample_rate; 62 int audio_sample_rate;
62 int audio_num_bits_per_sample; 63 int audio_num_bits_per_sample;
63 }; 64 };
64 65
65 virtual ~SpeechRecognitionEngine() {} 66 virtual ~SpeechRecognitionEngine() {}
66 67
67 // Set/change the recognition engine configuration. It is not allowed to call 68 // Set/change the recognition engine configuration. It is not allowed to call
68 // this function while a recognition is ongoing. 69 // this function while a recognition is ongoing.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 105
105 // These typedefs are to workaround the issue with certain versions of 106 // These typedefs are to workaround the issue with certain versions of
106 // Visual Studio where it gets confused between multiple Delegate 107 // Visual Studio where it gets confused between multiple Delegate
107 // classes and gives a C2500 error. 108 // classes and gives a C2500 error.
108 typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate; 109 typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate;
109 typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig; 110 typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig;
110 111
111 } // namespace speech 112 } // namespace speech
112 113
113 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ 114 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognition_dispatcher_host.cc ('k') | content/browser/speech/speech_recognition_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698