OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 _DocumentImpl extends _ElementImpl | 5 class _DocumentImpl extends _ElementImpl |
6 implements Document | 6 implements Document |
7 native "*HTMLHtmlElement" { | 7 native "*HTMLHtmlElement" { |
8 | 8 |
| 9 _DocumentEventsImpl get on() => |
| 10 new _DocumentEventsImpl(_jsDocument); |
| 11 |
9 _ElementImpl get activeElement() native "return this.parentNode.activeElement;
"; | 12 _ElementImpl get activeElement() native "return this.parentNode.activeElement;
"; |
10 | 13 |
11 _ElementImpl get body() native "return this.parentNode.body;"; | 14 _ElementImpl get body() native "return this.parentNode.body;"; |
12 | 15 |
13 void set body(_ElementImpl value) native "this.parentNode.body = value;"; | 16 void set body(_ElementImpl value) native "this.parentNode.body = value;"; |
14 | 17 |
15 String get charset() native "return this.parentNode.charset;"; | 18 String get charset() native "return this.parentNode.charset;"; |
16 | 19 |
17 void set charset(String value) native "this.parentNode.charset = value;"; | 20 void set charset(String value) native "this.parentNode.charset = value;"; |
18 | 21 |
(...skipping 28 matching lines...) Expand all Loading... |
47 _ElementImpl get webkitCurrentFullScreenElement() native "return this.parentNo
de.webkitCurrentFullScreenElement;"; | 50 _ElementImpl get webkitCurrentFullScreenElement() native "return this.parentNo
de.webkitCurrentFullScreenElement;"; |
48 | 51 |
49 bool get webkitFullScreenKeyboardInputAllowed() native "return this.parentNode
.webkitFullScreenKeyboardInputAllowed;"; | 52 bool get webkitFullScreenKeyboardInputAllowed() native "return this.parentNode
.webkitFullScreenKeyboardInputAllowed;"; |
50 | 53 |
51 bool get webkitHidden() native "return this.parentNode.webkitHidden;"; | 54 bool get webkitHidden() native "return this.parentNode.webkitHidden;"; |
52 | 55 |
53 bool get webkitIsFullScreen() native "return this.parentNode.webkitIsFullScree
n;"; | 56 bool get webkitIsFullScreen() native "return this.parentNode.webkitIsFullScree
n;"; |
54 | 57 |
55 String get webkitVisibilityState() native "return this.parentNode.webkitVisibi
lityState;"; | 58 String get webkitVisibilityState() native "return this.parentNode.webkitVisibi
lityState;"; |
56 | 59 |
57 _DocumentEventsImpl get on() => | |
58 new _DocumentEventsImpl(_jsDocument); | |
59 | |
60 _RangeImpl caretRangeFromPoint(int x, int y) native "return this.parentNode.ca
retRangeFromPoint(x, y);"; | 60 _RangeImpl caretRangeFromPoint(int x, int y) native "return this.parentNode.ca
retRangeFromPoint(x, y);"; |
61 | 61 |
62 _CDATASectionImpl createCDATASection(String data) native "return this.parentNo
de.createCDATASection(data);"; | 62 _CDATASectionImpl createCDATASection(String data) native "return this.parentNo
de.createCDATASection(data);"; |
63 | 63 |
64 _DocumentFragmentImpl createDocumentFragment() native "return this.parentNode.
createDocumentFragment();"; | 64 _DocumentFragmentImpl createDocumentFragment() native "return this.parentNode.
createDocumentFragment();"; |
65 | 65 |
66 _ElementImpl _createElement(String tagName) native "return this.parentNode.cre
ateElement(tagName);"; | 66 _ElementImpl _createElement(String tagName) native "return this.parentNode.cre
ateElement(tagName);"; |
67 | 67 |
68 _EventImpl _createEvent(String eventType) native "return this.parentNode.creat
eEvent(eventType);"; | 68 _EventImpl _createEvent(String eventType) native "return this.parentNode.creat
eEvent(eventType);"; |
69 | 69 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 EventListenerList get submit() => _get('submit'); | 212 EventListenerList get submit() => _get('submit'); |
213 | 213 |
214 EventListenerList get touchCancel() => _get('touchcancel'); | 214 EventListenerList get touchCancel() => _get('touchcancel'); |
215 | 215 |
216 EventListenerList get touchEnd() => _get('touchend'); | 216 EventListenerList get touchEnd() => _get('touchend'); |
217 | 217 |
218 EventListenerList get touchMove() => _get('touchmove'); | 218 EventListenerList get touchMove() => _get('touchmove'); |
219 | 219 |
220 EventListenerList get touchStart() => _get('touchstart'); | 220 EventListenerList get touchStart() => _get('touchstart'); |
221 } | 221 } |
OLD | NEW |