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

Side by Side Diff: content/browser/media/midi_host.h

Issue 662233002: Web MIDI: make MidiManagerMac notify device connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + cleanup Created 6 years, 2 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 | « no previous file | content/browser/media/midi_host.cc » ('j') | media/midi/midi_manager_alsa.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_MIDI_HOST_H_
6 #define CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ 6 #define CONTENT_BROWSER_MEDIA_MIDI_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 21 matching lines...) Expand all
32 MidiHost(int renderer_process_id, media::MidiManager* midi_manager); 32 MidiHost(int renderer_process_id, media::MidiManager* midi_manager);
33 33
34 // BrowserMessageFilter implementation. 34 // BrowserMessageFilter implementation.
35 void OnDestruct() const override; 35 void OnDestruct() const override;
36 bool OnMessageReceived(const IPC::Message& message) override; 36 bool OnMessageReceived(const IPC::Message& message) override;
37 37
38 // MidiManagerClient implementation. 38 // MidiManagerClient implementation.
39 void CompleteStartSession(media::MidiResult result) override; 39 void CompleteStartSession(media::MidiResult result) override;
40 void AddInputPort(const media::MidiPortInfo& info) override; 40 void AddInputPort(const media::MidiPortInfo& info) override;
41 void AddOutputPort(const media::MidiPortInfo& info) override; 41 void AddOutputPort(const media::MidiPortInfo& info) override;
42 void SetInputPortState(uint32 port, bool connected) override;
43 void SetOutputPortState(uint32 port, bool connected) override;
42 void ReceiveMidiData(uint32 port, 44 void ReceiveMidiData(uint32 port,
43 const uint8* data, 45 const uint8* data,
44 size_t length, 46 size_t length,
45 double timestamp) override; 47 double timestamp) override;
46 void AccumulateMidiBytesSent(size_t n) override; 48 void AccumulateMidiBytesSent(size_t n) override;
47 49
48 // Start session to access MIDI hardware. 50 // Start session to access MIDI hardware.
49 void OnStartSession(); 51 void OnStartSession();
50 52
51 // Data to be sent to a MIDI output port. 53 // Data to be sent to a MIDI output port.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 103
102 // Protects access to |sent_bytes_in_flight_|. 104 // Protects access to |sent_bytes_in_flight_|.
103 base::Lock in_flight_lock_; 105 base::Lock in_flight_lock_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(MidiHost); 107 DISALLOW_COPY_AND_ASSIGN(MidiHost);
106 }; 108 };
107 109
108 } // namespace content 110 } // namespace content
109 111
110 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ 112 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/midi_host.cc » ('j') | media/midi/midi_manager_alsa.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698