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

Unified Diff: chrome/common/speech_input_result.h

Issue 4119004: Add ability to parse multiple recognition results and send them to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move header to chrome/common and address review comments. 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/common/render_messages_internal.h ('k') | chrome/renderer/speech_input_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/speech_input_result.h
diff --git a/chrome/common/speech_input_result.h b/chrome/common/speech_input_result.h
new file mode 100644
index 0000000000000000000000000000000000000000..2807412837b95758860f56d9c606e44dadc33e04
--- /dev/null
+++ b/chrome/common/speech_input_result.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_SPEECH_INPUT_RESULT_H_
+#define CHROME_COMMON_SPEECH_INPUT_RESULT_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/string16.h"
+
+namespace speech_input {
+
+struct SpeechInputResultItem {
+ string16 utterance;
+ double confidence;
+
+ SpeechInputResultItem()
+ : confidence(0.0) {
+ }
+
+ SpeechInputResultItem(const string16 utterance_value, double confidence_value)
+ : utterance(utterance_value),
+ confidence(confidence_value) {
+ }
+};
+
+typedef std::vector<SpeechInputResultItem> SpeechInputResultArray;
+
+} // namespace speech_input
+
+#endif // CHROME_COMMON_SPEECH_INPUT_RESULT_H_
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/speech_input_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698