Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: media/midi/result.h

Issue 2418493002: //media/midi: use top level namespace midi rather than media.midi (Closed)
Patch Set: TAG name change s/media_midi/midi/ Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/midi/midi_scheduler.cc ('k') | media/midi/usb_midi_descriptor_parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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_RESULT_H_ 5 #ifndef MEDIA_MIDI_RESULT_H_
6 #define MEDIA_MIDI_RESULT_H_ 6 #define MEDIA_MIDI_RESULT_H_
7 7
8 namespace media {
9 namespace midi { 8 namespace midi {
10 9
11 // Result codes for MIDI. 10 // Result codes for MIDI.
12 enum class Result { 11 enum class Result {
13 NOT_INITIALIZED = 0, 12 NOT_INITIALIZED = 0,
14 OK, 13 OK,
15 NOT_SUPPORTED, 14 NOT_SUPPORTED,
16 INITIALIZATION_ERROR, 15 INITIALIZATION_ERROR,
17 // New code should be inserted here so that existing members keep the same 16 // New code should be inserted here so that existing members keep the same
18 // assigned value. tools/metrics/histograms/histograms.xml contains Result 17 // assigned value. tools/metrics/histograms/histograms.xml contains Result
19 // enum entry, and it should be consistent with enum class Result. 18 // enum entry, and it should be consistent with enum class Result.
20 19
21 // |MAX| is used in content/common/media/midi_messages.h with 20 // |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 21 // IPC_ENUM_TRAITS_MAX_VALUE macro. Keep the value up to date. Otherwise
23 // a new value can not be passed to the renderer. 22 // a new value can not be passed to the renderer.
24 MAX = INITIALIZATION_ERROR, 23 MAX = INITIALIZATION_ERROR,
25 }; 24 };
26 25
27 } // namespace midi 26 } // namespace midi
28 } // namespace media
29 27
30 #endif // MEDIA_MIDI_RESULT_H_ 28 #endif // MEDIA_MIDI_RESULT_H_
OLDNEW
« no previous file with comments | « media/midi/midi_scheduler.cc ('k') | media/midi/usb_midi_descriptor_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698