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

Unified Diff: modules/websockets/WebSocket.idl

Issue 540533002: Roll IDL to Dartium37 (r181268) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 6 years, 3 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/webmidi/NavigatorWebMIDI.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/websockets/WebSocket.idl
diff --git a/modules/websockets/WebSocket.idl b/modules/websockets/WebSocket.idl
index a7a245c9077f6a942760aaf6b54f1fb2f875601d..eeb8cbdb10332751d4167e1309fc4707909a72c5 100644
--- a/modules/websockets/WebSocket.idl
+++ b/modules/websockets/WebSocket.idl
@@ -29,14 +29,22 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// http://dev.w3.org/html5/websockets/#websocket
+// http://www.whatwg.org/specs/web-apps/current-work/multipage/network.html#websocket
+
+// FIXME: use BinaryType in binaryType
+enum BinaryType { "blob", "arraybuffer" };
+
[
ActiveDOMObject,
+ // FIXME: should be optional union type http://crbug.com/240176
Constructor(DOMString url),
- Constructor(DOMString url, sequence<DOMString> protocols),
Constructor(DOMString url, DOMString protocol),
+ Constructor(DOMString url, sequence<DOMString> protocols),
ConstructorCallWith=ExecutionContext,
- GlobalContext=Window&WorkerGlobalScope,
+ Exposed=Window&Worker,
RaisesException=Constructor,
+ WillBeGarbageCollected,
] interface WebSocket : EventTarget {
[MeasureAs=WebSocketURL] readonly attribute DOMString URL; // Lowercased .url is the one in the spec, but leaving .URL for compatibility reasons.
readonly attribute DOMString url;
@@ -47,24 +55,21 @@
const unsigned short CLOSING = 2;
const unsigned short CLOSED = 3;
readonly attribute unsigned short readyState;
-
readonly attribute unsigned long bufferedAmount;
// networking
- attribute EventHandler onopen;
- attribute EventHandler onmessage;
- attribute EventHandler onerror;
- attribute EventHandler onclose;
-
- [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString protocol;
+ attribute EventHandler onopen;
+ attribute EventHandler onerror;
+ attribute EventHandler onclose;
[TreatReturnedNullStringAs=Undefined] readonly attribute DOMString extensions;
+ [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString protocol;
+ [RaisesException] void close([Clamp] optional unsigned short code, optional DOMString reason);
- attribute DOMString binaryType;
-
+ // messaging
+ attribute EventHandler onmessage;
+ attribute DOMString binaryType;
+ [RaisesException] void send(DOMString data);
+ [RaisesException] void send(Blob data);
[RaisesException] void send(ArrayBuffer data);
[RaisesException] void send(ArrayBufferView data);
- [RaisesException] void send(Blob data);
- [RaisesException] void send(DOMString data);
-
- [RaisesException] void close([Clamp] optional unsigned short code, optional DOMString reason);
};
« no previous file with comments | « modules/webmidi/NavigatorWebMIDI.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698