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

Side by Side Diff: client/dom/generated/src/wrapping/_WebSocketWrappingImplementation.dart

Issue 8637013: Remove support for attribute event listeners. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class _WebSocketWrappingImplementation extends DOMWrapperBase implements WebSock et { 7 class _WebSocketWrappingImplementation extends DOMWrapperBase implements WebSock et {
8 _WebSocketWrappingImplementation() : super() {} 8 _WebSocketWrappingImplementation() : super() {}
9 9
10 static create__WebSocketWrappingImplementation() native { 10 static create__WebSocketWrappingImplementation() native {
11 return new _WebSocketWrappingImplementation(); 11 return new _WebSocketWrappingImplementation();
12 } 12 }
13 13
14 String get URL() { return _get_URL(this); } 14 String get URL() { return _get_URL(this); }
15 static String _get_URL(var _this) native; 15 static String _get_URL(var _this) native;
16 16
17 String get binaryType() { return _get_binaryType(this); } 17 String get binaryType() { return _get_binaryType(this); }
18 static String _get_binaryType(var _this) native; 18 static String _get_binaryType(var _this) native;
19 19
20 void set binaryType(String value) { _set_binaryType(this, value); } 20 void set binaryType(String value) { _set_binaryType(this, value); }
21 static void _set_binaryType(var _this, String value) native; 21 static void _set_binaryType(var _this, String value) native;
22 22
23 int get bufferedAmount() { return _get_bufferedAmount(this); } 23 int get bufferedAmount() { return _get_bufferedAmount(this); }
24 static int _get_bufferedAmount(var _this) native; 24 static int _get_bufferedAmount(var _this) native;
25 25
26 String get extensions() { return _get_extensions(this); } 26 String get extensions() { return _get_extensions(this); }
27 static String _get_extensions(var _this) native; 27 static String _get_extensions(var _this) native;
28 28
29 EventListener get onclose() { return _get_onclose(this); }
30 static EventListener _get_onclose(var _this) native;
31
32 void set onclose(EventListener value) { _set_onclose(this, value); }
33 static void _set_onclose(var _this, EventListener value) native;
34
35 EventListener get onerror() { return _get_onerror(this); }
36 static EventListener _get_onerror(var _this) native;
37
38 void set onerror(EventListener value) { _set_onerror(this, value); }
39 static void _set_onerror(var _this, EventListener value) native;
40
41 EventListener get onmessage() { return _get_onmessage(this); }
42 static EventListener _get_onmessage(var _this) native;
43
44 void set onmessage(EventListener value) { _set_onmessage(this, value); }
45 static void _set_onmessage(var _this, EventListener value) native;
46
47 EventListener get onopen() { return _get_onopen(this); }
48 static EventListener _get_onopen(var _this) native;
49
50 void set onopen(EventListener value) { _set_onopen(this, value); }
51 static void _set_onopen(var _this, EventListener value) native;
52
53 String get protocol() { return _get_protocol(this); } 29 String get protocol() { return _get_protocol(this); }
54 static String _get_protocol(var _this) native; 30 static String _get_protocol(var _this) native;
55 31
56 int get readyState() { return _get_readyState(this); } 32 int get readyState() { return _get_readyState(this); }
57 static int _get_readyState(var _this) native; 33 static int _get_readyState(var _this) native;
58 34
59 void addEventListener(String type, EventListener listener, [bool useCapture = null]) { 35 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
60 if (useCapture === null) { 36 if (useCapture === null) {
61 _addEventListener_WebSocket(this, type, listener); 37 _addEventListener_WebSocket(this, type, listener);
62 return; 38 return;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 static void _removeEventListener_WebSocket(receiver, type, listener) native; 82 static void _removeEventListener_WebSocket(receiver, type, listener) native;
107 static void _removeEventListener_WebSocket_2(receiver, type, listener, useCapt ure) native; 83 static void _removeEventListener_WebSocket_2(receiver, type, listener, useCapt ure) native;
108 84
109 bool send(String data) { 85 bool send(String data) {
110 return _send(this, data); 86 return _send(this, data);
111 } 87 }
112 static bool _send(receiver, data) native; 88 static bool _send(receiver, data) native;
113 89
114 String get typeName() { return "WebSocket"; } 90 String get typeName() { return "WebSocket"; }
115 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698