Chromium Code Reviews| Index: content/common/speech_input_result.h |
| diff --git a/content/common/speech_input_result.h b/content/common/speech_input_result.h |
| index ed85959dca334ace84233c8ff57ee3a01a9dc4e5..408a1026e184e0f1f8b0bc81b81b2345006aad61 100644 |
| --- a/content/common/speech_input_result.h |
| +++ b/content/common/speech_input_result.h |
| @@ -12,21 +12,37 @@ |
| namespace speech_input { |
| -struct SpeechInputResultItem { |
| +struct SpeechInputHypothesis { |
| string16 utterance; |
| double confidence; |
| - SpeechInputResultItem() |
| - : confidence(0.0) { |
| - } |
| + SpeechInputHypothesis() : confidence(0.0) {} |
| - SpeechInputResultItem(const string16 utterance_value, double confidence_value) |
| + SpeechInputHypothesis(const string16 utterance_value, double confidence_value) |
| : utterance(utterance_value), |
| confidence(confidence_value) { |
| } |
| }; |
| -typedef std::vector<SpeechInputResultItem> SpeechInputResultArray; |
| +typedef std::vector<SpeechInputHypothesis> |
| + SpeechInputHypothesisArray; |
|
Satish
2011/10/06 09:09:06
merge with previous line
Leandro Graciá Gil
2011/10/06 18:26:25
Done.
|
| + |
| +enum SpeechInputError { |
|
Satish
2011/10/06 09:09:06
can you add a comment to each of these error codes
Leandro Graciá Gil
2011/10/06 18:26:25
Done.
|
| + kErrorNone = 0, |
| + kErrorAborted, |
| + kErrorAudio, |
| + kErrorNetwork, |
| + kErrorNoSpeech, |
| + kErrorNoMatch, |
| + kErrorBadGrammar, |
| +}; |
| + |
| +struct SpeechInputResult { |
| + SpeechInputError error; |
| + SpeechInputHypothesisArray hypotheses; |
| + |
| + SpeechInputResult() : error(kErrorNone) {} |
| +}; |
| } // namespace speech_input |