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

Side by Side Diff: media/midi/midi_port_info.cc

Issue 2422163002: Web MIDI: use midi_service.mojom for media::midi::PortState (Closed)
Patch Set: gn --check fix Created 4 years, 1 month 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
« no previous file with comments | « media/midi/midi_port_info.h ('k') | media/midi/midi_service.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "media/midi/midi_port_info.h" 5 #include "media/midi/midi_port_info.h"
6 6
7 namespace midi { 7 namespace midi {
8 8
9 using mojom::PortState;
10
9 MidiPortInfo::MidiPortInfo() {} 11 MidiPortInfo::MidiPortInfo() {}
10 12
11 MidiPortInfo::MidiPortInfo(const std::string& in_id, 13 MidiPortInfo::MidiPortInfo(const std::string& in_id,
12 const std::string& in_manufacturer, 14 const std::string& in_manufacturer,
13 const std::string& in_name, 15 const std::string& in_name,
14 const std::string& in_version, 16 const std::string& in_version,
15 MidiPortState in_state) 17 PortState in_state)
16 : id(in_id), 18 : id(in_id),
17 manufacturer(in_manufacturer), 19 manufacturer(in_manufacturer),
18 name(in_name), 20 name(in_name),
19 version(in_version), 21 version(in_version),
20 state(in_state) {} 22 state(in_state) {}
21 23
22 MidiPortInfo::~MidiPortInfo() {} 24 MidiPortInfo::~MidiPortInfo() {}
23 25
24 MidiPortInfo::MidiPortInfo(const MidiPortInfo& info) 26 MidiPortInfo::MidiPortInfo(const MidiPortInfo& info)
25 : id(info.id), 27 : id(info.id),
26 manufacturer(info.manufacturer), 28 manufacturer(info.manufacturer),
27 name(info.name), 29 name(info.name),
28 version(info.version), 30 version(info.version),
29 state(info.state) {} 31 state(info.state) {}
30 32
31 } // namespace midi 33 } // namespace midi
OLDNEW
« no previous file with comments | « media/midi/midi_port_info.h ('k') | media/midi/midi_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698