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

Unified Diff: Source/core/dom/PromiseResolver.idl

Issue 16838012: [ABANDONED] Implement Promises. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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/core/dom/PromiseResolver.idl
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.idl b/Source/core/dom/PromiseResolver.idl
similarity index 88%
copy from Source/modules/webmidi/MIDIConnectionEvent.idl
copy to Source/core/dom/PromiseResolver.idl
index a9c745a2772afb04c1fb2083854cea7eac9dc082..e903f54bb94e1843c7ad5614596a2db0f2adcd7d 100644
--- a/Source/modules/webmidi/MIDIConnectionEvent.idl
+++ b/Source/core/dom/PromiseResolver.idl
@@ -29,8 +29,9 @@
*/
[
- EnabledAtRuntime=webMIDI,
- ConstructorTemplate=Event
-] interface MIDIConnectionEvent : Event {
- [InitializedByEventConstructor] readonly attribute MIDIPort port;
+ EnabledAtRuntime=promise
+] interface PromiseResolver {
+ [Custom] void fulfill(optional any value);
+ [Custom] void resolve(optional any value);
+ [Custom] void reject(optional any value);
};

Powered by Google App Engine
This is Rietveld 408576698