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

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

Issue 2422163002: Web MIDI: use midi_service.mojom for media::midi::PortState (Closed)
Patch Set: gn --check fix Created 4 years, 1 month 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 | « components/test_runner/mock_web_midi_accessor.cc ('k') | content/browser/media/midi_host.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 (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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // BrowserMessageFilter implementation. 39 // BrowserMessageFilter implementation.
40 void OnChannelClosing() override; 40 void OnChannelClosing() override;
41 void OnDestruct() const override; 41 void OnDestruct() const override;
42 bool OnMessageReceived(const IPC::Message& message) override; 42 bool OnMessageReceived(const IPC::Message& message) override;
43 43
44 // MidiManagerClient implementation. 44 // MidiManagerClient implementation.
45 void CompleteStartSession(midi::mojom::Result result) override; 45 void CompleteStartSession(midi::mojom::Result result) override;
46 void AddInputPort(const midi::MidiPortInfo& info) override; 46 void AddInputPort(const midi::MidiPortInfo& info) override;
47 void AddOutputPort(const midi::MidiPortInfo& info) override; 47 void AddOutputPort(const midi::MidiPortInfo& info) override;
48 void SetInputPortState(uint32_t port, 48 void SetInputPortState(uint32_t port, midi::mojom::PortState state) override;
49 midi::MidiPortState state) override; 49 void SetOutputPortState(uint32_t port, midi::mojom::PortState state) override;
50 void SetOutputPortState(uint32_t port,
51 midi::MidiPortState state) override;
52 void ReceiveMidiData(uint32_t port, 50 void ReceiveMidiData(uint32_t port,
53 const uint8_t* data, 51 const uint8_t* data,
54 size_t length, 52 size_t length,
55 double timestamp) override; 53 double timestamp) override;
56 void AccumulateMidiBytesSent(size_t n) override; 54 void AccumulateMidiBytesSent(size_t n) override;
57 void Detach() override; 55 void Detach() override;
58 56
59 // Start session to access MIDI hardware. 57 // Start session to access MIDI hardware.
60 void OnStartSession(); 58 void OnStartSession();
61 59
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 109
112 // Protects access to |output_port_count_|. 110 // Protects access to |output_port_count_|.
113 base::Lock output_port_count_lock_; 111 base::Lock output_port_count_lock_;
114 112
115 DISALLOW_COPY_AND_ASSIGN(MidiHost); 113 DISALLOW_COPY_AND_ASSIGN(MidiHost);
116 }; 114 };
117 115
118 } // namespace content 116 } // namespace content
119 117
120 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_ 118 #endif // CONTENT_BROWSER_MEDIA_MIDI_HOST_H_
OLDNEW
« no previous file with comments | « components/test_runner/mock_web_midi_accessor.cc ('k') | content/browser/media/midi_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698