Chromium Code Reviews| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 // Whether the user requested interim results or not. | 63 // Whether the user requested interim results or not. |
| 64 IPC_STRUCT_MEMBER(bool, interim_results) | 64 IPC_STRUCT_MEMBER(bool, interim_results) |
| 65 IPC_STRUCT_END() | 65 IPC_STRUCT_END() |
| 66 | 66 |
| 67 | 67 |
| 68 // Requests the speech recognition service to start speech recognition. | 68 // Requests the speech recognition service to start speech recognition. |
| 69 IPC_MESSAGE_CONTROL1(SpeechRecognitionHostMsg_StartRequest, | 69 IPC_MESSAGE_CONTROL1(SpeechRecognitionHostMsg_StartRequest, |
| 70 SpeechRecognitionHostMsg_StartRequest_Params) | 70 SpeechRecognitionHostMsg_StartRequest_Params) |
| 71 | 71 |
| 72 // Requests the speech recognition service to abort speech recognition on | 72 // Requests the speech recognition service to abort speech recognition on |
| 73 // behalf of the given |render_view_id|. If speech recognition is not happening | 73 // behalf of the given |render_view_id| and |request_id|. If there are no |
| 74 // or is happening on behalf of some other render view, this call does nothing. | 74 // sessions associated with the |request_id| in the render view, this call |
| 75 // does nothing. | |
| 75 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_AbortRequest, | 76 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_AbortRequest, |
| 76 int /* render_view_id */, | 77 int /* render_view_id */, |
| 77 int /* request_id */) | 78 int /* request_id */) |
| 78 | 79 |
| 80 // Requests the speech recognition service to abort all speech recognitions on | |
| 81 // behalf of the given |render_view_id|. If speech recognition is not happening | |
| 82 // or is happening on behalf of some other render view, this call does nothing. | |
| 83 IPC_MESSAGE_CONTROL1(SpeechRecognitionHostMsg_AbortAllRequest, | |
|
Tom Sepez
2014/07/24 03:11:33
nit: _AbortAllRequests (plural throughout all uses
qinmin
2014/07/24 03:15:59
Done.
| |
| 84 int /* render_view_id */) | |
| 85 | |
| 79 // Requests the speech recognition service to stop audio capture on behalf of | 86 // Requests the speech recognition service to stop audio capture on behalf of |
| 80 // the given |render_view_id|. Any audio recorded so far will be fed to the | 87 // the given |render_view_id|. Any audio recorded so far will be fed to the |
| 81 // speech recognizer. If speech recognition is not happening nor or is | 88 // speech recognizer. If speech recognition is not happening nor or is |
| 82 // happening on behalf of some other render view, this call does nothing. | 89 // happening on behalf of some other render view, this call does nothing. |
| 83 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_StopCaptureRequest, | 90 IPC_MESSAGE_CONTROL2(SpeechRecognitionHostMsg_StopCaptureRequest, |
| 84 int /* render_view_id */, | 91 int /* render_view_id */, |
| 85 int /* request_id */) | 92 int /* request_id */) |
| 86 | 93 |
| 87 // Browser -> Renderer messages. | 94 // Browser -> Renderer messages. |
| 88 | 95 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 100 | 107 |
| 101 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioStarted, int /* request_id */) | 108 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioStarted, int /* request_id */) |
| 102 | 109 |
| 103 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundStarted, int /* request_id */) | 110 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundStarted, int /* request_id */) |
| 104 | 111 |
| 105 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */) | 112 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */) |
| 106 | 113 |
| 107 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) | 114 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) |
| 108 | 115 |
| 109 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) | 116 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) |
| OLD | NEW |