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 // Renderer request to browser for access to MIDI services. |
| 18 IPC_MESSAGE_CONTROL2(MIDIHostMsg_RequestAccess, |
| 19 int /* client id */, |
| 20 int /* access */) |
| 21 |
| 22 IPC_MESSAGE_CONTROL3(MIDIHostMsg_SendData, |
| 23 int /* port */, |
| 24 std::vector<uint8> /* data */, |
| 25 double /* timestamp */) |
| 26 |
| 27 // Messages sent from the browser to the renderer. |
| 28 |
| 29 IPC_MESSAGE_CONTROL5(MIDIMsg_AccessApproved, |
| 30 int /* client id */, |
| 31 int /* access */, |
| 32 bool /* success */, |
| 33 media::MIDIPortInfoList /* input ports */, |
| 34 media::MIDIPortInfoList /* output ports */) |
| 35 |
| 36 IPC_MESSAGE_CONTROL3(MIDIMsg_DataReceived, |
| 37 int /* port */, |
| 38 std::vector<uint8> /* data */, |
| 39 double /* timestamp */) |
OLD | NEW |