Chromium Code Reviews| Index: media/midi/result.h |
| diff --git a/media/midi/result.h b/media/midi/result.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ba4b3feeaf768ea8cf7e277249bb7dbba2619aa1 |
| --- /dev/null |
| +++ b/media/midi/result.h |
| @@ -0,0 +1,30 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_MIDI_RESULT_H_ |
| +#define MEDIA_MIDI_RESULT_H_ |
| + |
| +namespace media { |
| +namespace midi { |
| + |
| +// Result codes for MIDI. |
| +enum class Result { |
| + NOT_INITIALIZED = 0, |
| + OK, |
| + NOT_SUPPORTED, |
| + INITIALIZATION_ERROR, |
| + // New code should be inserted here so that existing members keep the same |
| + // 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.
|
| + // enum entry, and it should be consistent with enum class Result. |
| + |
| + // |MAX| is used in content/common/media/midi_messages.h with |
| + // IPC_ENUM_TRAITS_MAX_VALUE macro. Keep the value up to date. Otherwise |
| + // a new value can not be passed to the renderer. |
| + MAX = INITIALIZATION_ERROR, |
| +}; |
| + |
| +} // namespace midi |
| +} // namespace media |
| + |
| +#endif // MEDIA_MIDI_RESULT_H_ |