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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccess.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/MIDIAccess.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
index a8319f85532c70ff122d427f482cb47a85b5257e..32b81a71edafc6f891d45b059417f600c03d5755 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.h
@@ -34,6 +34,7 @@
#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "bindings/core/v8/ScriptPromise.h"
#include "core/dom/ActiveDOMObject.h"
+#include "media/midi/midi_service.mojom-blink.h"
#include "modules/EventTargetModules.h"
#include "modules/webmidi/MIDIAccessInitializer.h"
#include "modules/webmidi/MIDIAccessor.h"
@@ -98,16 +99,16 @@ class MIDIAccess final : public EventTargetWithInlineData,
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 {
// This method is for MIDIAccess initialization: MIDIAccessInitializer
// has the implementation.
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/DEPS ('k') | third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698