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 _ElementImpl get activeElement() native "return this.parentNode.activeElement;
"; | 9 _ElementImpl get activeElement() native "return this.parentNode.activeElement;
"; |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 _TextImpl _createTextNode(String data) native "return this.parentNode.createTe
xtNode(data);"; | 72 _TextImpl _createTextNode(String data) native "return this.parentNode.createTe
xtNode(data);"; |
73 | 73 |
74 _TouchImpl createTouch(_WindowImpl window, _EventTargetImpl target, int identi
fier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int web
kitRadiusY, num webkitRotationAngle, num webkitForce) native "return this.parent
Node.createTouch(window, target, identifier, pageX, pageY, screenX, screenY, web
kitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce);"; | 74 _TouchImpl createTouch(_WindowImpl window, _EventTargetImpl target, int identi
fier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int web
kitRadiusY, num webkitRotationAngle, num webkitForce) native "return this.parent
Node.createTouch(window, target, identifier, pageX, pageY, screenX, screenY, web
kitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce);"; |
75 | 75 |
76 _TouchListImpl _createTouchList() native "return this.parentNode.createTouchLi
st();"; | 76 _TouchListImpl _createTouchList() native "return this.parentNode.createTouchLi
st();"; |
77 | 77 |
78 _ElementImpl elementFromPoint(int x, int y) native "return this.parentNode.ele
mentFromPoint(x, y);"; | 78 _ElementImpl elementFromPoint(int x, int y) native "return this.parentNode.ele
mentFromPoint(x, y);"; |
79 | 79 |
80 bool execCommand(String command, bool userInterface, String value) native "ret
urn this.parentNode.execCommand(command, userInterface, value);"; | 80 bool execCommand(String command, bool userInterface, String value) native "ret
urn this.parentNode.execCommand(command, userInterface, value);"; |
81 | 81 |
82 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t) native "return this.parentNode.getCSSCanvasContext(contextId, name, width, he
ight);"; | 82 _CanvasRenderingContextImpl getCSSCanvasContext(String contextId, String name,
int width, int height) native "return this.parentNode.getCSSCanvasContext(conte
xtId, name, width, height);"; |
83 | 83 |
84 bool queryCommandEnabled(String command) native "return this.parentNode.queryC
ommandEnabled(command);"; | 84 bool queryCommandEnabled(String command) native "return this.parentNode.queryC
ommandEnabled(command);"; |
85 | 85 |
86 bool queryCommandIndeterm(String command) native "return this.parentNode.query
CommandIndeterm(command);"; | 86 bool queryCommandIndeterm(String command) native "return this.parentNode.query
CommandIndeterm(command);"; |
87 | 87 |
88 bool queryCommandState(String command) native "return this.parentNode.queryCom
mandState(command);"; | 88 bool queryCommandState(String command) native "return this.parentNode.queryCom
mandState(command);"; |
89 | 89 |
90 bool queryCommandSupported(String command) native "return this.parentNode.quer
yCommandSupported(command);"; | 90 bool queryCommandSupported(String command) native "return this.parentNode.quer
yCommandSupported(command);"; |
91 | 91 |
92 String queryCommandValue(String command) native "return this.parentNode.queryC
ommandValue(command);"; | 92 String queryCommandValue(String command) native "return this.parentNode.queryC
ommandValue(command);"; |
(...skipping 119 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 |