| 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 // TODO(jacobr) add custom Events class. | |
| 6 class NotificationWrappingImplementation extends EventTargetWrappingImplementati
on implements Notification { | |
| 7 NotificationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 8 | |
| 9 String get dir() { return _ptr.dir; } | |
| 10 | |
| 11 void set dir(String value) { _ptr.dir = value; } | |
| 12 | |
| 13 EventListener get onclick() { return LevelDom.wrapEventListener(_ptr.onclick);
} | |
| 14 | |
| 15 void set onclick(EventListener value) { _ptr.onclick = LevelDom.unwrap(value);
} | |
| 16 | |
| 17 EventListener get onclose() { return LevelDom.wrapEventListener(_ptr.onclose);
} | |
| 18 | |
| 19 void set onclose(EventListener value) { _ptr.onclose = LevelDom.unwrap(value);
} | |
| 20 | |
| 21 EventListener get ondisplay() { return LevelDom.wrapEventListener(_ptr.ondispl
ay); } | |
| 22 | |
| 23 void set ondisplay(EventListener value) { _ptr.ondisplay = LevelDom.unwrap(val
ue); } | |
| 24 | |
| 25 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
| 26 | |
| 27 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
| 28 | |
| 29 String get replaceId() { return _ptr.replaceId; } | |
| 30 | |
| 31 void set replaceId(String value) { _ptr.replaceId = value; } | |
| 32 | |
| 33 void cancel() { | |
| 34 _ptr.cancel(); | |
| 35 return; | |
| 36 } | |
| 37 | |
| 38 void show() { | |
| 39 _ptr.show(); | |
| 40 return; | |
| 41 } | |
| 42 | |
| 43 String get typeName() { return "Notification"; } | |
| 44 } | |
| OLD | NEW |