| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef MEDIA_MIDI_MIDI_RESULT_H_ | 5 #ifndef MEDIA_MIDI_MIDI_RESULT_H_ | 
| 6 #define MEDIA_MIDI_MIDI_RESULT_H_ | 6 #define MEDIA_MIDI_MIDI_RESULT_H_ | 
| 7 | 7 | 
| 8 namespace media { | 8 namespace media { | 
| 9 | 9 | 
| 10 // Result codes for MIDI. | 10 // Result codes for MIDI. | 
| 11 enum MidiResult { | 11 enum MidiResult { | 
| 12   MIDI_OK, | 12   MIDI_NOT_INITIALIZED = -1, | 
|  | 13   MIDI_OK = 0, | 
| 13   MIDI_NOT_SUPPORTED, | 14   MIDI_NOT_SUPPORTED, | 
| 14   MIDI_INITIALIZATION_ERROR, | 15   MIDI_INITIALIZATION_ERROR, | 
| 15 | 16 | 
| 16   // |MIDI_RESULT_LAST| is used in content/common/media/midi_messages.h with | 17   // |MIDI_RESULT_LAST| is used in content/common/media/midi_messages.h with | 
| 17   // 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 | 
| 18   // a new value can not be passed to the renderer. | 19   // a new value can not be passed to the renderer. | 
| 19   MIDI_RESULT_LAST = MIDI_INITIALIZATION_ERROR, | 20   MIDI_RESULT_LAST = MIDI_INITIALIZATION_ERROR, | 
| 20 }; | 21 }; | 
| 21 | 22 | 
| 22 }  // namespace media | 23 }  // namespace media | 
| 23 | 24 | 
| 24 #endif  // MEDIA_MIDI_MIDI_RESULT_H_ | 25 #endif  // MEDIA_MIDI_MIDI_RESULT_H_ | 
| OLD | NEW | 
|---|