OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // IPC messages for access to MIDI hardware. | 5 // IPC messages for access to MIDI hardware. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 IPC_STRUCT_TRAITS_END() | 23 IPC_STRUCT_TRAITS_END() |
24 | 24 |
25 // Messages for IPC between MIDIDispatcher and MIDIDispatcherHost. | 25 // Messages for IPC between MIDIDispatcher and MIDIDispatcherHost. |
26 | 26 |
27 // Renderer request to browser for using system exclusive messages. | 27 // Renderer request to browser for using system exclusive messages. |
28 IPC_MESSAGE_CONTROL3(MIDIHostMsg_RequestSysExPermission, | 28 IPC_MESSAGE_CONTROL3(MIDIHostMsg_RequestSysExPermission, |
29 int /* routing id */, | 29 int /* routing id */, |
30 int /* client id */, | 30 int /* client id */, |
31 GURL /* origin */) | 31 GURL /* origin */) |
32 | 32 |
| 33 // Renderer request to browser for canceling a previous permission request. |
| 34 IPC_MESSAGE_CONTROL3(MIDIHostMsg_CancelSysExPermissionRequest, |
| 35 int /* render_view_id */, |
| 36 int /* bridge_id */, |
| 37 GURL /* GURL of the frame */) |
| 38 |
33 // Messages sent from the browser to the renderer. | 39 // Messages sent from the browser to the renderer. |
34 | 40 |
35 IPC_MESSAGE_ROUTED2(MIDIMsg_SysExPermissionApproved, | 41 IPC_MESSAGE_ROUTED2(MIDIMsg_SysExPermissionApproved, |
36 int /* client id */, | 42 int /* client id */, |
37 bool /* success */) | 43 bool /* success */) |
38 | 44 |
39 // Messages for IPC between MIDIMessageFilter and MIDIHost. | 45 // Messages for IPC between MIDIMessageFilter and MIDIHost. |
40 | 46 |
41 // Renderer request to browser for access to MIDI services. | 47 // Renderer request to browser for access to MIDI services. |
42 IPC_MESSAGE_CONTROL1(MIDIHostMsg_StartSession, | 48 IPC_MESSAGE_CONTROL1(MIDIHostMsg_StartSession, |
(...skipping 12 matching lines...) Expand all Loading... |
55 media::MIDIPortInfoList /* input ports */, | 61 media::MIDIPortInfoList /* input ports */, |
56 media::MIDIPortInfoList /* output ports */) | 62 media::MIDIPortInfoList /* output ports */) |
57 | 63 |
58 IPC_MESSAGE_CONTROL3(MIDIMsg_DataReceived, | 64 IPC_MESSAGE_CONTROL3(MIDIMsg_DataReceived, |
59 uint32 /* port */, | 65 uint32 /* port */, |
60 std::vector<uint8> /* data */, | 66 std::vector<uint8> /* data */, |
61 double /* timestamp */) | 67 double /* timestamp */) |
62 | 68 |
63 IPC_MESSAGE_CONTROL1(MIDIMsg_AcknowledgeSentData, | 69 IPC_MESSAGE_CONTROL1(MIDIMsg_AcknowledgeSentData, |
64 uint32 /* bytes sent */) | 70 uint32 /* bytes sent */) |
OLD | NEW |