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

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

Issue 10933018: Speech JavaScript API: Use the MediaStreamManager to ask for user permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
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 enum SpeechRecognitionErrorCode { 10 enum SpeechRecognitionErrorCode {
11 // There was no error. 11 // There was no error.
12 SPEECH_RECOGNITION_ERROR_NONE = 0, 12 SPEECH_RECOGNITION_ERROR_NONE = 0,
13 // The user or a script aborted speech input. 13 // The user or a script aborted speech input.
14 SPEECH_RECOGNITION_ERROR_ABORTED, 14 SPEECH_RECOGNITION_ERROR_ABORTED,
15 // There was an error with recording audio. 15 // There was an error with recording audio.
16 SPEECH_RECOGNITION_ERROR_AUDIO, 16 SPEECH_RECOGNITION_ERROR_AUDIO,
17 // There was a network error. 17 // There was a network error.
18 SPEECH_RECOGNITION_ERROR_NETWORK, 18 SPEECH_RECOGNITION_ERROR_NETWORK,
19 // Not allowed for privacy or security reasons.
20 SPEECH_RECOGNITION_ERROR_NOT_ALLOWED,
Satish 2012/09/12 06:15:09 I don't have a strong preference here, but this co
hans 2012/09/12 09:46:58 I'd like to go with NOT_ALLOWED for now, but I don
19 // No speech heard before timeout. 21 // No speech heard before timeout.
20 SPEECH_RECOGNITION_ERROR_NO_SPEECH, 22 SPEECH_RECOGNITION_ERROR_NO_SPEECH,
21 // Speech was heard, but could not be interpreted. 23 // Speech was heard, but could not be interpreted.
22 SPEECH_RECOGNITION_ERROR_NO_MATCH, 24 SPEECH_RECOGNITION_ERROR_NO_MATCH,
23 // There was an error in the speech recognition grammar. 25 // There was an error in the speech recognition grammar.
24 SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR, 26 SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR,
25 }; 27 };
26 28
27 // Error details for the SPEECH_RECOGNITION_ERROR_AUDIO error. 29 // Error details for the SPEECH_RECOGNITION_ERROR_AUDIO error.
28 enum SpeechAudioErrorDetails { 30 enum SpeechAudioErrorDetails {
(...skipping 17 matching lines...) Expand all
46 SpeechRecognitionError(SpeechRecognitionErrorCode code_value, 48 SpeechRecognitionError(SpeechRecognitionErrorCode code_value,
47 SpeechAudioErrorDetails details_value) 49 SpeechAudioErrorDetails details_value)
48 : code(code_value), 50 : code(code_value),
49 details(details_value) { 51 details(details_value) {
50 } 52 }
51 }; 53 };
52 54
53 } // namespace content 55 } // namespace content
54 56
55 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ 57 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698