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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.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
Index: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.h b/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.h
index c23ff5ad31f29eae8acf68a272e2d886be1909d4..5fa679a0b24b213f0548cc2e5be7720c7e7416a0 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.h
@@ -31,6 +31,7 @@
#ifndef MIDIAccessor_h
#define MIDIAccessor_h
+#include "media/midi/midi_service.mojom-blink.h"
#include "public/platform/modules/webmidi/WebMIDIAccessor.h"
#include "public/platform/modules/webmidi/WebMIDIAccessorClient.h"
#include "wtf/Allocator.h"
@@ -63,14 +64,16 @@ class MIDIAccessor final : public WebMIDIAccessorClient {
const WebString& manufacturer,
const WebString& name,
const WebString& version,
- MIDIPortState) override;
+ midi::mojom::PortState) override;
void didAddOutputPort(const WebString& id,
const WebString& manufacturer,
const WebString& name,
const WebString& version,
- MIDIPortState) override;
- void didSetInputPortState(unsigned portIndex, MIDIPortState) override;
- void didSetOutputPortState(unsigned portIndex, MIDIPortState) override;
+ midi::mojom::PortState) override;
+ void didSetInputPortState(unsigned portIndex,
+ midi::mojom::PortState) override;
+ void didSetOutputPortState(unsigned portIndex,
+ midi::mojom::PortState) override;
void didStartSession(midi::mojom::Result) override;
void didReceiveMIDIData(unsigned portIndex,
const unsigned char* data,

Powered by Google App Engine
This is Rietveld 408576698