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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 class _WebSocketImpl extends _EventTargetImpl implements WebSocket native "*WebS ocket" {
3
4 static final int CLOSED = 3;
5
6 static final int CLOSING = 2;
7
8 static final int CONNECTING = 0;
9
10 static final int OPEN = 1;
11
12 final String URL;
13
14 String binaryType;
15
16 final int bufferedAmount;
17
18 final String extensions;
19
20 final String protocol;
21
22 final int readyState;
23
24 final String url;
25
26 _WebSocketEventsImpl get on() =>
27 new _WebSocketEventsImpl(this);
28
29 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
30
31 void close([int code = null, String reason = null]) native;
32
33 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);";
34
35 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
36
37 bool send(String data) native;
38 }
39
40 class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents {
41 _WebSocketEventsImpl(_ptr) : super(_ptr);
42
43 EventListenerList get close() => _get('close');
44
45 EventListenerList get error() => _get('error');
46
47 EventListenerList get message() => _get('message');
48
49 EventListenerList get open() => _get('open');
50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698