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

Side by Side 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, 1 month 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
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/speech_input_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_SPEECH_INPUT_RESULT_H_
6 #define CHROME_COMMON_SPEECH_INPUT_RESULT_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/string16.h"
12
13 namespace speech_input {
14
15 struct SpeechInputResultItem {
16 string16 utterance;
17 double confidence;
18
19 SpeechInputResultItem()
20 : confidence(0.0) {
21 }
22
23 SpeechInputResultItem(const string16 utterance_value, double confidence_value)
24 : utterance(utterance_value),
25 confidence(confidence_value) {
26 }
27 };
28
29 typedef std::vector<SpeechInputResultItem> SpeechInputResultArray;
30
31 } // namespace speech_input
32
33 #endif // CHROME_COMMON_SPEECH_INPUT_RESULT_H_
OLDNEW
« 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