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

Unified Diff: content/common/speech_input_result.h

Issue 8137005: Applying changes to the existing speech input code to support the extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing unit tests. Created 9 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
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

Powered by Google App Engine
This is Rietveld 408576698