| OLD | NEW |
| 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__WebSocket_URL(this); } | 14 String get URL() { return _get__WebSocket_URL(this); } |
| 15 static String _get__WebSocket_URL(var _this) native; | 15 static String _get__WebSocket_URL(var _this) native; |
| 16 | 16 |
| 17 String get binaryType() { return _get__WebSocket_binaryType(this); } | 17 String get binaryType() { return _get__WebSocket_binaryType(this); } |
| 18 static String _get__WebSocket_binaryType(var _this) native; | 18 static String _get__WebSocket_binaryType(var _this) native; |
| 19 | 19 |
| 20 void set binaryType(String value) { _set__WebSocket_binaryType(this, value); } | 20 void set binaryType(String value) { _set__WebSocket_binaryType(this, value); } |
| 21 static void _set__WebSocket_binaryType(var _this, String value) native; | 21 static void _set__WebSocket_binaryType(var _this, String value) native; |
| 22 | 22 |
| 23 int get bufferedAmount() { return _get__WebSocket_bufferedAmount(this); } | 23 int get bufferedAmount() { return _get__WebSocket_bufferedAmount(this); } |
| 24 static int _get__WebSocket_bufferedAmount(var _this) native; | 24 static int _get__WebSocket_bufferedAmount(var _this) native; |
| 25 | 25 |
| 26 String get extensions() { return _get__WebSocket_extensions(this); } |
| 27 static String _get__WebSocket_extensions(var _this) native; |
| 28 |
| 26 EventListener get onclose() { return _get__WebSocket_onclose(this); } | 29 EventListener get onclose() { return _get__WebSocket_onclose(this); } |
| 27 static EventListener _get__WebSocket_onclose(var _this) native; | 30 static EventListener _get__WebSocket_onclose(var _this) native; |
| 28 | 31 |
| 29 void set onclose(EventListener value) { _set__WebSocket_onclose(this, value);
} | 32 void set onclose(EventListener value) { _set__WebSocket_onclose(this, value);
} |
| 30 static void _set__WebSocket_onclose(var _this, EventListener value) native; | 33 static void _set__WebSocket_onclose(var _this, EventListener value) native; |
| 31 | 34 |
| 32 EventListener get onerror() { return _get__WebSocket_onerror(this); } | 35 EventListener get onerror() { return _get__WebSocket_onerror(this); } |
| 33 static EventListener _get__WebSocket_onerror(var _this) native; | 36 static EventListener _get__WebSocket_onerror(var _this) native; |
| 34 | 37 |
| 35 void set onerror(EventListener value) { _set__WebSocket_onerror(this, value);
} | 38 void set onerror(EventListener value) { _set__WebSocket_onerror(this, value);
} |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 static void _removeEventListener(receiver, type, listener) native; | 106 static void _removeEventListener(receiver, type, listener) native; |
| 104 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | 107 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; |
| 105 | 108 |
| 106 bool send(String data) { | 109 bool send(String data) { |
| 107 return _send(this, data); | 110 return _send(this, data); |
| 108 } | 111 } |
| 109 static bool _send(receiver, data) native; | 112 static bool _send(receiver, data) native; |
| 110 | 113 |
| 111 String get typeName() { return "WebSocket"; } | 114 String get typeName() { return "WebSocket"; } |
| 112 } | 115 } |
| OLD | NEW |