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

Unified Diff: core/dom/Promise.idl

Issue 22498002: Roll IDL to multivm@1329 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 4 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 | « core/dom/ProgressEvent.idl ('k') | core/dom/PromiseResolver.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/dom/Promise.idl
diff --git a/core/dom/Promise.idl b/core/dom/Promise.idl
index 893b8eefcf88606ebbdc2d59962a106e074795a6..fe9edf0d8b8f7ea4bd22d1a4f3c28f2e07ef5342 100644
--- a/core/dom/Promise.idl
+++ b/core/dom/Promise.idl
@@ -28,8 +28,20 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+callback PromiseInit = void (PromiseResolver resolver);
+callback AnyCallback = any (optional any value);
[
- CustomConstructor(any init),
+ CustomConstructor(PromiseInit init),
EnabledAtRuntime=promise
] interface Promise {
+ [Custom] Promise then(optional AnyCallback fulfillCallback, optional AnyCallback rejectCallback);
+ [Custom] Promise catch(optional AnyCallback rejectCallback);
+
+ [Custom] static Promise fulfill(any value);
+ [Custom] static Promise resolve(any value);
+ [Custom] static Promise reject(any value);
+
+ [Custom] static Promise _any(any... values);
+ [Custom] static Promise every(any... values);
+ [Custom] static Promise some(any... values);
};
« no previous file with comments | « core/dom/ProgressEvent.idl ('k') | core/dom/PromiseResolver.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698