| 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 // 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 Loading... |
| 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_SetRecognitionResult, | 82 IPC_MESSAGE_ROUTED2(InputTagSpeechMsg_SetRecognitionResults, |
| 83 int /* request_id */, | 83 int /* request_id */, |
| 84 content::SpeechRecognitionResult /* result */) | 84 content::SpeechRecognitionResults /* results */) |
| 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 Loading... |
| 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::SpeechRecognitionResult /* result */) | 152 content::SpeechRecognitionResults /* results */) |
| 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 */) |
| OLD | NEW |