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

Side by Side Diff: media/midi/usb_midi_descriptor_parser.cc

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
OLDNEW
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 #include "media/midi/usb_midi_descriptor_parser.h" 5 #include "media/midi/usb_midi_descriptor_parser.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 11
12 namespace media {
13 namespace midi { 12 namespace midi {
14 13
15 namespace { 14 namespace {
16 15
17 // The constants below are specified in USB spec, USB audio spec 16 // The constants below are specified in USB spec, USB audio spec
18 // and USB midi spec. 17 // and USB midi spec.
19 18
20 enum DescriptorType { 19 enum DescriptorType {
21 TYPE_DEVICE = 1, 20 TYPE_DEVICE = 1,
22 TYPE_CONFIGURATION = 2, 21 TYPE_CONFIGURATION = 2,
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 279 }
281 280
282 void UsbMidiDescriptorParser::Clear() { 281 void UsbMidiDescriptorParser::Clear() {
283 is_parsing_usb_midi_interface_ = false; 282 is_parsing_usb_midi_interface_ = false;
284 current_endpoint_address_ = 0; 283 current_endpoint_address_ = 0;
285 current_cable_number_ = 0; 284 current_cable_number_ = 0;
286 incomplete_jacks_.clear(); 285 incomplete_jacks_.clear();
287 } 286 }
288 287
289 } // namespace midi 288 } // namespace midi
290 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/usb_midi_descriptor_parser.h ('k') | media/midi/usb_midi_descriptor_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698