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

Unified Diff: core/dom/Promise.idl

Issue 37053003: Roll IDL to multivm@1467 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 2 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/Notation.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 d2fa8643a6278ac43961d2ac3e1f601e8aa02612..f7fb7ba61cf55e18d541d10587feba6185aebeb0 100644
--- a/core/dom/Promise.idl
+++ b/core/dom/Promise.idl
@@ -28,24 +28,19 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// FIXME: |PromiseValue| should be changed to |Promise|. http://crbug.com/266700
-// IDLs using |Promise| should be written with "typedef any PromiseValue;" and |PromiseValue|.
-
-callback PromiseInit = void (PromiseResolver resolver);
+callback PromiseInit = void (any resolve, any reject);
callback AnyCallback = any (optional any value);
[
GlobalContext=Window&WorkerGlobalScope,
CustomConstructor(PromiseInit init),
- EnabledAtRuntime=promise
+ 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/Notation.idl ('k') | core/dom/PromiseResolver.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698