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

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: 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
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 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 #if !defined(OS_MACOSX) 14 #if !defined(OS_MACOSX) && !defined(OS_WIN)
15 // TODO(crogers): implement MIDIManager for other platforms. 15 // TODO(crogers): implement MIDIManager for other platforms.
16 MIDIManager* MIDIManager::Create() { 16 MIDIManager* MIDIManager::Create() {
17 return NULL; 17 return NULL;
18 } 18 }
19 #endif 19 #endif
20 20
21 MIDIManager::MIDIManager() 21 MIDIManager::MIDIManager()
22 : initialized_(false) { 22 : initialized_(false) {
23 } 23 }
24 24
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 send_message_loop_ = send_thread_->message_loop_proxy(); 78 send_message_loop_ = send_thread_->message_loop_proxy();
79 } 79 }
80 80
81 send_message_loop_->PostTask( 81 send_message_loop_->PostTask(
82 FROM_HERE, 82 FROM_HERE,
83 base::Bind(&MIDIManager::SendMIDIData, base::Unretained(this), 83 base::Bind(&MIDIManager::SendMIDIData, base::Unretained(this),
84 client, port_index, data, timestamp)); 84 client, port_index, data, timestamp));
85 } 85 }
86 86
87 } // namespace media 87 } // namespace media
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | media/midi/midi_manager_win.h » ('j') | media/midi/midi_manager_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698