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

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

Issue 2418493002: //media/midi: use top level namespace midi rather than media.midi (Closed)
Patch Set: one more rename to be consistent 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_input_stream.h" 5 #include "media/midi/usb_midi_input_stream.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "media/midi/usb_midi_device.h" 10 #include "media/midi/usb_midi_device.h"
11 11
12 namespace media {
13 namespace midi { 12 namespace midi {
14 13
15 UsbMidiInputStream::JackUniqueKey::JackUniqueKey(UsbMidiDevice* device, 14 UsbMidiInputStream::JackUniqueKey::JackUniqueKey(UsbMidiDevice* device,
16 int endpoint_number, 15 int endpoint_number,
17 int cable_number) 16 int cable_number)
18 : device(device), 17 : device(device),
19 endpoint_number(endpoint_number), 18 endpoint_number(endpoint_number),
20 cable_number(cable_number) {} 19 cable_number(cable_number) {}
21 20
22 bool UsbMidiInputStream::JackUniqueKey::operator==( 21 bool UsbMidiInputStream::JackUniqueKey::operator==(
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 81 }
83 std::map<JackUniqueKey, size_t>::const_iterator it = 82 std::map<JackUniqueKey, size_t>::const_iterator it =
84 jack_dictionary_.find(JackUniqueKey(device, 83 jack_dictionary_.find(JackUniqueKey(device,
85 endpoint_number, 84 endpoint_number,
86 cable_number)); 85 cable_number));
87 if (it != jack_dictionary_.end()) 86 if (it != jack_dictionary_.end())
88 delegate_->OnReceivedData(it->second, &packet[1], packet_size, time); 87 delegate_->OnReceivedData(it->second, &packet[1], packet_size, time);
89 } 88 }
90 89
91 } // namespace midi 90 } // namespace midi
92 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698