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 class DocumentEventsImplementation extends ElementEventsImplementation | 5 class DocumentEventsImplementation extends ElementEventsImplementation |
6 implements DocumentEvents { | 6 implements DocumentEvents { |
7 | 7 |
8 DocumentEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | 8 DocumentEventsImplementation._wrap(_ptr) : super._wrap(_ptr); |
9 | 9 |
10 EventListenerList get readyStateChange() => _get('readystatechange'); | 10 EventListenerList get readyStateChange() => _get('readystatechange'); |
11 | 11 |
12 EventListenerList get selectionChange() => _get('selectionchange'); | 12 EventListenerList get selectionChange() => _get('selectionchange'); |
13 | 13 |
14 EventListenerList get contentLoaded() => _get('DOMContentLoaded'); | 14 EventListenerList get contentLoaded() => _get('DOMContentLoaded'); |
15 } | 15 } |
16 | 16 |
17 class DocumentWrappingImplementation extends ElementWrappingImplementation imple
ments Document { | 17 class DocumentWrappingImplementation extends ElementWrappingImplementation imple
ments Document { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 void set manifest(String value) { _ptr.manifest = value; } | 116 void set manifest(String value) { _ptr.manifest = value; } |
117 | 117 |
118 DocumentEvents get on() { | 118 DocumentEvents get on() { |
119 if (_on === null) { | 119 if (_on === null) { |
120 _on = new DocumentEventsImplementation._wrap(_ptr); | 120 _on = new DocumentEventsImplementation._wrap(_ptr); |
121 } | 121 } |
122 return _on; | 122 return _on; |
123 } | 123 } |
124 } | 124 } |
OLD | NEW |