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

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

Issue 1276233005: [WebMIDI] Add "use-android-midi-api" flag for Android M+ devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_win.h" 5 #include "media/midi/midi_manager_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <ks.h> 8 #include <ks.h>
9 #include <ksmedia.h> 9 #include <ksmedia.h>
10 #include <mmreg.h> 10 #include <mmreg.h>
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 MidiPortState state) { 1169 MidiPortState state) {
1170 SetOutputPortState(port_index, state); 1170 SetOutputPortState(port_index, state);
1171 } 1171 }
1172 1172
1173 void MidiManagerWin::OnReceiveMidiData(uint32 port_index, 1173 void MidiManagerWin::OnReceiveMidiData(uint32 port_index,
1174 const std::vector<uint8>& data, 1174 const std::vector<uint8>& data,
1175 base::TimeTicks time) { 1175 base::TimeTicks time) {
1176 ReceiveMidiData(port_index, &data[0], data.size(), time); 1176 ReceiveMidiData(port_index, &data[0], data.size(), time);
1177 } 1177 }
1178 1178
1179 MidiManager* MidiManager::Create() { 1179 MidiManager* MidiManager::Create(const CreationOptions&) {
1180 return new MidiManagerWin(); 1180 return new MidiManagerWin();
1181 } 1181 }
1182 1182
1183 } // namespace midi 1183 } // namespace midi
1184 } // namespace media 1184 } // namespace media
OLDNEW
« media/midi/midi_manager_android.cc ('K') | « media/midi/midi_manager_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698