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

Unified Diff: Source/modules/webmidi/MIDIInput.h

Issue 1051903002: Web MIDI: implement implicit open() on send() and setOnmidimessage() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: kouhei review Created 5 years, 9 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 | « LayoutTests/webmidi/state-check-utils.js ('k') | Source/modules/webmidi/MIDIInput.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIInput.h
diff --git a/Source/modules/webmidi/MIDIInput.h b/Source/modules/webmidi/MIDIInput.h
index 635f4cb0368180d585a6fc7a264862f66d5fe60a..83e38cebbcd7f9a471fc892379d96ecdcd5c09a8 100644
--- a/Source/modules/webmidi/MIDIInput.h
+++ b/Source/modules/webmidi/MIDIInput.h
@@ -45,7 +45,8 @@ public:
static MIDIInput* create(MIDIAccess*, const String& id, const String& manufacturer, const String& name, const String& version, MIDIAccessor::MIDIPortState);
virtual ~MIDIInput() { }
- DEFINE_ATTRIBUTE_EVENT_LISTENER(midimessage);
+ EventListener* onmidimessage();
+ void setOnmidimessage(PassRefPtr<EventListener>);
// EventTarget
virtual const AtomicString& interfaceName() const override { return EventTargetNames::MIDIInput; }
« no previous file with comments | « LayoutTests/webmidi/state-check-utils.js ('k') | Source/modules/webmidi/MIDIInput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698