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 _EventSourceWrappingImplementation extends DOMWrapperBase implements Event
Source { | 7 class _EventSourceWrappingImplementation extends DOMWrapperBase implements Event
Source { |
8 _EventSourceWrappingImplementation() : super() {} | 8 _EventSourceWrappingImplementation() : super() {} |
9 | 9 |
10 static create__EventSourceWrappingImplementation() native { | 10 static create__EventSourceWrappingImplementation() native { |
11 return new _EventSourceWrappingImplementation(); | 11 return new _EventSourceWrappingImplementation(); |
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 int get readyState() { return _get_readyState(this); } | 17 int get readyState() { return _get_readyState(this); } |
18 static int _get_readyState(var _this) native; | 18 static int _get_readyState(var _this) native; |
19 | 19 |
| 20 String get url() { return _get_url(this); } |
| 21 static String _get_url(var _this) native; |
| 22 |
20 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | 23 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { |
21 if (useCapture === null) { | 24 if (useCapture === null) { |
22 _addEventListener_EventSource(this, type, listener); | 25 _addEventListener_EventSource(this, type, listener); |
23 return; | 26 return; |
24 } else { | 27 } else { |
25 _addEventListener_EventSource_2(this, type, listener, useCapture); | 28 _addEventListener_EventSource_2(this, type, listener, useCapture); |
26 return; | 29 return; |
27 } | 30 } |
28 } | 31 } |
29 static void _addEventListener_EventSource(receiver, type, listener) native; | 32 static void _addEventListener_EventSource(receiver, type, listener) native; |
(...skipping 17 matching lines...) Expand all Loading... |
47 } else { | 50 } else { |
48 _removeEventListener_EventSource_2(this, type, listener, useCapture); | 51 _removeEventListener_EventSource_2(this, type, listener, useCapture); |
49 return; | 52 return; |
50 } | 53 } |
51 } | 54 } |
52 static void _removeEventListener_EventSource(receiver, type, listener) native; | 55 static void _removeEventListener_EventSource(receiver, type, listener) native; |
53 static void _removeEventListener_EventSource_2(receiver, type, listener, useCa
pture) native; | 56 static void _removeEventListener_EventSource_2(receiver, type, listener, useCa
pture) native; |
54 | 57 |
55 String get typeName() { return "EventSource"; } | 58 String get typeName() { return "EventSource"; } |
56 } | 59 } |
OLD | NEW |