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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.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/MIDIAccessInitializer.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h b/third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h
index 09a95e88f1bd5a4a1d2882f57d19f431fc8eacd6..6641e36a45210db7420ced73af09822d16c7e455 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccessInitializer.h
@@ -7,6 +7,7 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
+#include "media/midi/midi_service.mojom-blink.h"
#include "modules/ModulesExport.h"
#include "modules/webmidi/MIDIAccessor.h"
#include "modules/webmidi/MIDIAccessorClient.h"
@@ -31,14 +32,14 @@ class MODULES_EXPORT MIDIAccessInitializer : public ScriptPromiseResolver,
String name;
MIDIPort::TypeCode type;
String version;
- MIDIAccessor::MIDIPortState state;
+ midi::mojom::PortState state;
PortDescriptor(const String& id,
const String& manufacturer,
const String& name,
MIDIPort::TypeCode type,
const String& version,
- MIDIAccessor::MIDIPortState state)
+ midi::mojom::PortState state)
: id(id),
manufacturer(manufacturer),
name(name),
@@ -67,16 +68,16 @@ class MODULES_EXPORT MIDIAccessInitializer : public ScriptPromiseResolver,
const String& manufacturer,
const String& name,
const String& version,
- MIDIAccessor::MIDIPortState) override;
+ midi::mojom::PortState) override;
void didAddOutputPort(const String& id,
const String& manufacturer,
const String& name,
const String& version,
- MIDIAccessor::MIDIPortState) override;
+ midi::mojom::PortState) override;
void didSetInputPortState(unsigned portIndex,
- MIDIAccessor::MIDIPortState) override;
+ midi::mojom::PortState) override;
void didSetOutputPortState(unsigned portIndex,
- MIDIAccessor::MIDIPortState) override;
+ 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