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

Side by Side Diff: client/dom/generated/src/frog/WebSocket.dart

Issue 9312003: Use fields in hidden native DOM classes instead of getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix native 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 class _WebSocketJs extends _DOMTypeJs implements WebSocket native "*WebSocket" { 2 class _WebSocketJs extends _DOMTypeJs implements WebSocket native "*WebSocket" {
3 WebSocket(String url) native; 3 WebSocket(String url) native;
4 4
5 5
6 static final int CLOSED = 3; 6 static final int CLOSED = 3;
7 7
8 static final int CLOSING = 2; 8 static final int CLOSING = 2;
9 9
10 static final int CONNECTING = 0; 10 static final int CONNECTING = 0;
11 11
12 static final int OPEN = 1; 12 static final int OPEN = 1;
13 13
14 String get URL() native "return this.URL;"; 14 final String URL;
15 15
16 String get binaryType() native "return this.binaryType;"; 16 String binaryType;
17 17
18 void set binaryType(String value) native "this.binaryType = value;"; 18 final int bufferedAmount;
19 19
20 int get bufferedAmount() native "return this.bufferedAmount;"; 20 final String extensions;
21 21
22 String get extensions() native "return this.extensions;"; 22 final String protocol;
23 23
24 String get protocol() native "return this.protocol;"; 24 final int readyState;
25 25
26 int get readyState() native "return this.readyState;"; 26 final String url;
27
28 String get url() native "return this.url;";
29 27
30 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 28 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
31 29
32 void close([int code = null, String reason = null]) native; 30 void close([int code = null, String reason = null]) native;
33 31
34 bool dispatchEvent(_EventJs evt) native; 32 bool dispatchEvent(_EventJs evt) native;
35 33
36 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 34 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
37 35
38 bool send(String data) native; 36 bool send(String data) native;
39 } 37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698