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 27 matching lines...) Expand all Loading... |
38 // Renderer request to browser for canceling a previous permission request. | 38 // Renderer request to browser for canceling a previous permission request. |
39 IPC_MESSAGE_CONTROL3(MidiHostMsg_CancelSysExPermissionRequest, | 39 IPC_MESSAGE_CONTROL3(MidiHostMsg_CancelSysExPermissionRequest, |
40 int /* render_view_id */, | 40 int /* render_view_id */, |
41 int /* bridge_id */, | 41 int /* bridge_id */, |
42 GURL /* GURL of the frame */) | 42 GURL /* GURL of the frame */) |
43 | 43 |
44 // Messages sent from the browser to the renderer. | 44 // Messages sent from the browser to the renderer. |
45 | 45 |
46 IPC_MESSAGE_ROUTED2(MidiMsg_SysExPermissionApproved, | 46 IPC_MESSAGE_ROUTED2(MidiMsg_SysExPermissionApproved, |
47 int /* client id */, | 47 int /* client id */, |
48 bool /* success */) | 48 bool /* is_allowed */) |
49 | 49 |
50 // Messages for IPC between MidiMessageFilter and MidiHost. | 50 // Messages for IPC between MidiMessageFilter and MidiHost. |
51 | 51 |
52 // Renderer request to browser for access to MIDI services. | 52 // Renderer request to browser for access to MIDI services. |
53 IPC_MESSAGE_CONTROL1(MidiHostMsg_StartSession, | 53 IPC_MESSAGE_CONTROL1(MidiHostMsg_StartSession, |
54 int /* client id */) | 54 int /* client id */) |
55 | 55 |
56 IPC_MESSAGE_CONTROL3(MidiHostMsg_SendData, | 56 IPC_MESSAGE_CONTROL3(MidiHostMsg_SendData, |
57 uint32 /* port */, | 57 uint32 /* port */, |
58 std::vector<uint8> /* data */, | 58 std::vector<uint8> /* data */, |
59 double /* timestamp */) | 59 double /* timestamp */) |
60 | 60 |
61 // Messages sent from the browser to the renderer. | 61 // Messages sent from the browser to the renderer. |
62 | 62 |
63 IPC_MESSAGE_CONTROL4(MidiMsg_SessionStarted, | 63 IPC_MESSAGE_CONTROL4(MidiMsg_SessionStarted, |
64 int /* client id */, | 64 int /* client id */, |
65 media::MidiResult /* result */, | 65 media::MidiResult /* result */, |
66 media::MidiPortInfoList /* input ports */, | 66 media::MidiPortInfoList /* input ports */, |
67 media::MidiPortInfoList /* output ports */) | 67 media::MidiPortInfoList /* output ports */) |
68 | 68 |
69 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived, | 69 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived, |
70 uint32 /* port */, | 70 uint32 /* port */, |
71 std::vector<uint8> /* data */, | 71 std::vector<uint8> /* data */, |
72 double /* timestamp */) | 72 double /* timestamp */) |
73 | 73 |
74 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData, | 74 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData, |
75 uint32 /* bytes sent */) | 75 uint32 /* bytes sent */) |
OLD | NEW |