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

Unified Diff: client/html/generated/html/frog/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/frog/WebSocket.dart
diff --git a/client/html/generated/html/frog/WebSocket.dart b/client/html/generated/html/frog/WebSocket.dart
new file mode 100644
index 0000000000000000000000000000000000000000..740d5cb80550cae4664babfd052c104a10ec7a37
--- /dev/null
+++ b/client/html/generated/html/frog/WebSocket.dart
@@ -0,0 +1,50 @@
+
+class _WebSocketImpl extends _EventTargetImpl implements WebSocket native "*WebSocket" {
+
+ 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;
+
+ _WebSocketEventsImpl get on() =>
+ new _WebSocketEventsImpl(this);
+
+ void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
+
+ void close([int code = null, String reason = null]) native;
+
+ bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);";
+
+ void _removeEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.removeEventListener(type, listener, useCapture);";
+
+ bool send(String data) native;
+}
+
+class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents {
+ _WebSocketEventsImpl(_ptr) : super(_ptr);
+
+ EventListenerList get close() => _get('close');
+
+ EventListenerList get error() => _get('error');
+
+ EventListenerList get message() => _get('message');
+
+ EventListenerList get open() => _get('open');
+}

Powered by Google App Engine
This is Rietveld 408576698