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

Unified Diff: third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h

Issue 2422163002: Web MIDI: use midi_service.mojom for media::midi::PortState (Closed)
Patch Set: gn --check fix Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIPort.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h
diff --git a/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h b/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h
index 868c4545f27da34a1355eb728c8c52d0bd7ba727..780c1ab3b2cf54fd2e00d6d6f54ecb26e9a2514d 100644
--- a/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h
+++ b/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h
@@ -38,27 +38,24 @@ namespace blink {
class WebMIDIAccessorClient {
public:
- enum MIDIPortState {
- MIDIPortStateDisconnected,
- MIDIPortStateConnected,
- };
-
// didAddInputPort() and didAddOutputPort() can be called before and after
// didStartSession() is called. But |id| should be unique in each function.
virtual void didAddInputPort(const WebString& id,
const WebString& manufacturer,
const WebString& name,
const WebString& version,
- MIDIPortState) = 0;
+ midi::mojom::PortState) = 0;
virtual void didAddOutputPort(const WebString& id,
const WebString& manufacturer,
const WebString& name,
const WebString& version,
- MIDIPortState) = 0;
+ midi::mojom::PortState) = 0;
// didSetInputPortState() and didSetOutputPortState() should not be called
// until didStartSession() is called.
- virtual void didSetInputPortState(unsigned portIndex, MIDIPortState) = 0;
- virtual void didSetOutputPortState(unsigned portIndex, MIDIPortState) = 0;
+ virtual void didSetInputPortState(unsigned portIndex,
+ midi::mojom::PortState) = 0;
+ virtual void didSetOutputPortState(unsigned portIndex,
+ midi::mojom::PortState) = 0;
virtual void didStartSession(midi::mojom::Result) = 0;
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIPort.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698