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

Side by Side Diff: client/dom/generated/src/wrapping/_EventSourceWrappingImplementation.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 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 _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 EventListener get onerror() { return _get_onerror(this); }
18 static EventListener _get_onerror(var _this) native;
19
20 void set onerror(EventListener value) { _set_onerror(this, value); }
21 static void _set_onerror(var _this, EventListener value) native;
22
23 EventListener get onmessage() { return _get_onmessage(this); }
24 static EventListener _get_onmessage(var _this) native;
25
26 void set onmessage(EventListener value) { _set_onmessage(this, value); }
27 static void _set_onmessage(var _this, EventListener value) native;
28
29 EventListener get onopen() { return _get_onopen(this); }
30 static EventListener _get_onopen(var _this) native;
31
32 void set onopen(EventListener value) { _set_onopen(this, value); }
33 static void _set_onopen(var _this, EventListener value) native;
34
35 int get readyState() { return _get_readyState(this); } 17 int get readyState() { return _get_readyState(this); }
36 static int _get_readyState(var _this) native; 18 static int _get_readyState(var _this) native;
37 19
38 void addEventListener(String type, EventListener listener, [bool useCapture = null]) { 20 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
39 if (useCapture === null) { 21 if (useCapture === null) {
40 _addEventListener_EventSource(this, type, listener); 22 _addEventListener_EventSource(this, type, listener);
41 return; 23 return;
42 } else { 24 } else {
43 _addEventListener_EventSource_2(this, type, listener, useCapture); 25 _addEventListener_EventSource_2(this, type, listener, useCapture);
44 return; 26 return;
(...skipping 20 matching lines...) Expand all
65 } else { 47 } else {
66 _removeEventListener_EventSource_2(this, type, listener, useCapture); 48 _removeEventListener_EventSource_2(this, type, listener, useCapture);
67 return; 49 return;
68 } 50 }
69 } 51 }
70 static void _removeEventListener_EventSource(receiver, type, listener) native; 52 static void _removeEventListener_EventSource(receiver, type, listener) native;
71 static void _removeEventListener_EventSource_2(receiver, type, listener, useCa pture) native; 53 static void _removeEventListener_EventSource_2(receiver, type, listener, useCa pture) native;
72 54
73 String get typeName() { return "EventSource"; } 55 String get typeName() { return "EventSource"; }
74 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698