Removing uses of X11 native key events.
[chromium-blink-merge.git] / content / public / common / speech_recognition_result.h
blobaa1a02c31e108f4fe34dfccdb4772ca8125268d3
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_
6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "base/strings/string16.h"
12 #include "content/common/content_export.h"
14 namespace content {
16 struct SpeechRecognitionHypothesis {
17 base::string16 utterance;
18 double confidence;
20 SpeechRecognitionHypothesis() : confidence(0.0) {}
22 SpeechRecognitionHypothesis(const base::string16& utterance_value,
23 double confidence_value)
24 : utterance(utterance_value),
25 confidence(confidence_value) {
29 typedef std::vector<SpeechRecognitionHypothesis>
30 SpeechRecognitionHypothesisArray;
32 struct CONTENT_EXPORT SpeechRecognitionResult {
33 SpeechRecognitionHypothesisArray hypotheses;
34 bool is_provisional;
36 SpeechRecognitionResult();
37 ~SpeechRecognitionResult();
40 typedef std::vector<SpeechRecognitionResult> SpeechRecognitionResults;
42 } // namespace content
44 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_