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'); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 /** @domName cookie */ | 45 /** @domName cookie */ |
46 String get cookie() => _documentPtr.cookie; | 46 String get cookie() => _documentPtr.cookie; |
47 | 47 |
48 /** @domName cookie */ | 48 /** @domName cookie */ |
49 void set cookie(String value) { _documentPtr.cookie = value; } | 49 void set cookie(String value) { _documentPtr.cookie = value; } |
50 | 50 |
51 /** @domName defaultView */ | 51 /** @domName defaultView */ |
52 Window get window() => LevelDom.wrapWindow(_documentPtr.defaultView); | 52 Window get window() => LevelDom.wrapWindow(_documentPtr.defaultView); |
53 | 53 |
54 /** @domName designMode */ | |
55 void set designMode(String value) { _documentPtr.dynamic.designMode = value; } | |
56 | |
57 /** @domName domain */ | 54 /** @domName domain */ |
58 String get domain() => _documentPtr.domain; | 55 String get domain() => _documentPtr.domain; |
59 | 56 |
60 /** @domName head */ | 57 /** @domName head */ |
61 HeadElement get head() => LevelDom.wrapHeadElement(_documentPtr.head); | 58 HeadElement get head() => LevelDom.wrapHeadElement(_documentPtr.head); |
62 | 59 |
63 /** @domName lastModified */ | 60 /** @domName lastModified */ |
64 String get lastModified() => _documentPtr.lastModified; | 61 String get lastModified() => _documentPtr.lastModified; |
65 | 62 |
66 /** @domName readyState */ | 63 /** @domName readyState */ |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 /** @domName HTMLHtmlElement.manifest */ | 142 /** @domName HTMLHtmlElement.manifest */ |
146 void set manifest(String value) { _ptr.manifest = value; } | 143 void set manifest(String value) { _ptr.manifest = value; } |
147 | 144 |
148 DocumentEvents get on() { | 145 DocumentEvents get on() { |
149 if (_on === null) { | 146 if (_on === null) { |
150 _on = new DocumentEventsImplementation._wrap(_ptr); | 147 _on = new DocumentEventsImplementation._wrap(_ptr); |
151 } | 148 } |
152 return _on; | 149 return _on; |
153 } | 150 } |
154 } | 151 } |
OLD | NEW |