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..f4404301558b850484be303bbb2e4e4e07d3893b 100644 |
--- a/content/common/speech_input_result.h |
+++ b/content/common/speech_input_result.h |
@@ -16,9 +16,7 @@ struct SpeechInputResultItem { |
string16 utterance; |
double confidence; |
- SpeechInputResultItem() |
- : confidence(0.0) { |
- } |
+ SpeechInputResultItem() : confidence(0.0) {} |
SpeechInputResultItem(const string16 utterance_value, double confidence_value) |
: utterance(utterance_value), |
@@ -26,7 +24,23 @@ struct SpeechInputResultItem { |
} |
}; |
-typedef std::vector<SpeechInputResultItem> SpeechInputResultArray; |
+typedef std::vector<SpeechInputResultItem> |
+ SpeechInputHypothesisArray; |
Satish
2011/10/04 20:36:33
would be clearer to rename SpeechInputResultItem t
Leandro Graciá Gil
2011/10/05 22:09:00
Done.
|
+ |
+enum SpeechInputResultStatus { |
+ kStatusSuccess = 0, |
+ kStatusAborted, |
+ kStatusAudio, |
+ kStatusNetwork, |
+ kStatusNoSpeech, |
+ kStatusNoMatch, |
+ kStatusBadGrammar, |
+}; |
+ |
+struct SpeechInputResult { |
Satish
2011/10/04 20:36:33
can you add a constructor and initialize .status?
Leandro Graciá Gil
2011/10/05 22:09:00
Done.
|
+ SpeechInputResultStatus status; |
+ SpeechInputHypothesisArray hypotheses; |
+}; |
} // namespace speech_input |