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

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

Issue 8548010: Wrapper dom changes in preparation for SVG (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweak 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 _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__EventSource_URL(this); } 14 String get URL() { return _get_URL(this); }
15 static String _get__EventSource_URL(var _this) native; 15 static String _get_URL(var _this) native;
16 16
17 EventListener get onerror() { return _get__EventSource_onerror(this); } 17 EventListener get onerror() { return _get_onerror(this); }
18 static EventListener _get__EventSource_onerror(var _this) native; 18 static EventListener _get_onerror(var _this) native;
19 19
20 void set onerror(EventListener value) { _set__EventSource_onerror(this, value) ; } 20 void set onerror(EventListener value) { _set_onerror(this, value); }
21 static void _set__EventSource_onerror(var _this, EventListener value) native; 21 static void _set_onerror(var _this, EventListener value) native;
22 22
23 EventListener get onmessage() { return _get__EventSource_onmessage(this); } 23 EventListener get onmessage() { return _get_onmessage(this); }
24 static EventListener _get__EventSource_onmessage(var _this) native; 24 static EventListener _get_onmessage(var _this) native;
25 25
26 void set onmessage(EventListener value) { _set__EventSource_onmessage(this, va lue); } 26 void set onmessage(EventListener value) { _set_onmessage(this, value); }
27 static void _set__EventSource_onmessage(var _this, EventListener value) native ; 27 static void _set_onmessage(var _this, EventListener value) native;
28 28
29 EventListener get onopen() { return _get__EventSource_onopen(this); } 29 EventListener get onopen() { return _get_onopen(this); }
30 static EventListener _get__EventSource_onopen(var _this) native; 30 static EventListener _get_onopen(var _this) native;
31 31
32 void set onopen(EventListener value) { _set__EventSource_onopen(this, value); } 32 void set onopen(EventListener value) { _set_onopen(this, value); }
33 static void _set__EventSource_onopen(var _this, EventListener value) native; 33 static void _set_onopen(var _this, EventListener value) native;
34 34
35 int get readyState() { return _get__EventSource_readyState(this); } 35 int get readyState() { return _get_readyState(this); }
36 static int _get__EventSource_readyState(var _this) native; 36 static int _get_readyState(var _this) native;
37 37
38 void addEventListener(String type, EventListener listener, [bool useCapture = null]) { 38 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
39 if (useCapture === null) { 39 if (useCapture === null) {
40 _addEventListener(this, type, listener); 40 _addEventListener_EventSource(this, type, listener);
41 return; 41 return;
42 } else { 42 } else {
43 _addEventListener_2(this, type, listener, useCapture); 43 _addEventListener_EventSource_2(this, type, listener, useCapture);
44 return; 44 return;
45 } 45 }
46 } 46 }
47 static void _addEventListener(receiver, type, listener) native; 47 static void _addEventListener_EventSource(receiver, type, listener) native;
48 static void _addEventListener_2(receiver, type, listener, useCapture) native; 48 static void _addEventListener_EventSource_2(receiver, type, listener, useCaptu re) native;
49 49
50 void close() { 50 void close() {
51 _close(this); 51 _close(this);
52 return; 52 return;
53 } 53 }
54 static void _close(receiver) native; 54 static void _close(receiver) native;
55 55
56 bool dispatchEvent(Event evt) { 56 bool dispatchEvent(Event evt) {
57 return _dispatchEvent(this, evt); 57 return _dispatchEvent_EventSource(this, evt);
58 } 58 }
59 static bool _dispatchEvent(receiver, evt) native; 59 static bool _dispatchEvent_EventSource(receiver, evt) native;
60 60
61 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) { 61 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
62 if (useCapture === null) { 62 if (useCapture === null) {
63 _removeEventListener(this, type, listener); 63 _removeEventListener_EventSource(this, type, listener);
64 return; 64 return;
65 } else { 65 } else {
66 _removeEventListener_2(this, type, listener, useCapture); 66 _removeEventListener_EventSource_2(this, type, listener, useCapture);
67 return; 67 return;
68 } 68 }
69 } 69 }
70 static void _removeEventListener(receiver, type, listener) native; 70 static void _removeEventListener_EventSource(receiver, type, listener) native;
71 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ e; 71 static void _removeEventListener_EventSource_2(receiver, type, listener, useCa pture) native;
72 72
73 String get typeName() { return "EventSource"; } 73 String get typeName() { return "EventSource"; }
74 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698