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

Side by Side Diff: media/midi/midi_service.mojom

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
« no previous file with comments | « media/midi/midi_port_info.cc ('k') | third_party/WebKit/Source/modules/webmidi/BUILD.gn » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module midi.mojom; 5 module midi.mojom;
6 6
7 enum Result { 7 enum Result {
8 NOT_INITIALIZED, 8 NOT_INITIALIZED,
9 OK, 9 OK,
10 NOT_SUPPORTED, 10 NOT_SUPPORTED,
11 INITIALIZATION_ERROR, 11 INITIALIZATION_ERROR,
12 12
13 // New code should be inserted here so that existing members keep the same 13 // New code should be inserted here so that existing members keep the same
14 // assigned value. //tools/metrics/histograms/histograms.xml contains a enum 14 // assigned value. //tools/metrics/histograms/histograms.xml contains a enum
15 // entry that should be consistent with enum Result. 15 // entry that should be consistent with enum Result.
16 16
17 // |MAX| is used in content/common/media/midi_messages.h with 17 // |MAX| is used in content/common/media/midi_messages.h with
18 // IPC_ENUM_TRAITS_MAX_VALUE macro. Keep the value up to date. Otherwise 18 // IPC_ENUM_TRAITS_MAX_VALUE macro. Keep the value up to date. Otherwise
19 // a new value can not be passed to the renderer. 19 // a new value can not be passed to the renderer.
20 // TODO(toyoshim): Remove |MAX| once IPC is replaced with Mojo. 20 // TODO(toyoshim): Remove |MAX| once IPC is replaced with Mojo.
21 // http://crbug.com/582327 21 // http://crbug.com/582327
22 MAX = INITIALIZATION_ERROR, 22 MAX = INITIALIZATION_ERROR,
23 }; 23 };
24 24
25 // TODO(toyoshim): MidiPortState, MidiPortInfo, and MidiService should be 25 enum PortState {
26 DISCONNECTED,
27 CONNECTED,
28 OPENED,
29 // TODO(toyosim): Remove |LAST| once IPC is replaced with Mojo.
30 // http://crbug.com/582327
31 LAST = OPENED,
32 };
33
34 // TODO(toyoshim): MidiPortInfo, and MidiService should be
26 // declared here. 35 // declared here.
27 // http://crbug.com/582327 36 // http://crbug.com/582327
OLDNEW
« no previous file with comments | « media/midi/midi_port_info.cc ('k') | third_party/WebKit/Source/modules/webmidi/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698