OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class _NotificationWrappingImplementation extends DOMWrapperBase implements Noti
fication { | |
8 _NotificationWrappingImplementation() : super() {} | |
9 | |
10 static create__NotificationWrappingImplementation() native { | |
11 return new _NotificationWrappingImplementation(); | |
12 } | |
13 | |
14 String get dir() { return _get_dir(this); } | |
15 static String _get_dir(var _this) native; | |
16 | |
17 void set dir(String value) { _set_dir(this, value); } | |
18 static void _set_dir(var _this, String value) native; | |
19 | |
20 String get replaceId() { return _get_replaceId(this); } | |
21 static String _get_replaceId(var _this) native; | |
22 | |
23 void set replaceId(String value) { _set_replaceId(this, value); } | |
24 static void _set_replaceId(var _this, String value) native; | |
25 | |
26 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
27 if (useCapture === null) { | |
28 _addEventListener_Notification(this, type, listener); | |
29 return; | |
30 } else { | |
31 _addEventListener_Notification_2(this, type, listener, useCapture); | |
32 return; | |
33 } | |
34 } | |
35 static void _addEventListener_Notification(receiver, type, listener) native; | |
36 static void _addEventListener_Notification_2(receiver, type, listener, useCapt
ure) native; | |
37 | |
38 void cancel() { | |
39 _cancel(this); | |
40 return; | |
41 } | |
42 static void _cancel(receiver) native; | |
43 | |
44 bool dispatchEvent(Event evt) { | |
45 return _dispatchEvent_Notification(this, evt); | |
46 } | |
47 static bool _dispatchEvent_Notification(receiver, evt) native; | |
48 | |
49 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
50 if (useCapture === null) { | |
51 _removeEventListener_Notification(this, type, listener); | |
52 return; | |
53 } else { | |
54 _removeEventListener_Notification_2(this, type, listener, useCapture); | |
55 return; | |
56 } | |
57 } | |
58 static void _removeEventListener_Notification(receiver, type, listener) native
; | |
59 static void _removeEventListener_Notification_2(receiver, type, listener, useC
apture) native; | |
60 | |
61 void show() { | |
62 _show(this); | |
63 return; | |
64 } | |
65 static void _show(receiver) native; | |
66 | |
67 String get typeName() { return "Notification"; } | |
68 } | |
OLD | NEW |