Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: content/common/media/midi_messages.h

Issue 2422163002: Web MIDI: use midi_service.mojom for media::midi::PortState (Closed)
Patch Set: gn --check fix Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // TODO(toyoshim): Mojofication is working in progress. Until the work is 8 // TODO(toyoshim): Mojofication is working in progress. Until the work is
9 // finished, this file temporarily depends on midi_service.mojom.h. 9 // finished, this file temporarily depends on midi_service.mojom.h.
10 // Once the migration is finished, this file will be removed. 10 // Once the migration is finished, this file will be removed.
11 // http://crbug.com/582327 11 // http://crbug.com/582327
12 12
13 #include <stdint.h> 13 #include <stdint.h>
14 14
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
17 #include "ipc/param_traits_macros.h" 17 #include "ipc/param_traits_macros.h"
18 #include "media/midi/midi_port_info.h" 18 #include "media/midi/midi_port_info.h"
19 #include "media/midi/midi_service.mojom.h" 19 #include "media/midi/midi_service.mojom.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 #undef IPC_MESSAGE_EXPORT 22 #undef IPC_MESSAGE_EXPORT
23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
24 #define IPC_MESSAGE_START MidiMsgStart 24 #define IPC_MESSAGE_START MidiMsgStart
25 25
26 IPC_ENUM_TRAITS_MAX_VALUE(midi::MidiPortState, 26 IPC_ENUM_TRAITS_MAX_VALUE(midi::mojom::PortState, midi::mojom::PortState::LAST)
27 midi::MIDI_PORT_STATE_LAST)
28 27
29 IPC_STRUCT_TRAITS_BEGIN(midi::MidiPortInfo) 28 IPC_STRUCT_TRAITS_BEGIN(midi::MidiPortInfo)
30 IPC_STRUCT_TRAITS_MEMBER(id) 29 IPC_STRUCT_TRAITS_MEMBER(id)
31 IPC_STRUCT_TRAITS_MEMBER(manufacturer) 30 IPC_STRUCT_TRAITS_MEMBER(manufacturer)
32 IPC_STRUCT_TRAITS_MEMBER(name) 31 IPC_STRUCT_TRAITS_MEMBER(name)
33 IPC_STRUCT_TRAITS_MEMBER(version) 32 IPC_STRUCT_TRAITS_MEMBER(version)
34 IPC_STRUCT_TRAITS_MEMBER(state) 33 IPC_STRUCT_TRAITS_MEMBER(state)
35 IPC_STRUCT_TRAITS_END() 34 IPC_STRUCT_TRAITS_END()
36 35
37 IPC_ENUM_TRAITS_MAX_VALUE(midi::mojom::Result, midi::mojom::Result::MAX) 36 IPC_ENUM_TRAITS_MAX_VALUE(midi::mojom::Result, midi::mojom::Result::MAX)
(...skipping 13 matching lines...) Expand all
51 // Messages sent from the browser to the renderer. 50 // Messages sent from the browser to the renderer.
52 51
53 IPC_MESSAGE_CONTROL1(MidiMsg_AddInputPort, 52 IPC_MESSAGE_CONTROL1(MidiMsg_AddInputPort,
54 midi::MidiPortInfo /* input port */) 53 midi::MidiPortInfo /* input port */)
55 54
56 IPC_MESSAGE_CONTROL1(MidiMsg_AddOutputPort, 55 IPC_MESSAGE_CONTROL1(MidiMsg_AddOutputPort,
57 midi::MidiPortInfo /* output port */) 56 midi::MidiPortInfo /* output port */)
58 57
59 IPC_MESSAGE_CONTROL2(MidiMsg_SetInputPortState, 58 IPC_MESSAGE_CONTROL2(MidiMsg_SetInputPortState,
60 uint32_t /* port */, 59 uint32_t /* port */,
61 midi::MidiPortState /* state */) 60 midi::mojom::PortState /* state */)
62 61
63 IPC_MESSAGE_CONTROL2(MidiMsg_SetOutputPortState, 62 IPC_MESSAGE_CONTROL2(MidiMsg_SetOutputPortState,
64 uint32_t /* port */, 63 uint32_t /* port */,
65 midi::MidiPortState /* state */) 64 midi::mojom::PortState /* state */)
66 65
67 IPC_MESSAGE_CONTROL1(MidiMsg_SessionStarted, midi::mojom::Result /* result */) 66 IPC_MESSAGE_CONTROL1(MidiMsg_SessionStarted, midi::mojom::Result /* result */)
68 67
69 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived, 68 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived,
70 uint32_t /* port */, 69 uint32_t /* port */,
71 std::vector<uint8_t> /* data */, 70 std::vector<uint8_t> /* data */,
72 double /* timestamp */) 71 double /* timestamp */)
73 72
74 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData, uint32_t /* bytes sent */) 73 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData, uint32_t /* bytes sent */)
OLDNEW
« no previous file with comments | « content/browser/media/midi_host_unittest.cc ('k') | content/renderer/media/midi_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698