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

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

Issue 17035004: [ABANDONED] Introduce Promise example implementation written in JavaScript. (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
« no previous file with comments | « Source/core/dom/Promise.h ('k') | Source/core/dom/Promise.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Promise.idl
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.idl b/Source/core/dom/Promise.idl
similarity index 87%
copy from Source/modules/webmidi/MIDIConnectionEvent.idl
copy to Source/core/dom/Promise.idl
index a9c745a2772afb04c1fb2083854cea7eac9dc082..4b3b1b0d2b5cb075ed800e4db9adaa7fff366f63 100644
--- a/Source/modules/webmidi/MIDIConnectionEvent.idl
+++ b/Source/core/dom/Promise.idl
@@ -29,8 +29,11 @@
*/
[
- EnabledAtRuntime=webMIDI,
- ConstructorTemplate=Event
-] interface MIDIConnectionEvent : Event {
- [InitializedByEventConstructor] readonly attribute MIDIPort port;
+ CustomConstructor(any init),
+ EnabledAtRuntime=promise
+] interface Promise {
+ // Example methods
+ [Custom] any get(any value);
+ [Custom] static any getStatic(any value);
+ [Custom] static any concat(any a, any b);
};
« no previous file with comments | « Source/core/dom/Promise.h ('k') | Source/core/dom/Promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698