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

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

Issue 10233010: Introducing new data types and IPC messages for scripted JS speech recognition APIs (Speech CL2.0) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added also SpeechRecognitionSessionContext Created 8 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 | 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 // This enumeration follows the values described here: 10 // This enumeration follows the values described here:
(...skipping 19 matching lines...) Expand all
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698