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

Unified Diff: core/streams/ReadableStream.idl

Issue 959933002: Move IDLs to 39 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 5 years, 10 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/page/PagePopupController.idl ('k') | core/svg/SVGAnimatedAngle.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/streams/ReadableStream.idl
diff --git a/core/streams/ReadableStream.idl b/core/streams/ReadableStream.idl
index 927fa94b9a9604b286a95cbc8edbee1d4f3eb020..9d299d2907b669b4dc263bbd49f300532d4108a3 100644
--- a/core/streams/ReadableStream.idl
+++ b/core/streams/ReadableStream.idl
@@ -2,8 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+enum ReadableStreamState {
+ "readable",
+ "waiting",
+ "closed",
+ "errored"
+};
+
[
RuntimeEnabled=Stream,
GarbageCollected
] interface ReadableStream {
+ [CallWith=ScriptState, RaisesException] any read();
+ [CallWith=ScriptState] Promise wait();
+ [ImplementedAs=stateString] readonly attribute ReadableStreamState state;
+
+ [CallWith=ScriptState] Promise cancel(any reason);
+
+ [CallWith=ScriptState] readonly attribute Promise closed;
};
« no previous file with comments | « core/page/PagePopupController.idl ('k') | core/svg/SVGAnimatedAngle.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698