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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 // Unique ID associated with the JS object making the calls. | 110 // Unique ID associated with the JS object making the calls. |
| 111 IPC_STRUCT_MEMBER(int, request_id) | 111 IPC_STRUCT_MEMBER(int, request_id) |
| 112 // Language to use for speech recognition. | 112 // Language to use for speech recognition. |
| 113 IPC_STRUCT_MEMBER(std::string, language) | 113 IPC_STRUCT_MEMBER(std::string, language) |
| 114 // Speech grammars to use. | 114 // Speech grammars to use. |
| 115 IPC_STRUCT_MEMBER(content::SpeechRecognitionGrammarArray, grammars) | 115 IPC_STRUCT_MEMBER(content::SpeechRecognitionGrammarArray, grammars) |
| 116 // URL of the page (or iframe if applicable). | 116 // URL of the page (or iframe if applicable). |
| 117 IPC_STRUCT_MEMBER(std::string, origin_url) | 117 IPC_STRUCT_MEMBER(std::string, origin_url) |
| 118 // One-shot/continuous recognition mode. | 118 // One-shot/continuous recognition mode. |
| 119 IPC_STRUCT_MEMBER(bool, is_one_shot) | 119 IPC_STRUCT_MEMBER(bool, is_one_shot) |
| 120 // Maximum number of hypotheses allowed for each results. | |
| 121 IPC_STRUCT_MEMBER(int, max_hypotheses) | |
|
hans
2012/06/21 12:38:56
again, may want to make this unsigned
Primiano Tucci (use gerrit)
2012/06/21 13:28:25
Done.
| |
| 120 IPC_STRUCT_END() | 122 IPC_STRUCT_END() |
| 121 | 123 |
| 122 | 124 |
| 123 // Requests the speech recognition service to start speech recognition. | 125 // Requests the speech recognition service to start speech recognition. |
| 124 IPC_MESSAGE_CONTROL1(SpeechRecognitionHostMsg_StartRequest, | 126 IPC_MESSAGE_CONTROL1(SpeechRecognitionHostMsg_StartRequest, |
| 125 SpeechRecognitionHostMsg_StartRequest_Params) | 127 SpeechRecognitionHostMsg_StartRequest_Params) |
| 126 | 128 |
| 127 // Requests the speech recognition service to abort speech recognition on | 129 // Requests the speech recognition service to abort speech recognition on |
| 128 // behalf of the given |render_view_id|. If speech recognition is not happening | 130 // behalf of the given |render_view_id|. If speech recognition is not happening |
| 129 // or is happening on behalf of some other render view, this call does nothing. | 131 // or is happening on behalf of some other render view, this call does nothing. |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 155 | 157 |
| 156 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioStarted, int /* request_id */) | 158 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioStarted, int /* request_id */) |
| 157 | 159 |
| 158 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundStarted, int /* request_id */) | 160 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundStarted, int /* request_id */) |
| 159 | 161 |
| 160 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */) | 162 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_SoundEnded, int /* request_id */) |
| 161 | 163 |
| 162 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) | 164 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) |
| 163 | 165 |
| 164 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) | 166 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) |
| OLD | NEW |