Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module media.midi; | |
|
Reilly Grant (use Gerrit)
2016/10/11 17:57:57
Convention is to put mojo definitions into a names
Takashi Toyoshima
2016/10/12 05:01:44
Thanks. So, probably midi.mojom looks better rathe
| |
| 6 | |
| 7 enum Result { | |
| 8 NOT_INITIALIZED, | |
| 9 OK, | |
| 10 NOT_SUPPORTED, | |
| 11 INITIALIZATION_ERROR, | |
| 12 | |
| 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 | |
| 15 // entry that should be consistent with enum Result. | |
| 16 | |
| 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 | |
| 19 // a new value can not be passed to the renderer. | |
| 20 // TODO(toyoshim): Remove |MAX| once IPC is replaced with Mojo. | |
| 21 // http://crbug.com/582327 | |
| 22 MAX = INITIALIZATION_ERROR, | |
| 23 }; | |
| 24 | |
| 25 // TODO(toyoshim): MidiPortState, MidiPortInfo, and MidiService should be | |
| 26 // declared here. | |
| 27 // http://crbug.com/582327 | |
| OLD | NEW |