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

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

Issue 9221006: Move frog dart:dom from fields to getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: comment Created 8 years, 11 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 WebSocket native "*WebSocket" { 2 class 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 URL; 14 String get URL() native "return this.URL;";
15 15
16 String binaryType; 16 String get binaryType() native "return this.binaryType;";
17 17
18 int bufferedAmount; 18 void set binaryType(String value) native "this.binaryType = value;";
19 19
20 String extensions; 20 int get bufferedAmount() native "return this.bufferedAmount;";
21 21
22 String protocol; 22 String get extensions() native "return this.extensions;";
23 23
24 int readyState; 24 String get protocol() native "return this.protocol;";
25
26 int get readyState() native "return this.readyState;";
25 27
26 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 28 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
27 29
28 void close([int code = null, String reason = null]) native; 30 void close([int code = null, String reason = null]) native;
29 31
30 bool dispatchEvent(Event evt) native; 32 bool dispatchEvent(Event evt) native;
31 33
32 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 34 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
33 35
34 bool send(String data) native; 36 bool send(String data) native;
35 37
36 var dartObjectLocalStorage; 38 var dartObjectLocalStorage;
37 39
38 String get typeName() native; 40 String get typeName() native;
39 } 41 }
OLDNEW
« no previous file with comments | « client/dom/generated/src/frog/WebKitTransitionEvent.dart ('k') | client/dom/generated/src/frog/WheelEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698