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

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

Issue 1086073004: Web MIDI: namespace change from media to media::midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@null
Patch Set: (rebase) Created 5 years, 7 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
« no previous file with comments | « media/midi/midi_manager_usb_unittest.cc ('k') | media/midi/midi_manager_win.cc » ('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 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 #ifndef MEDIA_MIDI_MIDI_MANAGER_WIN_H_ 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_WIN_H_
6 #define MEDIA_MIDI_MIDI_MANAGER_WIN_H_ 6 #define MEDIA_MIDI_MIDI_MANAGER_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "media/midi/midi_manager.h" 14 #include "media/midi/midi_manager.h"
15 15
16 namespace media { 16 namespace media {
17 namespace midi {
17 18
18 class MidiServiceWinDelegate { 19 class MidiServiceWinDelegate {
19 public: 20 public:
20 virtual ~MidiServiceWinDelegate() {} 21 virtual ~MidiServiceWinDelegate() {}
21 virtual void OnCompleteInitialization(MidiResult result) = 0; 22 virtual void OnCompleteInitialization(MidiResult result) = 0;
22 virtual void OnAddInputPort(MidiPortInfo info) = 0; 23 virtual void OnAddInputPort(MidiPortInfo info) = 0;
23 virtual void OnAddOutputPort(MidiPortInfo info) = 0; 24 virtual void OnAddOutputPort(MidiPortInfo info) = 0;
24 virtual void OnSetInputPortState(uint32 port_index, MidiPortState state) = 0; 25 virtual void OnSetInputPortState(uint32 port_index, MidiPortState state) = 0;
25 virtual void OnSetOutputPortState(uint32 port_index, MidiPortState state) = 0; 26 virtual void OnSetOutputPortState(uint32 port_index, MidiPortState state) = 0;
26 virtual void OnReceiveMidiData(uint32 port_index, 27 virtual void OnReceiveMidiData(uint32 port_index,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void OnSetOutputPortState(uint32 port_index, MidiPortState state) final; 60 void OnSetOutputPortState(uint32 port_index, MidiPortState state) final;
60 void OnReceiveMidiData(uint32 port_index, 61 void OnReceiveMidiData(uint32 port_index,
61 const std::vector<uint8>& data, 62 const std::vector<uint8>& data,
62 base::TimeTicks time) final; 63 base::TimeTicks time) final;
63 64
64 private: 65 private:
65 scoped_ptr<MidiServiceWin> midi_service_; 66 scoped_ptr<MidiServiceWin> midi_service_;
66 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin); 67 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin);
67 }; 68 };
68 69
70 } // namespace midi
69 } // namespace media 71 } // namespace media
70 72
71 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_ 73 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « media/midi/midi_manager_usb_unittest.cc ('k') | media/midi/midi_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698