OLD | NEW |
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 Loading... |
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 |
OLD | NEW |