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

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
Index: Source/core/dom/Promise.idl
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.idl b/Source/core/dom/Promise.idl
similarity index 89%
copy from Source/modules/webmidi/MIDIConnectionEvent.idl
copy to Source/core/dom/Promise.idl
index a9c745a2772afb04c1fb2083854cea7eac9dc082..7523e0e88a2e040e1d491ccdc7a8749e1ea15057 100644
--- a/Source/modules/webmidi/MIDIConnectionEvent.idl
+++ b/Source/core/dom/Promise.idl
@@ -29,8 +29,10 @@
*/
[
- 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);
abarth-chromium 2013/06/17 18:05:06 These shouldn't need to be custom. We should teac
yhirano 2013/06/18 08:56:15 Will do in another CL.
};

Powered by Google App Engine
This is Rietveld 408576698