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 #pragma once | |
8 | 7 |
9 namespace content { | 8 namespace content { |
10 | 9 |
11 // This enumeration follows the values described here: | 10 // This enumeration follows the values described here: |
12 // http://www.w3.org/2005/Incubator/htmlspeech/2010/10/google-api-draft.html#spe
ech-input-error | 11 // http://www.w3.org/2005/Incubator/htmlspeech/2010/10/google-api-draft.html#spe
ech-input-error |
13 enum SpeechRecognitionErrorCode { | 12 enum SpeechRecognitionErrorCode { |
14 // There was no error. | 13 // There was no error. |
15 SPEECH_RECOGNITION_ERROR_NONE = 0, | 14 SPEECH_RECOGNITION_ERROR_NONE = 0, |
16 // The user or a script aborted speech input. | 15 // The user or a script aborted speech input. |
17 SPEECH_RECOGNITION_ERROR_ABORTED, | 16 SPEECH_RECOGNITION_ERROR_ABORTED, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 SpeechRecognitionError(SpeechRecognitionErrorCode code_value, | 48 SpeechRecognitionError(SpeechRecognitionErrorCode code_value, |
50 SpeechAudioErrorDetails details_value) | 49 SpeechAudioErrorDetails details_value) |
51 : code(code_value), | 50 : code(code_value), |
52 details(details_value) { | 51 details(details_value) { |
53 } | 52 } |
54 }; | 53 }; |
55 | 54 |
56 } // namespace content | 55 } // namespace content |
57 | 56 |
58 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ | 57 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ |
OLD | NEW |