GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / content / common / media / midi_messages.h
blob6147c8ae49f2ded19839e73ce310f5445a9c0886
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.
5 // IPC messages for access to MIDI hardware.
6 // Multiply-included message file, hence no include guard.
8 #include "base/basictypes.h"
9 #include "content/common/content_export.h"
10 #include "ipc/ipc_message_macros.h"
11 #include "ipc/param_traits_macros.h"
12 #include "media/midi/midi_port_info.h"
13 #include "media/midi/midi_result.h"
14 #include "url/gurl.h"
16 #undef IPC_MESSAGE_EXPORT
17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
18 #define IPC_MESSAGE_START MidiMsgStart
20 IPC_ENUM_TRAITS_MAX_VALUE(media::MidiPortState,
21 media::MIDI_PORT_STATE_LAST)
23 IPC_STRUCT_TRAITS_BEGIN(media::MidiPortInfo)
24 IPC_STRUCT_TRAITS_MEMBER(id)
25 IPC_STRUCT_TRAITS_MEMBER(manufacturer)
26 IPC_STRUCT_TRAITS_MEMBER(name)
27 IPC_STRUCT_TRAITS_MEMBER(version)
28 IPC_STRUCT_TRAITS_MEMBER(state)
29 IPC_STRUCT_TRAITS_END()
31 IPC_ENUM_TRAITS_MAX_VALUE(media::MidiResult, media::MIDI_RESULT_LAST)
33 // Messages for IPC between MidiMessageFilter and MidiHost.
35 // Renderer request to browser for access to MIDI services.
36 IPC_MESSAGE_CONTROL0(MidiHostMsg_StartSession)
38 IPC_MESSAGE_CONTROL3(MidiHostMsg_SendData,
39 uint32 /* port */,
40 std::vector<uint8> /* data */,
41 double /* timestamp */)
43 IPC_MESSAGE_CONTROL0(MidiHostMsg_EndSession)
45 // Messages sent from the browser to the renderer.
47 IPC_MESSAGE_CONTROL1(MidiMsg_AddInputPort,
48 media::MidiPortInfo /* input port */)
50 IPC_MESSAGE_CONTROL1(MidiMsg_AddOutputPort,
51 media::MidiPortInfo /* output port */)
53 IPC_MESSAGE_CONTROL2(MidiMsg_SetInputPortState,
54 uint32 /* port */,
55 media::MidiPortState /* state */)
57 IPC_MESSAGE_CONTROL2(MidiMsg_SetOutputPortState,
58 uint32 /* port */,
59 media::MidiPortState /* state */)
61 IPC_MESSAGE_CONTROL1(MidiMsg_SessionStarted,
62 media::MidiResult /* result */)
64 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived,
65 uint32 /* port */,
66 std::vector<uint8> /* data */,
67 double /* timestamp */)
69 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData,
70 uint32 /* bytes sent */)