OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // IPC messages for access to MIDI hardware. |
| 6 // Multiply-included message file, hence no include guard. |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" |
| 10 #include "ipc/ipc_message_macros.h" |
| 11 #include "media/midi/midi_port_info.h" |
| 12 |
| 13 #undef IPC_MESSAGE_EXPORT |
| 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 15 #define IPC_MESSAGE_START MIDIMsgStart |
| 16 |
| 17 IPC_STRUCT_TRAITS_BEGIN(media::MIDIPortInfo) |
| 18 IPC_STRUCT_TRAITS_MEMBER(id) |
| 19 IPC_STRUCT_TRAITS_MEMBER(manufacturer) |
| 20 IPC_STRUCT_TRAITS_MEMBER(name) |
| 21 IPC_STRUCT_TRAITS_MEMBER(version) |
| 22 IPC_STRUCT_TRAITS_END() |
| 23 |
| 24 // Renderer request to browser for access to MIDI services. |
| 25 IPC_MESSAGE_CONTROL2(MIDIHostMsg_RequestAccess, |
| 26 int /* client id */, |
| 27 int /* access */) |
| 28 |
| 29 IPC_MESSAGE_CONTROL3(MIDIHostMsg_SendData, |
| 30 int /* port */, |
| 31 std::vector<uint8> /* data */, |
| 32 double /* timestamp */) |
| 33 |
| 34 // Messages sent from the browser to the renderer. |
| 35 |
| 36 IPC_MESSAGE_CONTROL5(MIDIMsg_AccessApproved, |
| 37 int /* client id */, |
| 38 int /* access */, |
| 39 bool /* success */, |
| 40 media::MIDIPortInfoList /* input ports */, |
| 41 media::MIDIPortInfoList /* output ports */) |
| 42 |
| 43 IPC_MESSAGE_CONTROL3(MIDIMsg_DataReceived, |
| 44 int /* port */, |
| 45 std::vector<uint8> /* data */, |
| 46 double /* timestamp */) |
OLD | NEW |