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

Unified Diff: client/html/generated/html/interface/WebSocket.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: client/html/generated/html/interface/WebSocket.dart
diff --git a/client/html/generated/html/interface/WebSocket.dart b/client/html/generated/html/interface/WebSocket.dart
new file mode 100644
index 0000000000000000000000000000000000000000..99a952ed28c9de00184763a600348401df6b49fa
--- /dev/null
+++ b/client/html/generated/html/interface/WebSocket.dart
@@ -0,0 +1,53 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// WARNING: Do not edit - generated code.
+
+interface WebSocket extends EventTarget {
+
+ static final int CLOSED = 3;
+
+ static final int CLOSING = 2;
+
+ static final int CONNECTING = 0;
+
+ static final int OPEN = 1;
+
+ final String URL;
+
+ String binaryType;
+
+ final int bufferedAmount;
+
+ final String extensions;
+
+ final String protocol;
+
+ final int readyState;
+
+ final String url;
+
+ WebSocketEvents get on();
+
+ void _addEventListener(String type, EventListener listener, [bool useCapture]);
+
+ void close([int code, String reason]);
+
+ bool _dispatchEvent(Event evt);
+
+ void _removeEventListener(String type, EventListener listener, [bool useCapture]);
+
+ bool send(String data);
+}
+
+interface WebSocketEvents extends Events {
+
+ EventListenerList get close();
+
+ EventListenerList get error();
+
+ EventListenerList get message();
+
+ EventListenerList get open();
+}

Powered by Google App Engine
This is Rietveld 408576698