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

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

Issue 1053203006: Web MIDI: style clean up (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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_mac.h ('k') | media/midi/midi_port_info.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 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"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 virtual ~MidiServiceWin() {} 33 virtual ~MidiServiceWin() {}
34 // This method may return before the initialization is completed. 34 // This method may return before the initialization is completed.
35 virtual void InitializeAsync(MidiServiceWinDelegate* delegate) = 0; 35 virtual void InitializeAsync(MidiServiceWinDelegate* delegate) = 0;
36 // This method may return before the specified data is actually sent. 36 // This method may return before the specified data is actually sent.
37 virtual void SendMidiDataAsync(uint32 port_number, 37 virtual void SendMidiDataAsync(uint32 port_number,
38 const std::vector<uint8>& data, 38 const std::vector<uint8>& data,
39 base::TimeTicks time) = 0; 39 base::TimeTicks time) = 0;
40 }; 40 };
41 41
42 class MidiManagerWin : public MidiManager, public MidiServiceWinDelegate { 42 class MidiManagerWin final : public MidiManager, public MidiServiceWinDelegate {
43 public: 43 public:
44 MidiManagerWin() {} 44 MidiManagerWin() {}
45 virtual ~MidiManagerWin() { midi_service_.reset(); } 45 virtual ~MidiManagerWin() { midi_service_.reset(); }
46 46
47 // MidiManager overrides: 47 // MidiManager overrides:
48 void StartInitialization() final; 48 void StartInitialization() final;
49 void DispatchSendMidiData(MidiManagerClient* client, 49 void DispatchSendMidiData(MidiManagerClient* client,
50 uint32 port_index, 50 uint32 port_index,
51 const std::vector<uint8>& data, 51 const std::vector<uint8>& data,
52 double timestamp) final; 52 double timestamp) final;
(...skipping 17 matching lines...) Expand all
70 } 70 }
71 71
72 private: 72 private:
73 scoped_ptr<MidiServiceWin> midi_service_; 73 scoped_ptr<MidiServiceWin> midi_service_;
74 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin); 74 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin);
75 }; 75 };
76 76
77 } // namespace media 77 } // namespace media
78 78
79 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_ 79 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « media/midi/midi_manager_mac.h ('k') | media/midi/midi_port_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698