| 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 _NotificationWrappingImplementation extends DOMWrapperBase implements Noti
fication { | 7 class _NotificationWrappingImplementation extends DOMWrapperBase implements Noti
fication { |
| 8 _NotificationWrappingImplementation() : super() {} | 8 _NotificationWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__NotificationWrappingImplementation() native { | 10 static create__NotificationWrappingImplementation() native { |
| 11 return new _NotificationWrappingImplementation(); | 11 return new _NotificationWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 String get dir() { return _get__Notification_dir(this); } | 14 String get dir() { return _get_dir(this); } |
| 15 static String _get__Notification_dir(var _this) native; | 15 static String _get_dir(var _this) native; |
| 16 | 16 |
| 17 void set dir(String value) { _set__Notification_dir(this, value); } | 17 void set dir(String value) { _set_dir(this, value); } |
| 18 static void _set__Notification_dir(var _this, String value) native; | 18 static void _set_dir(var _this, String value) native; |
| 19 | 19 |
| 20 EventListener get onclick() { return _get__Notification_onclick(this); } | 20 EventListener get onclick() { return _get_onclick(this); } |
| 21 static EventListener _get__Notification_onclick(var _this) native; | 21 static EventListener _get_onclick(var _this) native; |
| 22 | 22 |
| 23 void set onclick(EventListener value) { _set__Notification_onclick(this, value
); } | 23 void set onclick(EventListener value) { _set_onclick(this, value); } |
| 24 static void _set__Notification_onclick(var _this, EventListener value) native; | 24 static void _set_onclick(var _this, EventListener value) native; |
| 25 | 25 |
| 26 EventListener get onclose() { return _get__Notification_onclose(this); } | 26 EventListener get onclose() { return _get_onclose(this); } |
| 27 static EventListener _get__Notification_onclose(var _this) native; | 27 static EventListener _get_onclose(var _this) native; |
| 28 | 28 |
| 29 void set onclose(EventListener value) { _set__Notification_onclose(this, value
); } | 29 void set onclose(EventListener value) { _set_onclose(this, value); } |
| 30 static void _set__Notification_onclose(var _this, EventListener value) native; | 30 static void _set_onclose(var _this, EventListener value) native; |
| 31 | 31 |
| 32 EventListener get ondisplay() { return _get__Notification_ondisplay(this); } | 32 EventListener get ondisplay() { return _get_ondisplay(this); } |
| 33 static EventListener _get__Notification_ondisplay(var _this) native; | 33 static EventListener _get_ondisplay(var _this) native; |
| 34 | 34 |
| 35 void set ondisplay(EventListener value) { _set__Notification_ondisplay(this, v
alue); } | 35 void set ondisplay(EventListener value) { _set_ondisplay(this, value); } |
| 36 static void _set__Notification_ondisplay(var _this, EventListener value) nativ
e; | 36 static void _set_ondisplay(var _this, EventListener value) native; |
| 37 | 37 |
| 38 EventListener get onerror() { return _get__Notification_onerror(this); } | 38 EventListener get onerror() { return _get_onerror(this); } |
| 39 static EventListener _get__Notification_onerror(var _this) native; | 39 static EventListener _get_onerror(var _this) native; |
| 40 | 40 |
| 41 void set onerror(EventListener value) { _set__Notification_onerror(this, value
); } | 41 void set onerror(EventListener value) { _set_onerror(this, value); } |
| 42 static void _set__Notification_onerror(var _this, EventListener value) native; | 42 static void _set_onerror(var _this, EventListener value) native; |
| 43 | 43 |
| 44 String get replaceId() { return _get__Notification_replaceId(this); } | 44 String get replaceId() { return _get_replaceId(this); } |
| 45 static String _get__Notification_replaceId(var _this) native; | 45 static String _get_replaceId(var _this) native; |
| 46 | 46 |
| 47 void set replaceId(String value) { _set__Notification_replaceId(this, value);
} | 47 void set replaceId(String value) { _set_replaceId(this, value); } |
| 48 static void _set__Notification_replaceId(var _this, String value) native; | 48 static void _set_replaceId(var _this, String value) native; |
| 49 | 49 |
| 50 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | 50 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { |
| 51 if (useCapture === null) { | 51 if (useCapture === null) { |
| 52 _addEventListener(this, type, listener); | 52 _addEventListener_Notification(this, type, listener); |
| 53 return; | 53 return; |
| 54 } else { | 54 } else { |
| 55 _addEventListener_2(this, type, listener, useCapture); | 55 _addEventListener_Notification_2(this, type, listener, useCapture); |
| 56 return; | 56 return; |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 static void _addEventListener(receiver, type, listener) native; | 59 static void _addEventListener_Notification(receiver, type, listener) native; |
| 60 static void _addEventListener_2(receiver, type, listener, useCapture) native; | 60 static void _addEventListener_Notification_2(receiver, type, listener, useCapt
ure) native; |
| 61 | 61 |
| 62 void cancel() { | 62 void cancel() { |
| 63 _cancel(this); | 63 _cancel(this); |
| 64 return; | 64 return; |
| 65 } | 65 } |
| 66 static void _cancel(receiver) native; | 66 static void _cancel(receiver) native; |
| 67 | 67 |
| 68 bool dispatchEvent(Event evt) { | 68 bool dispatchEvent(Event evt) { |
| 69 return _dispatchEvent(this, evt); | 69 return _dispatchEvent_Notification(this, evt); |
| 70 } | 70 } |
| 71 static bool _dispatchEvent(receiver, evt) native; | 71 static bool _dispatchEvent_Notification(receiver, evt) native; |
| 72 | 72 |
| 73 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | 73 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { |
| 74 if (useCapture === null) { | 74 if (useCapture === null) { |
| 75 _removeEventListener(this, type, listener); | 75 _removeEventListener_Notification(this, type, listener); |
| 76 return; | 76 return; |
| 77 } else { | 77 } else { |
| 78 _removeEventListener_2(this, type, listener, useCapture); | 78 _removeEventListener_Notification_2(this, type, listener, useCapture); |
| 79 return; | 79 return; |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 static void _removeEventListener(receiver, type, listener) native; | 82 static void _removeEventListener_Notification(receiver, type, listener) native
; |
| 83 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | 83 static void _removeEventListener_Notification_2(receiver, type, listener, useC
apture) native; |
| 84 | 84 |
| 85 void show() { | 85 void show() { |
| 86 _show(this); | 86 _show(this); |
| 87 return; | 87 return; |
| 88 } | 88 } |
| 89 static void _show(receiver) native; | 89 static void _show(receiver) native; |
| 90 | 90 |
| 91 String get typeName() { return "Notification"; } | 91 String get typeName() { return "Notification"; } |
| 92 } | 92 } |
| OLD | NEW |