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

Unified Diff: modules/encoding/TextDecoder.idl

Issue 23014006: Roll IDL to multivm@1350 (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 | « modules/crypto/SubtleCrypto.idl ('k') | modules/encoding/TextEncoder.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/encoding/TextDecoder.idl
diff --git a/core/dom/PromiseResolver.idl b/modules/encoding/TextDecoder.idl
similarity index 80%
copy from core/dom/PromiseResolver.idl
copy to modules/encoding/TextDecoder.idl
index f2c80b491a1189e5dc8cfe0d0e341791e65770c4..576d29807a0bc281223f178570a73f271b77c44b 100644
--- a/core/dom/PromiseResolver.idl
+++ b/modules/encoding/TextDecoder.idl
@@ -29,9 +29,11 @@
*/
[
- EnabledAtRuntime=promise
-] interface PromiseResolver {
- [Custom] void fulfill(optional any value);
- [Custom] void resolve(optional any value);
- [Custom] void reject(optional any value);
+ EnabledAtRuntime=EncodingAPI,
+ GlobalContext=Window&WorkerGlobalScope,
+ Constructor([Default=NullString] optional DOMString label, optional Dictionary options),
+ ConstructorRaisesException
+] interface TextDecoder {
+ readonly attribute DOMString encoding;
+ [RaisesException] DOMString decode(optional ArrayBufferView input, optional Dictionary options);
};
« no previous file with comments | « modules/crypto/SubtleCrypto.idl ('k') | modules/encoding/TextEncoder.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698