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 "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "base/sync_socket.h" | 10 #include "base/sync_socket.h" |
11 #include "content/public/common/speech_recognition_error.h" | 11 #include "content/public/common/speech_recognition_error.h" |
12 #include "content/public/common/speech_recognition_grammar.h" | 12 #include "content/public/common/speech_recognition_grammar.h" |
13 #include "content/public/common/speech_recognition_result.h" | 13 #include "content/public/common/speech_recognition_result.h" |
14 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
15 #include "ipc/ipc_param_traits.h" | 15 #include "ipc/ipc_param_traits.h" |
16 #include "media/audio/audio_parameters.h" | 16 #include "media/audio/audio_parameters.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 | 18 |
19 #define IPC_MESSAGE_START SpeechRecognitionMsgStart | 19 #define IPC_MESSAGE_START SpeechRecognitionMsgStart |
20 | 20 |
21 IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechAudioErrorDetails, | 21 IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechAudioErrorDetails, |
22 content::SPEECH_AUDIO_ERROR_DETAILS_LAST) | 22 content::SPEECH_AUDIO_ERROR_DETAILS_LAST) |
23 IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechRecognitionErrorCode, | 23 IPC_ENUM_TRAITS_MAX_VALUE(content::SpeechRecognitionErrorCode, |
24 content::SPEECH_RECOGNITION_ERROR_LAST) | 24 content::SPEECH_RECOGNITION_ERROR_LAST) |
25 | 25 |
26 IPC_STRUCT_TRAITS_BEGIN(content::SpeechRecognitionError) | 26 IPC_STRUCT_TRAITS_BEGIN(content::SpeechRecognitionError) |
27 IPC_STRUCT_TRAITS_MEMBER(code) | 27 IPC_STRUCT_TRAITS_MEMBER(code) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) | 119 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_AudioEnded, int /* request_id */) |
120 | 120 |
121 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) | 121 IPC_MESSAGE_ROUTED1(SpeechRecognitionMsg_Ended, int /* request_id */) |
122 | 122 |
123 IPC_MESSAGE_ROUTED4(SpeechRecognitionMsg_AudioReceiverReady, | 123 IPC_MESSAGE_ROUTED4(SpeechRecognitionMsg_AudioReceiverReady, |
124 int /* request_id */, | 124 int /* request_id */, |
125 media::AudioParameters /* params */, | 125 media::AudioParameters /* params */, |
126 base::SharedMemoryHandle /* memory */, | 126 base::SharedMemoryHandle /* memory */, |
127 base::SyncSocket::TransitDescriptor /* socket */) | 127 base::SyncSocket::TransitDescriptor /* socket */) |
OLD | NEW |