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

Side by Side Diff: content/common/speech_recognition_messages.h

Issue 11416310: Revert 170668 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 // Multiply-included message file, hence no include guard. 5 // Multiply-included message file, hence no include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "content/public/common/speech_recognition_error.h" 9 #include "content/public/common/speech_recognition_error.h"
10 #include "content/public/common/speech_recognition_grammar.h" 10 #include "content/public/common/speech_recognition_grammar.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // the given |render_view_id|. Any audio recorded so far will be fed to the 72 // the given |render_view_id|. Any audio recorded so far will be fed to the
73 // speech recognizer. If speech recognition is not happening nor or is 73 // speech recognizer. If speech recognition is not happening nor or is
74 // happening on behalf of some other render view, this call does nothing. 74 // happening on behalf of some other render view, this call does nothing.
75 IPC_MESSAGE_CONTROL2(InputTagSpeechHostMsg_StopRecording, 75 IPC_MESSAGE_CONTROL2(InputTagSpeechHostMsg_StopRecording,
76 int /* render_view_id */, 76 int /* render_view_id */,
77 int /* request_id */) 77 int /* request_id */)
78 78
79 // Browser -> Renderer messages. 79 // Browser -> Renderer messages.
80 80
81 // Relays a speech recognition result, either partial or final. 81 // Relays a speech recognition result, either partial or final.
82 IPC_MESSAGE_ROUTED2(InputTagSpeechMsg_SetRecognitionResults, 82 IPC_MESSAGE_ROUTED2(InputTagSpeechMsg_SetRecognitionResult,
83 int /* request_id */, 83 int /* request_id */,
84 content::SpeechRecognitionResults /* results */) 84 content::SpeechRecognitionResult /* result */)
85 85
86 // Indicates that speech recognizer has stopped recording and started 86 // Indicates that speech recognizer has stopped recording and started
87 // recognition. 87 // recognition.
88 IPC_MESSAGE_ROUTED1(InputTagSpeechMsg_RecordingComplete, 88 IPC_MESSAGE_ROUTED1(InputTagSpeechMsg_RecordingComplete,
89 int /* request_id */) 89 int /* request_id */)
90 90
91 // Indicates that speech recognizer has completed recognition. This will be the 91 // Indicates that speech recognizer has completed recognition. This will be the
92 // last message sent in response to a InputTagSpeechHostMsg_StartRecognition. 92 // last message sent in response to a InputTagSpeechHostMsg_StartRecognition.
93 IPC_MESSAGE_ROUTED1(InputTagSpeechMsg_RecognitionComplete, 93 IPC_MESSAGE_ROUTED1(InputTagSpeechMsg_RecognitionComplete,
94 int /* request_id */) 94 int /* request_id */)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_StopCaptureRequest, 142 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_StopCaptureRequest,
143 int /* render_view_id */, 143 int /* render_view_id */,
144 int /* request_id */) 144 int /* request_id */)
145 145
146 // Browser -> Renderer messages. 146 // Browser -> Renderer messages.
147 147
148 // The messages below follow exactly the same semantic of the corresponding 148 // The messages below follow exactly the same semantic of the corresponding
149 // events defined in content/public/browser/speech_recognition_event_listener.h. 149 // events defined in content/public/browser/speech_recognition_event_listener.h.
150 IPC_MESSAGE_ROUTED2(SpeechRecognitionMsg_ResultRetrieved, 150 IPC_MESSAGE_ROUTED2(SpeechRecognitionMsg_ResultRetrieved,
151 int /* request_id */, 151 int /* request_id */,
152 content::SpeechRecognitionResults /* results */) 152 content::SpeechRecognitionResult /* result */)
153 153
154 IPC_MESSAGE_ROUTED2(SpeechRecognitionMsg_ErrorOccurred, 154 IPC_MESSAGE_ROUTED2(SpeechRecognitionMsg_ErrorOccurred,
155 int /* request_id */, 155 int /* request_id */,
156 content::SpeechRecognitionError /* error */) 156 content::SpeechRecognitionError /* error */)
157 157
158 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Started, int /* request_id */) 158 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Started, int /* request_id */)
159 159
160 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioStarted, int /* request_id */) 160 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioStarted, int /* request_id */)
161 161
162 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundStarted, int /* request_id */) 162 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundStarted, int /* request_id */)
163 163
164 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */) 164 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */)
165 165
166 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) 166 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */)
167 167
168 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) 168 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */)
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognizer_unittest.cc ('k') | content/public/browser/speech_recognition_event_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698