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 class BodyElementEventsImplementation | |
6 extends ElementEventsImplementation implements BodyElementEvents { | |
7 | |
8 BodyElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
9 | |
10 EventListenerList get beforeUnload() => _get('beforeunload'); | |
11 EventListenerList get hashChange() => _get('hashchange'); | |
12 EventListenerList get message() => _get('message'); | |
13 EventListenerList get offline() => _get('offline'); | |
14 EventListenerList get online() => _get('online'); | |
15 EventListenerList get orientationChange() => _get('orientationchange'); | |
16 EventListenerList get popState() => _get('popstate'); | |
17 EventListenerList get resize() => _get('resize'); | |
18 EventListenerList get storage() => _get('storage'); | |
19 EventListenerList get unLoad() => _get('unload'); | |
20 } | |
21 | |
22 class BodyElementWrappingImplementation | |
23 extends ElementWrappingImplementation implements BodyElement { | |
24 | |
25 BodyElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
26 | |
27 BodyElementEvents get on() { | |
28 if (_on === null) { | |
29 _on = new BodyElementEventsImplementation._wrap(_ptr); | |
30 } | |
31 return _on; | |
32 } | |
33 } | |
OLD | NEW |