| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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 #ifndef MEDIA_MIDI_RESULT_H_ | |
| 6 #define MEDIA_MIDI_RESULT_H_ | |
| 7 | |
| 8 namespace midi { | |
| 9 | |
| 10 // Result codes for MIDI. | |
| 11 enum class Result { | |
| 12 NOT_INITIALIZED = 0, | |
| 13 OK, | |
| 14 NOT_SUPPORTED, | |
| 15 INITIALIZATION_ERROR, | |
| 16 // New code should be inserted here so that existing members keep the same | |
| 17 // assigned value. tools/metrics/histograms/histograms.xml contains Result | |
| 18 // enum entry, and it should be consistent with enum class Result. | |
| 19 | |
| 20 // |MAX| is used in content/common/media/midi_messages.h with | |
| 21 // IPC_ENUM_TRAITS_MAX_VALUE macro. Keep the value up to date. Otherwise | |
| 22 // a new value can not be passed to the renderer. | |
| 23 MAX = INITIALIZATION_ERROR, | |
| 24 }; | |
| 25 | |
| 26 } // namespace midi | |
| 27 | |
| 28 #endif // MEDIA_MIDI_RESULT_H_ | |
| OLD | NEW |