OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ |
6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ | 6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 : utterance(utterance_value), | 25 : utterance(utterance_value), |
26 confidence(confidence_value) { | 26 confidence(confidence_value) { |
27 } | 27 } |
28 }; | 28 }; |
29 | 29 |
30 typedef std::vector<SpeechRecognitionHypothesis> | 30 typedef std::vector<SpeechRecognitionHypothesis> |
31 SpeechRecognitionHypothesisArray; | 31 SpeechRecognitionHypothesisArray; |
32 | 32 |
33 struct CONTENT_EXPORT SpeechRecognitionResult { | 33 struct CONTENT_EXPORT SpeechRecognitionResult { |
34 SpeechRecognitionHypothesisArray hypotheses; | 34 SpeechRecognitionHypothesisArray hypotheses; |
| 35 bool provisional; |
35 | 36 |
36 SpeechRecognitionResult(); | 37 SpeechRecognitionResult(); |
37 ~SpeechRecognitionResult(); | 38 ~SpeechRecognitionResult(); |
38 }; | 39 }; |
39 | 40 |
40 } // namespace content | 41 } // namespace content |
41 | 42 |
42 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ | 43 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_ |
OLD | NEW |