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

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

Issue 29793006: Enable WebMIDI for Windows behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Leave a TODO comment crbug.com/325810. Created 7 years 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/media.gyp ('k') | media/midi/midi_manager_win.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/midi_manager.h" 5 #include "media/midi/midi_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 #if !defined(OS_MACOSX) 12 #if !defined(OS_MACOSX) && !defined(OS_WIN)
13 // TODO(crogers): implement MIDIManager for other platforms. 13 // TODO(crogers): implement MIDIManager for other platforms.
14 MIDIManager* MIDIManager::Create() { 14 MIDIManager* MIDIManager::Create() {
15 return NULL; 15 return NULL;
16 } 16 }
17 #endif 17 #endif
18 18
19 MIDIManager::MIDIManager() 19 MIDIManager::MIDIManager()
20 : initialized_(false) { 20 : initialized_(false) {
21 } 21 }
22 22
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const uint8* data, 56 const uint8* data,
57 size_t length, 57 size_t length,
58 double timestamp) { 58 double timestamp) {
59 base::AutoLock auto_lock(clients_lock_); 59 base::AutoLock auto_lock(clients_lock_);
60 60
61 for (ClientList::iterator i = clients_.begin(); i != clients_.end(); ++i) 61 for (ClientList::iterator i = clients_.begin(); i != clients_.end(); ++i)
62 (*i)->ReceiveMIDIData(port_index, data, length, timestamp); 62 (*i)->ReceiveMIDIData(port_index, data, length, timestamp);
63 } 63 }
64 64
65 } // namespace media 65 } // namespace media
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | media/midi/midi_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698