| 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 11 matching lines...) Expand all Loading... |
| 22 IPC_STRUCT_TRAITS_MEMBER(manufacturer) | 22 IPC_STRUCT_TRAITS_MEMBER(manufacturer) |
| 23 IPC_STRUCT_TRAITS_MEMBER(name) | 23 IPC_STRUCT_TRAITS_MEMBER(name) |
| 24 IPC_STRUCT_TRAITS_MEMBER(version) | 24 IPC_STRUCT_TRAITS_MEMBER(version) |
| 25 IPC_STRUCT_TRAITS_END() | 25 IPC_STRUCT_TRAITS_END() |
| 26 | 26 |
| 27 IPC_ENUM_TRAITS_MAX_VALUE(media::MidiResult, media::MIDI_RESULT_LAST) | 27 IPC_ENUM_TRAITS_MAX_VALUE(media::MidiResult, media::MIDI_RESULT_LAST) |
| 28 | 28 |
| 29 // Messages for IPC between MidiDispatcher and MidiDispatcherHost. | 29 // Messages for IPC between MidiDispatcher and MidiDispatcherHost. |
| 30 | 30 |
| 31 // Renderer request to browser for using system exclusive messages. | 31 // Renderer request to browser for using system exclusive messages. |
| 32 IPC_MESSAGE_CONTROL4(MidiHostMsg_RequestSysExPermission, | 32 IPC_MESSAGE_ROUTED3(MidiHostMsg_RequestSysExPermission, |
| 33 int /* routing id */, | 33 int /* client id */, |
| 34 int /* client id */, | 34 GURL /* origin */, |
| 35 GURL /* origin */, | 35 bool /* user_gesture */) |
| 36 bool /* user_gesture */) | |
| 37 | 36 |
| 38 // Renderer request to browser for canceling a previous permission request. | 37 // Renderer request to browser for canceling a previous permission request. |
| 39 IPC_MESSAGE_CONTROL3(MidiHostMsg_CancelSysExPermissionRequest, | 38 IPC_MESSAGE_ROUTED2(MidiHostMsg_CancelSysExPermissionRequest, |
| 40 int /* render_view_id */, | |
| 41 int /* bridge_id */, | 39 int /* bridge_id */, |
| 42 GURL /* GURL of the frame */) | 40 GURL /* GURL of the frame */) |
| 43 | 41 |
| 44 // Messages sent from the browser to the renderer. | 42 // Messages sent from the browser to the renderer. |
| 45 | 43 |
| 46 IPC_MESSAGE_ROUTED2(MidiMsg_SysExPermissionApproved, | 44 IPC_MESSAGE_ROUTED2(MidiMsg_SysExPermissionApproved, |
| 47 int /* client id */, | 45 int /* client id */, |
| 48 bool /* is_allowed */) | 46 bool /* is_allowed */) |
| 49 | 47 |
| 50 // Messages for IPC between MidiMessageFilter and MidiHost. | 48 // Messages for IPC between MidiMessageFilter and MidiHost. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 66 media::MidiPortInfoList /* input ports */, | 64 media::MidiPortInfoList /* input ports */, |
| 67 media::MidiPortInfoList /* output ports */) | 65 media::MidiPortInfoList /* output ports */) |
| 68 | 66 |
| 69 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived, | 67 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived, |
| 70 uint32 /* port */, | 68 uint32 /* port */, |
| 71 std::vector<uint8> /* data */, | 69 std::vector<uint8> /* data */, |
| 72 double /* timestamp */) | 70 double /* timestamp */) |
| 73 | 71 |
| 74 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData, | 72 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData, |
| 75 uint32 /* bytes sent */) | 73 uint32 /* bytes sent */) |
| OLD | NEW |