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

Side by Side Diff: content/public/common/speech_recognition_error.h

Issue 1075443004: Rename from ERROR_AUDIO to ERROR_AUDIO_CAPTURE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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
OLDNEW
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 // A Java counterpart will be generated for this enum. 10 // A Java counterpart will be generated for this enum.
11 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content_public.common 11 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content_public.common
12 // GENERATED_JAVA_PREFIX_TO_STRIP: SPEECH_RECOGNITION_ERROR_ 12 // GENERATED_JAVA_PREFIX_TO_STRIP: SPEECH_RECOGNITION_ERROR_
13 enum SpeechRecognitionErrorCode { 13 enum SpeechRecognitionErrorCode {
14 // There was no error. 14 // There was no error.
15 SPEECH_RECOGNITION_ERROR_NONE, 15 SPEECH_RECOGNITION_ERROR_NONE,
16 16
17 // No speech heard before timeout. 17 // No speech heard before timeout.
18 SPEECH_RECOGNITION_ERROR_NO_SPEECH, 18 SPEECH_RECOGNITION_ERROR_NO_SPEECH,
19 19
20 // The user or a script aborted speech input. 20 // The user or a script aborted speech input.
21 SPEECH_RECOGNITION_ERROR_ABORTED, 21 SPEECH_RECOGNITION_ERROR_ABORTED,
22 22
23 // There was an error with recording audio. 23 // There was an error with recording audio.
24 SPEECH_RECOGNITION_ERROR_AUDIO, 24 SPEECH_RECOGNITION_ERROR_AUDIO_CAPTURE,
25 25
26 // There was a network error. 26 // There was a network error.
27 SPEECH_RECOGNITION_ERROR_NETWORK, 27 SPEECH_RECOGNITION_ERROR_NETWORK,
28 28
29 // Not allowed for privacy or security reasons. 29 // Not allowed for privacy or security reasons.
30 SPEECH_RECOGNITION_ERROR_NOT_ALLOWED, 30 SPEECH_RECOGNITION_ERROR_NOT_ALLOWED,
31 31
32 // Speech service is not allowed for privacy or security reasons. 32 // Speech service is not allowed for privacy or security reasons.
33 SPEECH_RECOGNITION_ERROR_SERVICE_NOT_ALLOWED, 33 SPEECH_RECOGNITION_ERROR_SERVICE_NOT_ALLOWED,
34 34
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 SpeechRecognitionError(SpeechRecognitionErrorCode code_value, 66 SpeechRecognitionError(SpeechRecognitionErrorCode code_value,
67 SpeechAudioErrorDetails details_value) 67 SpeechAudioErrorDetails details_value)
68 : code(code_value), 68 : code(code_value),
69 details(details_value) { 69 details(details_value) {
70 } 70 }
71 }; 71 };
72 72
73 } // namespace content 73 } // namespace content
74 74
75 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ 75 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698