Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
yhirano
2015/07/07 07:05:21
2015
Takashi Toyoshima
2015/07/09 05:02:54
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_MIDI_RESULT_H_ | |
| 6 #define MEDIA_MIDI_RESULT_H_ | |
| 7 | |
| 8 namespace media { | |
| 9 namespace midi { | |
| 10 | |
| 11 // Result codes for MIDI. | |
| 12 enum class Result { | |
| 13 NOT_INITIALIZED = 0, | |
| 14 OK, | |
| 15 NOT_SUPPORTED, | |
| 16 INITIALIZATION_ERROR, | |
| 17 // New code should be inserted here so that existing members keep the same | |
| 18 // assigned value. tools/metrics/histograms/histograms.xml contains MidiResult | |
|
yhirano
2015/07/07 07:05:21
s/MidiResult/Result
Takashi Toyoshima
2015/07/09 05:02:54
Done.
| |
| 19 // enum entry, and it should be consistent with enum class Result. | |
| 20 | |
| 21 // |MAX| is used in content/common/media/midi_messages.h with | |
| 22 // IPC_ENUM_TRAITS_MAX_VALUE macro. Keep the value up to date. Otherwise | |
| 23 // a new value can not be passed to the renderer. | |
| 24 MAX = INITIALIZATION_ERROR, | |
| 25 }; | |
| 26 | |
| 27 } // namespace midi | |
| 28 } // namespace media | |
| 29 | |
| 30 #endif // MEDIA_MIDI_RESULT_H_ | |
| OLD | NEW |