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_ERROR_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ |
6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ | 6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 // This enumeration follows the values described here: | 10 // This enumeration follows the values described here: |
(...skipping 19 matching lines...) Expand all Loading... | |
30 enum SpeechAudioErrorDetails { | 30 enum SpeechAudioErrorDetails { |
31 SPEECH_AUDIO_ERROR_DETAILS_NONE = 0, | 31 SPEECH_AUDIO_ERROR_DETAILS_NONE = 0, |
32 SPEECH_AUDIO_ERROR_DETAILS_NO_MIC, | 32 SPEECH_AUDIO_ERROR_DETAILS_NO_MIC, |
33 SPEECH_AUDIO_ERROR_DETAILS_IN_USE | 33 SPEECH_AUDIO_ERROR_DETAILS_IN_USE |
34 }; | 34 }; |
35 | 35 |
36 struct CONTENT_EXPORT SpeechRecognitionError { | 36 struct CONTENT_EXPORT SpeechRecognitionError { |
37 SpeechRecognitionErrorCode code; | 37 SpeechRecognitionErrorCode code; |
38 SpeechAudioErrorDetails details; | 38 SpeechAudioErrorDetails details; |
39 | 39 |
40 SpeechRecognitionError() | |
41 : code(SPEECH_RECOGNITION_ERROR_NONE), | |
42 details(SPEECH_AUDIO_ERROR_DETAILS_NONE) { | |
43 } | |
40 SpeechRecognitionError(SpeechRecognitionErrorCode code_value) | 44 SpeechRecognitionError(SpeechRecognitionErrorCode code_value) |
hans
2012/04/26 16:23:25
i probably missed this before, but i believe this
Primiano Tucci (use gerrit)
2012/04/27 09:27:13
uh, right.
| |
41 : code(code_value), | 45 : code(code_value), |
42 details(SPEECH_AUDIO_ERROR_DETAILS_NONE) {} | 46 details(SPEECH_AUDIO_ERROR_DETAILS_NONE) { |
47 } | |
43 SpeechRecognitionError(SpeechRecognitionErrorCode code_value, | 48 SpeechRecognitionError(SpeechRecognitionErrorCode code_value, |
44 SpeechAudioErrorDetails details_value) | 49 SpeechAudioErrorDetails details_value) |
45 : code(code_value), | 50 : code(code_value), |
46 details(details_value) {} | 51 details(details_value) { |
52 } | |
47 }; | 53 }; |
48 | 54 |
49 } // namespace content | 55 } // namespace content |
50 | 56 |
51 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ | 57 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ |
OLD | NEW |