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

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

Issue 18325007: Web MIDI: introduce WebMIDIClient API to request a permission (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: (rebase) Created 7 years, 5 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: Source/modules/webmidi/MIDIAccess.h
diff --git a/Source/modules/webmidi/MIDIAccess.h b/Source/modules/webmidi/MIDIAccess.h
index 595afceabf03f5a2aa90ec187998a4bdfa0e3877..41fc4b697f4e2085c567a62102be5b2aa2cb25e0 100644
--- a/Source/modules/webmidi/MIDIAccess.h
+++ b/Source/modules/webmidi/MIDIAccess.h
@@ -61,6 +61,8 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect);
+ void enableSysEx(bool enable);
+
// EventTarget
virtual const AtomicString& interfaceName() const OVERRIDE { return eventNames().interfaceForMIDIAccess; }
virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE { return ActiveDOMObject::scriptExecutionContext(); }
@@ -79,6 +81,8 @@ public:
private:
explicit MIDIAccess(ScriptExecutionContext*, MIDIAccessPromise*);
+ void startRequest();
+
// EventTarget
virtual void refEventTarget() OVERRIDE { ref(); }
virtual void derefEventTarget() OVERRIDE { deref(); }
@@ -92,6 +96,8 @@ private:
OwnPtr<MIDIAccessor> m_accessor;
bool m_hasAccess;
+ bool m_enableSysEx;
+ bool m_requesting;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698