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 // WARNING: Do not edit - generated code. | |
6 | |
7 class _ElementWrappingImplementation extends _NodeWrappingImplementation impleme
nts Element { | |
8 _ElementWrappingImplementation() : super() {} | |
9 | |
10 static create__ElementWrappingImplementation() native { | |
11 return new _ElementWrappingImplementation(); | |
12 } | |
13 | |
14 int get childElementCount() { return _get_childElementCount(this); } | |
15 static int _get_childElementCount(var _this) native; | |
16 | |
17 int get clientHeight() { return _get_clientHeight(this); } | |
18 static int _get_clientHeight(var _this) native; | |
19 | |
20 int get clientLeft() { return _get_clientLeft(this); } | |
21 static int _get_clientLeft(var _this) native; | |
22 | |
23 int get clientTop() { return _get_clientTop(this); } | |
24 static int _get_clientTop(var _this) native; | |
25 | |
26 int get clientWidth() { return _get_clientWidth(this); } | |
27 static int _get_clientWidth(var _this) native; | |
28 | |
29 Element get firstElementChild() { return _get_firstElementChild(this); } | |
30 static Element _get_firstElementChild(var _this) native; | |
31 | |
32 Element get lastElementChild() { return _get_lastElementChild(this); } | |
33 static Element _get_lastElementChild(var _this) native; | |
34 | |
35 Element get nextElementSibling() { return _get_nextElementSibling(this); } | |
36 static Element _get_nextElementSibling(var _this) native; | |
37 | |
38 int get offsetHeight() { return _get_offsetHeight(this); } | |
39 static int _get_offsetHeight(var _this) native; | |
40 | |
41 int get offsetLeft() { return _get_offsetLeft(this); } | |
42 static int _get_offsetLeft(var _this) native; | |
43 | |
44 Element get offsetParent() { return _get_offsetParent(this); } | |
45 static Element _get_offsetParent(var _this) native; | |
46 | |
47 int get offsetTop() { return _get_offsetTop(this); } | |
48 static int _get_offsetTop(var _this) native; | |
49 | |
50 int get offsetWidth() { return _get_offsetWidth(this); } | |
51 static int _get_offsetWidth(var _this) native; | |
52 | |
53 Element get previousElementSibling() { return _get_previousElementSibling(this
); } | |
54 static Element _get_previousElementSibling(var _this) native; | |
55 | |
56 int get scrollHeight() { return _get_scrollHeight(this); } | |
57 static int _get_scrollHeight(var _this) native; | |
58 | |
59 int get scrollLeft() { return _get_scrollLeft(this); } | |
60 static int _get_scrollLeft(var _this) native; | |
61 | |
62 void set scrollLeft(int value) { _set_scrollLeft(this, value); } | |
63 static void _set_scrollLeft(var _this, int value) native; | |
64 | |
65 int get scrollTop() { return _get_scrollTop(this); } | |
66 static int _get_scrollTop(var _this) native; | |
67 | |
68 void set scrollTop(int value) { _set_scrollTop(this, value); } | |
69 static void _set_scrollTop(var _this, int value) native; | |
70 | |
71 int get scrollWidth() { return _get_scrollWidth(this); } | |
72 static int _get_scrollWidth(var _this) native; | |
73 | |
74 CSSStyleDeclaration get style() { return _get_style(this); } | |
75 static CSSStyleDeclaration _get_style(var _this) native; | |
76 | |
77 String get tagName() { return _get_tagName(this); } | |
78 static String _get_tagName(var _this) native; | |
79 | |
80 String get webkitRegionOverflow() { return _get_webkitRegionOverflow(this); } | |
81 static String _get_webkitRegionOverflow(var _this) native; | |
82 | |
83 void blur() { | |
84 _blur(this); | |
85 return; | |
86 } | |
87 static void _blur(receiver) native; | |
88 | |
89 void focus() { | |
90 _focus(this); | |
91 return; | |
92 } | |
93 static void _focus(receiver) native; | |
94 | |
95 String getAttribute(String name) { | |
96 return _getAttribute(this, name); | |
97 } | |
98 static String _getAttribute(receiver, name) native; | |
99 | |
100 String getAttributeNS(String namespaceURI, String localName) { | |
101 return _getAttributeNS(this, namespaceURI, localName); | |
102 } | |
103 static String _getAttributeNS(receiver, namespaceURI, localName) native; | |
104 | |
105 Attr getAttributeNode(String name) { | |
106 return _getAttributeNode(this, name); | |
107 } | |
108 static Attr _getAttributeNode(receiver, name) native; | |
109 | |
110 Attr getAttributeNodeNS(String namespaceURI, String localName) { | |
111 return _getAttributeNodeNS(this, namespaceURI, localName); | |
112 } | |
113 static Attr _getAttributeNodeNS(receiver, namespaceURI, localName) native; | |
114 | |
115 ClientRect getBoundingClientRect() { | |
116 return _getBoundingClientRect(this); | |
117 } | |
118 static ClientRect _getBoundingClientRect(receiver) native; | |
119 | |
120 ClientRectList getClientRects() { | |
121 return _getClientRects(this); | |
122 } | |
123 static ClientRectList _getClientRects(receiver) native; | |
124 | |
125 NodeList getElementsByClassName(String name) { | |
126 return _getElementsByClassName(this, name); | |
127 } | |
128 static NodeList _getElementsByClassName(receiver, name) native; | |
129 | |
130 NodeList getElementsByTagName(String name) { | |
131 return _getElementsByTagName(this, name); | |
132 } | |
133 static NodeList _getElementsByTagName(receiver, name) native; | |
134 | |
135 NodeList getElementsByTagNameNS(String namespaceURI, String localName) { | |
136 return _getElementsByTagNameNS(this, namespaceURI, localName); | |
137 } | |
138 static NodeList _getElementsByTagNameNS(receiver, namespaceURI, localName) nat
ive; | |
139 | |
140 bool hasAttribute(String name) { | |
141 return _hasAttribute(this, name); | |
142 } | |
143 static bool _hasAttribute(receiver, name) native; | |
144 | |
145 bool hasAttributeNS(String namespaceURI, String localName) { | |
146 return _hasAttributeNS(this, namespaceURI, localName); | |
147 } | |
148 static bool _hasAttributeNS(receiver, namespaceURI, localName) native; | |
149 | |
150 Element querySelector(String selectors) { | |
151 return _querySelector(this, selectors); | |
152 } | |
153 static Element _querySelector(receiver, selectors) native; | |
154 | |
155 NodeList querySelectorAll(String selectors) { | |
156 return _querySelectorAll(this, selectors); | |
157 } | |
158 static NodeList _querySelectorAll(receiver, selectors) native; | |
159 | |
160 void removeAttribute(String name) { | |
161 _removeAttribute(this, name); | |
162 return; | |
163 } | |
164 static void _removeAttribute(receiver, name) native; | |
165 | |
166 void removeAttributeNS(String namespaceURI, String localName) { | |
167 _removeAttributeNS(this, namespaceURI, localName); | |
168 return; | |
169 } | |
170 static void _removeAttributeNS(receiver, namespaceURI, localName) native; | |
171 | |
172 Attr removeAttributeNode(Attr oldAttr) { | |
173 return _removeAttributeNode(this, oldAttr); | |
174 } | |
175 static Attr _removeAttributeNode(receiver, oldAttr) native; | |
176 | |
177 void scrollByLines(int lines) { | |
178 _scrollByLines(this, lines); | |
179 return; | |
180 } | |
181 static void _scrollByLines(receiver, lines) native; | |
182 | |
183 void scrollByPages(int pages) { | |
184 _scrollByPages(this, pages); | |
185 return; | |
186 } | |
187 static void _scrollByPages(receiver, pages) native; | |
188 | |
189 void scrollIntoView([bool alignWithTop = null]) { | |
190 if (alignWithTop === null) { | |
191 _scrollIntoView(this); | |
192 return; | |
193 } else { | |
194 _scrollIntoView_2(this, alignWithTop); | |
195 return; | |
196 } | |
197 } | |
198 static void _scrollIntoView(receiver) native; | |
199 static void _scrollIntoView_2(receiver, alignWithTop) native; | |
200 | |
201 void scrollIntoViewIfNeeded([bool centerIfNeeded = null]) { | |
202 if (centerIfNeeded === null) { | |
203 _scrollIntoViewIfNeeded(this); | |
204 return; | |
205 } else { | |
206 _scrollIntoViewIfNeeded_2(this, centerIfNeeded); | |
207 return; | |
208 } | |
209 } | |
210 static void _scrollIntoViewIfNeeded(receiver) native; | |
211 static void _scrollIntoViewIfNeeded_2(receiver, centerIfNeeded) native; | |
212 | |
213 void setAttribute(String name, String value) { | |
214 _setAttribute(this, name, value); | |
215 return; | |
216 } | |
217 static void _setAttribute(receiver, name, value) native; | |
218 | |
219 void setAttributeNS(String namespaceURI, String qualifiedName, String value) { | |
220 _setAttributeNS(this, namespaceURI, qualifiedName, value); | |
221 return; | |
222 } | |
223 static void _setAttributeNS(receiver, namespaceURI, qualifiedName, value) nati
ve; | |
224 | |
225 Attr setAttributeNode(Attr newAttr) { | |
226 return _setAttributeNode(this, newAttr); | |
227 } | |
228 static Attr _setAttributeNode(receiver, newAttr) native; | |
229 | |
230 Attr setAttributeNodeNS(Attr newAttr) { | |
231 return _setAttributeNodeNS(this, newAttr); | |
232 } | |
233 static Attr _setAttributeNodeNS(receiver, newAttr) native; | |
234 | |
235 bool webkitMatchesSelector(String selectors) { | |
236 return _webkitMatchesSelector(this, selectors); | |
237 } | |
238 static bool _webkitMatchesSelector(receiver, selectors) native; | |
239 | |
240 void webkitRequestFullScreen(int flags) { | |
241 _webkitRequestFullScreen(this, flags); | |
242 return; | |
243 } | |
244 static void _webkitRequestFullScreen(receiver, flags) native; | |
245 | |
246 String get typeName() { return "Element"; } | |
247 } | |
OLD | NEW |