OLD | NEW |
1 library html; | 1 library html; |
2 | 2 |
3 import 'dart:async'; | 3 import 'dart:async'; |
4 import 'dart:collection'; | 4 import 'dart:collection'; |
5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
6 import 'dart:indexed_db'; | 6 import 'dart:indexed_db'; |
7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
8 import 'dart:json' as json; | 8 import 'dart:json' as json; |
9 import 'dart:math'; | 9 import 'dart:math'; |
10 import 'dart:svg' as svg; | 10 import 'dart:svg' as svg; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 _callPortSync(int id, message) { | 47 _callPortSync(int id, message) { |
48 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 48 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
49 } | 49 } |
50 | 50 |
51 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f); | 51 spawnDomFunction(f) => IsolateNatives.spawnDomFunction(f); |
52 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 52 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
53 // for details. All rights reserved. Use of this source code is governed by a | 53 // for details. All rights reserved. Use of this source code is governed by a |
54 // BSD-style license that can be found in the LICENSE file. | 54 // BSD-style license that can be found in the LICENSE file. |
55 | 55 |
56 | 56 |
57 /// @domName AbstractWorker; @docsEditable true | 57 /// @docsEditable true |
| 58 @DomName("AbstractWorker") |
58 class AbstractWorker extends EventTarget native "*AbstractWorker" { | 59 class AbstractWorker extends EventTarget native "*AbstractWorker" { |
59 | 60 |
60 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 61 /// @docsEditable true |
| 62 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
61 AbstractWorkerEvents get on => | 63 AbstractWorkerEvents get on => |
62 new AbstractWorkerEvents(this); | 64 new AbstractWorkerEvents(this); |
63 | 65 |
64 /// @domName AbstractWorker.addEventListener; @docsEditable true | 66 /// @docsEditable true |
65 @JSName('addEventListener') | 67 @JSName('addEventListener') |
| 68 @DomName("AbstractWorker.addEventListener") |
66 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 69 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
67 | 70 |
68 /// @domName AbstractWorker.dispatchEvent; @docsEditable true | 71 /// @docsEditable true |
69 @JSName('dispatchEvent') | 72 @JSName('dispatchEvent') |
| 73 @DomName("AbstractWorker.dispatchEvent") |
70 bool $dom_dispatchEvent(Event evt) native; | 74 bool $dom_dispatchEvent(Event evt) native; |
71 | 75 |
72 /// @domName AbstractWorker.removeEventListener; @docsEditable true | 76 /// @docsEditable true |
73 @JSName('removeEventListener') | 77 @JSName('removeEventListener') |
| 78 @DomName("AbstractWorker.removeEventListener") |
74 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 79 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
75 } | 80 } |
76 | 81 |
77 /// @docsEditable true | 82 /// @docsEditable true |
78 class AbstractWorkerEvents extends Events { | 83 class AbstractWorkerEvents extends Events { |
79 /// @docsEditable true | 84 /// @docsEditable true |
80 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); | 85 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); |
81 | 86 |
82 /// @docsEditable true | 87 /// @docsEditable true |
83 EventListenerList get error => this['error']; | 88 EventListenerList get error => this['error']; |
84 } | 89 } |
85 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 90 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
86 // for details. All rights reserved. Use of this source code is governed by a | 91 // for details. All rights reserved. Use of this source code is governed by a |
87 // BSD-style license that can be found in the LICENSE file. | 92 // BSD-style license that can be found in the LICENSE file. |
88 | 93 |
89 | 94 |
90 /// @domName HTMLAnchorElement; @docsEditable true | 95 /// @docsEditable true |
| 96 @DomName("HTMLAnchorElement") |
91 class AnchorElement extends Element native "*HTMLAnchorElement" { | 97 class AnchorElement extends Element native "*HTMLAnchorElement" { |
92 | 98 |
93 ///@docsEditable true | 99 /// @docsEditable true |
94 factory AnchorElement({String href}) { | 100 factory AnchorElement({String href}) { |
95 var e = document.$dom_createElement("a"); | 101 var e = document.$dom_createElement("a"); |
96 if (href != null) e.href = href; | 102 if (href != null) e.href = href; |
97 return e; | 103 return e; |
98 } | 104 } |
99 | 105 |
100 /// @domName HTMLAnchorElement.download; @docsEditable true | 106 /// @docsEditable true |
| 107 @DomName("HTMLAnchorElement.download") |
101 String download; | 108 String download; |
102 | 109 |
103 /// @domName HTMLAnchorElement.hash; @docsEditable true | 110 /// @docsEditable true |
| 111 @DomName("HTMLAnchorElement.hash") |
104 String hash; | 112 String hash; |
105 | 113 |
106 /// @domName HTMLAnchorElement.host; @docsEditable true | 114 /// @docsEditable true |
| 115 @DomName("HTMLAnchorElement.host") |
107 String host; | 116 String host; |
108 | 117 |
109 /// @domName HTMLAnchorElement.hostname; @docsEditable true | 118 /// @docsEditable true |
| 119 @DomName("HTMLAnchorElement.hostname") |
110 String hostname; | 120 String hostname; |
111 | 121 |
112 /// @domName HTMLAnchorElement.href; @docsEditable true | 122 /// @docsEditable true |
| 123 @DomName("HTMLAnchorElement.href") |
113 String href; | 124 String href; |
114 | 125 |
115 /// @domName HTMLAnchorElement.hreflang; @docsEditable true | 126 /// @docsEditable true |
| 127 @DomName("HTMLAnchorElement.hreflang") |
116 String hreflang; | 128 String hreflang; |
117 | 129 |
118 /// @domName HTMLAnchorElement.name; @docsEditable true | 130 /// @docsEditable true |
| 131 @DomName("HTMLAnchorElement.name") |
119 String name; | 132 String name; |
120 | 133 |
121 /// @domName HTMLAnchorElement.origin; @docsEditable true | 134 /// @docsEditable true |
| 135 @DomName("HTMLAnchorElement.origin") |
122 final String origin; | 136 final String origin; |
123 | 137 |
124 /// @domName HTMLAnchorElement.pathname; @docsEditable true | 138 /// @docsEditable true |
| 139 @DomName("HTMLAnchorElement.pathname") |
125 String pathname; | 140 String pathname; |
126 | 141 |
127 /// @domName HTMLAnchorElement.ping; @docsEditable true | 142 /// @docsEditable true |
| 143 @DomName("HTMLAnchorElement.ping") |
128 String ping; | 144 String ping; |
129 | 145 |
130 /// @domName HTMLAnchorElement.port; @docsEditable true | 146 /// @docsEditable true |
| 147 @DomName("HTMLAnchorElement.port") |
131 String port; | 148 String port; |
132 | 149 |
133 /// @domName HTMLAnchorElement.protocol; @docsEditable true | 150 /// @docsEditable true |
| 151 @DomName("HTMLAnchorElement.protocol") |
134 String protocol; | 152 String protocol; |
135 | 153 |
136 /// @domName HTMLAnchorElement.rel; @docsEditable true | 154 /// @docsEditable true |
| 155 @DomName("HTMLAnchorElement.rel") |
137 String rel; | 156 String rel; |
138 | 157 |
139 /// @domName HTMLAnchorElement.search; @docsEditable true | 158 /// @docsEditable true |
| 159 @DomName("HTMLAnchorElement.search") |
140 String search; | 160 String search; |
141 | 161 |
142 /// @domName HTMLAnchorElement.target; @docsEditable true | 162 /// @docsEditable true |
| 163 @DomName("HTMLAnchorElement.target") |
143 String target; | 164 String target; |
144 | 165 |
145 /// @domName HTMLAnchorElement.type; @docsEditable true | 166 /// @docsEditable true |
| 167 @DomName("HTMLAnchorElement.type") |
146 String type; | 168 String type; |
147 | 169 |
148 /// @domName HTMLAnchorElement.toString; @docsEditable true | 170 /// @docsEditable true |
| 171 @DomName("HTMLAnchorElement.toString") |
149 String toString() native; | 172 String toString() native; |
150 } | 173 } |
151 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 174 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
152 // for details. All rights reserved. Use of this source code is governed by a | 175 // for details. All rights reserved. Use of this source code is governed by a |
153 // BSD-style license that can be found in the LICENSE file. | 176 // BSD-style license that can be found in the LICENSE file. |
154 | 177 |
155 | 178 |
156 /// @domName WebKitAnimationEvent; @docsEditable true | 179 /// @docsEditable true |
| 180 @DomName("WebKitAnimationEvent") |
157 class AnimationEvent extends Event native "*WebKitAnimationEvent" { | 181 class AnimationEvent extends Event native "*WebKitAnimationEvent" { |
158 | 182 |
159 /// @domName WebKitAnimationEvent.animationName; @docsEditable true | 183 /// @docsEditable true |
| 184 @DomName("WebKitAnimationEvent.animationName") |
160 final String animationName; | 185 final String animationName; |
161 | 186 |
162 /// @domName WebKitAnimationEvent.elapsedTime; @docsEditable true | 187 /// @docsEditable true |
| 188 @DomName("WebKitAnimationEvent.elapsedTime") |
163 final num elapsedTime; | 189 final num elapsedTime; |
164 } | 190 } |
165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
166 // for details. All rights reserved. Use of this source code is governed by a | 192 // for details. All rights reserved. Use of this source code is governed by a |
167 // BSD-style license that can be found in the LICENSE file. | 193 // BSD-style license that can be found in the LICENSE file. |
168 | 194 |
169 | 195 |
170 /// @domName HTMLAppletElement; @docsEditable true | 196 /// @docsEditable true |
| 197 @DomName("HTMLAppletElement") |
171 class AppletElement extends Element native "*HTMLAppletElement" { | 198 class AppletElement extends Element native "*HTMLAppletElement" { |
172 | 199 |
173 /// @domName HTMLAppletElement.align; @docsEditable true | 200 /// @docsEditable true |
| 201 @DomName("HTMLAppletElement.align") |
174 String align; | 202 String align; |
175 | 203 |
176 /// @domName HTMLAppletElement.alt; @docsEditable true | 204 /// @docsEditable true |
| 205 @DomName("HTMLAppletElement.alt") |
177 String alt; | 206 String alt; |
178 | 207 |
179 /// @domName HTMLAppletElement.archive; @docsEditable true | 208 /// @docsEditable true |
| 209 @DomName("HTMLAppletElement.archive") |
180 String archive; | 210 String archive; |
181 | 211 |
182 /// @domName HTMLAppletElement.code; @docsEditable true | 212 /// @docsEditable true |
| 213 @DomName("HTMLAppletElement.code") |
183 String code; | 214 String code; |
184 | 215 |
185 /// @domName HTMLAppletElement.codeBase; @docsEditable true | 216 /// @docsEditable true |
| 217 @DomName("HTMLAppletElement.codeBase") |
186 String codeBase; | 218 String codeBase; |
187 | 219 |
188 /// @domName HTMLAppletElement.height; @docsEditable true | 220 /// @docsEditable true |
| 221 @DomName("HTMLAppletElement.height") |
189 String height; | 222 String height; |
190 | 223 |
191 /// @domName HTMLAppletElement.hspace; @docsEditable true | 224 /// @docsEditable true |
| 225 @DomName("HTMLAppletElement.hspace") |
192 String hspace; | 226 String hspace; |
193 | 227 |
194 /// @domName HTMLAppletElement.name; @docsEditable true | 228 /// @docsEditable true |
| 229 @DomName("HTMLAppletElement.name") |
195 String name; | 230 String name; |
196 | 231 |
197 /// @domName HTMLAppletElement.object; @docsEditable true | 232 /// @docsEditable true |
| 233 @DomName("HTMLAppletElement.object") |
198 String object; | 234 String object; |
199 | 235 |
200 /// @domName HTMLAppletElement.vspace; @docsEditable true | 236 /// @docsEditable true |
| 237 @DomName("HTMLAppletElement.vspace") |
201 String vspace; | 238 String vspace; |
202 | 239 |
203 /// @domName HTMLAppletElement.width; @docsEditable true | 240 /// @docsEditable true |
| 241 @DomName("HTMLAppletElement.width") |
204 String width; | 242 String width; |
205 } | 243 } |
206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 244 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
207 // for details. All rights reserved. Use of this source code is governed by a | 245 // for details. All rights reserved. Use of this source code is governed by a |
208 // BSD-style license that can be found in the LICENSE file. | 246 // BSD-style license that can be found in the LICENSE file. |
209 | 247 |
210 | 248 |
211 /// @domName DOMApplicationCache; @docsEditable true | 249 /// @docsEditable true |
| 250 @DomName("DOMApplicationCache") |
212 class ApplicationCache extends EventTarget native "*DOMApplicationCache" { | 251 class ApplicationCache extends EventTarget native "*DOMApplicationCache" { |
213 | 252 |
214 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 253 /// @docsEditable true |
| 254 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
215 ApplicationCacheEvents get on => | 255 ApplicationCacheEvents get on => |
216 new ApplicationCacheEvents(this); | 256 new ApplicationCacheEvents(this); |
217 | 257 |
218 static const int CHECKING = 2; | 258 static const int CHECKING = 2; |
219 | 259 |
220 static const int DOWNLOADING = 3; | 260 static const int DOWNLOADING = 3; |
221 | 261 |
222 static const int IDLE = 1; | 262 static const int IDLE = 1; |
223 | 263 |
224 static const int OBSOLETE = 5; | 264 static const int OBSOLETE = 5; |
225 | 265 |
226 static const int UNCACHED = 0; | 266 static const int UNCACHED = 0; |
227 | 267 |
228 static const int UPDATEREADY = 4; | 268 static const int UPDATEREADY = 4; |
229 | 269 |
230 /// @domName DOMApplicationCache.status; @docsEditable true | 270 /// @docsEditable true |
| 271 @DomName("DOMApplicationCache.status") |
231 final int status; | 272 final int status; |
232 | 273 |
233 /// @domName DOMApplicationCache.abort; @docsEditable true | 274 /// @docsEditable true |
| 275 @DomName("DOMApplicationCache.abort") |
234 void abort() native; | 276 void abort() native; |
235 | 277 |
236 /// @domName DOMApplicationCache.addEventListener; @docsEditable true | 278 /// @docsEditable true |
237 @JSName('addEventListener') | 279 @JSName('addEventListener') |
| 280 @DomName("DOMApplicationCache.addEventListener") |
238 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 281 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
239 | 282 |
240 /// @domName DOMApplicationCache.dispatchEvent; @docsEditable true | 283 /// @docsEditable true |
241 @JSName('dispatchEvent') | 284 @JSName('dispatchEvent') |
| 285 @DomName("DOMApplicationCache.dispatchEvent") |
242 bool $dom_dispatchEvent(Event evt) native; | 286 bool $dom_dispatchEvent(Event evt) native; |
243 | 287 |
244 /// @domName DOMApplicationCache.removeEventListener; @docsEditable true | 288 /// @docsEditable true |
245 @JSName('removeEventListener') | 289 @JSName('removeEventListener') |
| 290 @DomName("DOMApplicationCache.removeEventListener") |
246 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 291 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
247 | 292 |
248 /// @domName DOMApplicationCache.swapCache; @docsEditable true | 293 /// @docsEditable true |
| 294 @DomName("DOMApplicationCache.swapCache") |
249 void swapCache() native; | 295 void swapCache() native; |
250 | 296 |
251 /// @domName DOMApplicationCache.update; @docsEditable true | 297 /// @docsEditable true |
| 298 @DomName("DOMApplicationCache.update") |
252 void update() native; | 299 void update() native; |
253 } | 300 } |
254 | 301 |
255 /// @docsEditable true | 302 /// @docsEditable true |
256 class ApplicationCacheEvents extends Events { | 303 class ApplicationCacheEvents extends Events { |
257 /// @docsEditable true | 304 /// @docsEditable true |
258 ApplicationCacheEvents(EventTarget _ptr) : super(_ptr); | 305 ApplicationCacheEvents(EventTarget _ptr) : super(_ptr); |
259 | 306 |
260 /// @docsEditable true | 307 /// @docsEditable true |
261 EventListenerList get cached => this['cached']; | 308 EventListenerList get cached => this['cached']; |
(...skipping 17 matching lines...) Expand all Loading... |
279 EventListenerList get progress => this['progress']; | 326 EventListenerList get progress => this['progress']; |
280 | 327 |
281 /// @docsEditable true | 328 /// @docsEditable true |
282 EventListenerList get updateReady => this['updateready']; | 329 EventListenerList get updateReady => this['updateready']; |
283 } | 330 } |
284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
285 // for details. All rights reserved. Use of this source code is governed by a | 332 // for details. All rights reserved. Use of this source code is governed by a |
286 // BSD-style license that can be found in the LICENSE file. | 333 // BSD-style license that can be found in the LICENSE file. |
287 | 334 |
288 | 335 |
289 /// @domName HTMLAreaElement; @docsEditable true | 336 /// @docsEditable true |
| 337 @DomName("HTMLAreaElement") |
290 class AreaElement extends Element native "*HTMLAreaElement" { | 338 class AreaElement extends Element native "*HTMLAreaElement" { |
291 | 339 |
292 ///@docsEditable true | 340 /// @docsEditable true |
293 factory AreaElement() => document.$dom_createElement("area"); | 341 factory AreaElement() => document.$dom_createElement("area"); |
294 | 342 |
295 /// @domName HTMLAreaElement.alt; @docsEditable true | 343 /// @docsEditable true |
| 344 @DomName("HTMLAreaElement.alt") |
296 String alt; | 345 String alt; |
297 | 346 |
298 /// @domName HTMLAreaElement.coords; @docsEditable true | 347 /// @docsEditable true |
| 348 @DomName("HTMLAreaElement.coords") |
299 String coords; | 349 String coords; |
300 | 350 |
301 /// @domName HTMLAreaElement.hash; @docsEditable true | 351 /// @docsEditable true |
| 352 @DomName("HTMLAreaElement.hash") |
302 final String hash; | 353 final String hash; |
303 | 354 |
304 /// @domName HTMLAreaElement.host; @docsEditable true | 355 /// @docsEditable true |
| 356 @DomName("HTMLAreaElement.host") |
305 final String host; | 357 final String host; |
306 | 358 |
307 /// @domName HTMLAreaElement.hostname; @docsEditable true | 359 /// @docsEditable true |
| 360 @DomName("HTMLAreaElement.hostname") |
308 final String hostname; | 361 final String hostname; |
309 | 362 |
310 /// @domName HTMLAreaElement.href; @docsEditable true | 363 /// @docsEditable true |
| 364 @DomName("HTMLAreaElement.href") |
311 String href; | 365 String href; |
312 | 366 |
313 /// @domName HTMLAreaElement.pathname; @docsEditable true | 367 /// @docsEditable true |
| 368 @DomName("HTMLAreaElement.pathname") |
314 final String pathname; | 369 final String pathname; |
315 | 370 |
316 /// @domName HTMLAreaElement.ping; @docsEditable true | 371 /// @docsEditable true |
| 372 @DomName("HTMLAreaElement.ping") |
317 String ping; | 373 String ping; |
318 | 374 |
319 /// @domName HTMLAreaElement.port; @docsEditable true | 375 /// @docsEditable true |
| 376 @DomName("HTMLAreaElement.port") |
320 final String port; | 377 final String port; |
321 | 378 |
322 /// @domName HTMLAreaElement.protocol; @docsEditable true | 379 /// @docsEditable true |
| 380 @DomName("HTMLAreaElement.protocol") |
323 final String protocol; | 381 final String protocol; |
324 | 382 |
325 /// @domName HTMLAreaElement.search; @docsEditable true | 383 /// @docsEditable true |
| 384 @DomName("HTMLAreaElement.search") |
326 final String search; | 385 final String search; |
327 | 386 |
328 /// @domName HTMLAreaElement.shape; @docsEditable true | 387 /// @docsEditable true |
| 388 @DomName("HTMLAreaElement.shape") |
329 String shape; | 389 String shape; |
330 | 390 |
331 /// @domName HTMLAreaElement.target; @docsEditable true | 391 /// @docsEditable true |
| 392 @DomName("HTMLAreaElement.target") |
332 String target; | 393 String target; |
333 } | 394 } |
334 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 395 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
335 // for details. All rights reserved. Use of this source code is governed by a | 396 // for details. All rights reserved. Use of this source code is governed by a |
336 // BSD-style license that can be found in the LICENSE file. | 397 // BSD-style license that can be found in the LICENSE file. |
337 | 398 |
338 | 399 |
339 /// @domName ArrayBuffer | 400 |
| 401 @DomName("ArrayBuffer") |
340 @SupportedBrowser(SupportedBrowser.CHROME) | 402 @SupportedBrowser(SupportedBrowser.CHROME) |
341 @SupportedBrowser(SupportedBrowser.FIREFOX) | 403 @SupportedBrowser(SupportedBrowser.FIREFOX) |
342 @SupportedBrowser(SupportedBrowser.IE, '10') | 404 @SupportedBrowser(SupportedBrowser.IE, '10') |
343 @SupportedBrowser(SupportedBrowser.SAFARI) | 405 @SupportedBrowser(SupportedBrowser.SAFARI) |
344 class ArrayBuffer native "*ArrayBuffer" { | 406 class ArrayBuffer native "*ArrayBuffer" { |
345 | 407 |
346 ///@docsEditable true | 408 /// @docsEditable true |
347 factory ArrayBuffer(int length) => ArrayBuffer._create(length); | 409 factory ArrayBuffer(int length) => ArrayBuffer._create(length); |
348 static ArrayBuffer _create(int length) => JS('ArrayBuffer', 'new ArrayBuffer(#
)', length); | 410 static ArrayBuffer _create(int length) => JS('ArrayBuffer', 'new ArrayBuffer(#
)', length); |
349 | 411 |
350 /// Checks if this type is supported on the current platform. | 412 /// Checks if this type is supported on the current platform. |
351 static bool get supported => JS('bool', 'typeof window.ArrayBuffer != "undefin
ed"'); | 413 static bool get supported => JS('bool', 'typeof window.ArrayBuffer != "undefin
ed"'); |
352 | 414 |
353 /// @domName ArrayBuffer.byteLength; @docsEditable true | 415 /// @docsEditable true |
| 416 @DomName("ArrayBuffer.byteLength") |
354 final int byteLength; | 417 final int byteLength; |
355 | 418 |
356 /// @domName ArrayBuffer.slice; | 419 @DomName("ArrayBuffer.slice") |
357 ArrayBuffer slice(int begin, [int end]) { | 420 ArrayBuffer slice(int begin, [int end]) { |
358 // IE10 supports ArrayBuffers but does not have the slice method. | 421 // IE10 supports ArrayBuffers but does not have the slice method. |
359 if (JS('bool', '!!#.slice', this)) { | 422 if (JS('bool', '!!#.slice', this)) { |
360 if (?end) { | 423 if (?end) { |
361 return JS('ArrayBuffer', '#.slice(#, #)', this, begin, end); | 424 return JS('ArrayBuffer', '#.slice(#, #)', this, begin, end); |
362 } | 425 } |
363 return JS('ArrayBuffer', '#.slice(#)', this, begin); | 426 return JS('ArrayBuffer', '#.slice(#)', this, begin); |
364 } else { | 427 } else { |
365 var start = begin; | 428 var start = begin; |
366 // Negative values go from end. | 429 // Negative values go from end. |
(...skipping 13 matching lines...) Expand all Loading... |
380 } | 443 } |
381 return clone.buffer; | 444 return clone.buffer; |
382 } | 445 } |
383 } | 446 } |
384 } | 447 } |
385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
386 // for details. All rights reserved. Use of this source code is governed by a | 449 // for details. All rights reserved. Use of this source code is governed by a |
387 // BSD-style license that can be found in the LICENSE file. | 450 // BSD-style license that can be found in the LICENSE file. |
388 | 451 |
389 | 452 |
390 /// @domName ArrayBufferView; @docsEditable true | 453 /// @docsEditable true |
| 454 @DomName("ArrayBufferView") |
391 @SupportedBrowser(SupportedBrowser.CHROME) | 455 @SupportedBrowser(SupportedBrowser.CHROME) |
392 @SupportedBrowser(SupportedBrowser.FIREFOX) | 456 @SupportedBrowser(SupportedBrowser.FIREFOX) |
393 @SupportedBrowser(SupportedBrowser.IE, '10') | 457 @SupportedBrowser(SupportedBrowser.IE, '10') |
394 @SupportedBrowser(SupportedBrowser.SAFARI) | 458 @SupportedBrowser(SupportedBrowser.SAFARI) |
395 class ArrayBufferView native "*ArrayBufferView" { | 459 class ArrayBufferView native "*ArrayBufferView" { |
396 | 460 |
397 /// @domName ArrayBufferView.buffer; @docsEditable true | 461 /// @docsEditable true |
| 462 @DomName("ArrayBufferView.buffer") |
398 final ArrayBuffer buffer; | 463 final ArrayBuffer buffer; |
399 | 464 |
400 /// @domName ArrayBufferView.byteLength; @docsEditable true | 465 /// @docsEditable true |
| 466 @DomName("ArrayBufferView.byteLength") |
401 final int byteLength; | 467 final int byteLength; |
402 | 468 |
403 /// @domName ArrayBufferView.byteOffset; @docsEditable true | 469 /// @docsEditable true |
| 470 @DomName("ArrayBufferView.byteOffset") |
404 final int byteOffset; | 471 final int byteOffset; |
405 } | 472 } |
406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
407 // for details. All rights reserved. Use of this source code is governed by a | 474 // for details. All rights reserved. Use of this source code is governed by a |
408 // BSD-style license that can be found in the LICENSE file. | 475 // BSD-style license that can be found in the LICENSE file. |
409 | 476 |
410 | 477 |
411 /// @domName Attr; @docsEditable true | 478 /// @docsEditable true |
| 479 @DomName("Attr") |
412 class Attr extends Node native "*Attr" { | 480 class Attr extends Node native "*Attr" { |
413 | 481 |
414 /// @domName Attr.isId; @docsEditable true | 482 /// @docsEditable true |
| 483 @DomName("Attr.isId") |
415 final bool isId; | 484 final bool isId; |
416 | 485 |
417 /// @domName Attr.name; @docsEditable true | 486 /// @docsEditable true |
| 487 @DomName("Attr.name") |
418 final String name; | 488 final String name; |
419 | 489 |
420 /// @domName Attr.ownerElement; @docsEditable true | 490 /// @docsEditable true |
| 491 @DomName("Attr.ownerElement") |
421 final Element ownerElement; | 492 final Element ownerElement; |
422 | 493 |
423 /// @domName Attr.specified; @docsEditable true | 494 /// @docsEditable true |
| 495 @DomName("Attr.specified") |
424 final bool specified; | 496 final bool specified; |
425 | 497 |
426 /// @domName Attr.value; @docsEditable true | 498 /// @docsEditable true |
| 499 @DomName("Attr.value") |
427 String value; | 500 String value; |
428 } | 501 } |
429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
430 // for details. All rights reserved. Use of this source code is governed by a | 503 // for details. All rights reserved. Use of this source code is governed by a |
431 // BSD-style license that can be found in the LICENSE file. | 504 // BSD-style license that can be found in the LICENSE file. |
432 | 505 |
433 | 506 |
434 /// @domName HTMLAudioElement; @docsEditable true | 507 /// @docsEditable true |
| 508 @DomName("HTMLAudioElement") |
435 class AudioElement extends MediaElement native "*HTMLAudioElement" { | 509 class AudioElement extends MediaElement native "*HTMLAudioElement" { |
436 | 510 |
437 ///@docsEditable true | 511 /// @docsEditable true |
438 factory AudioElement([String src]) { | 512 factory AudioElement([String src]) { |
439 if (!?src) { | 513 if (!?src) { |
440 return AudioElement._create(); | 514 return AudioElement._create(); |
441 } | 515 } |
442 return AudioElement._create(src); | 516 return AudioElement._create(src); |
443 } | 517 } |
444 static AudioElement _create([String src]) { | 518 static AudioElement _create([String src]) { |
445 if (!?src) { | 519 if (!?src) { |
446 return JS('AudioElement', 'new Audio()'); | 520 return JS('AudioElement', 'new Audio()'); |
447 } | 521 } |
448 return JS('AudioElement', 'new Audio(#)', src); | 522 return JS('AudioElement', 'new Audio(#)', src); |
449 } | 523 } |
450 } | 524 } |
451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
452 // for details. All rights reserved. Use of this source code is governed by a | 526 // for details. All rights reserved. Use of this source code is governed by a |
453 // BSD-style license that can be found in the LICENSE file. | 527 // BSD-style license that can be found in the LICENSE file. |
454 | 528 |
455 | 529 |
456 /// @domName HTMLBRElement; @docsEditable true | 530 /// @docsEditable true |
| 531 @DomName("HTMLBRElement") |
457 class BRElement extends Element native "*HTMLBRElement" { | 532 class BRElement extends Element native "*HTMLBRElement" { |
458 | 533 |
459 ///@docsEditable true | 534 /// @docsEditable true |
460 factory BRElement() => document.$dom_createElement("br"); | 535 factory BRElement() => document.$dom_createElement("br"); |
461 } | 536 } |
462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
463 // for details. All rights reserved. Use of this source code is governed by a | 538 // for details. All rights reserved. Use of this source code is governed by a |
464 // BSD-style license that can be found in the LICENSE file. | 539 // BSD-style license that can be found in the LICENSE file. |
465 | 540 |
466 | 541 |
467 /// @domName BarInfo; @docsEditable true | 542 /// @docsEditable true |
| 543 @DomName("BarInfo") |
468 class BarInfo native "*BarInfo" { | 544 class BarInfo native "*BarInfo" { |
469 | 545 |
470 /// @domName BarInfo.visible; @docsEditable true | 546 /// @docsEditable true |
| 547 @DomName("BarInfo.visible") |
471 final bool visible; | 548 final bool visible; |
472 } | 549 } |
473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
474 // for details. All rights reserved. Use of this source code is governed by a | 551 // for details. All rights reserved. Use of this source code is governed by a |
475 // BSD-style license that can be found in the LICENSE file. | 552 // BSD-style license that can be found in the LICENSE file. |
476 | 553 |
477 | 554 |
478 /// @domName HTMLBaseElement; @docsEditable true | 555 /// @docsEditable true |
| 556 @DomName("HTMLBaseElement") |
479 class BaseElement extends Element native "*HTMLBaseElement" { | 557 class BaseElement extends Element native "*HTMLBaseElement" { |
480 | 558 |
481 ///@docsEditable true | 559 /// @docsEditable true |
482 factory BaseElement() => document.$dom_createElement("base"); | 560 factory BaseElement() => document.$dom_createElement("base"); |
483 | 561 |
484 /// @domName HTMLBaseElement.href; @docsEditable true | 562 /// @docsEditable true |
| 563 @DomName("HTMLBaseElement.href") |
485 String href; | 564 String href; |
486 | 565 |
487 /// @domName HTMLBaseElement.target; @docsEditable true | 566 /// @docsEditable true |
| 567 @DomName("HTMLBaseElement.target") |
488 String target; | 568 String target; |
489 } | 569 } |
490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 570 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
491 // for details. All rights reserved. Use of this source code is governed by a | 571 // for details. All rights reserved. Use of this source code is governed by a |
492 // BSD-style license that can be found in the LICENSE file. | 572 // BSD-style license that can be found in the LICENSE file. |
493 | 573 |
494 | 574 |
495 /// @domName HTMLBaseFontElement; @docsEditable true | 575 /// @docsEditable true |
| 576 @DomName("HTMLBaseFontElement") |
496 class BaseFontElement extends Element native "*HTMLBaseFontElement" { | 577 class BaseFontElement extends Element native "*HTMLBaseFontElement" { |
497 | 578 |
498 /// @domName HTMLBaseFontElement.color; @docsEditable true | 579 /// @docsEditable true |
| 580 @DomName("HTMLBaseFontElement.color") |
499 String color; | 581 String color; |
500 | 582 |
501 /// @domName HTMLBaseFontElement.face; @docsEditable true | 583 /// @docsEditable true |
| 584 @DomName("HTMLBaseFontElement.face") |
502 String face; | 585 String face; |
503 | 586 |
504 /// @domName HTMLBaseFontElement.size; @docsEditable true | 587 /// @docsEditable true |
| 588 @DomName("HTMLBaseFontElement.size") |
505 int size; | 589 int size; |
506 } | 590 } |
507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
508 // for details. All rights reserved. Use of this source code is governed by a | 592 // for details. All rights reserved. Use of this source code is governed by a |
509 // BSD-style license that can be found in the LICENSE file. | 593 // BSD-style license that can be found in the LICENSE file. |
510 | 594 |
511 | 595 |
512 /// @domName BatteryManager; @docsEditable true | 596 /// @docsEditable true |
| 597 @DomName("BatteryManager") |
513 class BatteryManager extends EventTarget native "*BatteryManager" { | 598 class BatteryManager extends EventTarget native "*BatteryManager" { |
514 | 599 |
515 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 600 /// @docsEditable true |
| 601 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
516 BatteryManagerEvents get on => | 602 BatteryManagerEvents get on => |
517 new BatteryManagerEvents(this); | 603 new BatteryManagerEvents(this); |
518 | 604 |
519 /// @domName BatteryManager.charging; @docsEditable true | 605 /// @docsEditable true |
| 606 @DomName("BatteryManager.charging") |
520 final bool charging; | 607 final bool charging; |
521 | 608 |
522 /// @domName BatteryManager.chargingTime; @docsEditable true | 609 /// @docsEditable true |
| 610 @DomName("BatteryManager.chargingTime") |
523 final num chargingTime; | 611 final num chargingTime; |
524 | 612 |
525 /// @domName BatteryManager.dischargingTime; @docsEditable true | 613 /// @docsEditable true |
| 614 @DomName("BatteryManager.dischargingTime") |
526 final num dischargingTime; | 615 final num dischargingTime; |
527 | 616 |
528 /// @domName BatteryManager.level; @docsEditable true | 617 /// @docsEditable true |
| 618 @DomName("BatteryManager.level") |
529 final num level; | 619 final num level; |
530 | 620 |
531 /// @domName BatteryManager.addEventListener; @docsEditable true | 621 /// @docsEditable true |
532 @JSName('addEventListener') | 622 @JSName('addEventListener') |
| 623 @DomName("BatteryManager.addEventListener") |
533 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 624 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
534 | 625 |
535 /// @domName BatteryManager.dispatchEvent; @docsEditable true | 626 /// @docsEditable true |
536 @JSName('dispatchEvent') | 627 @JSName('dispatchEvent') |
| 628 @DomName("BatteryManager.dispatchEvent") |
537 bool $dom_dispatchEvent(Event event) native; | 629 bool $dom_dispatchEvent(Event event) native; |
538 | 630 |
539 /// @domName BatteryManager.removeEventListener; @docsEditable true | 631 /// @docsEditable true |
540 @JSName('removeEventListener') | 632 @JSName('removeEventListener') |
| 633 @DomName("BatteryManager.removeEventListener") |
541 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 634 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
542 } | 635 } |
543 | 636 |
544 /// @docsEditable true | 637 /// @docsEditable true |
545 class BatteryManagerEvents extends Events { | 638 class BatteryManagerEvents extends Events { |
546 /// @docsEditable true | 639 /// @docsEditable true |
547 BatteryManagerEvents(EventTarget _ptr) : super(_ptr); | 640 BatteryManagerEvents(EventTarget _ptr) : super(_ptr); |
548 | 641 |
549 /// @docsEditable true | 642 /// @docsEditable true |
550 EventListenerList get chargingChange => this['chargingchange']; | 643 EventListenerList get chargingChange => this['chargingchange']; |
551 | 644 |
552 /// @docsEditable true | 645 /// @docsEditable true |
553 EventListenerList get chargingTimeChange => this['chargingtimechange']; | 646 EventListenerList get chargingTimeChange => this['chargingtimechange']; |
554 | 647 |
555 /// @docsEditable true | 648 /// @docsEditable true |
556 EventListenerList get dischargingTimeChange => this['dischargingtimechange']; | 649 EventListenerList get dischargingTimeChange => this['dischargingtimechange']; |
557 | 650 |
558 /// @docsEditable true | 651 /// @docsEditable true |
559 EventListenerList get levelChange => this['levelchange']; | 652 EventListenerList get levelChange => this['levelchange']; |
560 } | 653 } |
561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
562 // for details. All rights reserved. Use of this source code is governed by a | 655 // for details. All rights reserved. Use of this source code is governed by a |
563 // BSD-style license that can be found in the LICENSE file. | 656 // BSD-style license that can be found in the LICENSE file. |
564 | 657 |
565 | 658 |
566 /// @domName BeforeLoadEvent; @docsEditable true | 659 /// @docsEditable true |
| 660 @DomName("BeforeLoadEvent") |
567 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { | 661 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { |
568 | 662 |
569 /// @domName BeforeLoadEvent.url; @docsEditable true | 663 /// @docsEditable true |
| 664 @DomName("BeforeLoadEvent.url") |
570 final String url; | 665 final String url; |
571 } | 666 } |
572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
573 // for details. All rights reserved. Use of this source code is governed by a | 668 // for details. All rights reserved. Use of this source code is governed by a |
574 // BSD-style license that can be found in the LICENSE file. | 669 // BSD-style license that can be found in the LICENSE file. |
575 | 670 |
576 | 671 |
577 /// @domName Blob | 672 /// @domName Blob |
578 class Blob native "*Blob" { | 673 class Blob native "*Blob" { |
579 | 674 |
580 ///@docsEditable true | 675 /// @docsEditable true |
581 factory Blob(List blobParts, [String type, String endings]) { | 676 factory Blob(List blobParts, [String type, String endings]) { |
582 if (!?type) { | 677 if (!?type) { |
583 return Blob._create(blobParts); | 678 return Blob._create(blobParts); |
584 } | 679 } |
585 if (!?endings) { | 680 if (!?endings) { |
586 return Blob._create(blobParts, type); | 681 return Blob._create(blobParts, type); |
587 } | 682 } |
588 return Blob._create(blobParts, type, endings); | 683 return Blob._create(blobParts, type, endings); |
589 } | 684 } |
590 | 685 |
591 /// @domName Blob.size; @docsEditable true | 686 /// @docsEditable true |
| 687 @DomName("Blob.size") |
592 final int size; | 688 final int size; |
593 | 689 |
594 /// @domName Blob.type; @docsEditable true | 690 /// @docsEditable true |
| 691 @DomName("Blob.type") |
595 final String type; | 692 final String type; |
596 | 693 |
597 /// @domName Blob.slice; @docsEditable true | 694 /// @docsEditable true |
| 695 @DomName("Blob.slice") |
598 Blob slice([int start, int end, String contentType]) native; | 696 Blob slice([int start, int end, String contentType]) native; |
599 | 697 |
600 static Blob _create([List blobParts = null, String type, String endings]) { | 698 static Blob _create([List blobParts = null, String type, String endings]) { |
601 // TODO: validate that blobParts is a JS Array and convert if not. | 699 // TODO: validate that blobParts is a JS Array and convert if not. |
602 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed | 700 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed |
603 // array to ArrayBuffer if it is a total view. | 701 // array to ArrayBuffer if it is a total view. |
604 if (type == null && endings == null) { | 702 if (type == null && endings == null) { |
605 return _create_1(blobParts); | 703 return _create_1(blobParts); |
606 } | 704 } |
607 var bag = _create_bag(); | 705 var bag = _create_bag(); |
608 if (type != null) _bag_set(bag, 'type', type); | 706 if (type != null) _bag_set(bag, 'type', type); |
609 if (endings != null) _bag_set(bag, 'endings', endings); | 707 if (endings != null) _bag_set(bag, 'endings', endings); |
610 return _create_2(blobParts, bag); | 708 return _create_2(blobParts, bag); |
611 } | 709 } |
612 | 710 |
613 static _create_1(parts) => JS('Blob', 'new Blob(#)', parts); | 711 static _create_1(parts) => JS('Blob', 'new Blob(#)', parts); |
614 static _create_2(parts, bag) => JS('Blob', 'new Blob(#, #)', parts, bag); | 712 static _create_2(parts, bag) => JS('Blob', 'new Blob(#, #)', parts, bag); |
615 | 713 |
616 static _create_bag() => JS('var', '{}'); | 714 static _create_bag() => JS('var', '{}'); |
617 static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); } | 715 static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); } |
618 } | 716 } |
619 | 717 |
620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
621 // for details. All rights reserved. Use of this source code is governed by a | 719 // for details. All rights reserved. Use of this source code is governed by a |
622 // BSD-style license that can be found in the LICENSE file. | 720 // BSD-style license that can be found in the LICENSE file. |
623 | 721 |
624 | 722 |
625 /// @domName HTMLBodyElement; @docsEditable true | 723 /// @docsEditable true |
| 724 @DomName("HTMLBodyElement") |
626 class BodyElement extends Element native "*HTMLBodyElement" { | 725 class BodyElement extends Element native "*HTMLBodyElement" { |
627 | 726 |
628 ///@docsEditable true | 727 /// @docsEditable true |
629 factory BodyElement() => document.$dom_createElement("body"); | 728 factory BodyElement() => document.$dom_createElement("body"); |
630 | 729 |
631 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 730 /// @docsEditable true |
| 731 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
632 BodyElementEvents get on => | 732 BodyElementEvents get on => |
633 new BodyElementEvents(this); | 733 new BodyElementEvents(this); |
634 | 734 |
635 /// @domName HTMLBodyElement.vLink; @docsEditable true | 735 /// @docsEditable true |
| 736 @DomName("HTMLBodyElement.vLink") |
636 String vLink; | 737 String vLink; |
637 } | 738 } |
638 | 739 |
639 /// @docsEditable true | 740 /// @docsEditable true |
640 class BodyElementEvents extends ElementEvents { | 741 class BodyElementEvents extends ElementEvents { |
641 /// @docsEditable true | 742 /// @docsEditable true |
642 BodyElementEvents(EventTarget _ptr) : super(_ptr); | 743 BodyElementEvents(EventTarget _ptr) : super(_ptr); |
643 | 744 |
644 /// @docsEditable true | 745 /// @docsEditable true |
645 EventListenerList get beforeUnload => this['beforeunload']; | 746 EventListenerList get beforeUnload => this['beforeunload']; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 EventListenerList get storage => this['storage']; | 779 EventListenerList get storage => this['storage']; |
679 | 780 |
680 /// @docsEditable true | 781 /// @docsEditable true |
681 EventListenerList get unload => this['unload']; | 782 EventListenerList get unload => this['unload']; |
682 } | 783 } |
683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
684 // for details. All rights reserved. Use of this source code is governed by a | 785 // for details. All rights reserved. Use of this source code is governed by a |
685 // BSD-style license that can be found in the LICENSE file. | 786 // BSD-style license that can be found in the LICENSE file. |
686 | 787 |
687 | 788 |
688 /// @domName HTMLButtonElement; @docsEditable true | 789 /// @docsEditable true |
| 790 @DomName("HTMLButtonElement") |
689 class ButtonElement extends Element native "*HTMLButtonElement" { | 791 class ButtonElement extends Element native "*HTMLButtonElement" { |
690 | 792 |
691 ///@docsEditable true | 793 /// @docsEditable true |
692 factory ButtonElement() => document.$dom_createElement("button"); | 794 factory ButtonElement() => document.$dom_createElement("button"); |
693 | 795 |
694 /// @domName HTMLButtonElement.autofocus; @docsEditable true | 796 /// @docsEditable true |
| 797 @DomName("HTMLButtonElement.autofocus") |
695 bool autofocus; | 798 bool autofocus; |
696 | 799 |
697 /// @domName HTMLButtonElement.disabled; @docsEditable true | 800 /// @docsEditable true |
| 801 @DomName("HTMLButtonElement.disabled") |
698 bool disabled; | 802 bool disabled; |
699 | 803 |
700 /// @domName HTMLButtonElement.form; @docsEditable true | 804 /// @docsEditable true |
| 805 @DomName("HTMLButtonElement.form") |
701 final FormElement form; | 806 final FormElement form; |
702 | 807 |
703 /// @domName HTMLButtonElement.formAction; @docsEditable true | 808 /// @docsEditable true |
| 809 @DomName("HTMLButtonElement.formAction") |
704 String formAction; | 810 String formAction; |
705 | 811 |
706 /// @domName HTMLButtonElement.formEnctype; @docsEditable true | 812 /// @docsEditable true |
| 813 @DomName("HTMLButtonElement.formEnctype") |
707 String formEnctype; | 814 String formEnctype; |
708 | 815 |
709 /// @domName HTMLButtonElement.formMethod; @docsEditable true | 816 /// @docsEditable true |
| 817 @DomName("HTMLButtonElement.formMethod") |
710 String formMethod; | 818 String formMethod; |
711 | 819 |
712 /// @domName HTMLButtonElement.formNoValidate; @docsEditable true | 820 /// @docsEditable true |
| 821 @DomName("HTMLButtonElement.formNoValidate") |
713 bool formNoValidate; | 822 bool formNoValidate; |
714 | 823 |
715 /// @domName HTMLButtonElement.formTarget; @docsEditable true | 824 /// @docsEditable true |
| 825 @DomName("HTMLButtonElement.formTarget") |
716 String formTarget; | 826 String formTarget; |
717 | 827 |
718 /// @domName HTMLButtonElement.labels; @docsEditable true | 828 /// @docsEditable true |
| 829 @DomName("HTMLButtonElement.labels") |
719 @Returns('NodeList') @Creates('NodeList') | 830 @Returns('NodeList') @Creates('NodeList') |
720 final List<Node> labels; | 831 final List<Node> labels; |
721 | 832 |
722 /// @domName HTMLButtonElement.name; @docsEditable true | 833 /// @docsEditable true |
| 834 @DomName("HTMLButtonElement.name") |
723 String name; | 835 String name; |
724 | 836 |
725 /// @domName HTMLButtonElement.type; @docsEditable true | 837 /// @docsEditable true |
| 838 @DomName("HTMLButtonElement.type") |
726 String type; | 839 String type; |
727 | 840 |
728 /// @domName HTMLButtonElement.validationMessage; @docsEditable true | 841 /// @docsEditable true |
| 842 @DomName("HTMLButtonElement.validationMessage") |
729 final String validationMessage; | 843 final String validationMessage; |
730 | 844 |
731 /// @domName HTMLButtonElement.validity; @docsEditable true | 845 /// @docsEditable true |
| 846 @DomName("HTMLButtonElement.validity") |
732 final ValidityState validity; | 847 final ValidityState validity; |
733 | 848 |
734 /// @domName HTMLButtonElement.value; @docsEditable true | 849 /// @docsEditable true |
| 850 @DomName("HTMLButtonElement.value") |
735 String value; | 851 String value; |
736 | 852 |
737 /// @domName HTMLButtonElement.willValidate; @docsEditable true | 853 /// @docsEditable true |
| 854 @DomName("HTMLButtonElement.willValidate") |
738 final bool willValidate; | 855 final bool willValidate; |
739 | 856 |
740 /// @domName HTMLButtonElement.checkValidity; @docsEditable true | 857 /// @docsEditable true |
| 858 @DomName("HTMLButtonElement.checkValidity") |
741 bool checkValidity() native; | 859 bool checkValidity() native; |
742 | 860 |
743 /// @domName HTMLButtonElement.setCustomValidity; @docsEditable true | 861 /// @docsEditable true |
| 862 @DomName("HTMLButtonElement.setCustomValidity") |
744 void setCustomValidity(String error) native; | 863 void setCustomValidity(String error) native; |
745 } | 864 } |
746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
747 // for details. All rights reserved. Use of this source code is governed by a | 866 // for details. All rights reserved. Use of this source code is governed by a |
748 // BSD-style license that can be found in the LICENSE file. | 867 // BSD-style license that can be found in the LICENSE file. |
749 | 868 |
750 | 869 |
751 /// @domName CDATASection; @docsEditable true | 870 /// @docsEditable true |
| 871 @DomName("CDATASection") |
752 class CDataSection extends Text native "*CDATASection" { | 872 class CDataSection extends Text native "*CDATASection" { |
753 } | 873 } |
754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
755 // for details. All rights reserved. Use of this source code is governed by a | 875 // for details. All rights reserved. Use of this source code is governed by a |
756 // BSD-style license that can be found in the LICENSE file. | 876 // BSD-style license that can be found in the LICENSE file. |
757 | 877 |
758 | 878 |
759 /// @domName HTMLCanvasElement | 879 @DomName("HTMLCanvasElement") |
760 class CanvasElement extends Element native "*HTMLCanvasElement" { | 880 class CanvasElement extends Element native "*HTMLCanvasElement" { |
761 | 881 |
762 ///@docsEditable true | 882 /// @docsEditable true |
763 factory CanvasElement({int width, int height}) { | 883 factory CanvasElement({int width, int height}) { |
764 var e = document.$dom_createElement("canvas"); | 884 var e = document.$dom_createElement("canvas"); |
765 if (width != null) e.width = width; | 885 if (width != null) e.width = width; |
766 if (height != null) e.height = height; | 886 if (height != null) e.height = height; |
767 return e; | 887 return e; |
768 } | 888 } |
769 | 889 |
770 /// The height of this canvas element in CSS pixels. | 890 /// @docsEditable true |
771 /// @domName HTMLCanvasElement.height; @docsEditable true | 891 @DomName("HTMLCanvasElement.height") |
772 int height; | 892 int height; |
773 | 893 |
774 /// The width of this canvas element in CSS pixels. | 894 /// @docsEditable true |
775 /// @domName HTMLCanvasElement.width; @docsEditable true | 895 @DomName("HTMLCanvasElement.width") |
776 int width; | 896 int width; |
777 | 897 |
778 /** | 898 /** |
779 * Returns a data URI containing a representation of the image in the | 899 * Returns a data URI containing a representation of the image in the |
780 * format specified by type (defaults to 'image/png'). | 900 * format specified by type (defaults to 'image/png'). |
781 * | 901 * |
782 * Data Uri format is as follow `data:[<MIME-type>][;charset=<encoding>][;base
64],<data>` | 902 * Data Uri format is as follow `data:[<MIME-type>][;charset=<encoding>][;base
64],<data>` |
783 * | 903 * |
784 * Optional parameter [quality] in the range of 0.0 and 1.0 can be used when r
equesting [type] | 904 * Optional parameter [quality] in the range of 0.0 and 1.0 can be used when r
equesting [type] |
785 * 'image/jpeg' or 'image/webp'. If [quality] is not passed the default | 905 * 'image/jpeg' or 'image/webp'. If [quality] is not passed the default |
(...skipping 22 matching lines...) Expand all Loading... |
808 * document.body.children.add(img); | 928 * document.body.children.add(img); |
809 * | 929 * |
810 * See also: | 930 * See also: |
811 * | 931 * |
812 * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) from Wiki
pedia. | 932 * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) from Wiki
pedia. |
813 * | 933 * |
814 * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/DOM/HTMLCanv
asElement) from MDN. | 934 * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/DOM/HTMLCanv
asElement) from MDN. |
815 * | 935 * |
816 * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canv
as-todataurl) from W3C. | 936 * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canv
as-todataurl) from W3C. |
817 */ | 937 */ |
818 /// @domName HTMLCanvasElement.toDataURL; @docsEditable true | 938 /// @docsEditable true |
819 @JSName('toDataURL') | 939 @JSName('toDataURL') |
| 940 @DomName("HTMLCanvasElement.toDataURL") |
820 String toDataUrl(String type, [num quality]) native; | 941 String toDataUrl(String type, [num quality]) native; |
821 | 942 |
822 | 943 |
823 CanvasRenderingContext getContext(String contextId) native; | 944 CanvasRenderingContext getContext(String contextId) native; |
824 CanvasRenderingContext2D get context2d => getContext('2d'); | 945 CanvasRenderingContext2D get context2d => getContext('2d'); |
825 } | 946 } |
826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
827 // for details. All rights reserved. Use of this source code is governed by a | 948 // for details. All rights reserved. Use of this source code is governed by a |
828 // BSD-style license that can be found in the LICENSE file. | 949 // BSD-style license that can be found in the LICENSE file. |
829 | 950 |
830 | 951 |
831 /** | 952 /// @docsEditable true |
832 * An opaque canvas object representing a gradient. | 953 @DomName("CanvasGradient") |
833 * | |
834 * Created by calling [createLinearGradient] or [createRadialGradient] on a | |
835 * [CanvasRenderingContext2D] object. | |
836 * | |
837 * Example usage: | |
838 * | |
839 * var canvas = new CanvasElement(width: 600, height: 600); | |
840 * var ctx = canvas.context2d; | |
841 * ctx.clearRect(0, 0, 600, 600); | |
842 * ctx.save(); | |
843 * // Create radial gradient. | |
844 * CanvasGradient gradient = ctx.createRadialGradient(0, 0, 0, 0, 0, 600); | |
845 * gradient.addColorStop(0, '#000'); | |
846 * gradient.addColorStop(1, 'rgb(255, 255, 255)'); | |
847 * // Assign gradients to fill. | |
848 * ctx.fillStyle = gradient; | |
849 * // Draw a rectangle with a gradient fill. | |
850 * ctx.fillRect(0, 0, 600, 600); | |
851 * ctx.save(); | |
852 * document.body.children.add(canvas); | |
853 * | |
854 * See also: | |
855 * | |
856 * * [CanvasGradient](https://developer.mozilla.org/en-US/docs/DOM/CanvasGradien
t) from MDN. | |
857 * * [CanvasGradient](http://www.whatwg.org/specs/web-apps/current-work/multipag
e/the-canvas-element.html#canvasgradient) from whatwg. | |
858 * * [CanvasGradient](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgra
dient) from W3C. | |
859 */ | |
860 /// @domName CanvasGradient; @docsEditable true | |
861 class CanvasGradient native "*CanvasGradient" { | 954 class CanvasGradient native "*CanvasGradient" { |
862 | 955 |
863 /** | 956 /// @docsEditable true |
864 * Adds a color stop to this gradient at the offset. | 957 @DomName("CanvasGradient.addColorStop") |
865 * | |
866 * The [offset] can range between 0.0 and 1.0. | |
867 * | |
868 * See also: | |
869 * | |
870 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea
r-gradient#Gradient_with_multiple_color_stops) from MDN. | |
871 */ | |
872 /// @domName CanvasGradient.addColorStop; @docsEditable true | |
873 void addColorStop(num offset, String color) native; | 958 void addColorStop(num offset, String color) native; |
874 } | 959 } |
875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
876 // for details. All rights reserved. Use of this source code is governed by a | 961 // for details. All rights reserved. Use of this source code is governed by a |
877 // BSD-style license that can be found in the LICENSE file. | 962 // BSD-style license that can be found in the LICENSE file. |
878 | 963 |
879 | 964 |
880 /** | 965 /// @docsEditable true |
881 * An opaque object representing a pattern of image, canvas, or video. | 966 @DomName("CanvasPattern") |
882 * | |
883 * Created by calling [createPattern] on a [CanvasRenderingContext2D] object. | |
884 * | |
885 * Example usage: | |
886 * | |
887 * var canvas = new CanvasElement(width: 600, height: 600); | |
888 * var ctx = canvas.context2d; | |
889 * var img = new ImageElement(); | |
890 * // Image src needs to be loaded before pattern is applied. | |
891 * img.on.load.add((event) { | |
892 * // When the image is loaded, create a pattern | |
893 * // from the ImageElement. | |
894 * CanvasPattern pattern = ctx.createPattern(img, 'repeat'); | |
895 * ctx.rect(0, 0, canvas.width, canvas.height); | |
896 * ctx.fillStyle = pattern; | |
897 * ctx.fill(); | |
898 * }); | |
899 * img.src = "images/foo.jpg"; | |
900 * document.body.children.add(canvas); | |
901 * | |
902 * See also: | |
903 * * [CanvasPattern](https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern)
from MDN. | |
904 * * [CanvasPattern](http://www.whatwg.org/specs/web-apps/current-work/multipage
/the-canvas-element.html#canvaspattern) from whatwg. | |
905 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt
ern) from W3C. | |
906 */ | |
907 /// @domName CanvasPattern; @docsEditable true | |
908 class CanvasPattern native "*CanvasPattern" { | 967 class CanvasPattern native "*CanvasPattern" { |
909 } | 968 } |
910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
911 // for details. All rights reserved. Use of this source code is governed by a | 970 // for details. All rights reserved. Use of this source code is governed by a |
912 // BSD-style license that can be found in the LICENSE file. | 971 // BSD-style license that can be found in the LICENSE file. |
913 | 972 |
914 | 973 |
915 /** | 974 /// @docsEditable true |
916 * A rendering context for a canvas element. | 975 @DomName("CanvasRenderingContext") |
917 * | |
918 * This context is extended by [CanvasRenderingContext2D] and | |
919 * [WebGLRenderingContext]. | |
920 */ | |
921 /// @domName CanvasRenderingContext; @docsEditable true | |
922 class CanvasRenderingContext native "*CanvasRenderingContext" { | 976 class CanvasRenderingContext native "*CanvasRenderingContext" { |
923 | 977 |
924 /// Reference to the canvas element to which this context belongs. | 978 /// @docsEditable true |
925 /// @domName CanvasRenderingContext.canvas; @docsEditable true | 979 @DomName("CanvasRenderingContext.canvas") |
926 final CanvasElement canvas; | 980 final CanvasElement canvas; |
927 } | 981 } |
928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
929 // for details. All rights reserved. Use of this source code is governed by a | 983 // for details. All rights reserved. Use of this source code is governed by a |
930 // BSD-style license that can be found in the LICENSE file. | 984 // BSD-style license that can be found in the LICENSE file. |
931 | 985 |
932 | 986 |
933 /// @domName CanvasRenderingContext2D | 987 @DomName("CanvasRenderingContext2D") |
934 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
deringContext2D" { | 988 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
deringContext2D" { |
935 | 989 |
936 /// @domName CanvasRenderingContext2D.fillStyle; @docsEditable true | 990 /// @docsEditable true |
937 @Creates('String|CanvasGradient|CanvasPattern') @Returns('String|CanvasGradien
t|CanvasPattern') | 991 @DomName("CanvasRenderingContext2D.fillStyle") @Creates('String|CanvasGradient
|CanvasPattern') @Returns('String|CanvasGradient|CanvasPattern') |
938 dynamic fillStyle; | 992 dynamic fillStyle; |
939 | 993 |
940 /// @domName CanvasRenderingContext2D.font; @docsEditable true | 994 /// @docsEditable true |
| 995 @DomName("CanvasRenderingContext2D.font") |
941 String font; | 996 String font; |
942 | 997 |
943 /// @domName CanvasRenderingContext2D.globalAlpha; @docsEditable true | 998 /// @docsEditable true |
| 999 @DomName("CanvasRenderingContext2D.globalAlpha") |
944 num globalAlpha; | 1000 num globalAlpha; |
945 | 1001 |
946 /// @domName CanvasRenderingContext2D.globalCompositeOperation; @docsEditable
true | 1002 /// @docsEditable true |
| 1003 @DomName("CanvasRenderingContext2D.globalCompositeOperation") |
947 String globalCompositeOperation; | 1004 String globalCompositeOperation; |
948 | 1005 |
949 /// @domName CanvasRenderingContext2D.lineCap; @docsEditable true | 1006 /// @docsEditable true |
| 1007 @DomName("CanvasRenderingContext2D.lineCap") |
950 String lineCap; | 1008 String lineCap; |
951 | 1009 |
952 /// @domName CanvasRenderingContext2D.lineDashOffset; @docsEditable true | 1010 /// @docsEditable true |
| 1011 @DomName("CanvasRenderingContext2D.lineDashOffset") |
953 num lineDashOffset; | 1012 num lineDashOffset; |
954 | 1013 |
955 /// @domName CanvasRenderingContext2D.lineJoin; @docsEditable true | 1014 /// @docsEditable true |
| 1015 @DomName("CanvasRenderingContext2D.lineJoin") |
956 String lineJoin; | 1016 String lineJoin; |
957 | 1017 |
958 /// @domName CanvasRenderingContext2D.lineWidth; @docsEditable true | 1018 /// @docsEditable true |
| 1019 @DomName("CanvasRenderingContext2D.lineWidth") |
959 num lineWidth; | 1020 num lineWidth; |
960 | 1021 |
961 /// @domName CanvasRenderingContext2D.miterLimit; @docsEditable true | 1022 /// @docsEditable true |
| 1023 @DomName("CanvasRenderingContext2D.miterLimit") |
962 num miterLimit; | 1024 num miterLimit; |
963 | 1025 |
964 /// @domName CanvasRenderingContext2D.shadowBlur; @docsEditable true | 1026 /// @docsEditable true |
| 1027 @DomName("CanvasRenderingContext2D.shadowBlur") |
965 num shadowBlur; | 1028 num shadowBlur; |
966 | 1029 |
967 /// @domName CanvasRenderingContext2D.shadowColor; @docsEditable true | 1030 /// @docsEditable true |
| 1031 @DomName("CanvasRenderingContext2D.shadowColor") |
968 String shadowColor; | 1032 String shadowColor; |
969 | 1033 |
970 /// @domName CanvasRenderingContext2D.shadowOffsetX; @docsEditable true | 1034 /// @docsEditable true |
| 1035 @DomName("CanvasRenderingContext2D.shadowOffsetX") |
971 num shadowOffsetX; | 1036 num shadowOffsetX; |
972 | 1037 |
973 /// @domName CanvasRenderingContext2D.shadowOffsetY; @docsEditable true | 1038 /// @docsEditable true |
| 1039 @DomName("CanvasRenderingContext2D.shadowOffsetY") |
974 num shadowOffsetY; | 1040 num shadowOffsetY; |
975 | 1041 |
976 /// @domName CanvasRenderingContext2D.strokeStyle; @docsEditable true | 1042 /// @docsEditable true |
977 @Creates('String|CanvasGradient|CanvasPattern') @Returns('String|CanvasGradien
t|CanvasPattern') | 1043 @DomName("CanvasRenderingContext2D.strokeStyle") @Creates('String|CanvasGradie
nt|CanvasPattern') @Returns('String|CanvasGradient|CanvasPattern') |
978 dynamic strokeStyle; | 1044 dynamic strokeStyle; |
979 | 1045 |
980 /// @domName CanvasRenderingContext2D.textAlign; @docsEditable true | 1046 /// @docsEditable true |
| 1047 @DomName("CanvasRenderingContext2D.textAlign") |
981 String textAlign; | 1048 String textAlign; |
982 | 1049 |
983 /// @domName CanvasRenderingContext2D.textBaseline; @docsEditable true | 1050 /// @docsEditable true |
| 1051 @DomName("CanvasRenderingContext2D.textBaseline") |
984 String textBaseline; | 1052 String textBaseline; |
985 | 1053 |
986 /// @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio; @docsEdita
ble true | 1054 /// @docsEditable true |
| 1055 @DomName("CanvasRenderingContext2D.webkitBackingStorePixelRatio") |
987 final num webkitBackingStorePixelRatio; | 1056 final num webkitBackingStorePixelRatio; |
988 | 1057 |
989 /// @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled; @docsEditab
le true | 1058 /// @docsEditable true |
| 1059 @DomName("CanvasRenderingContext2D.webkitImageSmoothingEnabled") |
990 bool webkitImageSmoothingEnabled; | 1060 bool webkitImageSmoothingEnabled; |
991 | 1061 |
992 /// @domName CanvasRenderingContext2D.webkitLineDash; @docsEditable true | 1062 /// @docsEditable true |
| 1063 @DomName("CanvasRenderingContext2D.webkitLineDash") |
993 List webkitLineDash; | 1064 List webkitLineDash; |
994 | 1065 |
995 /// @domName CanvasRenderingContext2D.webkitLineDashOffset; @docsEditable true | 1066 /// @docsEditable true |
| 1067 @DomName("CanvasRenderingContext2D.webkitLineDashOffset") |
996 num webkitLineDashOffset; | 1068 num webkitLineDashOffset; |
997 | 1069 |
998 /// @domName CanvasRenderingContext2D.arc; @docsEditable true | 1070 /// @docsEditable true |
| 1071 @DomName("CanvasRenderingContext2D.arc") |
999 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; | 1072 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; |
1000 | 1073 |
1001 /// @domName CanvasRenderingContext2D.arcTo; @docsEditable true | 1074 /// @docsEditable true |
| 1075 @DomName("CanvasRenderingContext2D.arcTo") |
1002 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | 1076 void arcTo(num x1, num y1, num x2, num y2, num radius) native; |
1003 | 1077 |
1004 /// @domName CanvasRenderingContext2D.beginPath; @docsEditable true | 1078 /// @docsEditable true |
| 1079 @DomName("CanvasRenderingContext2D.beginPath") |
1005 void beginPath() native; | 1080 void beginPath() native; |
1006 | 1081 |
1007 /// @domName CanvasRenderingContext2D.bezierCurveTo; @docsEditable true | 1082 /// @docsEditable true |
| 1083 @DomName("CanvasRenderingContext2D.bezierCurveTo") |
1008 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | 1084 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; |
1009 | 1085 |
1010 /// @domName CanvasRenderingContext2D.clearRect; @docsEditable true | 1086 /// @docsEditable true |
| 1087 @DomName("CanvasRenderingContext2D.clearRect") |
1011 void clearRect(num x, num y, num width, num height) native; | 1088 void clearRect(num x, num y, num width, num height) native; |
1012 | 1089 |
1013 /// @domName CanvasRenderingContext2D.clip; @docsEditable true | 1090 /// @docsEditable true |
| 1091 @DomName("CanvasRenderingContext2D.clip") |
1014 void clip() native; | 1092 void clip() native; |
1015 | 1093 |
1016 /// @domName CanvasRenderingContext2D.closePath; @docsEditable true | 1094 /// @docsEditable true |
| 1095 @DomName("CanvasRenderingContext2D.closePath") |
1017 void closePath() native; | 1096 void closePath() native; |
1018 | 1097 |
1019 /// @domName CanvasRenderingContext2D.createImageData; @docsEditable true | 1098 /// @docsEditable true |
1020 ImageData createImageData(imagedata_OR_sw, [num sh]) { | 1099 ImageData createImageData(imagedata_OR_sw, [num sh]) { |
1021 if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) && | 1100 if ((imagedata_OR_sw is ImageData || imagedata_OR_sw == null) && |
1022 !?sh) { | 1101 !?sh) { |
1023 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); | 1102 var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); |
1024 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); | 1103 return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); |
1025 } | 1104 } |
1026 if ((imagedata_OR_sw is num || imagedata_OR_sw == null)) { | 1105 if ((imagedata_OR_sw is num || imagedata_OR_sw == null)) { |
1027 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw,
sh)); | 1106 return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw,
sh)); |
1028 } | 1107 } |
1029 throw new ArgumentError("Incorrect number or type of arguments"); | 1108 throw new ArgumentError("Incorrect number or type of arguments"); |
1030 } | 1109 } |
1031 @JSName('createImageData') | 1110 @JSName('createImageData') |
1032 @Creates('ImageData|=Object') | 1111 @DomName("CanvasRenderingContext2D.createImageData") @Creates('ImageData|=Obje
ct') |
1033 _createImageData_1(imagedata) native; | 1112 _createImageData_1(imagedata) native; |
1034 @JSName('createImageData') | 1113 @JSName('createImageData') |
1035 @Creates('ImageData|=Object') | 1114 @DomName("CanvasRenderingContext2D.createImageData") @Creates('ImageData|=Obje
ct') |
1036 _createImageData_2(num sw, sh) native; | 1115 _createImageData_2(num sw, sh) native; |
1037 | 1116 |
1038 /// @domName CanvasRenderingContext2D.createLinearGradient; @docsEditable true | 1117 /// @docsEditable true |
| 1118 @DomName("CanvasRenderingContext2D.createLinearGradient") |
1039 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; | 1119 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
1040 | 1120 |
1041 /// @domName CanvasRenderingContext2D.createPattern; @docsEditable true | 1121 /// @docsEditable true |
| 1122 @DomName("CanvasRenderingContext2D.createPattern") |
1042 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; | 1123 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; |
1043 | 1124 |
1044 /// @domName CanvasRenderingContext2D.createRadialGradient; @docsEditable true | 1125 /// @docsEditable true |
| 1126 @DomName("CanvasRenderingContext2D.createRadialGradient") |
1045 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; | 1127 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; |
1046 | 1128 |
1047 /// @domName CanvasRenderingContext2D.drawImage; @docsEditable true | 1129 /// @docsEditable true |
| 1130 @DomName("CanvasRenderingContext2D.drawImage") |
1048 void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_
width, num height_OR_sh, num dx, num dy, num dw, num dh]) native; | 1131 void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_
width, num height_OR_sh, num dx, num dy, num dw, num dh]) native; |
1049 | 1132 |
1050 /// @domName CanvasRenderingContext2D.fill; @docsEditable true | 1133 /// @docsEditable true |
| 1134 @DomName("CanvasRenderingContext2D.fill") |
1051 void fill() native; | 1135 void fill() native; |
1052 | 1136 |
1053 /// @domName CanvasRenderingContext2D.fillRect; @docsEditable true | 1137 /// @docsEditable true |
| 1138 @DomName("CanvasRenderingContext2D.fillRect") |
1054 void fillRect(num x, num y, num width, num height) native; | 1139 void fillRect(num x, num y, num width, num height) native; |
1055 | 1140 |
1056 /// @domName CanvasRenderingContext2D.fillText; @docsEditable true | 1141 /// @docsEditable true |
| 1142 @DomName("CanvasRenderingContext2D.fillText") |
1057 void fillText(String text, num x, num y, [num maxWidth]) native; | 1143 void fillText(String text, num x, num y, [num maxWidth]) native; |
1058 | 1144 |
1059 /// @domName CanvasRenderingContext2D.getImageData; @docsEditable true | 1145 /// @docsEditable true |
1060 ImageData getImageData(num sx, num sy, num sw, num sh) { | 1146 ImageData getImageData(num sx, num sy, num sw, num sh) { |
1061 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); | 1147 return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); |
1062 } | 1148 } |
1063 @JSName('getImageData') | 1149 @JSName('getImageData') |
1064 @Creates('ImageData|=Object') | 1150 @DomName("CanvasRenderingContext2D.getImageData") @Creates('ImageData|=Object'
) |
1065 _getImageData_1(sx, sy, sw, sh) native; | 1151 _getImageData_1(sx, sy, sw, sh) native; |
1066 | 1152 |
1067 /// @domName CanvasRenderingContext2D.getLineDash; @docsEditable true | 1153 /// @docsEditable true |
| 1154 @DomName("CanvasRenderingContext2D.getLineDash") |
1068 List<num> getLineDash() native; | 1155 List<num> getLineDash() native; |
1069 | 1156 |
1070 /// @domName CanvasRenderingContext2D.isPointInPath; @docsEditable true | 1157 /// @docsEditable true |
| 1158 @DomName("CanvasRenderingContext2D.isPointInPath") |
1071 bool isPointInPath(num x, num y) native; | 1159 bool isPointInPath(num x, num y) native; |
1072 | 1160 |
1073 /// @domName CanvasRenderingContext2D.lineTo; @docsEditable true | 1161 /// @docsEditable true |
| 1162 @DomName("CanvasRenderingContext2D.lineTo") |
1074 void lineTo(num x, num y) native; | 1163 void lineTo(num x, num y) native; |
1075 | 1164 |
1076 /// @domName CanvasRenderingContext2D.measureText; @docsEditable true | 1165 /// @docsEditable true |
| 1166 @DomName("CanvasRenderingContext2D.measureText") |
1077 TextMetrics measureText(String text) native; | 1167 TextMetrics measureText(String text) native; |
1078 | 1168 |
1079 /// @domName CanvasRenderingContext2D.moveTo; @docsEditable true | 1169 /// @docsEditable true |
| 1170 @DomName("CanvasRenderingContext2D.moveTo") |
1080 void moveTo(num x, num y) native; | 1171 void moveTo(num x, num y) native; |
1081 | 1172 |
1082 /// @domName CanvasRenderingContext2D.putImageData; @docsEditable true | 1173 /// @docsEditable true |
1083 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { | 1174 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { |
1084 if (!?dirtyX && | 1175 if (!?dirtyX && |
1085 !?dirtyY && | 1176 !?dirtyY && |
1086 !?dirtyWidth && | 1177 !?dirtyWidth && |
1087 !?dirtyHeight) { | 1178 !?dirtyHeight) { |
1088 var imagedata_1 = _convertDartToNative_ImageData(imagedata); | 1179 var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
1089 _putImageData_1(imagedata_1, dx, dy); | 1180 _putImageData_1(imagedata_1, dx, dy); |
1090 return; | 1181 return; |
1091 } | 1182 } |
1092 var imagedata_2 = _convertDartToNative_ImageData(imagedata); | 1183 var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
1093 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight
); | 1184 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight
); |
1094 return; | 1185 return; |
1095 throw new ArgumentError("Incorrect number or type of arguments"); | 1186 throw new ArgumentError("Incorrect number or type of arguments"); |
1096 } | 1187 } |
1097 @JSName('putImageData') | 1188 @JSName('putImageData') |
| 1189 @DomName("CanvasRenderingContext2D.putImageData") |
1098 void _putImageData_1(imagedata, dx, dy) native; | 1190 void _putImageData_1(imagedata, dx, dy) native; |
1099 @JSName('putImageData') | 1191 @JSName('putImageData') |
| 1192 @DomName("CanvasRenderingContext2D.putImageData") |
1100 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
t) native; | 1193 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
t) native; |
1101 | 1194 |
1102 /// @domName CanvasRenderingContext2D.quadraticCurveTo; @docsEditable true | 1195 /// @docsEditable true |
| 1196 @DomName("CanvasRenderingContext2D.quadraticCurveTo") |
1103 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | 1197 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
1104 | 1198 |
1105 /// @domName CanvasRenderingContext2D.rect; @docsEditable true | 1199 /// @docsEditable true |
| 1200 @DomName("CanvasRenderingContext2D.rect") |
1106 void rect(num x, num y, num width, num height) native; | 1201 void rect(num x, num y, num width, num height) native; |
1107 | 1202 |
1108 /// @domName CanvasRenderingContext2D.restore; @docsEditable true | 1203 /// @docsEditable true |
| 1204 @DomName("CanvasRenderingContext2D.restore") |
1109 void restore() native; | 1205 void restore() native; |
1110 | 1206 |
1111 /// @domName CanvasRenderingContext2D.rotate; @docsEditable true | 1207 /// @docsEditable true |
| 1208 @DomName("CanvasRenderingContext2D.rotate") |
1112 void rotate(num angle) native; | 1209 void rotate(num angle) native; |
1113 | 1210 |
1114 /// @domName CanvasRenderingContext2D.save; @docsEditable true | 1211 /// @docsEditable true |
| 1212 @DomName("CanvasRenderingContext2D.save") |
1115 void save() native; | 1213 void save() native; |
1116 | 1214 |
1117 /// @domName CanvasRenderingContext2D.scale; @docsEditable true | 1215 /// @docsEditable true |
| 1216 @DomName("CanvasRenderingContext2D.scale") |
1118 void scale(num sx, num sy) native; | 1217 void scale(num sx, num sy) native; |
1119 | 1218 |
1120 /// @domName CanvasRenderingContext2D.setLineDash; @docsEditable true | 1219 /// @docsEditable true |
| 1220 @DomName("CanvasRenderingContext2D.setLineDash") |
1121 void setLineDash(List<num> dash) native; | 1221 void setLineDash(List<num> dash) native; |
1122 | 1222 |
1123 /// @domName CanvasRenderingContext2D.setTransform; @docsEditable true | 1223 /// @docsEditable true |
| 1224 @DomName("CanvasRenderingContext2D.setTransform") |
1124 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 1225 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
1125 | 1226 |
1126 /// @domName CanvasRenderingContext2D.stroke; @docsEditable true | 1227 /// @docsEditable true |
| 1228 @DomName("CanvasRenderingContext2D.stroke") |
1127 void stroke() native; | 1229 void stroke() native; |
1128 | 1230 |
1129 /// @domName CanvasRenderingContext2D.strokeRect; @docsEditable true | 1231 /// @docsEditable true |
| 1232 @DomName("CanvasRenderingContext2D.strokeRect") |
1130 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; | 1233 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; |
1131 | 1234 |
1132 /// @domName CanvasRenderingContext2D.strokeText; @docsEditable true | 1235 /// @docsEditable true |
| 1236 @DomName("CanvasRenderingContext2D.strokeText") |
1133 void strokeText(String text, num x, num y, [num maxWidth]) native; | 1237 void strokeText(String text, num x, num y, [num maxWidth]) native; |
1134 | 1238 |
1135 /// @domName CanvasRenderingContext2D.transform; @docsEditable true | 1239 /// @docsEditable true |
| 1240 @DomName("CanvasRenderingContext2D.transform") |
1136 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 1241 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
1137 | 1242 |
1138 /// @domName CanvasRenderingContext2D.translate; @docsEditable true | 1243 /// @docsEditable true |
| 1244 @DomName("CanvasRenderingContext2D.translate") |
1139 void translate(num tx, num ty) native; | 1245 void translate(num tx, num ty) native; |
1140 | 1246 |
1141 /// @domName CanvasRenderingContext2D.webkitGetImageDataHD; @docsEditable true | 1247 /// @docsEditable true |
1142 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { | 1248 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { |
1143 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh
)); | 1249 return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh
)); |
1144 } | 1250 } |
1145 @JSName('webkitGetImageDataHD') | 1251 @JSName('webkitGetImageDataHD') |
1146 @Creates('ImageData|=Object') | 1252 @DomName("CanvasRenderingContext2D.webkitGetImageDataHD") @Creates('ImageData|
=Object') |
1147 _webkitGetImageDataHD_1(sx, sy, sw, sh) native; | 1253 _webkitGetImageDataHD_1(sx, sy, sw, sh) native; |
1148 | 1254 |
1149 /// @domName CanvasRenderingContext2D.webkitPutImageDataHD; @docsEditable true | 1255 /// @docsEditable true |
1150 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu
m dirtyY, num dirtyWidth, num dirtyHeight]) { | 1256 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu
m dirtyY, num dirtyWidth, num dirtyHeight]) { |
1151 if (!?dirtyX && | 1257 if (!?dirtyX && |
1152 !?dirtyY && | 1258 !?dirtyY && |
1153 !?dirtyWidth && | 1259 !?dirtyWidth && |
1154 !?dirtyHeight) { | 1260 !?dirtyHeight) { |
1155 var imagedata_1 = _convertDartToNative_ImageData(imagedata); | 1261 var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
1156 _webkitPutImageDataHD_1(imagedata_1, dx, dy); | 1262 _webkitPutImageDataHD_1(imagedata_1, dx, dy); |
1157 return; | 1263 return; |
1158 } | 1264 } |
1159 var imagedata_2 = _convertDartToNative_ImageData(imagedata); | 1265 var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
1160 _webkitPutImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dir
tyHeight); | 1266 _webkitPutImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dir
tyHeight); |
1161 return; | 1267 return; |
1162 throw new ArgumentError("Incorrect number or type of arguments"); | 1268 throw new ArgumentError("Incorrect number or type of arguments"); |
1163 } | 1269 } |
1164 @JSName('webkitPutImageDataHD') | 1270 @JSName('webkitPutImageDataHD') |
| 1271 @DomName("CanvasRenderingContext2D.webkitPutImageDataHD") |
1165 void _webkitPutImageDataHD_1(imagedata, dx, dy) native; | 1272 void _webkitPutImageDataHD_1(imagedata, dx, dy) native; |
1166 @JSName('webkitPutImageDataHD') | 1273 @JSName('webkitPutImageDataHD') |
| 1274 @DomName("CanvasRenderingContext2D.webkitPutImageDataHD") |
1167 void _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, di
rtyHeight) native; | 1275 void _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, di
rtyHeight) native; |
1168 | 1276 |
1169 | 1277 |
1170 /** | 1278 /** |
1171 * Sets the color used inside shapes. | 1279 * Sets the color used inside shapes. |
1172 * [r], [g], [b] are 0-255, [a] is 0-1. | 1280 * [r], [g], [b] are 0-255, [a] is 0-1. |
1173 */ | 1281 */ |
1174 void setFillColorRgb(int r, int g, int b, [num a = 1]) { | 1282 void setFillColorRgb(int r, int g, int b, [num a = 1]) { |
1175 this.fillStyle = 'rgba($r, $g, $b, $a)'; | 1283 this.fillStyle = 'rgba($r, $g, $b, $a)'; |
1176 } | 1284 } |
(...skipping 24 matching lines...) Expand all Loading... |
1201 */ | 1309 */ |
1202 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { | 1310 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { |
1203 this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; | 1311 this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; |
1204 } | 1312 } |
1205 } | 1313 } |
1206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1207 // for details. All rights reserved. Use of this source code is governed by a | 1315 // for details. All rights reserved. Use of this source code is governed by a |
1208 // BSD-style license that can be found in the LICENSE file. | 1316 // BSD-style license that can be found in the LICENSE file. |
1209 | 1317 |
1210 | 1318 |
1211 /// @domName CharacterData; @docsEditable true | 1319 /// @docsEditable true |
| 1320 @DomName("CharacterData") |
1212 class CharacterData extends Node native "*CharacterData" { | 1321 class CharacterData extends Node native "*CharacterData" { |
1213 | 1322 |
1214 /// @domName CharacterData.data; @docsEditable true | 1323 /// @docsEditable true |
| 1324 @DomName("CharacterData.data") |
1215 String data; | 1325 String data; |
1216 | 1326 |
1217 /// @domName CharacterData.length; @docsEditable true | 1327 /// @docsEditable true |
| 1328 @DomName("CharacterData.length") |
1218 final int length; | 1329 final int length; |
1219 | 1330 |
1220 /// @domName CharacterData.appendData; @docsEditable true | 1331 /// @docsEditable true |
| 1332 @DomName("CharacterData.appendData") |
1221 void appendData(String data) native; | 1333 void appendData(String data) native; |
1222 | 1334 |
1223 /// @domName CharacterData.deleteData; @docsEditable true | 1335 /// @docsEditable true |
| 1336 @DomName("CharacterData.deleteData") |
1224 void deleteData(int offset, int length) native; | 1337 void deleteData(int offset, int length) native; |
1225 | 1338 |
1226 /// @domName CharacterData.insertData; @docsEditable true | 1339 /// @docsEditable true |
| 1340 @DomName("CharacterData.insertData") |
1227 void insertData(int offset, String data) native; | 1341 void insertData(int offset, String data) native; |
1228 | 1342 |
1229 /// @domName CharacterData.remove; @docsEditable true | 1343 /// @docsEditable true |
| 1344 @DomName("CharacterData.remove") |
1230 void remove() native; | 1345 void remove() native; |
1231 | 1346 |
1232 /// @domName CharacterData.replaceData; @docsEditable true | 1347 /// @docsEditable true |
| 1348 @DomName("CharacterData.replaceData") |
1233 void replaceData(int offset, int length, String data) native; | 1349 void replaceData(int offset, int length, String data) native; |
1234 | 1350 |
1235 /// @domName CharacterData.substringData; @docsEditable true | 1351 /// @docsEditable true |
| 1352 @DomName("CharacterData.substringData") |
1236 String substringData(int offset, int length) native; | 1353 String substringData(int offset, int length) native; |
1237 } | 1354 } |
1238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1239 // for details. All rights reserved. Use of this source code is governed by a | 1356 // for details. All rights reserved. Use of this source code is governed by a |
1240 // BSD-style license that can be found in the LICENSE file. | 1357 // BSD-style license that can be found in the LICENSE file. |
1241 | 1358 |
1242 | 1359 |
1243 /// @domName ClientRect; @docsEditable true | 1360 /// @docsEditable true |
| 1361 @DomName("ClientRect") |
1244 class ClientRect native "*ClientRect" { | 1362 class ClientRect native "*ClientRect" { |
1245 | 1363 |
1246 /// @domName ClientRect.bottom; @docsEditable true | 1364 /// @docsEditable true |
| 1365 @DomName("ClientRect.bottom") |
1247 final num bottom; | 1366 final num bottom; |
1248 | 1367 |
1249 /// @domName ClientRect.height; @docsEditable true | 1368 /// @docsEditable true |
| 1369 @DomName("ClientRect.height") |
1250 final num height; | 1370 final num height; |
1251 | 1371 |
1252 /// @domName ClientRect.left; @docsEditable true | 1372 /// @docsEditable true |
| 1373 @DomName("ClientRect.left") |
1253 final num left; | 1374 final num left; |
1254 | 1375 |
1255 /// @domName ClientRect.right; @docsEditable true | 1376 /// @docsEditable true |
| 1377 @DomName("ClientRect.right") |
1256 final num right; | 1378 final num right; |
1257 | 1379 |
1258 /// @domName ClientRect.top; @docsEditable true | 1380 /// @docsEditable true |
| 1381 @DomName("ClientRect.top") |
1259 final num top; | 1382 final num top; |
1260 | 1383 |
1261 /// @domName ClientRect.width; @docsEditable true | 1384 /// @docsEditable true |
| 1385 @DomName("ClientRect.width") |
1262 final num width; | 1386 final num width; |
1263 } | 1387 } |
1264 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1265 // for details. All rights reserved. Use of this source code is governed by a | 1389 // for details. All rights reserved. Use of this source code is governed by a |
1266 // BSD-style license that can be found in the LICENSE file. | 1390 // BSD-style license that can be found in the LICENSE file. |
1267 | 1391 |
1268 | 1392 |
1269 /// @domName Clipboard; @docsEditable true | 1393 /// @docsEditable true |
| 1394 @DomName("Clipboard") |
1270 class Clipboard native "*Clipboard" { | 1395 class Clipboard native "*Clipboard" { |
1271 | 1396 |
1272 /// @domName Clipboard.dropEffect; @docsEditable true | 1397 /// @docsEditable true |
| 1398 @DomName("Clipboard.dropEffect") |
1273 String dropEffect; | 1399 String dropEffect; |
1274 | 1400 |
1275 /// @domName Clipboard.effectAllowed; @docsEditable true | 1401 /// @docsEditable true |
| 1402 @DomName("Clipboard.effectAllowed") |
1276 String effectAllowed; | 1403 String effectAllowed; |
1277 | 1404 |
1278 /// @domName Clipboard.files; @docsEditable true | 1405 /// @docsEditable true |
| 1406 @DomName("Clipboard.files") |
1279 @Returns('FileList') @Creates('FileList') | 1407 @Returns('FileList') @Creates('FileList') |
1280 final List<File> files; | 1408 final List<File> files; |
1281 | 1409 |
1282 /// @domName Clipboard.items; @docsEditable true | 1410 /// @docsEditable true |
| 1411 @DomName("Clipboard.items") |
1283 final DataTransferItemList items; | 1412 final DataTransferItemList items; |
1284 | 1413 |
1285 /// @domName Clipboard.types; @docsEditable true | 1414 /// @docsEditable true |
| 1415 @DomName("Clipboard.types") |
1286 final List types; | 1416 final List types; |
1287 | 1417 |
1288 /// @domName Clipboard.clearData; @docsEditable true | 1418 /// @docsEditable true |
| 1419 @DomName("Clipboard.clearData") |
1289 void clearData([String type]) native; | 1420 void clearData([String type]) native; |
1290 | 1421 |
1291 /// @domName Clipboard.getData; @docsEditable true | 1422 /// @docsEditable true |
| 1423 @DomName("Clipboard.getData") |
1292 String getData(String type) native; | 1424 String getData(String type) native; |
1293 | 1425 |
1294 /// @domName Clipboard.setData; @docsEditable true | 1426 /// @docsEditable true |
| 1427 @DomName("Clipboard.setData") |
1295 bool setData(String type, String data) native; | 1428 bool setData(String type, String data) native; |
1296 | 1429 |
1297 /// @domName Clipboard.setDragImage; @docsEditable true | 1430 /// @docsEditable true |
| 1431 @DomName("Clipboard.setDragImage") |
1298 void setDragImage(ImageElement image, int x, int y) native; | 1432 void setDragImage(ImageElement image, int x, int y) native; |
1299 } | 1433 } |
1300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1301 // for details. All rights reserved. Use of this source code is governed by a | 1435 // for details. All rights reserved. Use of this source code is governed by a |
1302 // BSD-style license that can be found in the LICENSE file. | 1436 // BSD-style license that can be found in the LICENSE file. |
1303 | 1437 |
1304 | 1438 |
1305 /// @domName CloseEvent; @docsEditable true | 1439 /// @docsEditable true |
| 1440 @DomName("CloseEvent") |
1306 class CloseEvent extends Event native "*CloseEvent" { | 1441 class CloseEvent extends Event native "*CloseEvent" { |
1307 | 1442 |
1308 /// @domName CloseEvent.code; @docsEditable true | 1443 /// @docsEditable true |
| 1444 @DomName("CloseEvent.code") |
1309 final int code; | 1445 final int code; |
1310 | 1446 |
1311 /// @domName CloseEvent.reason; @docsEditable true | 1447 /// @docsEditable true |
| 1448 @DomName("CloseEvent.reason") |
1312 final String reason; | 1449 final String reason; |
1313 | 1450 |
1314 /// @domName CloseEvent.wasClean; @docsEditable true | 1451 /// @docsEditable true |
| 1452 @DomName("CloseEvent.wasClean") |
1315 final bool wasClean; | 1453 final bool wasClean; |
1316 } | 1454 } |
1317 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1318 // for details. All rights reserved. Use of this source code is governed by a | 1456 // for details. All rights reserved. Use of this source code is governed by a |
1319 // BSD-style license that can be found in the LICENSE file. | 1457 // BSD-style license that can be found in the LICENSE file. |
1320 | 1458 |
1321 | 1459 |
1322 /// @domName Comment; @docsEditable true | 1460 /// @docsEditable true |
| 1461 @DomName("Comment") |
1323 class Comment extends CharacterData native "*Comment" { | 1462 class Comment extends CharacterData native "*Comment" { |
1324 } | 1463 } |
1325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1326 // for details. All rights reserved. Use of this source code is governed by a | 1465 // for details. All rights reserved. Use of this source code is governed by a |
1327 // BSD-style license that can be found in the LICENSE file. | 1466 // BSD-style license that can be found in the LICENSE file. |
1328 | 1467 |
1329 | 1468 |
1330 /// @domName CompositionEvent; @docsEditable true | 1469 /// @docsEditable true |
| 1470 @DomName("CompositionEvent") |
1331 class CompositionEvent extends UIEvent native "*CompositionEvent" { | 1471 class CompositionEvent extends UIEvent native "*CompositionEvent" { |
1332 | 1472 |
1333 /// @domName CompositionEvent.data; @docsEditable true | 1473 /// @docsEditable true |
| 1474 @DomName("CompositionEvent.data") |
1334 final String data; | 1475 final String data; |
1335 | 1476 |
1336 /// @domName CompositionEvent.initCompositionEvent; @docsEditable true | 1477 /// @docsEditable true |
| 1478 @DomName("CompositionEvent.initCompositionEvent") |
1337 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Window viewArg, String dataArg) native; | 1479 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Window viewArg, String dataArg) native; |
1338 } | 1480 } |
1339 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1340 // for details. All rights reserved. Use of this source code is governed by a | 1482 // for details. All rights reserved. Use of this source code is governed by a |
1341 // BSD-style license that can be found in the LICENSE file. | 1483 // BSD-style license that can be found in the LICENSE file. |
1342 | 1484 |
1343 | 1485 |
1344 /// @domName Console | 1486 @DomName("Console") |
1345 class Console { | 1487 class Console { |
1346 | 1488 |
1347 static Console safeConsole = new Console(); | 1489 static Console safeConsole = new Console(); |
1348 | 1490 |
1349 bool get _isConsoleDefined => JS('bool', "typeof console != 'undefined'"); | 1491 bool get _isConsoleDefined => JS('bool', "typeof console != 'undefined'"); |
1350 | 1492 |
1351 /// @domName Console.memory; @docsEditable true | 1493 /// @docsEditable true |
| 1494 @DomName("Console.memory") |
1352 MemoryInfo get memory => _isConsoleDefined ? | 1495 MemoryInfo get memory => _isConsoleDefined ? |
1353 JS('MemoryInfo', 'console.memory') : null; | 1496 JS('MemoryInfo', 'console.memory') : null; |
1354 | 1497 |
1355 /// @domName Console.profiles; @docsEditable true | 1498 /// @docsEditable true |
| 1499 @DomName("Console.profiles") |
1356 List<ScriptProfile> get profiles => _isConsoleDefined ? | 1500 List<ScriptProfile> get profiles => _isConsoleDefined ? |
1357 JS('List<ScriptProfile>', 'console.profiles') : null; | 1501 JS('List<ScriptProfile>', 'console.profiles') : null; |
1358 | 1502 |
1359 /// @domName Console.assertCondition; @docsEditable true | 1503 /// @docsEditable true |
| 1504 @DomName("Console.assertCondition") |
1360 void assertCondition(bool condition, Object arg) => _isConsoleDefined ? | 1505 void assertCondition(bool condition, Object arg) => _isConsoleDefined ? |
1361 JS('void', 'console.assertCondition(#, #)', condition, arg) : null; | 1506 JS('void', 'console.assertCondition(#, #)', condition, arg) : null; |
1362 | 1507 |
1363 /// @domName Console.count; @docsEditable true | 1508 /// @docsEditable true |
| 1509 @DomName("Console.count") |
1364 void count(Object arg) => _isConsoleDefined ? | 1510 void count(Object arg) => _isConsoleDefined ? |
1365 JS('void', 'console.count(#)', arg) : null; | 1511 JS('void', 'console.count(#)', arg) : null; |
1366 | 1512 |
1367 /// @domName Console.debug; @docsEditable true | 1513 /// @docsEditable true |
| 1514 @DomName("Console.debug") |
1368 void debug(Object arg) => _isConsoleDefined ? | 1515 void debug(Object arg) => _isConsoleDefined ? |
1369 JS('void', 'console.debug(#)', arg) : null; | 1516 JS('void', 'console.debug(#)', arg) : null; |
1370 | 1517 |
1371 /// @domName Console.dir; @docsEditable true | 1518 /// @docsEditable true |
| 1519 @DomName("Console.dir") |
1372 void dir(Object arg) => _isConsoleDefined ? | 1520 void dir(Object arg) => _isConsoleDefined ? |
1373 JS('void', 'console.debug(#)', arg) : null; | 1521 JS('void', 'console.debug(#)', arg) : null; |
1374 | 1522 |
1375 /// @domName Console.dirxml; @docsEditable true | 1523 /// @docsEditable true |
| 1524 @DomName("Console.dirxml") |
1376 void dirxml(Object arg) => _isConsoleDefined ? | 1525 void dirxml(Object arg) => _isConsoleDefined ? |
1377 JS('void', 'console.dirxml(#)', arg) : null; | 1526 JS('void', 'console.dirxml(#)', arg) : null; |
1378 | 1527 |
1379 /// @domName Console.error; @docsEditable true | 1528 /// @docsEditable true |
| 1529 @DomName("Console.error") |
1380 void error(Object arg) => _isConsoleDefined ? | 1530 void error(Object arg) => _isConsoleDefined ? |
1381 JS('void', 'console.error(#)', arg) : null; | 1531 JS('void', 'console.error(#)', arg) : null; |
1382 | 1532 |
1383 /// @domName Console.group; @docsEditable true | 1533 /// @docsEditable true |
| 1534 @DomName("Console.group") |
1384 void group(Object arg) => _isConsoleDefined ? | 1535 void group(Object arg) => _isConsoleDefined ? |
1385 JS('void', 'console.group(#)', arg) : null; | 1536 JS('void', 'console.group(#)', arg) : null; |
1386 | 1537 |
1387 /// @domName Console.groupCollapsed; @docsEditable true | 1538 /// @docsEditable true |
| 1539 @DomName("Console.groupCollapsed") |
1388 void groupCollapsed(Object arg) => _isConsoleDefined ? | 1540 void groupCollapsed(Object arg) => _isConsoleDefined ? |
1389 JS('void', 'console.groupCollapsed(#)', arg) : null; | 1541 JS('void', 'console.groupCollapsed(#)', arg) : null; |
1390 | 1542 |
1391 /// @domName Console.groupEnd; @docsEditable true | 1543 /// @docsEditable true |
| 1544 @DomName("Console.groupEnd") |
1392 void groupEnd() => _isConsoleDefined ? | 1545 void groupEnd() => _isConsoleDefined ? |
1393 JS('void', 'console.groupEnd()') : null; | 1546 JS('void', 'console.groupEnd()') : null; |
1394 | 1547 |
1395 /// @domName Console.info; @docsEditable true | 1548 /// @docsEditable true |
| 1549 @DomName("Console.info") |
1396 void info(Object arg) => _isConsoleDefined ? | 1550 void info(Object arg) => _isConsoleDefined ? |
1397 JS('void', 'console.info(#)', arg) : null; | 1551 JS('void', 'console.info(#)', arg) : null; |
1398 | 1552 |
1399 /// @domName Console.log; @docsEditable true | 1553 /// @docsEditable true |
| 1554 @DomName("Console.log") |
1400 void log(Object arg) => _isConsoleDefined ? | 1555 void log(Object arg) => _isConsoleDefined ? |
1401 JS('void', 'console.log(#)', arg) : null; | 1556 JS('void', 'console.log(#)', arg) : null; |
1402 | 1557 |
1403 /// @domName Console.markTimeline; @docsEditable true | 1558 /// @docsEditable true |
| 1559 @DomName("Console.markTimeline") |
1404 void markTimeline(Object arg) => _isConsoleDefined ? | 1560 void markTimeline(Object arg) => _isConsoleDefined ? |
1405 JS('void', 'console.markTimeline(#)', arg) : null; | 1561 JS('void', 'console.markTimeline(#)', arg) : null; |
1406 | 1562 |
1407 /// @domName Console.profile; @docsEditable true | 1563 /// @docsEditable true |
| 1564 @DomName("Console.profile") |
1408 void profile(String title) => _isConsoleDefined ? | 1565 void profile(String title) => _isConsoleDefined ? |
1409 JS('void', 'console.profile(#)', title) : null; | 1566 JS('void', 'console.profile(#)', title) : null; |
1410 | 1567 |
1411 /// @domName Console.profileEnd; @docsEditable true | 1568 /// @docsEditable true |
| 1569 @DomName("Console.profileEnd") |
1412 void profileEnd(String title) => _isConsoleDefined ? | 1570 void profileEnd(String title) => _isConsoleDefined ? |
1413 JS('void', 'console.profileEnd(#)', title) : null; | 1571 JS('void', 'console.profileEnd(#)', title) : null; |
1414 | 1572 |
1415 /// @domName Console.time; @docsEditable true | 1573 /// @docsEditable true |
| 1574 @DomName("Console.time") |
1416 void time(String title) => _isConsoleDefined ? | 1575 void time(String title) => _isConsoleDefined ? |
1417 JS('void', 'console.time(#)', title) : null; | 1576 JS('void', 'console.time(#)', title) : null; |
1418 | 1577 |
1419 /// @domName Console.timeEnd; @docsEditable true | 1578 /// @docsEditable true |
| 1579 @DomName("Console.timeEnd") |
1420 void timeEnd(String title, Object arg) => _isConsoleDefined ? | 1580 void timeEnd(String title, Object arg) => _isConsoleDefined ? |
1421 JS('void', 'console.timeEnd(#, #)', title, arg) : null; | 1581 JS('void', 'console.timeEnd(#, #)', title, arg) : null; |
1422 | 1582 |
1423 /// @domName Console.timeStamp; @docsEditable true | 1583 /// @docsEditable true |
| 1584 @DomName("Console.timeStamp") |
1424 void timeStamp(Object arg) => _isConsoleDefined ? | 1585 void timeStamp(Object arg) => _isConsoleDefined ? |
1425 JS('void', 'console.timeStamp(#)', arg) : null; | 1586 JS('void', 'console.timeStamp(#)', arg) : null; |
1426 | 1587 |
1427 /// @domName Console.trace; @docsEditable true | 1588 /// @docsEditable true |
| 1589 @DomName("Console.trace") |
1428 void trace(Object arg) => _isConsoleDefined ? | 1590 void trace(Object arg) => _isConsoleDefined ? |
1429 JS('void', 'console.trace(#)', arg) : null; | 1591 JS('void', 'console.trace(#)', arg) : null; |
1430 | 1592 |
1431 /// @domName Console.warn; @docsEditable true | 1593 /// @docsEditable true |
| 1594 @DomName("Console.warn") |
1432 void warn(Object arg) => _isConsoleDefined ? | 1595 void warn(Object arg) => _isConsoleDefined ? |
1433 JS('void', 'console.warn(#)', arg) : null; | 1596 JS('void', 'console.warn(#)', arg) : null; |
1434 | 1597 |
1435 /// @domName Console.clear; @docsEditable true | 1598 /// @docsEditable true |
| 1599 @DomName("Console.clear") |
1436 void clear(Object arg) native; | 1600 void clear(Object arg) native; |
1437 | 1601 |
1438 } | 1602 } |
1439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1603 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1440 // for details. All rights reserved. Use of this source code is governed by a | 1604 // for details. All rights reserved. Use of this source code is governed by a |
1441 // BSD-style license that can be found in the LICENSE file. | 1605 // BSD-style license that can be found in the LICENSE file. |
1442 | 1606 |
1443 | 1607 |
1444 /// @domName HTMLContentElement; @docsEditable true | 1608 /// @docsEditable true |
| 1609 @DomName("HTMLContentElement") |
1445 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 1610 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
1446 @Experimental() | 1611 @Experimental() |
1447 class ContentElement extends Element native "*HTMLContentElement" { | 1612 class ContentElement extends Element native "*HTMLContentElement" { |
1448 | 1613 |
1449 ///@docsEditable true | 1614 /// @docsEditable true |
1450 factory ContentElement() => document.$dom_createElement("content"); | 1615 factory ContentElement() => document.$dom_createElement("content"); |
1451 | 1616 |
1452 /// Checks if this type is supported on the current platform. | 1617 /// Checks if this type is supported on the current platform. |
1453 static bool get supported => Element.isTagSupported('content'); | 1618 static bool get supported => Element.isTagSupported('content'); |
1454 | 1619 |
1455 /// @domName HTMLContentElement.resetStyleInheritance; @docsEditable true | 1620 /// @docsEditable true |
| 1621 @DomName("HTMLContentElement.resetStyleInheritance") |
1456 bool resetStyleInheritance; | 1622 bool resetStyleInheritance; |
1457 | 1623 |
1458 /// @domName HTMLContentElement.select; @docsEditable true | 1624 /// @docsEditable true |
| 1625 @DomName("HTMLContentElement.select") |
1459 String select; | 1626 String select; |
1460 | 1627 |
1461 /// @domName HTMLContentElement.getDistributedNodes; @docsEditable true | 1628 /// @docsEditable true |
| 1629 @DomName("HTMLContentElement.getDistributedNodes") |
1462 @Returns('NodeList') @Creates('NodeList') | 1630 @Returns('NodeList') @Creates('NodeList') |
1463 List<Node> getDistributedNodes() native; | 1631 List<Node> getDistributedNodes() native; |
1464 } | 1632 } |
1465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1466 // for details. All rights reserved. Use of this source code is governed by a | 1634 // for details. All rights reserved. Use of this source code is governed by a |
1467 // BSD-style license that can be found in the LICENSE file. | 1635 // BSD-style license that can be found in the LICENSE file. |
1468 | 1636 |
1469 | 1637 |
1470 /// @domName Coordinates; @docsEditable true | 1638 /// @docsEditable true |
| 1639 @DomName("Coordinates") |
1471 class Coordinates native "*Coordinates" { | 1640 class Coordinates native "*Coordinates" { |
1472 | 1641 |
1473 /// @domName Coordinates.accuracy; @docsEditable true | 1642 /// @docsEditable true |
| 1643 @DomName("Coordinates.accuracy") |
1474 final num accuracy; | 1644 final num accuracy; |
1475 | 1645 |
1476 /// @domName Coordinates.altitude; @docsEditable true | 1646 /// @docsEditable true |
| 1647 @DomName("Coordinates.altitude") |
1477 final num altitude; | 1648 final num altitude; |
1478 | 1649 |
1479 /// @domName Coordinates.altitudeAccuracy; @docsEditable true | 1650 /// @docsEditable true |
| 1651 @DomName("Coordinates.altitudeAccuracy") |
1480 final num altitudeAccuracy; | 1652 final num altitudeAccuracy; |
1481 | 1653 |
1482 /// @domName Coordinates.heading; @docsEditable true | 1654 /// @docsEditable true |
| 1655 @DomName("Coordinates.heading") |
1483 final num heading; | 1656 final num heading; |
1484 | 1657 |
1485 /// @domName Coordinates.latitude; @docsEditable true | 1658 /// @docsEditable true |
| 1659 @DomName("Coordinates.latitude") |
1486 final num latitude; | 1660 final num latitude; |
1487 | 1661 |
1488 /// @domName Coordinates.longitude; @docsEditable true | 1662 /// @docsEditable true |
| 1663 @DomName("Coordinates.longitude") |
1489 final num longitude; | 1664 final num longitude; |
1490 | 1665 |
1491 /// @domName Coordinates.speed; @docsEditable true | 1666 /// @docsEditable true |
| 1667 @DomName("Coordinates.speed") |
1492 final num speed; | 1668 final num speed; |
1493 } | 1669 } |
1494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1495 // for details. All rights reserved. Use of this source code is governed by a | 1671 // for details. All rights reserved. Use of this source code is governed by a |
1496 // BSD-style license that can be found in the LICENSE file. | 1672 // BSD-style license that can be found in the LICENSE file. |
1497 | 1673 |
1498 | 1674 |
1499 /// @domName Counter; @docsEditable true | 1675 /// @docsEditable true |
| 1676 @DomName("Counter") |
1500 class Counter native "*Counter" { | 1677 class Counter native "*Counter" { |
1501 | 1678 |
1502 /// @domName Counter.identifier; @docsEditable true | 1679 /// @docsEditable true |
| 1680 @DomName("Counter.identifier") |
1503 final String identifier; | 1681 final String identifier; |
1504 | 1682 |
1505 /// @domName Counter.listStyle; @docsEditable true | 1683 /// @docsEditable true |
| 1684 @DomName("Counter.listStyle") |
1506 final String listStyle; | 1685 final String listStyle; |
1507 | 1686 |
1508 /// @domName Counter.separator; @docsEditable true | 1687 /// @docsEditable true |
| 1688 @DomName("Counter.separator") |
1509 final String separator; | 1689 final String separator; |
1510 } | 1690 } |
1511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1512 // for details. All rights reserved. Use of this source code is governed by a | 1692 // for details. All rights reserved. Use of this source code is governed by a |
1513 // BSD-style license that can be found in the LICENSE file. | 1693 // BSD-style license that can be found in the LICENSE file. |
1514 | 1694 |
1515 | 1695 |
1516 /// @domName Crypto; @docsEditable true | 1696 /// @docsEditable true |
| 1697 @DomName("Crypto") |
1517 class Crypto native "*Crypto" { | 1698 class Crypto native "*Crypto" { |
1518 | 1699 |
1519 /// @domName Crypto.getRandomValues; @docsEditable true | 1700 /// @docsEditable true |
| 1701 @DomName("Crypto.getRandomValues") |
1520 void getRandomValues(ArrayBufferView array) native; | 1702 void getRandomValues(ArrayBufferView array) native; |
1521 } | 1703 } |
1522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1523 // for details. All rights reserved. Use of this source code is governed by a | 1705 // for details. All rights reserved. Use of this source code is governed by a |
1524 // BSD-style license that can be found in the LICENSE file. | 1706 // BSD-style license that can be found in the LICENSE file. |
1525 | 1707 |
1526 | 1708 |
1527 /// @domName CSSCharsetRule; @docsEditable true | 1709 /// @docsEditable true |
| 1710 @DomName("CSSCharsetRule") |
1528 class CssCharsetRule extends CssRule native "*CSSCharsetRule" { | 1711 class CssCharsetRule extends CssRule native "*CSSCharsetRule" { |
1529 | 1712 |
1530 /// @domName CSSCharsetRule.encoding; @docsEditable true | 1713 /// @docsEditable true |
| 1714 @DomName("CSSCharsetRule.encoding") |
1531 String encoding; | 1715 String encoding; |
1532 } | 1716 } |
1533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1534 // for details. All rights reserved. Use of this source code is governed by a | 1718 // for details. All rights reserved. Use of this source code is governed by a |
1535 // BSD-style license that can be found in the LICENSE file. | 1719 // BSD-style license that can be found in the LICENSE file. |
1536 | 1720 |
1537 | 1721 |
1538 /// @domName CSSFontFaceRule; @docsEditable true | 1722 /// @docsEditable true |
| 1723 @DomName("CSSFontFaceRule") |
1539 class CssFontFaceRule extends CssRule native "*CSSFontFaceRule" { | 1724 class CssFontFaceRule extends CssRule native "*CSSFontFaceRule" { |
1540 | 1725 |
1541 /// @domName CSSFontFaceRule.style; @docsEditable true | 1726 /// @docsEditable true |
| 1727 @DomName("CSSFontFaceRule.style") |
1542 final CssStyleDeclaration style; | 1728 final CssStyleDeclaration style; |
1543 } | 1729 } |
1544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1730 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1545 // for details. All rights reserved. Use of this source code is governed by a | 1731 // for details. All rights reserved. Use of this source code is governed by a |
1546 // BSD-style license that can be found in the LICENSE file. | 1732 // BSD-style license that can be found in the LICENSE file. |
1547 | 1733 |
1548 | 1734 |
1549 /// @domName CSSImportRule; @docsEditable true | 1735 /// @docsEditable true |
| 1736 @DomName("CSSImportRule") |
1550 class CssImportRule extends CssRule native "*CSSImportRule" { | 1737 class CssImportRule extends CssRule native "*CSSImportRule" { |
1551 | 1738 |
1552 /// @domName CSSImportRule.href; @docsEditable true | 1739 /// @docsEditable true |
| 1740 @DomName("CSSImportRule.href") |
1553 final String href; | 1741 final String href; |
1554 | 1742 |
1555 /// @domName CSSImportRule.media; @docsEditable true | 1743 /// @docsEditable true |
| 1744 @DomName("CSSImportRule.media") |
1556 final MediaList media; | 1745 final MediaList media; |
1557 | 1746 |
1558 /// @domName CSSImportRule.styleSheet; @docsEditable true | 1747 /// @docsEditable true |
| 1748 @DomName("CSSImportRule.styleSheet") |
1559 final CssStyleSheet styleSheet; | 1749 final CssStyleSheet styleSheet; |
1560 } | 1750 } |
1561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1562 // for details. All rights reserved. Use of this source code is governed by a | 1752 // for details. All rights reserved. Use of this source code is governed by a |
1563 // BSD-style license that can be found in the LICENSE file. | 1753 // BSD-style license that can be found in the LICENSE file. |
1564 | 1754 |
1565 | 1755 |
1566 /// @domName WebKitCSSKeyframeRule; @docsEditable true | 1756 /// @docsEditable true |
| 1757 @DomName("WebKitCSSKeyframeRule") |
1567 class CssKeyframeRule extends CssRule native "*WebKitCSSKeyframeRule" { | 1758 class CssKeyframeRule extends CssRule native "*WebKitCSSKeyframeRule" { |
1568 | 1759 |
1569 /// @domName WebKitCSSKeyframeRule.keyText; @docsEditable true | 1760 /// @docsEditable true |
| 1761 @DomName("WebKitCSSKeyframeRule.keyText") |
1570 String keyText; | 1762 String keyText; |
1571 | 1763 |
1572 /// @domName WebKitCSSKeyframeRule.style; @docsEditable true | 1764 /// @docsEditable true |
| 1765 @DomName("WebKitCSSKeyframeRule.style") |
1573 final CssStyleDeclaration style; | 1766 final CssStyleDeclaration style; |
1574 } | 1767 } |
1575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1576 // for details. All rights reserved. Use of this source code is governed by a | 1769 // for details. All rights reserved. Use of this source code is governed by a |
1577 // BSD-style license that can be found in the LICENSE file. | 1770 // BSD-style license that can be found in the LICENSE file. |
1578 | 1771 |
1579 | 1772 |
1580 /// @domName WebKitCSSKeyframesRule; @docsEditable true | 1773 /// @docsEditable true |
| 1774 @DomName("WebKitCSSKeyframesRule") |
1581 class CssKeyframesRule extends CssRule native "*WebKitCSSKeyframesRule" { | 1775 class CssKeyframesRule extends CssRule native "*WebKitCSSKeyframesRule" { |
1582 | 1776 |
1583 /// @domName WebKitCSSKeyframesRule.cssRules; @docsEditable true | 1777 /// @docsEditable true |
| 1778 @DomName("WebKitCSSKeyframesRule.cssRules") |
1584 @Returns('_CssRuleList') @Creates('_CssRuleList') | 1779 @Returns('_CssRuleList') @Creates('_CssRuleList') |
1585 final List<CssRule> cssRules; | 1780 final List<CssRule> cssRules; |
1586 | 1781 |
1587 /// @domName WebKitCSSKeyframesRule.name; @docsEditable true | 1782 /// @docsEditable true |
| 1783 @DomName("WebKitCSSKeyframesRule.name") |
1588 String name; | 1784 String name; |
1589 | 1785 |
1590 /// @domName WebKitCSSKeyframesRule.deleteRule; @docsEditable true | 1786 /// @docsEditable true |
| 1787 @DomName("WebKitCSSKeyframesRule.deleteRule") |
1591 void deleteRule(String key) native; | 1788 void deleteRule(String key) native; |
1592 | 1789 |
1593 /// @domName WebKitCSSKeyframesRule.findRule; @docsEditable true | 1790 /// @docsEditable true |
| 1791 @DomName("WebKitCSSKeyframesRule.findRule") |
1594 CssKeyframeRule findRule(String key) native; | 1792 CssKeyframeRule findRule(String key) native; |
1595 | 1793 |
1596 /// @domName WebKitCSSKeyframesRule.insertRule; @docsEditable true | 1794 /// @docsEditable true |
| 1795 @DomName("WebKitCSSKeyframesRule.insertRule") |
1597 void insertRule(String rule) native; | 1796 void insertRule(String rule) native; |
1598 } | 1797 } |
1599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1600 // for details. All rights reserved. Use of this source code is governed by a | 1799 // for details. All rights reserved. Use of this source code is governed by a |
1601 // BSD-style license that can be found in the LICENSE file. | 1800 // BSD-style license that can be found in the LICENSE file. |
1602 | 1801 |
1603 | 1802 |
1604 /// @domName WebKitCSSMatrix; @docsEditable true | 1803 /// @docsEditable true |
| 1804 @DomName("WebKitCSSMatrix") |
1605 class CssMatrix native "*WebKitCSSMatrix" { | 1805 class CssMatrix native "*WebKitCSSMatrix" { |
1606 | 1806 |
1607 ///@docsEditable true | 1807 /// @docsEditable true |
1608 factory CssMatrix([String cssValue]) { | 1808 factory CssMatrix([String cssValue]) { |
1609 if (!?cssValue) { | 1809 if (!?cssValue) { |
1610 return CssMatrix._create(); | 1810 return CssMatrix._create(); |
1611 } | 1811 } |
1612 return CssMatrix._create(cssValue); | 1812 return CssMatrix._create(cssValue); |
1613 } | 1813 } |
1614 static CssMatrix _create([String cssValue]) { | 1814 static CssMatrix _create([String cssValue]) { |
1615 if (!?cssValue) { | 1815 if (!?cssValue) { |
1616 return JS('CssMatrix', 'new WebKitCSSMatrix()'); | 1816 return JS('CssMatrix', 'new WebKitCSSMatrix()'); |
1617 } | 1817 } |
1618 return JS('CssMatrix', 'new WebKitCSSMatrix(#)', cssValue); | 1818 return JS('CssMatrix', 'new WebKitCSSMatrix(#)', cssValue); |
1619 } | 1819 } |
1620 | 1820 |
1621 /// @domName WebKitCSSMatrix.a; @docsEditable true | 1821 /// @docsEditable true |
| 1822 @DomName("WebKitCSSMatrix.a") |
1622 num a; | 1823 num a; |
1623 | 1824 |
1624 /// @domName WebKitCSSMatrix.b; @docsEditable true | 1825 /// @docsEditable true |
| 1826 @DomName("WebKitCSSMatrix.b") |
1625 num b; | 1827 num b; |
1626 | 1828 |
1627 /// @domName WebKitCSSMatrix.c; @docsEditable true | 1829 /// @docsEditable true |
| 1830 @DomName("WebKitCSSMatrix.c") |
1628 num c; | 1831 num c; |
1629 | 1832 |
1630 /// @domName WebKitCSSMatrix.d; @docsEditable true | 1833 /// @docsEditable true |
| 1834 @DomName("WebKitCSSMatrix.d") |
1631 num d; | 1835 num d; |
1632 | 1836 |
1633 /// @domName WebKitCSSMatrix.e; @docsEditable true | 1837 /// @docsEditable true |
| 1838 @DomName("WebKitCSSMatrix.e") |
1634 num e; | 1839 num e; |
1635 | 1840 |
1636 /// @domName WebKitCSSMatrix.f; @docsEditable true | 1841 /// @docsEditable true |
| 1842 @DomName("WebKitCSSMatrix.f") |
1637 num f; | 1843 num f; |
1638 | 1844 |
1639 /// @domName WebKitCSSMatrix.m11; @docsEditable true | 1845 /// @docsEditable true |
| 1846 @DomName("WebKitCSSMatrix.m11") |
1640 num m11; | 1847 num m11; |
1641 | 1848 |
1642 /// @domName WebKitCSSMatrix.m12; @docsEditable true | 1849 /// @docsEditable true |
| 1850 @DomName("WebKitCSSMatrix.m12") |
1643 num m12; | 1851 num m12; |
1644 | 1852 |
1645 /// @domName WebKitCSSMatrix.m13; @docsEditable true | 1853 /// @docsEditable true |
| 1854 @DomName("WebKitCSSMatrix.m13") |
1646 num m13; | 1855 num m13; |
1647 | 1856 |
1648 /// @domName WebKitCSSMatrix.m14; @docsEditable true | 1857 /// @docsEditable true |
| 1858 @DomName("WebKitCSSMatrix.m14") |
1649 num m14; | 1859 num m14; |
1650 | 1860 |
1651 /// @domName WebKitCSSMatrix.m21; @docsEditable true | 1861 /// @docsEditable true |
| 1862 @DomName("WebKitCSSMatrix.m21") |
1652 num m21; | 1863 num m21; |
1653 | 1864 |
1654 /// @domName WebKitCSSMatrix.m22; @docsEditable true | 1865 /// @docsEditable true |
| 1866 @DomName("WebKitCSSMatrix.m22") |
1655 num m22; | 1867 num m22; |
1656 | 1868 |
1657 /// @domName WebKitCSSMatrix.m23; @docsEditable true | 1869 /// @docsEditable true |
| 1870 @DomName("WebKitCSSMatrix.m23") |
1658 num m23; | 1871 num m23; |
1659 | 1872 |
1660 /// @domName WebKitCSSMatrix.m24; @docsEditable true | 1873 /// @docsEditable true |
| 1874 @DomName("WebKitCSSMatrix.m24") |
1661 num m24; | 1875 num m24; |
1662 | 1876 |
1663 /// @domName WebKitCSSMatrix.m31; @docsEditable true | 1877 /// @docsEditable true |
| 1878 @DomName("WebKitCSSMatrix.m31") |
1664 num m31; | 1879 num m31; |
1665 | 1880 |
1666 /// @domName WebKitCSSMatrix.m32; @docsEditable true | 1881 /// @docsEditable true |
| 1882 @DomName("WebKitCSSMatrix.m32") |
1667 num m32; | 1883 num m32; |
1668 | 1884 |
1669 /// @domName WebKitCSSMatrix.m33; @docsEditable true | 1885 /// @docsEditable true |
| 1886 @DomName("WebKitCSSMatrix.m33") |
1670 num m33; | 1887 num m33; |
1671 | 1888 |
1672 /// @domName WebKitCSSMatrix.m34; @docsEditable true | 1889 /// @docsEditable true |
| 1890 @DomName("WebKitCSSMatrix.m34") |
1673 num m34; | 1891 num m34; |
1674 | 1892 |
1675 /// @domName WebKitCSSMatrix.m41; @docsEditable true | 1893 /// @docsEditable true |
| 1894 @DomName("WebKitCSSMatrix.m41") |
1676 num m41; | 1895 num m41; |
1677 | 1896 |
1678 /// @domName WebKitCSSMatrix.m42; @docsEditable true | 1897 /// @docsEditable true |
| 1898 @DomName("WebKitCSSMatrix.m42") |
1679 num m42; | 1899 num m42; |
1680 | 1900 |
1681 /// @domName WebKitCSSMatrix.m43; @docsEditable true | 1901 /// @docsEditable true |
| 1902 @DomName("WebKitCSSMatrix.m43") |
1682 num m43; | 1903 num m43; |
1683 | 1904 |
1684 /// @domName WebKitCSSMatrix.m44; @docsEditable true | 1905 /// @docsEditable true |
| 1906 @DomName("WebKitCSSMatrix.m44") |
1685 num m44; | 1907 num m44; |
1686 | 1908 |
1687 /// @domName WebKitCSSMatrix.inverse; @docsEditable true | 1909 /// @docsEditable true |
| 1910 @DomName("WebKitCSSMatrix.inverse") |
1688 CssMatrix inverse() native; | 1911 CssMatrix inverse() native; |
1689 | 1912 |
1690 /// @domName WebKitCSSMatrix.multiply; @docsEditable true | 1913 /// @docsEditable true |
| 1914 @DomName("WebKitCSSMatrix.multiply") |
1691 CssMatrix multiply(CssMatrix secondMatrix) native; | 1915 CssMatrix multiply(CssMatrix secondMatrix) native; |
1692 | 1916 |
1693 /// @domName WebKitCSSMatrix.rotate; @docsEditable true | 1917 /// @docsEditable true |
| 1918 @DomName("WebKitCSSMatrix.rotate") |
1694 CssMatrix rotate(num rotX, num rotY, num rotZ) native; | 1919 CssMatrix rotate(num rotX, num rotY, num rotZ) native; |
1695 | 1920 |
1696 /// @domName WebKitCSSMatrix.rotateAxisAngle; @docsEditable true | 1921 /// @docsEditable true |
| 1922 @DomName("WebKitCSSMatrix.rotateAxisAngle") |
1697 CssMatrix rotateAxisAngle(num x, num y, num z, num angle) native; | 1923 CssMatrix rotateAxisAngle(num x, num y, num z, num angle) native; |
1698 | 1924 |
1699 /// @domName WebKitCSSMatrix.scale; @docsEditable true | 1925 /// @docsEditable true |
| 1926 @DomName("WebKitCSSMatrix.scale") |
1700 CssMatrix scale(num scaleX, num scaleY, num scaleZ) native; | 1927 CssMatrix scale(num scaleX, num scaleY, num scaleZ) native; |
1701 | 1928 |
1702 /// @domName WebKitCSSMatrix.setMatrixValue; @docsEditable true | 1929 /// @docsEditable true |
| 1930 @DomName("WebKitCSSMatrix.setMatrixValue") |
1703 void setMatrixValue(String string) native; | 1931 void setMatrixValue(String string) native; |
1704 | 1932 |
1705 /// @domName WebKitCSSMatrix.skewX; @docsEditable true | 1933 /// @docsEditable true |
| 1934 @DomName("WebKitCSSMatrix.skewX") |
1706 CssMatrix skewX(num angle) native; | 1935 CssMatrix skewX(num angle) native; |
1707 | 1936 |
1708 /// @domName WebKitCSSMatrix.skewY; @docsEditable true | 1937 /// @docsEditable true |
| 1938 @DomName("WebKitCSSMatrix.skewY") |
1709 CssMatrix skewY(num angle) native; | 1939 CssMatrix skewY(num angle) native; |
1710 | 1940 |
1711 /// @domName WebKitCSSMatrix.toString; @docsEditable true | 1941 /// @docsEditable true |
| 1942 @DomName("WebKitCSSMatrix.toString") |
1712 String toString() native; | 1943 String toString() native; |
1713 | 1944 |
1714 /// @domName WebKitCSSMatrix.translate; @docsEditable true | 1945 /// @docsEditable true |
| 1946 @DomName("WebKitCSSMatrix.translate") |
1715 CssMatrix translate(num x, num y, num z) native; | 1947 CssMatrix translate(num x, num y, num z) native; |
1716 } | 1948 } |
1717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1718 // for details. All rights reserved. Use of this source code is governed by a | 1950 // for details. All rights reserved. Use of this source code is governed by a |
1719 // BSD-style license that can be found in the LICENSE file. | 1951 // BSD-style license that can be found in the LICENSE file. |
1720 | 1952 |
1721 | 1953 |
1722 /// @domName CSSMediaRule; @docsEditable true | 1954 /// @docsEditable true |
| 1955 @DomName("CSSMediaRule") |
1723 class CssMediaRule extends CssRule native "*CSSMediaRule" { | 1956 class CssMediaRule extends CssRule native "*CSSMediaRule" { |
1724 | 1957 |
1725 /// @domName CSSMediaRule.cssRules; @docsEditable true | 1958 /// @docsEditable true |
| 1959 @DomName("CSSMediaRule.cssRules") |
1726 @Returns('_CssRuleList') @Creates('_CssRuleList') | 1960 @Returns('_CssRuleList') @Creates('_CssRuleList') |
1727 final List<CssRule> cssRules; | 1961 final List<CssRule> cssRules; |
1728 | 1962 |
1729 /// @domName CSSMediaRule.media; @docsEditable true | 1963 /// @docsEditable true |
| 1964 @DomName("CSSMediaRule.media") |
1730 final MediaList media; | 1965 final MediaList media; |
1731 | 1966 |
1732 /// @domName CSSMediaRule.deleteRule; @docsEditable true | 1967 /// @docsEditable true |
| 1968 @DomName("CSSMediaRule.deleteRule") |
1733 void deleteRule(int index) native; | 1969 void deleteRule(int index) native; |
1734 | 1970 |
1735 /// @domName CSSMediaRule.insertRule; @docsEditable true | 1971 /// @docsEditable true |
| 1972 @DomName("CSSMediaRule.insertRule") |
1736 int insertRule(String rule, int index) native; | 1973 int insertRule(String rule, int index) native; |
1737 } | 1974 } |
1738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1739 // for details. All rights reserved. Use of this source code is governed by a | 1976 // for details. All rights reserved. Use of this source code is governed by a |
1740 // BSD-style license that can be found in the LICENSE file. | 1977 // BSD-style license that can be found in the LICENSE file. |
1741 | 1978 |
1742 | 1979 |
1743 /// @domName CSSPageRule; @docsEditable true | 1980 /// @docsEditable true |
| 1981 @DomName("CSSPageRule") |
1744 class CssPageRule extends CssRule native "*CSSPageRule" { | 1982 class CssPageRule extends CssRule native "*CSSPageRule" { |
1745 | 1983 |
1746 /// @domName CSSPageRule.selectorText; @docsEditable true | 1984 /// @docsEditable true |
| 1985 @DomName("CSSPageRule.selectorText") |
1747 String selectorText; | 1986 String selectorText; |
1748 | 1987 |
1749 /// @domName CSSPageRule.style; @docsEditable true | 1988 /// @docsEditable true |
| 1989 @DomName("CSSPageRule.style") |
1750 final CssStyleDeclaration style; | 1990 final CssStyleDeclaration style; |
1751 } | 1991 } |
1752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1992 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1753 // for details. All rights reserved. Use of this source code is governed by a | 1993 // for details. All rights reserved. Use of this source code is governed by a |
1754 // BSD-style license that can be found in the LICENSE file. | 1994 // BSD-style license that can be found in the LICENSE file. |
1755 | 1995 |
1756 | 1996 |
1757 /// @domName CSSPrimitiveValue; @docsEditable true | 1997 /// @docsEditable true |
| 1998 @DomName("CSSPrimitiveValue") |
1758 class CssPrimitiveValue extends CssValue native "*CSSPrimitiveValue" { | 1999 class CssPrimitiveValue extends CssValue native "*CSSPrimitiveValue" { |
1759 | 2000 |
1760 static const int CSS_ATTR = 22; | 2001 static const int CSS_ATTR = 22; |
1761 | 2002 |
1762 static const int CSS_CM = 6; | 2003 static const int CSS_CM = 6; |
1763 | 2004 |
1764 static const int CSS_COUNTER = 23; | 2005 static const int CSS_COUNTER = 23; |
1765 | 2006 |
1766 static const int CSS_DEG = 11; | 2007 static const int CSS_DEG = 11; |
1767 | 2008 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1808 static const int CSS_UNKNOWN = 0; | 2049 static const int CSS_UNKNOWN = 0; |
1809 | 2050 |
1810 static const int CSS_URI = 20; | 2051 static const int CSS_URI = 20; |
1811 | 2052 |
1812 static const int CSS_VH = 27; | 2053 static const int CSS_VH = 27; |
1813 | 2054 |
1814 static const int CSS_VMIN = 28; | 2055 static const int CSS_VMIN = 28; |
1815 | 2056 |
1816 static const int CSS_VW = 26; | 2057 static const int CSS_VW = 26; |
1817 | 2058 |
1818 /// @domName CSSPrimitiveValue.primitiveType; @docsEditable true | 2059 /// @docsEditable true |
| 2060 @DomName("CSSPrimitiveValue.primitiveType") |
1819 final int primitiveType; | 2061 final int primitiveType; |
1820 | 2062 |
1821 /// @domName CSSPrimitiveValue.getCounterValue; @docsEditable true | 2063 /// @docsEditable true |
| 2064 @DomName("CSSPrimitiveValue.getCounterValue") |
1822 Counter getCounterValue() native; | 2065 Counter getCounterValue() native; |
1823 | 2066 |
1824 /// @domName CSSPrimitiveValue.getFloatValue; @docsEditable true | 2067 /// @docsEditable true |
| 2068 @DomName("CSSPrimitiveValue.getFloatValue") |
1825 num getFloatValue(int unitType) native; | 2069 num getFloatValue(int unitType) native; |
1826 | 2070 |
1827 /// @domName CSSPrimitiveValue.getRGBColorValue; @docsEditable true | 2071 /// @docsEditable true |
1828 @JSName('getRGBColorValue') | 2072 @JSName('getRGBColorValue') |
| 2073 @DomName("CSSPrimitiveValue.getRGBColorValue") |
1829 RgbColor getRgbColorValue() native; | 2074 RgbColor getRgbColorValue() native; |
1830 | 2075 |
1831 /// @domName CSSPrimitiveValue.getRectValue; @docsEditable true | 2076 /// @docsEditable true |
| 2077 @DomName("CSSPrimitiveValue.getRectValue") |
1832 Rect getRectValue() native; | 2078 Rect getRectValue() native; |
1833 | 2079 |
1834 /// @domName CSSPrimitiveValue.getStringValue; @docsEditable true | 2080 /// @docsEditable true |
| 2081 @DomName("CSSPrimitiveValue.getStringValue") |
1835 String getStringValue() native; | 2082 String getStringValue() native; |
1836 | 2083 |
1837 /// @domName CSSPrimitiveValue.setFloatValue; @docsEditable true | 2084 /// @docsEditable true |
| 2085 @DomName("CSSPrimitiveValue.setFloatValue") |
1838 void setFloatValue(int unitType, num floatValue) native; | 2086 void setFloatValue(int unitType, num floatValue) native; |
1839 | 2087 |
1840 /// @domName CSSPrimitiveValue.setStringValue; @docsEditable true | 2088 /// @docsEditable true |
| 2089 @DomName("CSSPrimitiveValue.setStringValue") |
1841 void setStringValue(int stringType, String stringValue) native; | 2090 void setStringValue(int stringType, String stringValue) native; |
1842 } | 2091 } |
1843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1844 // for details. All rights reserved. Use of this source code is governed by a | 2093 // for details. All rights reserved. Use of this source code is governed by a |
1845 // BSD-style license that can be found in the LICENSE file. | 2094 // BSD-style license that can be found in the LICENSE file. |
1846 | 2095 |
1847 | 2096 |
1848 /// @domName CSSRule; @docsEditable true | 2097 /// @docsEditable true |
| 2098 @DomName("CSSRule") |
1849 class CssRule native "*CSSRule" { | 2099 class CssRule native "*CSSRule" { |
1850 | 2100 |
1851 static const int CHARSET_RULE = 2; | 2101 static const int CHARSET_RULE = 2; |
1852 | 2102 |
1853 static const int FONT_FACE_RULE = 5; | 2103 static const int FONT_FACE_RULE = 5; |
1854 | 2104 |
1855 static const int IMPORT_RULE = 3; | 2105 static const int IMPORT_RULE = 3; |
1856 | 2106 |
1857 static const int MEDIA_RULE = 4; | 2107 static const int MEDIA_RULE = 4; |
1858 | 2108 |
1859 static const int PAGE_RULE = 6; | 2109 static const int PAGE_RULE = 6; |
1860 | 2110 |
1861 static const int STYLE_RULE = 1; | 2111 static const int STYLE_RULE = 1; |
1862 | 2112 |
1863 static const int UNKNOWN_RULE = 0; | 2113 static const int UNKNOWN_RULE = 0; |
1864 | 2114 |
1865 static const int WEBKIT_KEYFRAMES_RULE = 7; | 2115 static const int WEBKIT_KEYFRAMES_RULE = 7; |
1866 | 2116 |
1867 static const int WEBKIT_KEYFRAME_RULE = 8; | 2117 static const int WEBKIT_KEYFRAME_RULE = 8; |
1868 | 2118 |
1869 /// @domName CSSRule.cssText; @docsEditable true | 2119 /// @docsEditable true |
| 2120 @DomName("CSSRule.cssText") |
1870 String cssText; | 2121 String cssText; |
1871 | 2122 |
1872 /// @domName CSSRule.parentRule; @docsEditable true | 2123 /// @docsEditable true |
| 2124 @DomName("CSSRule.parentRule") |
1873 final CssRule parentRule; | 2125 final CssRule parentRule; |
1874 | 2126 |
1875 /// @domName CSSRule.parentStyleSheet; @docsEditable true | 2127 /// @docsEditable true |
| 2128 @DomName("CSSRule.parentStyleSheet") |
1876 final CssStyleSheet parentStyleSheet; | 2129 final CssStyleSheet parentStyleSheet; |
1877 | 2130 |
1878 /// @domName CSSRule.type; @docsEditable true | 2131 /// @docsEditable true |
| 2132 @DomName("CSSRule.type") |
1879 final int type; | 2133 final int type; |
1880 } | 2134 } |
1881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1882 // for details. All rights reserved. Use of this source code is governed by a | 2136 // for details. All rights reserved. Use of this source code is governed by a |
1883 // BSD-style license that can be found in the LICENSE file. | 2137 // BSD-style license that can be found in the LICENSE file. |
1884 | 2138 |
1885 | 2139 |
1886 String _cachedBrowserPrefix; | 2140 String _cachedBrowserPrefix; |
1887 | 2141 |
1888 String get _browserPrefix { | 2142 String get _browserPrefix { |
1889 if (_cachedBrowserPrefix == null) { | 2143 if (_cachedBrowserPrefix == null) { |
1890 if (_Device.isFirefox) { | 2144 if (_Device.isFirefox) { |
1891 _cachedBrowserPrefix = '-moz-'; | 2145 _cachedBrowserPrefix = '-moz-'; |
1892 } else if (_Device.isIE) { | 2146 } else if (_Device.isIE) { |
1893 _cachedBrowserPrefix = '-ms-'; | 2147 _cachedBrowserPrefix = '-ms-'; |
1894 } else if (_Device.isOpera) { | 2148 } else if (_Device.isOpera) { |
1895 _cachedBrowserPrefix = '-o-'; | 2149 _cachedBrowserPrefix = '-o-'; |
1896 } else { | 2150 } else { |
1897 _cachedBrowserPrefix = '-webkit-'; | 2151 _cachedBrowserPrefix = '-webkit-'; |
1898 } | 2152 } |
1899 } | 2153 } |
1900 return _cachedBrowserPrefix; | 2154 return _cachedBrowserPrefix; |
1901 } | 2155 } |
1902 | 2156 |
1903 /// @domName CSSStyleDeclaration | 2157 @DomName("CSSStyleDeclaration") |
1904 class CssStyleDeclaration native "*CSSStyleDeclaration" { | 2158 class CssStyleDeclaration native "*CSSStyleDeclaration" { |
1905 factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCss
StyleDeclaration(); | 2159 factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCss
StyleDeclaration(); |
1906 factory CssStyleDeclaration.css(String css) => | 2160 factory CssStyleDeclaration.css(String css) => |
1907 _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css); | 2161 _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css); |
1908 | 2162 |
1909 | 2163 |
1910 /// @domName CSSStyleDeclaration.cssText; @docsEditable true | 2164 /// @docsEditable true |
| 2165 @DomName("CSSStyleDeclaration.cssText") |
1911 String cssText; | 2166 String cssText; |
1912 | 2167 |
1913 /// @domName CSSStyleDeclaration.length; @docsEditable true | 2168 /// @docsEditable true |
| 2169 @DomName("CSSStyleDeclaration.length") |
1914 final int length; | 2170 final int length; |
1915 | 2171 |
1916 /// @domName CSSStyleDeclaration.parentRule; @docsEditable true | 2172 /// @docsEditable true |
| 2173 @DomName("CSSStyleDeclaration.parentRule") |
1917 final CssRule parentRule; | 2174 final CssRule parentRule; |
1918 | 2175 |
1919 /// @domName CSSStyleDeclaration.getPropertyCSSValue; @docsEditable true | 2176 /// @docsEditable true |
1920 @JSName('getPropertyCSSValue') | 2177 @JSName('getPropertyCSSValue') |
| 2178 @DomName("CSSStyleDeclaration.getPropertyCSSValue") |
1921 CssValue getPropertyCssValue(String propertyName) native; | 2179 CssValue getPropertyCssValue(String propertyName) native; |
1922 | 2180 |
1923 /// @domName CSSStyleDeclaration.getPropertyPriority; @docsEditable true | 2181 /// @docsEditable true |
| 2182 @DomName("CSSStyleDeclaration.getPropertyPriority") |
1924 String getPropertyPriority(String propertyName) native; | 2183 String getPropertyPriority(String propertyName) native; |
1925 | 2184 |
1926 /// @domName CSSStyleDeclaration.getPropertyShorthand; @docsEditable true | 2185 /// @docsEditable true |
| 2186 @DomName("CSSStyleDeclaration.getPropertyShorthand") |
1927 String getPropertyShorthand(String propertyName) native; | 2187 String getPropertyShorthand(String propertyName) native; |
1928 | 2188 |
1929 /// @domName CSSStyleDeclaration._getPropertyValue; @docsEditable true | 2189 /// @docsEditable true |
1930 @JSName('getPropertyValue') | 2190 @JSName('getPropertyValue') |
| 2191 @DomName("CSSStyleDeclaration.getPropertyValue") |
1931 String _getPropertyValue(String propertyName) native; | 2192 String _getPropertyValue(String propertyName) native; |
1932 | 2193 |
1933 /// @domName CSSStyleDeclaration.isPropertyImplicit; @docsEditable true | 2194 /// @docsEditable true |
| 2195 @DomName("CSSStyleDeclaration.isPropertyImplicit") |
1934 bool isPropertyImplicit(String propertyName) native; | 2196 bool isPropertyImplicit(String propertyName) native; |
1935 | 2197 |
1936 /// @domName CSSStyleDeclaration.item; @docsEditable true | 2198 /// @docsEditable true |
| 2199 @DomName("CSSStyleDeclaration.item") |
1937 String item(int index) native; | 2200 String item(int index) native; |
1938 | 2201 |
1939 /// @domName CSSStyleDeclaration.removeProperty; @docsEditable true | 2202 /// @docsEditable true |
| 2203 @DomName("CSSStyleDeclaration.removeProperty") |
1940 String removeProperty(String propertyName) native; | 2204 String removeProperty(String propertyName) native; |
1941 | 2205 |
1942 | 2206 |
1943 String getPropertyValue(String propertyName) { | 2207 String getPropertyValue(String propertyName) { |
1944 var propValue = _getPropertyValue(propertyName); | 2208 var propValue = _getPropertyValue(propertyName); |
1945 return propValue != null ? propValue : ''; | 2209 return propValue != null ? propValue : ''; |
1946 } | 2210 } |
1947 | 2211 |
1948 void setProperty(String propertyName, String value, [String priority]) { | 2212 void setProperty(String propertyName, String value, [String priority]) { |
1949 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); | 2213 JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); |
(...skipping 3152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5102 /** Sets the value of "zoom" */ | 5366 /** Sets the value of "zoom" */ |
5103 void set zoom(String value) { | 5367 void set zoom(String value) { |
5104 setProperty('zoom', value, ''); | 5368 setProperty('zoom', value, ''); |
5105 } | 5369 } |
5106 } | 5370 } |
5107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5371 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5108 // for details. All rights reserved. Use of this source code is governed by a | 5372 // for details. All rights reserved. Use of this source code is governed by a |
5109 // BSD-style license that can be found in the LICENSE file. | 5373 // BSD-style license that can be found in the LICENSE file. |
5110 | 5374 |
5111 | 5375 |
5112 /// @domName CSSStyleRule; @docsEditable true | 5376 /// @docsEditable true |
| 5377 @DomName("CSSStyleRule") |
5113 class CssStyleRule extends CssRule native "*CSSStyleRule" { | 5378 class CssStyleRule extends CssRule native "*CSSStyleRule" { |
5114 | 5379 |
5115 /// @domName CSSStyleRule.selectorText; @docsEditable true | 5380 /// @docsEditable true |
| 5381 @DomName("CSSStyleRule.selectorText") |
5116 String selectorText; | 5382 String selectorText; |
5117 | 5383 |
5118 /// @domName CSSStyleRule.style; @docsEditable true | 5384 /// @docsEditable true |
| 5385 @DomName("CSSStyleRule.style") |
5119 final CssStyleDeclaration style; | 5386 final CssStyleDeclaration style; |
5120 } | 5387 } |
5121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5122 // for details. All rights reserved. Use of this source code is governed by a | 5389 // for details. All rights reserved. Use of this source code is governed by a |
5123 // BSD-style license that can be found in the LICENSE file. | 5390 // BSD-style license that can be found in the LICENSE file. |
5124 | 5391 |
5125 | 5392 |
5126 /// @domName CSSStyleSheet; @docsEditable true | 5393 /// @docsEditable true |
| 5394 @DomName("CSSStyleSheet") |
5127 class CssStyleSheet extends StyleSheet native "*CSSStyleSheet" { | 5395 class CssStyleSheet extends StyleSheet native "*CSSStyleSheet" { |
5128 | 5396 |
5129 /// @domName CSSStyleSheet.cssRules; @docsEditable true | 5397 /// @docsEditable true |
| 5398 @DomName("CSSStyleSheet.cssRules") |
5130 @Returns('_CssRuleList') @Creates('_CssRuleList') | 5399 @Returns('_CssRuleList') @Creates('_CssRuleList') |
5131 final List<CssRule> cssRules; | 5400 final List<CssRule> cssRules; |
5132 | 5401 |
5133 /// @domName CSSStyleSheet.ownerRule; @docsEditable true | 5402 /// @docsEditable true |
| 5403 @DomName("CSSStyleSheet.ownerRule") |
5134 final CssRule ownerRule; | 5404 final CssRule ownerRule; |
5135 | 5405 |
5136 /// @domName CSSStyleSheet.rules; @docsEditable true | 5406 /// @docsEditable true |
| 5407 @DomName("CSSStyleSheet.rules") |
5137 @Returns('_CssRuleList') @Creates('_CssRuleList') | 5408 @Returns('_CssRuleList') @Creates('_CssRuleList') |
5138 final List<CssRule> rules; | 5409 final List<CssRule> rules; |
5139 | 5410 |
5140 /// @domName CSSStyleSheet.addRule; @docsEditable true | 5411 /// @docsEditable true |
| 5412 @DomName("CSSStyleSheet.addRule") |
5141 int addRule(String selector, String style, [int index]) native; | 5413 int addRule(String selector, String style, [int index]) native; |
5142 | 5414 |
5143 /// @domName CSSStyleSheet.deleteRule; @docsEditable true | 5415 /// @docsEditable true |
| 5416 @DomName("CSSStyleSheet.deleteRule") |
5144 void deleteRule(int index) native; | 5417 void deleteRule(int index) native; |
5145 | 5418 |
5146 /// @domName CSSStyleSheet.insertRule; @docsEditable true | 5419 /// @docsEditable true |
| 5420 @DomName("CSSStyleSheet.insertRule") |
5147 int insertRule(String rule, int index) native; | 5421 int insertRule(String rule, int index) native; |
5148 | 5422 |
5149 /// @domName CSSStyleSheet.removeRule; @docsEditable true | 5423 /// @docsEditable true |
| 5424 @DomName("CSSStyleSheet.removeRule") |
5150 void removeRule(int index) native; | 5425 void removeRule(int index) native; |
5151 } | 5426 } |
5152 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5153 // for details. All rights reserved. Use of this source code is governed by a | 5428 // for details. All rights reserved. Use of this source code is governed by a |
5154 // BSD-style license that can be found in the LICENSE file. | 5429 // BSD-style license that can be found in the LICENSE file. |
5155 | 5430 |
5156 | 5431 |
5157 /// @domName WebKitCSSTransformValue; @docsEditable true | 5432 /// @docsEditable true |
| 5433 @DomName("WebKitCSSTransformValue") |
5158 class CssTransformValue extends _CssValueList native "*WebKitCSSTransformValue"
{ | 5434 class CssTransformValue extends _CssValueList native "*WebKitCSSTransformValue"
{ |
5159 | 5435 |
5160 static const int CSS_MATRIX = 11; | 5436 static const int CSS_MATRIX = 11; |
5161 | 5437 |
5162 static const int CSS_MATRIX3D = 21; | 5438 static const int CSS_MATRIX3D = 21; |
5163 | 5439 |
5164 static const int CSS_PERSPECTIVE = 20; | 5440 static const int CSS_PERSPECTIVE = 20; |
5165 | 5441 |
5166 static const int CSS_ROTATE = 4; | 5442 static const int CSS_ROTATE = 4; |
5167 | 5443 |
(...skipping 24 matching lines...) Expand all Loading... |
5192 static const int CSS_TRANSLATE = 1; | 5468 static const int CSS_TRANSLATE = 1; |
5193 | 5469 |
5194 static const int CSS_TRANSLATE3D = 13; | 5470 static const int CSS_TRANSLATE3D = 13; |
5195 | 5471 |
5196 static const int CSS_TRANSLATEX = 2; | 5472 static const int CSS_TRANSLATEX = 2; |
5197 | 5473 |
5198 static const int CSS_TRANSLATEY = 3; | 5474 static const int CSS_TRANSLATEY = 3; |
5199 | 5475 |
5200 static const int CSS_TRANSLATEZ = 12; | 5476 static const int CSS_TRANSLATEZ = 12; |
5201 | 5477 |
5202 /// @domName WebKitCSSTransformValue.operationType; @docsEditable true | 5478 /// @docsEditable true |
| 5479 @DomName("WebKitCSSTransformValue.operationType") |
5203 final int operationType; | 5480 final int operationType; |
5204 } | 5481 } |
5205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5206 // for details. All rights reserved. Use of this source code is governed by a | 5483 // for details. All rights reserved. Use of this source code is governed by a |
5207 // BSD-style license that can be found in the LICENSE file. | 5484 // BSD-style license that can be found in the LICENSE file. |
5208 | 5485 |
5209 | 5486 |
5210 /// @domName CSSUnknownRule; @docsEditable true | 5487 /// @docsEditable true |
| 5488 @DomName("CSSUnknownRule") |
5211 class CssUnknownRule extends CssRule native "*CSSUnknownRule" { | 5489 class CssUnknownRule extends CssRule native "*CSSUnknownRule" { |
5212 } | 5490 } |
5213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5214 // for details. All rights reserved. Use of this source code is governed by a | 5492 // for details. All rights reserved. Use of this source code is governed by a |
5215 // BSD-style license that can be found in the LICENSE file. | 5493 // BSD-style license that can be found in the LICENSE file. |
5216 | 5494 |
5217 | 5495 |
5218 /// @domName CSSValue; @docsEditable true | 5496 /// @docsEditable true |
| 5497 @DomName("CSSValue") |
5219 class CssValue native "*CSSValue" { | 5498 class CssValue native "*CSSValue" { |
5220 | 5499 |
5221 static const int CSS_CUSTOM = 3; | 5500 static const int CSS_CUSTOM = 3; |
5222 | 5501 |
5223 static const int CSS_INHERIT = 0; | 5502 static const int CSS_INHERIT = 0; |
5224 | 5503 |
5225 static const int CSS_PRIMITIVE_VALUE = 1; | 5504 static const int CSS_PRIMITIVE_VALUE = 1; |
5226 | 5505 |
5227 static const int CSS_VALUE_LIST = 2; | 5506 static const int CSS_VALUE_LIST = 2; |
5228 | 5507 |
5229 /// @domName CSSValue.cssText; @docsEditable true | 5508 /// @docsEditable true |
| 5509 @DomName("CSSValue.cssText") |
5230 String cssText; | 5510 String cssText; |
5231 | 5511 |
5232 /// @domName CSSValue.cssValueType; @docsEditable true | 5512 /// @docsEditable true |
| 5513 @DomName("CSSValue.cssValueType") |
5233 final int cssValueType; | 5514 final int cssValueType; |
5234 } | 5515 } |
5235 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5236 // for details. All rights reserved. Use of this source code is governed by a | 5517 // for details. All rights reserved. Use of this source code is governed by a |
5237 // BSD-style license that can be found in the LICENSE file. | 5518 // BSD-style license that can be found in the LICENSE file. |
5238 | 5519 |
5239 // WARNING: Do not edit - generated code. | 5520 // WARNING: Do not edit - generated code. |
5240 | 5521 |
5241 | 5522 |
5242 /// @domName CustomEvent | 5523 @DomName("CustomEvent") |
5243 class CustomEvent extends Event native "*CustomEvent" { | 5524 class CustomEvent extends Event native "*CustomEvent" { |
5244 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru
e, | 5525 factory CustomEvent(String type, [bool canBubble = true, bool cancelable = tru
e, |
5245 Object detail]) => _CustomEventFactoryProvider.createCustomEvent( | 5526 Object detail]) => _CustomEventFactoryProvider.createCustomEvent( |
5246 type, canBubble, cancelable, detail); | 5527 type, canBubble, cancelable, detail); |
5247 | 5528 |
5248 /// @domName CustomEvent.detail; @docsEditable true | 5529 /// @docsEditable true |
| 5530 @DomName("CustomEvent.detail") |
5249 final Object detail; | 5531 final Object detail; |
5250 | 5532 |
5251 /// @domName CustomEvent.initCustomEvent; @docsEditable true | 5533 /// @docsEditable true |
5252 @JSName('initCustomEvent') | 5534 @JSName('initCustomEvent') |
| 5535 @DomName("CustomEvent.initCustomEvent") |
5253 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native; | 5536 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native; |
5254 | 5537 |
5255 } | 5538 } |
5256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5257 // for details. All rights reserved. Use of this source code is governed by a | 5540 // for details. All rights reserved. Use of this source code is governed by a |
5258 // BSD-style license that can be found in the LICENSE file. | 5541 // BSD-style license that can be found in the LICENSE file. |
5259 | 5542 |
5260 | 5543 |
5261 /// @domName HTMLDListElement; @docsEditable true | 5544 /// @docsEditable true |
| 5545 @DomName("HTMLDListElement") |
5262 class DListElement extends Element native "*HTMLDListElement" { | 5546 class DListElement extends Element native "*HTMLDListElement" { |
5263 | 5547 |
5264 ///@docsEditable true | 5548 /// @docsEditable true |
5265 factory DListElement() => document.$dom_createElement("dl"); | 5549 factory DListElement() => document.$dom_createElement("dl"); |
5266 } | 5550 } |
5267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5268 // for details. All rights reserved. Use of this source code is governed by a | 5552 // for details. All rights reserved. Use of this source code is governed by a |
5269 // BSD-style license that can be found in the LICENSE file. | 5553 // BSD-style license that can be found in the LICENSE file. |
5270 | 5554 |
5271 | 5555 |
5272 /// @domName HTMLDataListElement; @docsEditable true | 5556 /// @docsEditable true |
| 5557 @DomName("HTMLDataListElement") |
5273 @SupportedBrowser(SupportedBrowser.CHROME) | 5558 @SupportedBrowser(SupportedBrowser.CHROME) |
5274 @SupportedBrowser(SupportedBrowser.FIREFOX) | 5559 @SupportedBrowser(SupportedBrowser.FIREFOX) |
5275 @SupportedBrowser(SupportedBrowser.IE, '10') | 5560 @SupportedBrowser(SupportedBrowser.IE, '10') |
5276 @SupportedBrowser(SupportedBrowser.SAFARI) | 5561 @SupportedBrowser(SupportedBrowser.SAFARI) |
5277 class DataListElement extends Element native "*HTMLDataListElement" { | 5562 class DataListElement extends Element native "*HTMLDataListElement" { |
5278 | 5563 |
5279 ///@docsEditable true | 5564 /// @docsEditable true |
5280 factory DataListElement() => document.$dom_createElement("datalist"); | 5565 factory DataListElement() => document.$dom_createElement("datalist"); |
5281 | 5566 |
5282 /// Checks if this type is supported on the current platform. | 5567 /// Checks if this type is supported on the current platform. |
5283 static bool get supported => Element.isTagSupported('datalist'); | 5568 static bool get supported => Element.isTagSupported('datalist'); |
5284 | 5569 |
5285 /// @domName HTMLDataListElement.options; @docsEditable true | 5570 /// @docsEditable true |
| 5571 @DomName("HTMLDataListElement.options") |
5286 final HtmlCollection options; | 5572 final HtmlCollection options; |
5287 } | 5573 } |
5288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5289 // for details. All rights reserved. Use of this source code is governed by a | 5575 // for details. All rights reserved. Use of this source code is governed by a |
5290 // BSD-style license that can be found in the LICENSE file. | 5576 // BSD-style license that can be found in the LICENSE file. |
5291 | 5577 |
5292 | 5578 |
5293 /// @domName DataTransferItem; @docsEditable true | 5579 /// @docsEditable true |
| 5580 @DomName("DataTransferItem") |
5294 class DataTransferItem native "*DataTransferItem" { | 5581 class DataTransferItem native "*DataTransferItem" { |
5295 | 5582 |
5296 /// @domName DataTransferItem.kind; @docsEditable true | 5583 /// @docsEditable true |
| 5584 @DomName("DataTransferItem.kind") |
5297 final String kind; | 5585 final String kind; |
5298 | 5586 |
5299 /// @domName DataTransferItem.type; @docsEditable true | 5587 /// @docsEditable true |
| 5588 @DomName("DataTransferItem.type") |
5300 final String type; | 5589 final String type; |
5301 | 5590 |
5302 /// @domName DataTransferItem.getAsFile; @docsEditable true | 5591 /// @docsEditable true |
| 5592 @DomName("DataTransferItem.getAsFile") |
5303 Blob getAsFile() native; | 5593 Blob getAsFile() native; |
5304 | 5594 |
5305 /// @domName DataTransferItem.getAsString; @docsEditable true | 5595 /// @docsEditable true |
| 5596 @DomName("DataTransferItem.getAsString") |
5306 void getAsString([StringCallback callback]) native; | 5597 void getAsString([StringCallback callback]) native; |
5307 | 5598 |
5308 /// @domName DataTransferItem.webkitGetAsEntry; @docsEditable true | 5599 /// @docsEditable true |
| 5600 @DomName("DataTransferItem.webkitGetAsEntry") |
5309 Entry webkitGetAsEntry() native; | 5601 Entry webkitGetAsEntry() native; |
5310 } | 5602 } |
5311 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5603 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5312 // for details. All rights reserved. Use of this source code is governed by a | 5604 // for details. All rights reserved. Use of this source code is governed by a |
5313 // BSD-style license that can be found in the LICENSE file. | 5605 // BSD-style license that can be found in the LICENSE file. |
5314 | 5606 |
5315 | 5607 |
5316 /// @domName DataTransferItemList; @docsEditable true | 5608 /// @docsEditable true |
| 5609 @DomName("DataTransferItemList") |
5317 class DataTransferItemList native "*DataTransferItemList" { | 5610 class DataTransferItemList native "*DataTransferItemList" { |
5318 | 5611 |
5319 /// @domName DataTransferItemList.length; @docsEditable true | 5612 /// @docsEditable true |
| 5613 @DomName("DataTransferItemList.length") |
5320 final int length; | 5614 final int length; |
5321 | 5615 |
5322 /// @domName DataTransferItemList.add; @docsEditable true | 5616 /// @docsEditable true |
| 5617 @DomName("DataTransferItemList.add") |
5323 void add(data_OR_file, [String type]) native; | 5618 void add(data_OR_file, [String type]) native; |
5324 | 5619 |
5325 /// @domName DataTransferItemList.clear; @docsEditable true | 5620 /// @docsEditable true |
| 5621 @DomName("DataTransferItemList.clear") |
5326 void clear() native; | 5622 void clear() native; |
5327 | 5623 |
5328 /// @domName DataTransferItemList.item; @docsEditable true | 5624 /// @docsEditable true |
| 5625 @DomName("DataTransferItemList.item") |
5329 DataTransferItem item(int index) native; | 5626 DataTransferItem item(int index) native; |
5330 } | 5627 } |
5331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5332 // for details. All rights reserved. Use of this source code is governed by a | 5629 // for details. All rights reserved. Use of this source code is governed by a |
5333 // BSD-style license that can be found in the LICENSE file. | 5630 // BSD-style license that can be found in the LICENSE file. |
5334 | 5631 |
5335 | 5632 |
5336 /// @domName DataView; @docsEditable true | 5633 /// @docsEditable true |
| 5634 @DomName("DataView") |
5337 class DataView extends ArrayBufferView native "*DataView" { | 5635 class DataView extends ArrayBufferView native "*DataView" { |
5338 | 5636 |
5339 ///@docsEditable true | 5637 /// @docsEditable true |
5340 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) { | 5638 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) { |
5341 if (!?byteOffset) { | 5639 if (!?byteOffset) { |
5342 return DataView._create(buffer); | 5640 return DataView._create(buffer); |
5343 } | 5641 } |
5344 if (!?byteLength) { | 5642 if (!?byteLength) { |
5345 return DataView._create(buffer, byteOffset); | 5643 return DataView._create(buffer, byteOffset); |
5346 } | 5644 } |
5347 return DataView._create(buffer, byteOffset, byteLength); | 5645 return DataView._create(buffer, byteOffset, byteLength); |
5348 } | 5646 } |
5349 static DataView _create(ArrayBuffer buffer, [int byteOffset, int byteLength])
{ | 5647 static DataView _create(ArrayBuffer buffer, [int byteOffset, int byteLength])
{ |
5350 if (!?byteOffset) { | 5648 if (!?byteOffset) { |
5351 return JS('DataView', 'new DataView(#)', buffer); | 5649 return JS('DataView', 'new DataView(#)', buffer); |
5352 } | 5650 } |
5353 if (!?byteLength) { | 5651 if (!?byteLength) { |
5354 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); | 5652 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); |
5355 } | 5653 } |
5356 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength)
; | 5654 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength)
; |
5357 } | 5655 } |
5358 | 5656 |
5359 /// @domName DataView.getFloat32; @docsEditable true | 5657 /// @docsEditable true |
| 5658 @DomName("DataView.getFloat32") |
5360 num getFloat32(int byteOffset, {bool littleEndian}) native; | 5659 num getFloat32(int byteOffset, {bool littleEndian}) native; |
5361 | 5660 |
5362 /// @domName DataView.getFloat64; @docsEditable true | 5661 /// @docsEditable true |
| 5662 @DomName("DataView.getFloat64") |
5363 num getFloat64(int byteOffset, {bool littleEndian}) native; | 5663 num getFloat64(int byteOffset, {bool littleEndian}) native; |
5364 | 5664 |
5365 /// @domName DataView.getInt16; @docsEditable true | 5665 /// @docsEditable true |
| 5666 @DomName("DataView.getInt16") |
5366 int getInt16(int byteOffset, {bool littleEndian}) native; | 5667 int getInt16(int byteOffset, {bool littleEndian}) native; |
5367 | 5668 |
5368 /// @domName DataView.getInt32; @docsEditable true | 5669 /// @docsEditable true |
| 5670 @DomName("DataView.getInt32") |
5369 int getInt32(int byteOffset, {bool littleEndian}) native; | 5671 int getInt32(int byteOffset, {bool littleEndian}) native; |
5370 | 5672 |
5371 /// @domName DataView.getInt8; @docsEditable true | 5673 /// @docsEditable true |
| 5674 @DomName("DataView.getInt8") |
5372 int getInt8(int byteOffset) native; | 5675 int getInt8(int byteOffset) native; |
5373 | 5676 |
5374 /// @domName DataView.getUint16; @docsEditable true | 5677 /// @docsEditable true |
| 5678 @DomName("DataView.getUint16") |
5375 int getUint16(int byteOffset, {bool littleEndian}) native; | 5679 int getUint16(int byteOffset, {bool littleEndian}) native; |
5376 | 5680 |
5377 /// @domName DataView.getUint32; @docsEditable true | 5681 /// @docsEditable true |
| 5682 @DomName("DataView.getUint32") |
5378 int getUint32(int byteOffset, {bool littleEndian}) native; | 5683 int getUint32(int byteOffset, {bool littleEndian}) native; |
5379 | 5684 |
5380 /// @domName DataView.getUint8; @docsEditable true | 5685 /// @docsEditable true |
| 5686 @DomName("DataView.getUint8") |
5381 int getUint8(int byteOffset) native; | 5687 int getUint8(int byteOffset) native; |
5382 | 5688 |
5383 /// @domName DataView.setFloat32; @docsEditable true | 5689 /// @docsEditable true |
| 5690 @DomName("DataView.setFloat32") |
5384 void setFloat32(int byteOffset, num value, {bool littleEndian}) native; | 5691 void setFloat32(int byteOffset, num value, {bool littleEndian}) native; |
5385 | 5692 |
5386 /// @domName DataView.setFloat64; @docsEditable true | 5693 /// @docsEditable true |
| 5694 @DomName("DataView.setFloat64") |
5387 void setFloat64(int byteOffset, num value, {bool littleEndian}) native; | 5695 void setFloat64(int byteOffset, num value, {bool littleEndian}) native; |
5388 | 5696 |
5389 /// @domName DataView.setInt16; @docsEditable true | 5697 /// @docsEditable true |
| 5698 @DomName("DataView.setInt16") |
5390 void setInt16(int byteOffset, int value, {bool littleEndian}) native; | 5699 void setInt16(int byteOffset, int value, {bool littleEndian}) native; |
5391 | 5700 |
5392 /// @domName DataView.setInt32; @docsEditable true | 5701 /// @docsEditable true |
| 5702 @DomName("DataView.setInt32") |
5393 void setInt32(int byteOffset, int value, {bool littleEndian}) native; | 5703 void setInt32(int byteOffset, int value, {bool littleEndian}) native; |
5394 | 5704 |
5395 /// @domName DataView.setInt8; @docsEditable true | 5705 /// @docsEditable true |
| 5706 @DomName("DataView.setInt8") |
5396 void setInt8(int byteOffset, int value) native; | 5707 void setInt8(int byteOffset, int value) native; |
5397 | 5708 |
5398 /// @domName DataView.setUint16; @docsEditable true | 5709 /// @docsEditable true |
| 5710 @DomName("DataView.setUint16") |
5399 void setUint16(int byteOffset, int value, {bool littleEndian}) native; | 5711 void setUint16(int byteOffset, int value, {bool littleEndian}) native; |
5400 | 5712 |
5401 /// @domName DataView.setUint32; @docsEditable true | 5713 /// @docsEditable true |
| 5714 @DomName("DataView.setUint32") |
5402 void setUint32(int byteOffset, int value, {bool littleEndian}) native; | 5715 void setUint32(int byteOffset, int value, {bool littleEndian}) native; |
5403 | 5716 |
5404 /// @domName DataView.setUint8; @docsEditable true | 5717 /// @docsEditable true |
| 5718 @DomName("DataView.setUint8") |
5405 void setUint8(int byteOffset, int value) native; | 5719 void setUint8(int byteOffset, int value) native; |
5406 } | 5720 } |
5407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5408 // for details. All rights reserved. Use of this source code is governed by a | 5722 // for details. All rights reserved. Use of this source code is governed by a |
5409 // BSD-style license that can be found in the LICENSE file. | 5723 // BSD-style license that can be found in the LICENSE file. |
5410 | 5724 |
5411 | 5725 |
5412 /// @domName Database; @docsEditable true | 5726 /// @docsEditable true |
| 5727 @DomName("Database") |
5413 class Database native "*Database" { | 5728 class Database native "*Database" { |
5414 | 5729 |
5415 /// @domName Database.version; @docsEditable true | 5730 /// @docsEditable true |
| 5731 @DomName("Database.version") |
5416 final String version; | 5732 final String version; |
5417 | 5733 |
5418 /// @domName Database.changeVersion; @docsEditable true | 5734 /// @docsEditable true |
| 5735 @DomName("Database.changeVersion") |
5419 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba
ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall
back]) native; | 5736 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba
ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall
back]) native; |
5420 | 5737 |
5421 /// @domName Database.readTransaction; @docsEditable true | 5738 /// @docsEditable true |
| 5739 @DomName("Database.readTransaction") |
5422 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall
back errorCallback, VoidCallback successCallback]) native; | 5740 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall
back errorCallback, VoidCallback successCallback]) native; |
5423 | 5741 |
5424 /// @domName Database.transaction; @docsEditable true | 5742 /// @docsEditable true |
| 5743 @DomName("Database.transaction") |
5425 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback
errorCallback, VoidCallback successCallback]) native; | 5744 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback
errorCallback, VoidCallback successCallback]) native; |
5426 } | 5745 } |
5427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5428 // for details. All rights reserved. Use of this source code is governed by a | 5747 // for details. All rights reserved. Use of this source code is governed by a |
5429 // BSD-style license that can be found in the LICENSE file. | 5748 // BSD-style license that can be found in the LICENSE file. |
5430 | 5749 |
5431 // WARNING: Do not edit - generated code. | 5750 // WARNING: Do not edit - generated code. |
5432 | 5751 |
5433 | 5752 |
5434 typedef void DatabaseCallback(database); | 5753 typedef void DatabaseCallback(database); |
5435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5436 // for details. All rights reserved. Use of this source code is governed by a | 5755 // for details. All rights reserved. Use of this source code is governed by a |
5437 // BSD-style license that can be found in the LICENSE file. | 5756 // BSD-style license that can be found in the LICENSE file. |
5438 | 5757 |
5439 | 5758 |
5440 /// @domName DatabaseSync; @docsEditable true | 5759 /// @docsEditable true |
| 5760 @DomName("DatabaseSync") |
5441 class DatabaseSync native "*DatabaseSync" { | 5761 class DatabaseSync native "*DatabaseSync" { |
5442 | 5762 |
5443 /// @domName DatabaseSync.lastErrorMessage; @docsEditable true | 5763 /// @docsEditable true |
| 5764 @DomName("DatabaseSync.lastErrorMessage") |
5444 final String lastErrorMessage; | 5765 final String lastErrorMessage; |
5445 | 5766 |
5446 /// @domName DatabaseSync.version; @docsEditable true | 5767 /// @docsEditable true |
| 5768 @DomName("DatabaseSync.version") |
5447 final String version; | 5769 final String version; |
5448 | 5770 |
5449 /// @domName DatabaseSync.changeVersion; @docsEditable true | 5771 /// @docsEditable true |
| 5772 @DomName("DatabaseSync.changeVersion") |
5450 void changeVersion(String oldVersion, String newVersion, [SqlTransactionSyncCa
llback callback]) native; | 5773 void changeVersion(String oldVersion, String newVersion, [SqlTransactionSyncCa
llback callback]) native; |
5451 | 5774 |
5452 /// @domName DatabaseSync.readTransaction; @docsEditable true | 5775 /// @docsEditable true |
| 5776 @DomName("DatabaseSync.readTransaction") |
5453 void readTransaction(SqlTransactionSyncCallback callback) native; | 5777 void readTransaction(SqlTransactionSyncCallback callback) native; |
5454 | 5778 |
5455 /// @domName DatabaseSync.transaction; @docsEditable true | 5779 /// @docsEditable true |
| 5780 @DomName("DatabaseSync.transaction") |
5456 void transaction(SqlTransactionSyncCallback callback) native; | 5781 void transaction(SqlTransactionSyncCallback callback) native; |
5457 } | 5782 } |
5458 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5459 // for details. All rights reserved. Use of this source code is governed by a | 5784 // for details. All rights reserved. Use of this source code is governed by a |
5460 // BSD-style license that can be found in the LICENSE file. | 5785 // BSD-style license that can be found in the LICENSE file. |
5461 | 5786 |
5462 | 5787 |
5463 /// @domName DedicatedWorkerContext; @docsEditable true | 5788 /// @docsEditable true |
| 5789 @DomName("DedicatedWorkerContext") |
5464 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte
xt" { | 5790 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte
xt" { |
5465 | 5791 |
5466 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 5792 /// @docsEditable true |
| 5793 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
5467 DedicatedWorkerContextEvents get on => | 5794 DedicatedWorkerContextEvents get on => |
5468 new DedicatedWorkerContextEvents(this); | 5795 new DedicatedWorkerContextEvents(this); |
5469 | 5796 |
5470 /// @domName DedicatedWorkerContext.postMessage; @docsEditable true | 5797 /// @docsEditable true |
5471 void postMessage(/*any*/ message, [List messagePorts]) { | 5798 void postMessage(/*any*/ message, [List messagePorts]) { |
5472 if (?messagePorts) { | 5799 if (?messagePorts) { |
5473 var message_1 = convertDartToNative_SerializedScriptValue(message); | 5800 var message_1 = convertDartToNative_SerializedScriptValue(message); |
5474 _postMessage_1(message_1, messagePorts); | 5801 _postMessage_1(message_1, messagePorts); |
5475 return; | 5802 return; |
5476 } | 5803 } |
5477 var message_2 = convertDartToNative_SerializedScriptValue(message); | 5804 var message_2 = convertDartToNative_SerializedScriptValue(message); |
5478 _postMessage_2(message_2); | 5805 _postMessage_2(message_2); |
5479 return; | 5806 return; |
5480 } | 5807 } |
5481 @JSName('postMessage') | 5808 @JSName('postMessage') |
| 5809 @DomName("DedicatedWorkerContext.postMessage") |
5482 void _postMessage_1(message, List messagePorts) native; | 5810 void _postMessage_1(message, List messagePorts) native; |
5483 @JSName('postMessage') | 5811 @JSName('postMessage') |
| 5812 @DomName("DedicatedWorkerContext.postMessage") |
5484 void _postMessage_2(message) native; | 5813 void _postMessage_2(message) native; |
5485 } | 5814 } |
5486 | 5815 |
5487 /// @docsEditable true | 5816 /// @docsEditable true |
5488 class DedicatedWorkerContextEvents extends WorkerContextEvents { | 5817 class DedicatedWorkerContextEvents extends WorkerContextEvents { |
5489 /// @docsEditable true | 5818 /// @docsEditable true |
5490 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); | 5819 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); |
5491 | 5820 |
5492 /// @docsEditable true | 5821 /// @docsEditable true |
5493 EventListenerList get message => this['message']; | 5822 EventListenerList get message => this['message']; |
5494 } | 5823 } |
5495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5496 // for details. All rights reserved. Use of this source code is governed by a | 5825 // for details. All rights reserved. Use of this source code is governed by a |
5497 // BSD-style license that can be found in the LICENSE file. | 5826 // BSD-style license that can be found in the LICENSE file. |
5498 | 5827 |
5499 | 5828 |
5500 /// @domName HTMLDetailsElement; @docsEditable true | 5829 /// @docsEditable true |
| 5830 @DomName("HTMLDetailsElement") |
5501 @SupportedBrowser(SupportedBrowser.CHROME) | 5831 @SupportedBrowser(SupportedBrowser.CHROME) |
5502 @SupportedBrowser(SupportedBrowser.SAFARI) | 5832 @SupportedBrowser(SupportedBrowser.SAFARI) |
5503 @Experimental() | 5833 @Experimental() |
5504 class DetailsElement extends Element native "*HTMLDetailsElement" { | 5834 class DetailsElement extends Element native "*HTMLDetailsElement" { |
5505 | 5835 |
5506 ///@docsEditable true | 5836 /// @docsEditable true |
5507 factory DetailsElement() => document.$dom_createElement("details"); | 5837 factory DetailsElement() => document.$dom_createElement("details"); |
5508 | 5838 |
5509 /// Checks if this type is supported on the current platform. | 5839 /// Checks if this type is supported on the current platform. |
5510 static bool get supported => Element.isTagSupported('details'); | 5840 static bool get supported => Element.isTagSupported('details'); |
5511 | 5841 |
5512 /// @domName HTMLDetailsElement.open; @docsEditable true | 5842 /// @docsEditable true |
| 5843 @DomName("HTMLDetailsElement.open") |
5513 bool open; | 5844 bool open; |
5514 } | 5845 } |
5515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5516 // for details. All rights reserved. Use of this source code is governed by a | 5847 // for details. All rights reserved. Use of this source code is governed by a |
5517 // BSD-style license that can be found in the LICENSE file. | 5848 // BSD-style license that can be found in the LICENSE file. |
5518 | 5849 |
5519 | 5850 |
5520 /// @domName DeviceMotionEvent; @docsEditable true | 5851 /// @docsEditable true |
| 5852 @DomName("DeviceMotionEvent") |
5521 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { | 5853 class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { |
5522 | 5854 |
5523 /// @domName DeviceMotionEvent.interval; @docsEditable true | 5855 /// @docsEditable true |
| 5856 @DomName("DeviceMotionEvent.interval") |
5524 final num interval; | 5857 final num interval; |
5525 } | 5858 } |
5526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5859 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5527 // for details. All rights reserved. Use of this source code is governed by a | 5860 // for details. All rights reserved. Use of this source code is governed by a |
5528 // BSD-style license that can be found in the LICENSE file. | 5861 // BSD-style license that can be found in the LICENSE file. |
5529 | 5862 |
5530 | 5863 |
5531 /// @domName DeviceOrientationEvent; @docsEditable true | 5864 /// @docsEditable true |
| 5865 @DomName("DeviceOrientationEvent") |
5532 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { | 5866 class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { |
5533 | 5867 |
5534 /// @domName DeviceOrientationEvent.absolute; @docsEditable true | 5868 /// @docsEditable true |
| 5869 @DomName("DeviceOrientationEvent.absolute") |
5535 final bool absolute; | 5870 final bool absolute; |
5536 | 5871 |
5537 /// @domName DeviceOrientationEvent.alpha; @docsEditable true | 5872 /// @docsEditable true |
| 5873 @DomName("DeviceOrientationEvent.alpha") |
5538 final num alpha; | 5874 final num alpha; |
5539 | 5875 |
5540 /// @domName DeviceOrientationEvent.beta; @docsEditable true | 5876 /// @docsEditable true |
| 5877 @DomName("DeviceOrientationEvent.beta") |
5541 final num beta; | 5878 final num beta; |
5542 | 5879 |
5543 /// @domName DeviceOrientationEvent.gamma; @docsEditable true | 5880 /// @docsEditable true |
| 5881 @DomName("DeviceOrientationEvent.gamma") |
5544 final num gamma; | 5882 final num gamma; |
5545 | 5883 |
5546 /// @domName DeviceOrientationEvent.initDeviceOrientationEvent; @docsEditable
true | 5884 /// @docsEditable true |
| 5885 @DomName("DeviceOrientationEvent.initDeviceOrientationEvent") |
5547 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute) native; | 5886 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute) native; |
5548 } | 5887 } |
5549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5550 // for details. All rights reserved. Use of this source code is governed by a | 5889 // for details. All rights reserved. Use of this source code is governed by a |
5551 // BSD-style license that can be found in the LICENSE file. | 5890 // BSD-style license that can be found in the LICENSE file. |
5552 | 5891 |
5553 | 5892 |
5554 /// @domName HTMLDirectoryElement; @docsEditable true | 5893 /// @docsEditable true |
| 5894 @DomName("HTMLDirectoryElement") |
5555 class DirectoryElement extends Element native "*HTMLDirectoryElement" { | 5895 class DirectoryElement extends Element native "*HTMLDirectoryElement" { |
5556 | 5896 |
5557 /// @domName HTMLDirectoryElement.compact; @docsEditable true | 5897 /// @docsEditable true |
| 5898 @DomName("HTMLDirectoryElement.compact") |
5558 bool compact; | 5899 bool compact; |
5559 } | 5900 } |
5560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5561 // for details. All rights reserved. Use of this source code is governed by a | 5902 // for details. All rights reserved. Use of this source code is governed by a |
5562 // BSD-style license that can be found in the LICENSE file. | 5903 // BSD-style license that can be found in the LICENSE file. |
5563 | 5904 |
5564 | 5905 |
5565 /// @domName DirectoryEntry; @docsEditable true | 5906 /// @docsEditable true |
| 5907 @DomName("DirectoryEntry") |
5566 class DirectoryEntry extends Entry native "*DirectoryEntry" { | 5908 class DirectoryEntry extends Entry native "*DirectoryEntry" { |
5567 | 5909 |
5568 /// @domName DirectoryEntry.createReader; @docsEditable true | 5910 /// @docsEditable true |
| 5911 @DomName("DirectoryEntry.createReader") |
5569 DirectoryReader createReader() native; | 5912 DirectoryReader createReader() native; |
5570 | 5913 |
5571 /// @domName DirectoryEntry.getDirectory; @docsEditable true | 5914 /// @docsEditable true |
5572 void getDirectory(String path, {Map options, EntryCallback successCallback, Er
rorCallback errorCallback}) { | 5915 void getDirectory(String path, {Map options, EntryCallback successCallback, Er
rorCallback errorCallback}) { |
5573 if (?errorCallback) { | 5916 if (?errorCallback) { |
5574 var options_1 = convertDartToNative_Dictionary(options); | 5917 var options_1 = convertDartToNative_Dictionary(options); |
5575 _getDirectory_1(path, options_1, successCallback, errorCallback); | 5918 _getDirectory_1(path, options_1, successCallback, errorCallback); |
5576 return; | 5919 return; |
5577 } | 5920 } |
5578 if (?successCallback) { | 5921 if (?successCallback) { |
5579 var options_2 = convertDartToNative_Dictionary(options); | 5922 var options_2 = convertDartToNative_Dictionary(options); |
5580 _getDirectory_2(path, options_2, successCallback); | 5923 _getDirectory_2(path, options_2, successCallback); |
5581 return; | 5924 return; |
5582 } | 5925 } |
5583 if (?options) { | 5926 if (?options) { |
5584 var options_3 = convertDartToNative_Dictionary(options); | 5927 var options_3 = convertDartToNative_Dictionary(options); |
5585 _getDirectory_3(path, options_3); | 5928 _getDirectory_3(path, options_3); |
5586 return; | 5929 return; |
5587 } | 5930 } |
5588 _getDirectory_4(path); | 5931 _getDirectory_4(path); |
5589 return; | 5932 return; |
5590 } | 5933 } |
5591 @JSName('getDirectory') | 5934 @JSName('getDirectory') |
| 5935 @DomName("DirectoryEntry.getDirectory") |
5592 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba
ck errorCallback) native; | 5936 void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallba
ck errorCallback) native; |
5593 @JSName('getDirectory') | 5937 @JSName('getDirectory') |
| 5938 @DomName("DirectoryEntry.getDirectory") |
5594 void _getDirectory_2(path, options, EntryCallback successCallback) native; | 5939 void _getDirectory_2(path, options, EntryCallback successCallback) native; |
5595 @JSName('getDirectory') | 5940 @JSName('getDirectory') |
| 5941 @DomName("DirectoryEntry.getDirectory") |
5596 void _getDirectory_3(path, options) native; | 5942 void _getDirectory_3(path, options) native; |
5597 @JSName('getDirectory') | 5943 @JSName('getDirectory') |
| 5944 @DomName("DirectoryEntry.getDirectory") |
5598 void _getDirectory_4(path) native; | 5945 void _getDirectory_4(path) native; |
5599 | 5946 |
5600 /// @domName DirectoryEntry.getFile; @docsEditable true | 5947 /// @docsEditable true |
5601 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa
llback errorCallback}) { | 5948 void getFile(String path, {Map options, EntryCallback successCallback, ErrorCa
llback errorCallback}) { |
5602 if (?errorCallback) { | 5949 if (?errorCallback) { |
5603 var options_1 = convertDartToNative_Dictionary(options); | 5950 var options_1 = convertDartToNative_Dictionary(options); |
5604 _getFile_1(path, options_1, successCallback, errorCallback); | 5951 _getFile_1(path, options_1, successCallback, errorCallback); |
5605 return; | 5952 return; |
5606 } | 5953 } |
5607 if (?successCallback) { | 5954 if (?successCallback) { |
5608 var options_2 = convertDartToNative_Dictionary(options); | 5955 var options_2 = convertDartToNative_Dictionary(options); |
5609 _getFile_2(path, options_2, successCallback); | 5956 _getFile_2(path, options_2, successCallback); |
5610 return; | 5957 return; |
5611 } | 5958 } |
5612 if (?options) { | 5959 if (?options) { |
5613 var options_3 = convertDartToNative_Dictionary(options); | 5960 var options_3 = convertDartToNative_Dictionary(options); |
5614 _getFile_3(path, options_3); | 5961 _getFile_3(path, options_3); |
5615 return; | 5962 return; |
5616 } | 5963 } |
5617 _getFile_4(path); | 5964 _getFile_4(path); |
5618 return; | 5965 return; |
5619 } | 5966 } |
5620 @JSName('getFile') | 5967 @JSName('getFile') |
| 5968 @DomName("DirectoryEntry.getFile") |
5621 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er
rorCallback) native; | 5969 void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback er
rorCallback) native; |
5622 @JSName('getFile') | 5970 @JSName('getFile') |
| 5971 @DomName("DirectoryEntry.getFile") |
5623 void _getFile_2(path, options, EntryCallback successCallback) native; | 5972 void _getFile_2(path, options, EntryCallback successCallback) native; |
5624 @JSName('getFile') | 5973 @JSName('getFile') |
| 5974 @DomName("DirectoryEntry.getFile") |
5625 void _getFile_3(path, options) native; | 5975 void _getFile_3(path, options) native; |
5626 @JSName('getFile') | 5976 @JSName('getFile') |
| 5977 @DomName("DirectoryEntry.getFile") |
5627 void _getFile_4(path) native; | 5978 void _getFile_4(path) native; |
5628 | 5979 |
5629 /// @domName DirectoryEntry.removeRecursively; @docsEditable true | 5980 /// @docsEditable true |
| 5981 @DomName("DirectoryEntry.removeRecursively") |
5630 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]) native; | 5982 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]) native; |
5631 } | 5983 } |
5632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5633 // for details. All rights reserved. Use of this source code is governed by a | 5985 // for details. All rights reserved. Use of this source code is governed by a |
5634 // BSD-style license that can be found in the LICENSE file. | 5986 // BSD-style license that can be found in the LICENSE file. |
5635 | 5987 |
5636 | 5988 |
5637 /// @domName DirectoryEntrySync; @docsEditable true | 5989 /// @docsEditable true |
| 5990 @DomName("DirectoryEntrySync") |
5638 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { | 5991 class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { |
5639 | 5992 |
5640 /// @domName DirectoryEntrySync.createReader; @docsEditable true | 5993 /// @docsEditable true |
| 5994 @DomName("DirectoryEntrySync.createReader") |
5641 DirectoryReaderSync createReader() native; | 5995 DirectoryReaderSync createReader() native; |
5642 | 5996 |
5643 /// @domName DirectoryEntrySync.getDirectory; @docsEditable true | 5997 /// @docsEditable true |
5644 DirectoryEntrySync getDirectory(String path, Map flags) { | 5998 DirectoryEntrySync getDirectory(String path, Map flags) { |
5645 var flags_1 = convertDartToNative_Dictionary(flags); | 5999 var flags_1 = convertDartToNative_Dictionary(flags); |
5646 return _getDirectory_1(path, flags_1); | 6000 return _getDirectory_1(path, flags_1); |
5647 } | 6001 } |
5648 @JSName('getDirectory') | 6002 @JSName('getDirectory') |
| 6003 @DomName("DirectoryEntrySync.getDirectory") |
5649 DirectoryEntrySync _getDirectory_1(path, flags) native; | 6004 DirectoryEntrySync _getDirectory_1(path, flags) native; |
5650 | 6005 |
5651 /// @domName DirectoryEntrySync.getFile; @docsEditable true | 6006 /// @docsEditable true |
5652 FileEntrySync getFile(String path, Map flags) { | 6007 FileEntrySync getFile(String path, Map flags) { |
5653 var flags_1 = convertDartToNative_Dictionary(flags); | 6008 var flags_1 = convertDartToNative_Dictionary(flags); |
5654 return _getFile_1(path, flags_1); | 6009 return _getFile_1(path, flags_1); |
5655 } | 6010 } |
5656 @JSName('getFile') | 6011 @JSName('getFile') |
| 6012 @DomName("DirectoryEntrySync.getFile") |
5657 FileEntrySync _getFile_1(path, flags) native; | 6013 FileEntrySync _getFile_1(path, flags) native; |
5658 | 6014 |
5659 /// @domName DirectoryEntrySync.removeRecursively; @docsEditable true | 6015 /// @docsEditable true |
| 6016 @DomName("DirectoryEntrySync.removeRecursively") |
5660 void removeRecursively() native; | 6017 void removeRecursively() native; |
5661 } | 6018 } |
5662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6019 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5663 // for details. All rights reserved. Use of this source code is governed by a | 6020 // for details. All rights reserved. Use of this source code is governed by a |
5664 // BSD-style license that can be found in the LICENSE file. | 6021 // BSD-style license that can be found in the LICENSE file. |
5665 | 6022 |
5666 | 6023 |
5667 /// @domName DirectoryReader; @docsEditable true | 6024 /// @docsEditable true |
| 6025 @DomName("DirectoryReader") |
5668 class DirectoryReader native "*DirectoryReader" { | 6026 class DirectoryReader native "*DirectoryReader" { |
5669 | 6027 |
5670 /// @domName DirectoryReader.readEntries; @docsEditable true | 6028 /// @docsEditable true |
| 6029 @DomName("DirectoryReader.readEntries") |
5671 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]) native; | 6030 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]) native; |
5672 } | 6031 } |
5673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6032 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5674 // for details. All rights reserved. Use of this source code is governed by a | 6033 // for details. All rights reserved. Use of this source code is governed by a |
5675 // BSD-style license that can be found in the LICENSE file. | 6034 // BSD-style license that can be found in the LICENSE file. |
5676 | 6035 |
5677 | 6036 |
5678 /// @domName DirectoryReaderSync; @docsEditable true | 6037 /// @docsEditable true |
| 6038 @DomName("DirectoryReaderSync") |
5679 class DirectoryReaderSync native "*DirectoryReaderSync" { | 6039 class DirectoryReaderSync native "*DirectoryReaderSync" { |
5680 | 6040 |
5681 /// @domName DirectoryReaderSync.readEntries; @docsEditable true | 6041 /// @docsEditable true |
| 6042 @DomName("DirectoryReaderSync.readEntries") |
5682 @Returns('_EntryArraySync') @Creates('_EntryArraySync') | 6043 @Returns('_EntryArraySync') @Creates('_EntryArraySync') |
5683 List<EntrySync> readEntries() native; | 6044 List<EntrySync> readEntries() native; |
5684 } | 6045 } |
5685 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5686 // for details. All rights reserved. Use of this source code is governed by a | 6047 // for details. All rights reserved. Use of this source code is governed by a |
5687 // BSD-style license that can be found in the LICENSE file. | 6048 // BSD-style license that can be found in the LICENSE file. |
5688 | 6049 |
5689 | 6050 |
5690 /** | 6051 /// @docsEditable true |
5691 * Represents an HTML <div> element. | 6052 @DomName("HTMLDivElement") |
5692 * | |
5693 * The [DivElement] is a generic container for content and does not have any | |
5694 * special significance. It is functionally similar to [SpanElement]. | |
5695 * | |
5696 * The [DivElement] is a block-level element, as opposed to [SpanElement], | |
5697 * which is an inline-level element. | |
5698 * | |
5699 * Example usage: | |
5700 * | |
5701 * DivElement div = new DivElement(); | |
5702 * div.text = 'Here's my new DivElem | |
5703 * document.body.elements.add(elem); | |
5704 * | |
5705 * See also: | |
5706 * | |
5707 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C. | |
5708 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f
rom W3C. | |
5709 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes)
from W3C. | |
5710 */ | |
5711 /// @domName HTMLDivElement; @docsEditable true | |
5712 class DivElement extends Element native "*HTMLDivElement" { | 6053 class DivElement extends Element native "*HTMLDivElement" { |
5713 | 6054 |
5714 ///@docsEditable true | 6055 /// @docsEditable true |
5715 factory DivElement() => document.$dom_createElement("div"); | 6056 factory DivElement() => document.$dom_createElement("div"); |
5716 } | 6057 } |
5717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5718 // for details. All rights reserved. Use of this source code is governed by a | 6059 // for details. All rights reserved. Use of this source code is governed by a |
5719 // BSD-style license that can be found in the LICENSE file. | 6060 // BSD-style license that can be found in the LICENSE file. |
5720 | 6061 |
5721 | 6062 |
5722 /// @domName Document | 6063 @DomName("Document") |
5723 /** | 6064 /** |
5724 * The base class for all documents. | 6065 * The base class for all documents. |
5725 * | 6066 * |
5726 * Each web page loaded in the browser has its own [Document] object, which is | 6067 * Each web page loaded in the browser has its own [Document] object, which is |
5727 * typically an [HtmlDocument]. | 6068 * typically an [HtmlDocument]. |
5728 * | 6069 * |
5729 * If you aren't comfortable with DOM concepts, see the Dart tutorial | 6070 * If you aren't comfortable with DOM concepts, see the Dart tutorial |
5730 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec
t-dart-html/). | 6071 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec
t-dart-html/). |
5731 */ | 6072 */ |
5732 class Document extends Node native "*Document" | 6073 class Document extends Node native "*Document" |
5733 { | 6074 { |
5734 | 6075 |
5735 | 6076 |
5736 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 6077 /// @docsEditable true |
| 6078 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
5737 DocumentEvents get on => | 6079 DocumentEvents get on => |
5738 new DocumentEvents(this); | 6080 new DocumentEvents(this); |
5739 | 6081 |
5740 /// Moved to [HtmlDocument]. | 6082 /// Moved to [HtmlDocument]. |
5741 /// @domName Document.body; @docsEditable true | 6083 /// @docsEditable true |
5742 @JSName('body') | 6084 @JSName('body') |
| 6085 @DomName("Document.body") |
5743 Element $dom_body; | 6086 Element $dom_body; |
5744 | 6087 |
5745 /// @domName Document.charset; @docsEditable true | 6088 /// @docsEditable true |
| 6089 @DomName("Document.charset") |
5746 String charset; | 6090 String charset; |
5747 | 6091 |
5748 /// @domName Document.cookie; @docsEditable true | 6092 /// @docsEditable true |
| 6093 @DomName("Document.cookie") |
5749 String cookie; | 6094 String cookie; |
5750 | 6095 |
5751 /// @domName Document.defaultView; @docsEditable true | 6096 /// @docsEditable true |
5752 WindowBase get window => _convertNativeToDart_Window(this._window); | 6097 WindowBase get window => _convertNativeToDart_Window(this._window); |
5753 @JSName('defaultView') | 6098 @JSName('defaultView') |
5754 @Creates('Window|=Object') @Returns('Window|=Object') | 6099 @DomName("Document.window") @Creates('Window|=Object') @Returns('Window|=Objec
t') |
5755 final dynamic _window; | 6100 final dynamic _window; |
5756 | 6101 |
5757 /// @domName Document.documentElement; @docsEditable true | 6102 /// @docsEditable true |
| 6103 @DomName("Document.documentElement") |
5758 final Element documentElement; | 6104 final Element documentElement; |
5759 | 6105 |
5760 /// @domName Document.domain; @docsEditable true | 6106 /// @docsEditable true |
| 6107 @DomName("Document.domain") |
5761 final String domain; | 6108 final String domain; |
5762 | 6109 |
5763 /// Moved to [HtmlDocument]. | 6110 /// Moved to [HtmlDocument]. |
5764 /// @domName Document.head; @docsEditable true | 6111 /// @docsEditable true |
5765 @JSName('head') | 6112 @JSName('head') |
| 6113 @DomName("Document.head") |
5766 final HeadElement $dom_head; | 6114 final HeadElement $dom_head; |
5767 | 6115 |
5768 /// @domName Document.implementation; @docsEditable true | 6116 /// @docsEditable true |
| 6117 @DomName("Document.implementation") |
5769 final DomImplementation implementation; | 6118 final DomImplementation implementation; |
5770 | 6119 |
5771 /// Moved to [HtmlDocument]. | 6120 /// Moved to [HtmlDocument]. |
5772 /// @domName Document.lastModified; @docsEditable true | 6121 /// @docsEditable true |
5773 @JSName('lastModified') | 6122 @JSName('lastModified') |
| 6123 @DomName("Document.lastModified") |
5774 final String $dom_lastModified; | 6124 final String $dom_lastModified; |
5775 | 6125 |
5776 /// @domName Document.preferredStylesheetSet; @docsEditable true | 6126 /// @docsEditable true |
5777 @JSName('preferredStylesheetSet') | 6127 @JSName('preferredStylesheetSet') |
| 6128 @DomName("Document.preferredStylesheetSet") |
5778 final String $dom_preferredStylesheetSet; | 6129 final String $dom_preferredStylesheetSet; |
5779 | 6130 |
5780 /// @domName Document.readyState; @docsEditable true | 6131 /// @docsEditable true |
| 6132 @DomName("Document.readyState") |
5781 final String readyState; | 6133 final String readyState; |
5782 | 6134 |
5783 /// Moved to [HtmlDocument]. | 6135 /// Moved to [HtmlDocument]. |
5784 /// @domName Document.referrer; @docsEditable true | 6136 /// @docsEditable true |
5785 @JSName('referrer') | 6137 @JSName('referrer') |
| 6138 @DomName("Document.referrer") |
5786 final String $dom_referrer; | 6139 final String $dom_referrer; |
5787 | 6140 |
5788 /// @domName Document.selectedStylesheetSet; @docsEditable true | 6141 /// @docsEditable true |
5789 @JSName('selectedStylesheetSet') | 6142 @JSName('selectedStylesheetSet') |
| 6143 @DomName("Document.selectedStylesheetSet") |
5790 String $dom_selectedStylesheetSet; | 6144 String $dom_selectedStylesheetSet; |
5791 | 6145 |
5792 /// Moved to [HtmlDocument]. | 6146 /// Moved to [HtmlDocument]. |
5793 /// @domName Document.styleSheets; @docsEditable true | 6147 /// @docsEditable true |
5794 @JSName('styleSheets') | 6148 @JSName('styleSheets') |
| 6149 @DomName("Document.styleSheets") |
5795 @Returns('_StyleSheetList') @Creates('_StyleSheetList') | 6150 @Returns('_StyleSheetList') @Creates('_StyleSheetList') |
5796 final List<StyleSheet> $dom_styleSheets; | 6151 final List<StyleSheet> $dom_styleSheets; |
5797 | 6152 |
5798 /// Moved to [HtmlDocument]. | 6153 /// Moved to [HtmlDocument]. |
5799 /// @domName Document.title; @docsEditable true | 6154 /// @docsEditable true |
5800 @JSName('title') | 6155 @JSName('title') |
| 6156 @DomName("Document.title") |
5801 String $dom_title; | 6157 String $dom_title; |
5802 | 6158 |
5803 /// Moved to [HtmlDocument]. | 6159 /// Moved to [HtmlDocument]. |
5804 /// @domName Document.webkitFullscreenElement; @docsEditable true | 6160 /// @docsEditable true |
5805 @JSName('webkitFullscreenElement') | 6161 @JSName('webkitFullscreenElement') |
| 6162 @DomName("Document.webkitFullscreenElement") |
5806 final Element $dom_webkitFullscreenElement; | 6163 final Element $dom_webkitFullscreenElement; |
5807 | 6164 |
5808 /// Moved to [HtmlDocument]. | 6165 /// Moved to [HtmlDocument]. |
5809 /// @domName Document.webkitFullscreenEnabled; @docsEditable true | 6166 /// @docsEditable true |
5810 @JSName('webkitFullscreenEnabled') | 6167 @JSName('webkitFullscreenEnabled') |
| 6168 @DomName("Document.webkitFullscreenEnabled") |
5811 final bool $dom_webkitFullscreenEnabled; | 6169 final bool $dom_webkitFullscreenEnabled; |
5812 | 6170 |
5813 /// Moved to [HtmlDocument]. | 6171 /// Moved to [HtmlDocument]. |
5814 /// @domName Document.webkitHidden; @docsEditable true | 6172 /// @docsEditable true |
5815 @JSName('webkitHidden') | 6173 @JSName('webkitHidden') |
| 6174 @DomName("Document.webkitHidden") |
5816 final bool $dom_webkitHidden; | 6175 final bool $dom_webkitHidden; |
5817 | 6176 |
5818 /// Moved to [HtmlDocument]. | 6177 /// Moved to [HtmlDocument]. |
5819 /// @domName Document.webkitIsFullScreen; @docsEditable true | 6178 /// @docsEditable true |
5820 @JSName('webkitIsFullScreen') | 6179 @JSName('webkitIsFullScreen') |
| 6180 @DomName("Document.webkitIsFullScreen") |
5821 final bool $dom_webkitIsFullScreen; | 6181 final bool $dom_webkitIsFullScreen; |
5822 | 6182 |
5823 /// Moved to [HtmlDocument]. | 6183 /// Moved to [HtmlDocument]. |
5824 /// @domName Document.webkitPointerLockElement; @docsEditable true | 6184 /// @docsEditable true |
5825 @JSName('webkitPointerLockElement') | 6185 @JSName('webkitPointerLockElement') |
| 6186 @DomName("Document.webkitPointerLockElement") |
5826 final Element $dom_webkitPointerLockElement; | 6187 final Element $dom_webkitPointerLockElement; |
5827 | 6188 |
5828 /// Moved to [HtmlDocument]. | 6189 /// Moved to [HtmlDocument]. |
5829 /// @domName Document.webkitVisibilityState; @docsEditable true | 6190 /// @docsEditable true |
5830 @JSName('webkitVisibilityState') | 6191 @JSName('webkitVisibilityState') |
| 6192 @DomName("Document.webkitVisibilityState") |
5831 final String $dom_webkitVisibilityState; | 6193 final String $dom_webkitVisibilityState; |
5832 | 6194 |
5833 /// Use the [Range] constructor instead. | 6195 /// Use the [Range] constructor instead. |
5834 /// @domName Document.caretRangeFromPoint; @docsEditable true | 6196 /// @docsEditable true |
5835 @JSName('caretRangeFromPoint') | 6197 @JSName('caretRangeFromPoint') |
| 6198 @DomName("Document.caretRangeFromPoint") |
5836 Range $dom_caretRangeFromPoint(int x, int y) native; | 6199 Range $dom_caretRangeFromPoint(int x, int y) native; |
5837 | 6200 |
5838 /// @domName Document.createCDATASection; @docsEditable true | 6201 /// @docsEditable true |
5839 @JSName('createCDATASection') | 6202 @JSName('createCDATASection') |
| 6203 @DomName("Document.createCDATASection") |
5840 CDataSection createCDataSection(String data) native; | 6204 CDataSection createCDataSection(String data) native; |
5841 | 6205 |
5842 /// @domName Document.createDocumentFragment; @docsEditable true | 6206 /// @docsEditable true |
| 6207 @DomName("Document.createDocumentFragment") |
5843 DocumentFragment createDocumentFragment() native; | 6208 DocumentFragment createDocumentFragment() native; |
5844 | 6209 |
5845 /// Deprecated: use new Element.tag(tagName) instead. | 6210 /// Deprecated: use new Element.tag(tagName) instead. |
5846 /// @domName Document.createElement; @docsEditable true | 6211 /// @docsEditable true |
5847 @JSName('createElement') | 6212 @JSName('createElement') |
| 6213 @DomName("Document.createElement") |
5848 Element $dom_createElement(String tagName) native; | 6214 Element $dom_createElement(String tagName) native; |
5849 | 6215 |
5850 /// @domName Document.createElementNS; @docsEditable true | 6216 /// @docsEditable true |
5851 @JSName('createElementNS') | 6217 @JSName('createElementNS') |
| 6218 @DomName("Document.createElementNS") |
5852 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native
; | 6219 Element $dom_createElementNS(String namespaceURI, String qualifiedName) native
; |
5853 | 6220 |
5854 /// @domName Document.createEvent; @docsEditable true | 6221 /// @docsEditable true |
5855 @JSName('createEvent') | 6222 @JSName('createEvent') |
| 6223 @DomName("Document.createEvent") |
5856 Event $dom_createEvent(String eventType) native; | 6224 Event $dom_createEvent(String eventType) native; |
5857 | 6225 |
5858 /// @domName Document.createRange; @docsEditable true | 6226 /// @docsEditable true |
5859 @JSName('createRange') | 6227 @JSName('createRange') |
| 6228 @DomName("Document.createRange") |
5860 Range $dom_createRange() native; | 6229 Range $dom_createRange() native; |
5861 | 6230 |
5862 /// @domName Document.createTextNode; @docsEditable true | 6231 /// @docsEditable true |
5863 @JSName('createTextNode') | 6232 @JSName('createTextNode') |
| 6233 @DomName("Document.createTextNode") |
5864 Text $dom_createTextNode(String data) native; | 6234 Text $dom_createTextNode(String data) native; |
5865 | 6235 |
5866 /// @domName Document.createTouch; @docsEditable true | 6236 /// @docsEditable true |
5867 Touch $dom_createTouch(Window window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) { | 6237 Touch $dom_createTouch(Window window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) { |
5868 var target_1 = _convertDartToNative_EventTarget(target); | 6238 var target_1 = _convertDartToNative_EventTarget(target); |
5869 return _$dom_createTouch_1(window, target_1, identifier, pageX, pageY, scree
nX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); | 6239 return _$dom_createTouch_1(window, target_1, identifier, pageX, pageY, scree
nX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); |
5870 } | 6240 } |
5871 @JSName('createTouch') | 6241 @JSName('createTouch') |
| 6242 @DomName("Document.createTouch") |
5872 Touch _$dom_createTouch_1(Window window, target, identifier, pageX, pageY, scr
eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n
ative; | 6243 Touch _$dom_createTouch_1(Window window, target, identifier, pageX, pageY, scr
eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n
ative; |
5873 | 6244 |
5874 /// Use the [TouchList] constructor isntead. | 6245 /// Use the [TouchList] constructor isntead. |
5875 /// @domName Document.createTouchList; @docsEditable true | 6246 /// @docsEditable true |
5876 @JSName('createTouchList') | 6247 @JSName('createTouchList') |
| 6248 @DomName("Document.createTouchList") |
5877 TouchList $dom_createTouchList() native; | 6249 TouchList $dom_createTouchList() native; |
5878 | 6250 |
5879 /// Moved to [HtmlDocument]. | 6251 /// Moved to [HtmlDocument]. |
5880 /// @domName Document.elementFromPoint; @docsEditable true | 6252 /// @docsEditable true |
5881 @JSName('elementFromPoint') | 6253 @JSName('elementFromPoint') |
| 6254 @DomName("Document.elementFromPoint") |
5882 Element $dom_elementFromPoint(int x, int y) native; | 6255 Element $dom_elementFromPoint(int x, int y) native; |
5883 | 6256 |
5884 /// @domName Document.execCommand; @docsEditable true | 6257 /// @docsEditable true |
| 6258 @DomName("Document.execCommand") |
5885 bool execCommand(String command, bool userInterface, String value) native; | 6259 bool execCommand(String command, bool userInterface, String value) native; |
5886 | 6260 |
5887 /// @domName Document.getCSSCanvasContext; @docsEditable true | 6261 /// @docsEditable true |
5888 @JSName('getCSSCanvasContext') | 6262 @JSName('getCSSCanvasContext') |
| 6263 @DomName("Document.getCSSCanvasContext") |
5889 CanvasRenderingContext $dom_getCssCanvasContext(String contextId, String name,
int width, int height) native; | 6264 CanvasRenderingContext $dom_getCssCanvasContext(String contextId, String name,
int width, int height) native; |
5890 | 6265 |
5891 /// Deprecated: use query("#$elementId") instead. | 6266 /// Deprecated: use query("#$elementId") instead. |
5892 /// @domName Document.getElementById; @docsEditable true | 6267 /// @docsEditable true |
5893 @JSName('getElementById') | 6268 @JSName('getElementById') |
| 6269 @DomName("Document.getElementById") |
5894 Element $dom_getElementById(String elementId) native; | 6270 Element $dom_getElementById(String elementId) native; |
5895 | 6271 |
5896 /// @domName Document.getElementsByClassName; @docsEditable true | 6272 /// @docsEditable true |
5897 @JSName('getElementsByClassName') | 6273 @JSName('getElementsByClassName') |
| 6274 @DomName("Document.getElementsByClassName") |
5898 @Returns('NodeList') @Creates('NodeList') | 6275 @Returns('NodeList') @Creates('NodeList') |
5899 List<Node> $dom_getElementsByClassName(String tagname) native; | 6276 List<Node> $dom_getElementsByClassName(String tagname) native; |
5900 | 6277 |
5901 /// @domName Document.getElementsByName; @docsEditable true | 6278 /// @docsEditable true |
5902 @JSName('getElementsByName') | 6279 @JSName('getElementsByName') |
| 6280 @DomName("Document.getElementsByName") |
5903 @Returns('NodeList') @Creates('NodeList') | 6281 @Returns('NodeList') @Creates('NodeList') |
5904 List<Node> $dom_getElementsByName(String elementName) native; | 6282 List<Node> $dom_getElementsByName(String elementName) native; |
5905 | 6283 |
5906 /// @domName Document.getElementsByTagName; @docsEditable true | 6284 /// @docsEditable true |
5907 @JSName('getElementsByTagName') | 6285 @JSName('getElementsByTagName') |
| 6286 @DomName("Document.getElementsByTagName") |
5908 @Returns('NodeList') @Creates('NodeList') | 6287 @Returns('NodeList') @Creates('NodeList') |
5909 List<Node> $dom_getElementsByTagName(String tagname) native; | 6288 List<Node> $dom_getElementsByTagName(String tagname) native; |
5910 | 6289 |
5911 /// @domName Document.queryCommandEnabled; @docsEditable true | 6290 /// @docsEditable true |
| 6291 @DomName("Document.queryCommandEnabled") |
5912 bool queryCommandEnabled(String command) native; | 6292 bool queryCommandEnabled(String command) native; |
5913 | 6293 |
5914 /// @domName Document.queryCommandIndeterm; @docsEditable true | 6294 /// @docsEditable true |
| 6295 @DomName("Document.queryCommandIndeterm") |
5915 bool queryCommandIndeterm(String command) native; | 6296 bool queryCommandIndeterm(String command) native; |
5916 | 6297 |
5917 /// @domName Document.queryCommandState; @docsEditable true | 6298 /// @docsEditable true |
| 6299 @DomName("Document.queryCommandState") |
5918 bool queryCommandState(String command) native; | 6300 bool queryCommandState(String command) native; |
5919 | 6301 |
5920 /// @domName Document.queryCommandSupported; @docsEditable true | 6302 /// @docsEditable true |
| 6303 @DomName("Document.queryCommandSupported") |
5921 bool queryCommandSupported(String command) native; | 6304 bool queryCommandSupported(String command) native; |
5922 | 6305 |
5923 /// @domName Document.queryCommandValue; @docsEditable true | 6306 /// @docsEditable true |
| 6307 @DomName("Document.queryCommandValue") |
5924 String queryCommandValue(String command) native; | 6308 String queryCommandValue(String command) native; |
5925 | 6309 |
5926 /// Deprecated: renamed to the shorter name [query]. | 6310 /// Deprecated: renamed to the shorter name [query]. |
5927 /// @domName Document.querySelector; @docsEditable true | 6311 /// @docsEditable true |
5928 @JSName('querySelector') | 6312 @JSName('querySelector') |
| 6313 @DomName("Document.querySelector") |
5929 Element $dom_querySelector(String selectors) native; | 6314 Element $dom_querySelector(String selectors) native; |
5930 | 6315 |
5931 /// Deprecated: use query("#$elementId") instead. | 6316 /// Deprecated: use query("#$elementId") instead. |
5932 /// @domName Document.querySelectorAll; @docsEditable true | 6317 /// @docsEditable true |
5933 @JSName('querySelectorAll') | 6318 @JSName('querySelectorAll') |
| 6319 @DomName("Document.querySelectorAll") |
5934 @Returns('NodeList') @Creates('NodeList') | 6320 @Returns('NodeList') @Creates('NodeList') |
5935 List<Node> $dom_querySelectorAll(String selectors) native; | 6321 List<Node> $dom_querySelectorAll(String selectors) native; |
5936 | 6322 |
5937 /// Moved to [HtmlDocument]. | 6323 /// Moved to [HtmlDocument]. |
5938 /// @domName Document.webkitCancelFullScreen; @docsEditable true | 6324 /// @docsEditable true |
5939 @JSName('webkitCancelFullScreen') | 6325 @JSName('webkitCancelFullScreen') |
| 6326 @DomName("Document.webkitCancelFullScreen") |
5940 void $dom_webkitCancelFullScreen() native; | 6327 void $dom_webkitCancelFullScreen() native; |
5941 | 6328 |
5942 /// Moved to [HtmlDocument]. | 6329 /// Moved to [HtmlDocument]. |
5943 /// @domName Document.webkitExitFullscreen; @docsEditable true | 6330 /// @docsEditable true |
5944 @JSName('webkitExitFullscreen') | 6331 @JSName('webkitExitFullscreen') |
| 6332 @DomName("Document.webkitExitFullscreen") |
5945 void $dom_webkitExitFullscreen() native; | 6333 void $dom_webkitExitFullscreen() native; |
5946 | 6334 |
5947 /// Moved to [HtmlDocument]. | 6335 /// Moved to [HtmlDocument]. |
5948 /// @domName Document.webkitExitPointerLock; @docsEditable true | 6336 /// @docsEditable true |
5949 @JSName('webkitExitPointerLock') | 6337 @JSName('webkitExitPointerLock') |
| 6338 @DomName("Document.webkitExitPointerLock") |
5950 void $dom_webkitExitPointerLock() native; | 6339 void $dom_webkitExitPointerLock() native; |
5951 | 6340 |
5952 | 6341 |
5953 /** | 6342 /** |
5954 * Finds the first descendant element of this document that matches the | 6343 * Finds the first descendant element of this document that matches the |
5955 * specified group of selectors. | 6344 * specified group of selectors. |
5956 * | 6345 * |
5957 * Unless your webpage contains multiple documents, the top-level query | 6346 * Unless your webpage contains multiple documents, the top-level query |
5958 * method behaves the same as this method, so you should use it instead to | 6347 * method behaves the same as this method, so you should use it instead to |
5959 * save typing a few characters. | 6348 * save typing a few characters. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6042 class _FrozenCssClassSet extends CssClassSet { | 6431 class _FrozenCssClassSet extends CssClassSet { |
6043 void writeClasses(Set s) { | 6432 void writeClasses(Set s) { |
6044 throw new UnsupportedError( | 6433 throw new UnsupportedError( |
6045 'frozen class set cannot be modified'); | 6434 'frozen class set cannot be modified'); |
6046 } | 6435 } |
6047 Set<String> readClasses() => new Set<String>(); | 6436 Set<String> readClasses() => new Set<String>(); |
6048 | 6437 |
6049 bool get frozen => true; | 6438 bool get frozen => true; |
6050 } | 6439 } |
6051 | 6440 |
6052 /// @domName DocumentFragment | 6441 @DomName("DocumentFragment") |
6053 class DocumentFragment extends Node native "*DocumentFragment" { | 6442 class DocumentFragment extends Node native "*DocumentFragment" { |
6054 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF
ragment(); | 6443 factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentF
ragment(); |
6055 | 6444 |
6056 factory DocumentFragment.html(String html) => | 6445 factory DocumentFragment.html(String html) => |
6057 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); | 6446 _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); |
6058 | 6447 |
6059 factory DocumentFragment.svg(String svgContent) => | 6448 factory DocumentFragment.svg(String svgContent) => |
6060 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); | 6449 _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); |
6061 | 6450 |
6062 @deprecated | 6451 @deprecated |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6290 throw new UnsupportedError( | 6679 throw new UnsupportedError( |
6291 "WebKit drop zone can't be set for document fragments."); | 6680 "WebKit drop zone can't be set for document fragments."); |
6292 } | 6681 } |
6293 | 6682 |
6294 void set webkitRegionOverflow(String value) { | 6683 void set webkitRegionOverflow(String value) { |
6295 throw new UnsupportedError( | 6684 throw new UnsupportedError( |
6296 "WebKit region overflow can't be set for document fragments."); | 6685 "WebKit region overflow can't be set for document fragments."); |
6297 } | 6686 } |
6298 | 6687 |
6299 | 6688 |
6300 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 6689 /// @docsEditable true |
| 6690 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
6301 ElementEvents get on => | 6691 ElementEvents get on => |
6302 new ElementEvents(this); | 6692 new ElementEvents(this); |
6303 | 6693 |
6304 /// @domName DocumentFragment.querySelector; @docsEditable true | 6694 /// @docsEditable true |
6305 @JSName('querySelector') | 6695 @JSName('querySelector') |
| 6696 @DomName("DocumentFragment.querySelector") |
6306 Element $dom_querySelector(String selectors) native; | 6697 Element $dom_querySelector(String selectors) native; |
6307 | 6698 |
6308 /// @domName DocumentFragment.querySelectorAll; @docsEditable true | 6699 /// @docsEditable true |
6309 @JSName('querySelectorAll') | 6700 @JSName('querySelectorAll') |
| 6701 @DomName("DocumentFragment.querySelectorAll") |
6310 @Returns('NodeList') @Creates('NodeList') | 6702 @Returns('NodeList') @Creates('NodeList') |
6311 List<Node> $dom_querySelectorAll(String selectors) native; | 6703 List<Node> $dom_querySelectorAll(String selectors) native; |
6312 | 6704 |
6313 } | 6705 } |
6314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6315 // for details. All rights reserved. Use of this source code is governed by a | 6707 // for details. All rights reserved. Use of this source code is governed by a |
6316 // BSD-style license that can be found in the LICENSE file. | 6708 // BSD-style license that can be found in the LICENSE file. |
6317 | 6709 |
6318 | 6710 |
6319 /// @domName DocumentType; @docsEditable true | 6711 /// @docsEditable true |
| 6712 @DomName("DocumentType") |
6320 class DocumentType extends Node native "*DocumentType" { | 6713 class DocumentType extends Node native "*DocumentType" { |
6321 | 6714 |
6322 /// @domName DocumentType.entities; @docsEditable true | 6715 /// @docsEditable true |
| 6716 @DomName("DocumentType.entities") |
6323 final NamedNodeMap entities; | 6717 final NamedNodeMap entities; |
6324 | 6718 |
6325 /// @domName DocumentType.internalSubset; @docsEditable true | 6719 /// @docsEditable true |
| 6720 @DomName("DocumentType.internalSubset") |
6326 final String internalSubset; | 6721 final String internalSubset; |
6327 | 6722 |
6328 /// @domName DocumentType.name; @docsEditable true | 6723 /// @docsEditable true |
| 6724 @DomName("DocumentType.name") |
6329 final String name; | 6725 final String name; |
6330 | 6726 |
6331 /// @domName DocumentType.notations; @docsEditable true | 6727 /// @docsEditable true |
| 6728 @DomName("DocumentType.notations") |
6332 final NamedNodeMap notations; | 6729 final NamedNodeMap notations; |
6333 | 6730 |
6334 /// @domName DocumentType.publicId; @docsEditable true | 6731 /// @docsEditable true |
| 6732 @DomName("DocumentType.publicId") |
6335 final String publicId; | 6733 final String publicId; |
6336 | 6734 |
6337 /// @domName DocumentType.systemId; @docsEditable true | 6735 /// @docsEditable true |
| 6736 @DomName("DocumentType.systemId") |
6338 final String systemId; | 6737 final String systemId; |
6339 | 6738 |
6340 /// @domName DocumentType.remove; @docsEditable true | 6739 /// @docsEditable true |
| 6740 @DomName("DocumentType.remove") |
6341 void remove() native; | 6741 void remove() native; |
6342 } | 6742 } |
6343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6344 // for details. All rights reserved. Use of this source code is governed by a | 6744 // for details. All rights reserved. Use of this source code is governed by a |
6345 // BSD-style license that can be found in the LICENSE file. | 6745 // BSD-style license that can be found in the LICENSE file. |
6346 | 6746 |
6347 | 6747 |
6348 /// @domName DOMError; @docsEditable true | 6748 /// @docsEditable true |
| 6749 @DomName("DOMError") |
6349 class DomError native "*DOMError" { | 6750 class DomError native "*DOMError" { |
6350 | 6751 |
6351 /// @domName DOMError.name; @docsEditable true | 6752 /// @docsEditable true |
| 6753 @DomName("DOMError.name") |
6352 final String name; | 6754 final String name; |
6353 } | 6755 } |
6354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6355 // for details. All rights reserved. Use of this source code is governed by a | 6757 // for details. All rights reserved. Use of this source code is governed by a |
6356 // BSD-style license that can be found in the LICENSE file. | 6758 // BSD-style license that can be found in the LICENSE file. |
6357 | 6759 |
6358 | 6760 |
6359 /// @domName DOMException; @docsEditable true | 6761 /// @docsEditable true |
| 6762 @DomName("DOMException") |
6360 class DomException native "*DOMException" { | 6763 class DomException native "*DOMException" { |
6361 | 6764 |
6362 static const int ABORT_ERR = 20; | 6765 static const int ABORT_ERR = 20; |
6363 | 6766 |
6364 static const int DATA_CLONE_ERR = 25; | 6767 static const int DATA_CLONE_ERR = 25; |
6365 | 6768 |
6366 static const int DOMSTRING_SIZE_ERR = 2; | 6769 static const int DOMSTRING_SIZE_ERR = 2; |
6367 | 6770 |
6368 static const int HIERARCHY_REQUEST_ERR = 3; | 6771 static const int HIERARCHY_REQUEST_ERR = 3; |
6369 | 6772 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6402 static const int TIMEOUT_ERR = 23; | 6805 static const int TIMEOUT_ERR = 23; |
6403 | 6806 |
6404 static const int TYPE_MISMATCH_ERR = 17; | 6807 static const int TYPE_MISMATCH_ERR = 17; |
6405 | 6808 |
6406 static const int URL_MISMATCH_ERR = 21; | 6809 static const int URL_MISMATCH_ERR = 21; |
6407 | 6810 |
6408 static const int VALIDATION_ERR = 16; | 6811 static const int VALIDATION_ERR = 16; |
6409 | 6812 |
6410 static const int WRONG_DOCUMENT_ERR = 4; | 6813 static const int WRONG_DOCUMENT_ERR = 4; |
6411 | 6814 |
6412 /// @domName DOMException.code; @docsEditable true | 6815 /// @docsEditable true |
| 6816 @DomName("DOMCoreException.code") |
6413 final int code; | 6817 final int code; |
6414 | 6818 |
6415 /// @domName DOMException.message; @docsEditable true | 6819 /// @docsEditable true |
| 6820 @DomName("DOMCoreException.message") |
6416 final String message; | 6821 final String message; |
6417 | 6822 |
6418 /// @domName DOMException.name; @docsEditable true | 6823 /// @docsEditable true |
| 6824 @DomName("DOMCoreException.name") |
6419 final String name; | 6825 final String name; |
6420 | 6826 |
6421 /// @domName DOMException.toString; @docsEditable true | 6827 /// @docsEditable true |
| 6828 @DomName("DOMCoreException.toString") |
6422 String toString() native; | 6829 String toString() native; |
6423 } | 6830 } |
6424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6831 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6425 // for details. All rights reserved. Use of this source code is governed by a | 6832 // for details. All rights reserved. Use of this source code is governed by a |
6426 // BSD-style license that can be found in the LICENSE file. | 6833 // BSD-style license that can be found in the LICENSE file. |
6427 | 6834 |
6428 | 6835 |
6429 /// @domName DOMImplementation; @docsEditable true | 6836 /// @docsEditable true |
| 6837 @DomName("DOMImplementation") |
6430 class DomImplementation native "*DOMImplementation" { | 6838 class DomImplementation native "*DOMImplementation" { |
6431 | 6839 |
6432 /// @domName DOMImplementation.createCSSStyleSheet; @docsEditable true | 6840 /// @docsEditable true |
6433 @JSName('createCSSStyleSheet') | 6841 @JSName('createCSSStyleSheet') |
| 6842 @DomName("DOMImplementation.createCSSStyleSheet") |
6434 CssStyleSheet createCssStyleSheet(String title, String media) native; | 6843 CssStyleSheet createCssStyleSheet(String title, String media) native; |
6435 | 6844 |
6436 /// @domName DOMImplementation.createDocument; @docsEditable true | 6845 /// @docsEditable true |
| 6846 @DomName("DOMImplementation.createDocument") |
6437 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype) native; | 6847 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype) native; |
6438 | 6848 |
6439 /// @domName DOMImplementation.createDocumentType; @docsEditable true | 6849 /// @docsEditable true |
| 6850 @DomName("DOMImplementation.createDocumentType") |
6440 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId) native; | 6851 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId) native; |
6441 | 6852 |
6442 /// @domName DOMImplementation.createHTMLDocument; @docsEditable true | 6853 /// @docsEditable true |
6443 @JSName('createHTMLDocument') | 6854 @JSName('createHTMLDocument') |
| 6855 @DomName("DOMImplementation.createHTMLDocument") |
6444 HtmlDocument createHtmlDocument(String title) native; | 6856 HtmlDocument createHtmlDocument(String title) native; |
6445 | 6857 |
6446 /// @domName DOMImplementation.hasFeature; @docsEditable true | 6858 /// @docsEditable true |
| 6859 @DomName("DOMImplementation.hasFeature") |
6447 bool hasFeature(String feature, String version) native; | 6860 bool hasFeature(String feature, String version) native; |
6448 } | 6861 } |
6449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6450 // for details. All rights reserved. Use of this source code is governed by a | 6863 // for details. All rights reserved. Use of this source code is governed by a |
6451 // BSD-style license that can be found in the LICENSE file. | 6864 // BSD-style license that can be found in the LICENSE file. |
6452 | 6865 |
6453 | 6866 |
6454 /// @domName MimeType; @docsEditable true | 6867 /// @docsEditable true |
| 6868 @DomName("MimeType") |
6455 class DomMimeType native "*MimeType" { | 6869 class DomMimeType native "*MimeType" { |
6456 | 6870 |
6457 /// @domName MimeType.description; @docsEditable true | 6871 /// @docsEditable true |
| 6872 @DomName("DOMMimeType.description") |
6458 final String description; | 6873 final String description; |
6459 | 6874 |
6460 /// @domName MimeType.enabledPlugin; @docsEditable true | 6875 /// @docsEditable true |
| 6876 @DomName("DOMMimeType.enabledPlugin") |
6461 final DomPlugin enabledPlugin; | 6877 final DomPlugin enabledPlugin; |
6462 | 6878 |
6463 /// @domName MimeType.suffixes; @docsEditable true | 6879 /// @docsEditable true |
| 6880 @DomName("DOMMimeType.suffixes") |
6464 final String suffixes; | 6881 final String suffixes; |
6465 | 6882 |
6466 /// @domName MimeType.type; @docsEditable true | 6883 /// @docsEditable true |
| 6884 @DomName("DOMMimeType.type") |
6467 final String type; | 6885 final String type; |
6468 } | 6886 } |
6469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6887 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6470 // for details. All rights reserved. Use of this source code is governed by a | 6888 // for details. All rights reserved. Use of this source code is governed by a |
6471 // BSD-style license that can be found in the LICENSE file. | 6889 // BSD-style license that can be found in the LICENSE file. |
6472 | 6890 |
6473 | 6891 |
6474 /// @domName MimeTypeArray; @docsEditable true | 6892 /// @docsEditable true |
| 6893 @DomName("MimeTypeArray") |
6475 class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
native "*MimeTypeArray" { | 6894 class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType>
native "*MimeTypeArray" { |
6476 | 6895 |
6477 /// @domName MimeTypeArray.length; @docsEditable true | 6896 /// @docsEditable true |
| 6897 @DomName("DOMMimeTypeArray.length") |
6478 int get length => JS("int", "#.length", this); | 6898 int get length => JS("int", "#.length", this); |
6479 | 6899 |
6480 DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index); | 6900 DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index); |
6481 | 6901 |
6482 void operator[]=(int index, DomMimeType value) { | 6902 void operator[]=(int index, DomMimeType value) { |
6483 throw new UnsupportedError("Cannot assign element of immutable List."); | 6903 throw new UnsupportedError("Cannot assign element of immutable List."); |
6484 } | 6904 } |
6485 // -- start List<DomMimeType> mixins. | 6905 // -- start List<DomMimeType> mixins. |
6486 // DomMimeType is the element type. | 6906 // DomMimeType is the element type. |
6487 | 6907 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6615 | 7035 |
6616 void insertRange(int start, int rangeLength, [DomMimeType initialValue]) { | 7036 void insertRange(int start, int rangeLength, [DomMimeType initialValue]) { |
6617 throw new UnsupportedError("Cannot insertRange on immutable List."); | 7037 throw new UnsupportedError("Cannot insertRange on immutable List."); |
6618 } | 7038 } |
6619 | 7039 |
6620 List<DomMimeType> getRange(int start, int rangeLength) => | 7040 List<DomMimeType> getRange(int start, int rangeLength) => |
6621 Lists.getRange(this, start, rangeLength, <DomMimeType>[]); | 7041 Lists.getRange(this, start, rangeLength, <DomMimeType>[]); |
6622 | 7042 |
6623 // -- end List<DomMimeType> mixins. | 7043 // -- end List<DomMimeType> mixins. |
6624 | 7044 |
6625 /// @domName MimeTypeArray.item; @docsEditable true | 7045 /// @docsEditable true |
| 7046 @DomName("DOMMimeTypeArray.item") |
6626 DomMimeType item(int index) native; | 7047 DomMimeType item(int index) native; |
6627 | 7048 |
6628 /// @domName MimeTypeArray.namedItem; @docsEditable true | 7049 /// @docsEditable true |
| 7050 @DomName("DOMMimeTypeArray.namedItem") |
6629 DomMimeType namedItem(String name) native; | 7051 DomMimeType namedItem(String name) native; |
6630 } | 7052 } |
6631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6632 // for details. All rights reserved. Use of this source code is governed by a | 7054 // for details. All rights reserved. Use of this source code is governed by a |
6633 // BSD-style license that can be found in the LICENSE file. | 7055 // BSD-style license that can be found in the LICENSE file. |
6634 | 7056 |
6635 | 7057 |
6636 /// @domName DOMParser; @docsEditable true | 7058 /// @docsEditable true |
| 7059 @DomName("DOMParser") |
6637 class DomParser native "*DOMParser" { | 7060 class DomParser native "*DOMParser" { |
6638 | 7061 |
6639 ///@docsEditable true | 7062 /// @docsEditable true |
6640 factory DomParser() => DomParser._create(); | 7063 factory DomParser() => DomParser._create(); |
6641 static DomParser _create() => JS('DomParser', 'new DOMParser()'); | 7064 static DomParser _create() => JS('DomParser', 'new DOMParser()'); |
6642 | 7065 |
6643 /// @domName DOMParser.parseFromString; @docsEditable true | 7066 /// @docsEditable true |
| 7067 @DomName("DOMParser.parseFromString") |
6644 Document parseFromString(String str, String contentType) native; | 7068 Document parseFromString(String str, String contentType) native; |
6645 } | 7069 } |
6646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6647 // for details. All rights reserved. Use of this source code is governed by a | 7071 // for details. All rights reserved. Use of this source code is governed by a |
6648 // BSD-style license that can be found in the LICENSE file. | 7072 // BSD-style license that can be found in the LICENSE file. |
6649 | 7073 |
6650 | 7074 |
6651 /// @domName Plugin; @docsEditable true | 7075 /// @docsEditable true |
| 7076 @DomName("Plugin") |
6652 class DomPlugin native "*Plugin" { | 7077 class DomPlugin native "*Plugin" { |
6653 | 7078 |
6654 /// @domName Plugin.description; @docsEditable true | 7079 /// @docsEditable true |
| 7080 @DomName("DOMPlugin.description") |
6655 final String description; | 7081 final String description; |
6656 | 7082 |
6657 /// @domName Plugin.filename; @docsEditable true | 7083 /// @docsEditable true |
| 7084 @DomName("DOMPlugin.filename") |
6658 final String filename; | 7085 final String filename; |
6659 | 7086 |
6660 /// @domName Plugin.length; @docsEditable true | 7087 /// @docsEditable true |
| 7088 @DomName("DOMPlugin.length") |
6661 final int length; | 7089 final int length; |
6662 | 7090 |
6663 /// @domName Plugin.name; @docsEditable true | 7091 /// @docsEditable true |
| 7092 @DomName("DOMPlugin.name") |
6664 final String name; | 7093 final String name; |
6665 | 7094 |
6666 /// @domName Plugin.item; @docsEditable true | 7095 /// @docsEditable true |
| 7096 @DomName("DOMPlugin.item") |
6667 DomMimeType item(int index) native; | 7097 DomMimeType item(int index) native; |
6668 | 7098 |
6669 /// @domName Plugin.namedItem; @docsEditable true | 7099 /// @docsEditable true |
| 7100 @DomName("DOMPlugin.namedItem") |
6670 DomMimeType namedItem(String name) native; | 7101 DomMimeType namedItem(String name) native; |
6671 } | 7102 } |
6672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6673 // for details. All rights reserved. Use of this source code is governed by a | 7104 // for details. All rights reserved. Use of this source code is governed by a |
6674 // BSD-style license that can be found in the LICENSE file. | 7105 // BSD-style license that can be found in the LICENSE file. |
6675 | 7106 |
6676 | 7107 |
6677 /// @domName PluginArray; @docsEditable true | 7108 /// @docsEditable true |
| 7109 @DomName("PluginArray") |
6678 class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
ve "*PluginArray" { | 7110 class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> nati
ve "*PluginArray" { |
6679 | 7111 |
6680 /// @domName PluginArray.length; @docsEditable true | 7112 /// @docsEditable true |
| 7113 @DomName("DOMPluginArray.length") |
6681 int get length => JS("int", "#.length", this); | 7114 int get length => JS("int", "#.length", this); |
6682 | 7115 |
6683 DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index); | 7116 DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index); |
6684 | 7117 |
6685 void operator[]=(int index, DomPlugin value) { | 7118 void operator[]=(int index, DomPlugin value) { |
6686 throw new UnsupportedError("Cannot assign element of immutable List."); | 7119 throw new UnsupportedError("Cannot assign element of immutable List."); |
6687 } | 7120 } |
6688 // -- start List<DomPlugin> mixins. | 7121 // -- start List<DomPlugin> mixins. |
6689 // DomPlugin is the element type. | 7122 // DomPlugin is the element type. |
6690 | 7123 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6818 | 7251 |
6819 void insertRange(int start, int rangeLength, [DomPlugin initialValue]) { | 7252 void insertRange(int start, int rangeLength, [DomPlugin initialValue]) { |
6820 throw new UnsupportedError("Cannot insertRange on immutable List."); | 7253 throw new UnsupportedError("Cannot insertRange on immutable List."); |
6821 } | 7254 } |
6822 | 7255 |
6823 List<DomPlugin> getRange(int start, int rangeLength) => | 7256 List<DomPlugin> getRange(int start, int rangeLength) => |
6824 Lists.getRange(this, start, rangeLength, <DomPlugin>[]); | 7257 Lists.getRange(this, start, rangeLength, <DomPlugin>[]); |
6825 | 7258 |
6826 // -- end List<DomPlugin> mixins. | 7259 // -- end List<DomPlugin> mixins. |
6827 | 7260 |
6828 /// @domName PluginArray.item; @docsEditable true | 7261 /// @docsEditable true |
| 7262 @DomName("DOMPluginArray.item") |
6829 DomPlugin item(int index) native; | 7263 DomPlugin item(int index) native; |
6830 | 7264 |
6831 /// @domName PluginArray.namedItem; @docsEditable true | 7265 /// @docsEditable true |
| 7266 @DomName("DOMPluginArray.namedItem") |
6832 DomPlugin namedItem(String name) native; | 7267 DomPlugin namedItem(String name) native; |
6833 | 7268 |
6834 /// @domName PluginArray.refresh; @docsEditable true | 7269 /// @docsEditable true |
| 7270 @DomName("DOMPluginArray.refresh") |
6835 void refresh(bool reload) native; | 7271 void refresh(bool reload) native; |
6836 } | 7272 } |
6837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6838 // for details. All rights reserved. Use of this source code is governed by a | 7274 // for details. All rights reserved. Use of this source code is governed by a |
6839 // BSD-style license that can be found in the LICENSE file. | 7275 // BSD-style license that can be found in the LICENSE file. |
6840 | 7276 |
6841 | 7277 |
6842 /// @domName Selection; @docsEditable true | 7278 /// @docsEditable true |
| 7279 @DomName("Selection") |
6843 class DomSelection native "*Selection" { | 7280 class DomSelection native "*Selection" { |
6844 | 7281 |
6845 /// @domName Selection.anchorNode; @docsEditable true | 7282 /// @docsEditable true |
| 7283 @DomName("DOMSelection.anchorNode") |
6846 final Node anchorNode; | 7284 final Node anchorNode; |
6847 | 7285 |
6848 /// @domName Selection.anchorOffset; @docsEditable true | 7286 /// @docsEditable true |
| 7287 @DomName("DOMSelection.anchorOffset") |
6849 final int anchorOffset; | 7288 final int anchorOffset; |
6850 | 7289 |
6851 /// @domName Selection.baseNode; @docsEditable true | 7290 /// @docsEditable true |
| 7291 @DomName("DOMSelection.baseNode") |
6852 final Node baseNode; | 7292 final Node baseNode; |
6853 | 7293 |
6854 /// @domName Selection.baseOffset; @docsEditable true | 7294 /// @docsEditable true |
| 7295 @DomName("DOMSelection.baseOffset") |
6855 final int baseOffset; | 7296 final int baseOffset; |
6856 | 7297 |
6857 /// @domName Selection.extentNode; @docsEditable true | 7298 /// @docsEditable true |
| 7299 @DomName("DOMSelection.extentNode") |
6858 final Node extentNode; | 7300 final Node extentNode; |
6859 | 7301 |
6860 /// @domName Selection.extentOffset; @docsEditable true | 7302 /// @docsEditable true |
| 7303 @DomName("DOMSelection.extentOffset") |
6861 final int extentOffset; | 7304 final int extentOffset; |
6862 | 7305 |
6863 /// @domName Selection.focusNode; @docsEditable true | 7306 /// @docsEditable true |
| 7307 @DomName("DOMSelection.focusNode") |
6864 final Node focusNode; | 7308 final Node focusNode; |
6865 | 7309 |
6866 /// @domName Selection.focusOffset; @docsEditable true | 7310 /// @docsEditable true |
| 7311 @DomName("DOMSelection.focusOffset") |
6867 final int focusOffset; | 7312 final int focusOffset; |
6868 | 7313 |
6869 /// @domName Selection.isCollapsed; @docsEditable true | 7314 /// @docsEditable true |
| 7315 @DomName("DOMSelection.isCollapsed") |
6870 final bool isCollapsed; | 7316 final bool isCollapsed; |
6871 | 7317 |
6872 /// @domName Selection.rangeCount; @docsEditable true | 7318 /// @docsEditable true |
| 7319 @DomName("DOMSelection.rangeCount") |
6873 final int rangeCount; | 7320 final int rangeCount; |
6874 | 7321 |
6875 /// @domName Selection.type; @docsEditable true | 7322 /// @docsEditable true |
| 7323 @DomName("DOMSelection.type") |
6876 final String type; | 7324 final String type; |
6877 | 7325 |
6878 /// @domName Selection.addRange; @docsEditable true | 7326 /// @docsEditable true |
| 7327 @DomName("DOMSelection.addRange") |
6879 void addRange(Range range) native; | 7328 void addRange(Range range) native; |
6880 | 7329 |
6881 /// @domName Selection.collapse; @docsEditable true | 7330 /// @docsEditable true |
| 7331 @DomName("DOMSelection.collapse") |
6882 void collapse(Node node, int index) native; | 7332 void collapse(Node node, int index) native; |
6883 | 7333 |
6884 /// @domName Selection.collapseToEnd; @docsEditable true | 7334 /// @docsEditable true |
| 7335 @DomName("DOMSelection.collapseToEnd") |
6885 void collapseToEnd() native; | 7336 void collapseToEnd() native; |
6886 | 7337 |
6887 /// @domName Selection.collapseToStart; @docsEditable true | 7338 /// @docsEditable true |
| 7339 @DomName("DOMSelection.collapseToStart") |
6888 void collapseToStart() native; | 7340 void collapseToStart() native; |
6889 | 7341 |
6890 /// @domName Selection.containsNode; @docsEditable true | 7342 /// @docsEditable true |
| 7343 @DomName("DOMSelection.containsNode") |
6891 bool containsNode(Node node, bool allowPartial) native; | 7344 bool containsNode(Node node, bool allowPartial) native; |
6892 | 7345 |
6893 /// @domName Selection.deleteFromDocument; @docsEditable true | 7346 /// @docsEditable true |
| 7347 @DomName("DOMSelection.deleteFromDocument") |
6894 void deleteFromDocument() native; | 7348 void deleteFromDocument() native; |
6895 | 7349 |
6896 /// @domName Selection.empty; @docsEditable true | 7350 /// @docsEditable true |
| 7351 @DomName("DOMSelection.empty") |
6897 void empty() native; | 7352 void empty() native; |
6898 | 7353 |
6899 /// @domName Selection.extend; @docsEditable true | 7354 /// @docsEditable true |
| 7355 @DomName("DOMSelection.extend") |
6900 void extend(Node node, int offset) native; | 7356 void extend(Node node, int offset) native; |
6901 | 7357 |
6902 /// @domName Selection.getRangeAt; @docsEditable true | 7358 /// @docsEditable true |
| 7359 @DomName("DOMSelection.getRangeAt") |
6903 Range getRangeAt(int index) native; | 7360 Range getRangeAt(int index) native; |
6904 | 7361 |
6905 /// @domName Selection.modify; @docsEditable true | 7362 /// @docsEditable true |
| 7363 @DomName("DOMSelection.modify") |
6906 void modify(String alter, String direction, String granularity) native; | 7364 void modify(String alter, String direction, String granularity) native; |
6907 | 7365 |
6908 /// @domName Selection.removeAllRanges; @docsEditable true | 7366 /// @docsEditable true |
| 7367 @DomName("DOMSelection.removeAllRanges") |
6909 void removeAllRanges() native; | 7368 void removeAllRanges() native; |
6910 | 7369 |
6911 /// @domName Selection.selectAllChildren; @docsEditable true | 7370 /// @docsEditable true |
| 7371 @DomName("DOMSelection.selectAllChildren") |
6912 void selectAllChildren(Node node) native; | 7372 void selectAllChildren(Node node) native; |
6913 | 7373 |
6914 /// @domName Selection.setBaseAndExtent; @docsEditable true | 7374 /// @docsEditable true |
| 7375 @DomName("DOMSelection.setBaseAndExtent") |
6915 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset) native; | 7376 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset) native; |
6916 | 7377 |
6917 /// @domName Selection.setPosition; @docsEditable true | 7378 /// @docsEditable true |
| 7379 @DomName("DOMSelection.setPosition") |
6918 void setPosition(Node node, int offset) native; | 7380 void setPosition(Node node, int offset) native; |
6919 | 7381 |
6920 /// @domName Selection.toString; @docsEditable true | 7382 /// @docsEditable true |
| 7383 @DomName("DOMSelection.toString") |
6921 String toString() native; | 7384 String toString() native; |
6922 } | 7385 } |
6923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6924 // for details. All rights reserved. Use of this source code is governed by a | 7387 // for details. All rights reserved. Use of this source code is governed by a |
6925 // BSD-style license that can be found in the LICENSE file. | 7388 // BSD-style license that can be found in the LICENSE file. |
6926 | 7389 |
6927 | 7390 |
6928 /// @domName DOMSettableTokenList; @docsEditable true | 7391 /// @docsEditable true |
| 7392 @DomName("DOMSettableTokenList") |
6929 class DomSettableTokenList extends DomTokenList native "*DOMSettableTokenList" { | 7393 class DomSettableTokenList extends DomTokenList native "*DOMSettableTokenList" { |
6930 | 7394 |
6931 /// @domName DOMSettableTokenList.value; @docsEditable true | 7395 /// @docsEditable true |
| 7396 @DomName("DOMSettableTokenList.value") |
6932 String value; | 7397 String value; |
6933 } | 7398 } |
6934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6935 // for details. All rights reserved. Use of this source code is governed by a | 7400 // for details. All rights reserved. Use of this source code is governed by a |
6936 // BSD-style license that can be found in the LICENSE file. | 7401 // BSD-style license that can be found in the LICENSE file. |
6937 | 7402 |
6938 | 7403 |
6939 /// @domName DOMStringList; @docsEditable true | 7404 /// @docsEditable true |
| 7405 @DomName("DOMStringList") |
6940 class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
*DOMStringList" { | 7406 class DomStringList implements JavaScriptIndexingBehavior, List<String> native "
*DOMStringList" { |
6941 | 7407 |
6942 /// @domName DOMStringList.length; @docsEditable true | 7408 /// @docsEditable true |
| 7409 @DomName("DOMStringList.length") |
6943 int get length => JS("int", "#.length", this); | 7410 int get length => JS("int", "#.length", this); |
6944 | 7411 |
6945 String operator[](int index) => JS("String", "#[#]", this, index); | 7412 String operator[](int index) => JS("String", "#[#]", this, index); |
6946 | 7413 |
6947 void operator[]=(int index, String value) { | 7414 void operator[]=(int index, String value) { |
6948 throw new UnsupportedError("Cannot assign element of immutable List."); | 7415 throw new UnsupportedError("Cannot assign element of immutable List."); |
6949 } | 7416 } |
6950 // -- start List<String> mixins. | 7417 // -- start List<String> mixins. |
6951 // String is the element type. | 7418 // String is the element type. |
6952 | 7419 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7080 | 7547 |
7081 void insertRange(int start, int rangeLength, [String initialValue]) { | 7548 void insertRange(int start, int rangeLength, [String initialValue]) { |
7082 throw new UnsupportedError("Cannot insertRange on immutable List."); | 7549 throw new UnsupportedError("Cannot insertRange on immutable List."); |
7083 } | 7550 } |
7084 | 7551 |
7085 List<String> getRange(int start, int rangeLength) => | 7552 List<String> getRange(int start, int rangeLength) => |
7086 Lists.getRange(this, start, rangeLength, <String>[]); | 7553 Lists.getRange(this, start, rangeLength, <String>[]); |
7087 | 7554 |
7088 // -- end List<String> mixins. | 7555 // -- end List<String> mixins. |
7089 | 7556 |
7090 /// @domName DOMStringList.contains; @docsEditable true | 7557 /// @docsEditable true |
| 7558 @DomName("DOMStringList.contains") |
7091 bool contains(String string) native; | 7559 bool contains(String string) native; |
7092 | 7560 |
7093 /// @domName DOMStringList.item; @docsEditable true | 7561 /// @docsEditable true |
| 7562 @DomName("DOMStringList.item") |
7094 String item(int index) native; | 7563 String item(int index) native; |
7095 } | 7564 } |
7096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7097 // for details. All rights reserved. Use of this source code is governed by a | 7566 // for details. All rights reserved. Use of this source code is governed by a |
7098 // BSD-style license that can be found in the LICENSE file. | 7567 // BSD-style license that can be found in the LICENSE file. |
7099 | 7568 |
7100 | 7569 |
7101 /// @domName DOMStringMap | 7570 @DomName("DOMStringMap") |
7102 abstract class DomStringMap { | 7571 abstract class DomStringMap { |
7103 } | 7572 } |
7104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7105 // for details. All rights reserved. Use of this source code is governed by a | 7574 // for details. All rights reserved. Use of this source code is governed by a |
7106 // BSD-style license that can be found in the LICENSE file. | 7575 // BSD-style license that can be found in the LICENSE file. |
7107 | 7576 |
7108 | 7577 |
7109 /// @domName DOMTokenList; @docsEditable true | 7578 /// @docsEditable true |
| 7579 @DomName("DOMTokenList") |
7110 class DomTokenList native "*DOMTokenList" { | 7580 class DomTokenList native "*DOMTokenList" { |
7111 | 7581 |
7112 /// @domName DOMTokenList.length; @docsEditable true | 7582 /// @docsEditable true |
| 7583 @DomName("DOMTokenList.length") |
7113 final int length; | 7584 final int length; |
7114 | 7585 |
7115 /// @domName DOMTokenList.contains; @docsEditable true | 7586 /// @docsEditable true |
| 7587 @DomName("DOMTokenList.contains") |
7116 bool contains(String token) native; | 7588 bool contains(String token) native; |
7117 | 7589 |
7118 /// @domName DOMTokenList.item; @docsEditable true | 7590 /// @docsEditable true |
| 7591 @DomName("DOMTokenList.item") |
7119 String item(int index) native; | 7592 String item(int index) native; |
7120 | 7593 |
7121 /// @domName DOMTokenList.toString; @docsEditable true | 7594 /// @docsEditable true |
| 7595 @DomName("DOMTokenList.toString") |
7122 String toString() native; | 7596 String toString() native; |
7123 | 7597 |
7124 /// @domName DOMTokenList.toggle; @docsEditable true | 7598 /// @docsEditable true |
| 7599 @DomName("DOMTokenList.toggle") |
7125 bool toggle(String token, [bool force]) native; | 7600 bool toggle(String token, [bool force]) native; |
7126 } | 7601 } |
7127 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
7128 // for details. All rights reserved. Use of this source code is governed by a | 7603 // for details. All rights reserved. Use of this source code is governed by a |
7129 // BSD-style license that can be found in the LICENSE file. | 7604 // BSD-style license that can be found in the LICENSE file. |
7130 | 7605 |
7131 | 7606 |
7132 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 7607 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
7133 // functionality. | 7608 // functionality. |
7134 class _ChildrenElementList implements List { | 7609 class _ChildrenElementList implements List { |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7952 } else if (JS('bool', '!!#.webkitMatchesSelector', this)) { | 8427 } else if (JS('bool', '!!#.webkitMatchesSelector', this)) { |
7953 return JS('bool', '#.webkitMatchesSelector(#)', this, selectors); | 8428 return JS('bool', '#.webkitMatchesSelector(#)', this, selectors); |
7954 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { | 8429 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { |
7955 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); | 8430 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); |
7956 } else if (JS('bool', '!!#.msMatchesSelector', this)) { | 8431 } else if (JS('bool', '!!#.msMatchesSelector', this)) { |
7957 return JS('bool', '#.msMatchesSelector(#)', this, selectors); | 8432 return JS('bool', '#.msMatchesSelector(#)', this, selectors); |
7958 } | 8433 } |
7959 } | 8434 } |
7960 | 8435 |
7961 | 8436 |
7962 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 8437 /// @docsEditable true |
| 8438 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
7963 ElementEvents get on => | 8439 ElementEvents get on => |
7964 new ElementEvents(this); | 8440 new ElementEvents(this); |
7965 | 8441 |
7966 /// @domName HTMLElement.children; @docsEditable true | 8442 /// @docsEditable true |
7967 @JSName('children') | 8443 @JSName('children') |
| 8444 @DomName("Element.children") |
7968 final HtmlCollection $dom_children; | 8445 final HtmlCollection $dom_children; |
7969 | 8446 |
7970 /// @domName HTMLElement.contentEditable; @docsEditable true | 8447 /// @docsEditable true |
| 8448 @DomName("Element.contentEditable") |
7971 String contentEditable; | 8449 String contentEditable; |
7972 | 8450 |
7973 /// @domName HTMLElement.dir; @docsEditable true | 8451 /// @docsEditable true |
| 8452 @DomName("Element.dir") |
7974 String dir; | 8453 String dir; |
7975 | 8454 |
7976 /// @domName HTMLElement.draggable; @docsEditable true | 8455 /// @docsEditable true |
| 8456 @DomName("Element.draggable") |
7977 bool draggable; | 8457 bool draggable; |
7978 | 8458 |
7979 /// @domName HTMLElement.hidden; @docsEditable true | 8459 /// @docsEditable true |
| 8460 @DomName("Element.hidden") |
7980 bool hidden; | 8461 bool hidden; |
7981 | 8462 |
7982 /// @domName HTMLElement.id; @docsEditable true | 8463 /// @docsEditable true |
| 8464 @DomName("Element.id") |
7983 String id; | 8465 String id; |
7984 | 8466 |
7985 /// @domName HTMLElement.innerHTML; @docsEditable true | 8467 /// @docsEditable true |
7986 @JSName('innerHTML') | 8468 @JSName('innerHTML') |
| 8469 @DomName("Element.innerHTML") |
7987 String innerHtml; | 8470 String innerHtml; |
7988 | 8471 |
7989 /// @domName HTMLElement.isContentEditable; @docsEditable true | 8472 /// @docsEditable true |
| 8473 @DomName("Element.isContentEditable") |
7990 final bool isContentEditable; | 8474 final bool isContentEditable; |
7991 | 8475 |
7992 /// @domName HTMLElement.lang; @docsEditable true | 8476 /// @docsEditable true |
| 8477 @DomName("Element.lang") |
7993 String lang; | 8478 String lang; |
7994 | 8479 |
7995 /// @domName HTMLElement.outerHTML; @docsEditable true | 8480 /// @docsEditable true |
7996 @JSName('outerHTML') | 8481 @JSName('outerHTML') |
| 8482 @DomName("Element.outerHTML") |
7997 final String outerHtml; | 8483 final String outerHtml; |
7998 | 8484 |
7999 /// @domName HTMLElement.spellcheck; @docsEditable true | 8485 /// @docsEditable true |
| 8486 @DomName("Element.spellcheck") |
8000 bool spellcheck; | 8487 bool spellcheck; |
8001 | 8488 |
8002 /// @domName HTMLElement.tabIndex; @docsEditable true | 8489 /// @docsEditable true |
| 8490 @DomName("Element.tabIndex") |
8003 int tabIndex; | 8491 int tabIndex; |
8004 | 8492 |
8005 /// @domName HTMLElement.title; @docsEditable true | 8493 /// @docsEditable true |
| 8494 @DomName("Element.title") |
8006 String title; | 8495 String title; |
8007 | 8496 |
8008 /// @domName HTMLElement.translate; @docsEditable true | 8497 /// @docsEditable true |
| 8498 @DomName("Element.translate") |
8009 bool translate; | 8499 bool translate; |
8010 | 8500 |
8011 /// @domName HTMLElement.webkitdropzone; @docsEditable true | 8501 /// @docsEditable true |
| 8502 @DomName("Element.webkitdropzone") |
8012 String webkitdropzone; | 8503 String webkitdropzone; |
8013 | 8504 |
8014 /// @domName HTMLElement.click; @docsEditable true | 8505 /// @docsEditable true |
| 8506 @DomName("Element.click") |
8015 void click() native; | 8507 void click() native; |
8016 | 8508 |
8017 static const int ALLOW_KEYBOARD_INPUT = 1; | 8509 static const int ALLOW_KEYBOARD_INPUT = 1; |
8018 | 8510 |
8019 /// @domName Element.childElementCount; @docsEditable true | 8511 /// @docsEditable true |
8020 @JSName('childElementCount') | 8512 @JSName('childElementCount') |
| 8513 @DomName("Element.childElementCount") |
8021 final int $dom_childElementCount; | 8514 final int $dom_childElementCount; |
8022 | 8515 |
8023 /// @domName Element.className; @docsEditable true | 8516 /// @docsEditable true |
8024 @JSName('className') | 8517 @JSName('className') |
| 8518 @DomName("Element.className") |
8025 String $dom_className; | 8519 String $dom_className; |
8026 | 8520 |
8027 /// @domName Element.clientHeight; @docsEditable true | 8521 /// @docsEditable true |
| 8522 @DomName("Element.clientHeight") |
8028 final int clientHeight; | 8523 final int clientHeight; |
8029 | 8524 |
8030 /// @domName Element.clientLeft; @docsEditable true | 8525 /// @docsEditable true |
| 8526 @DomName("Element.clientLeft") |
8031 final int clientLeft; | 8527 final int clientLeft; |
8032 | 8528 |
8033 /// @domName Element.clientTop; @docsEditable true | 8529 /// @docsEditable true |
| 8530 @DomName("Element.clientTop") |
8034 final int clientTop; | 8531 final int clientTop; |
8035 | 8532 |
8036 /// @domName Element.clientWidth; @docsEditable true | 8533 /// @docsEditable true |
| 8534 @DomName("Element.clientWidth") |
8037 final int clientWidth; | 8535 final int clientWidth; |
8038 | 8536 |
8039 /// @domName Element.dataset; @docsEditable true | 8537 /// @docsEditable true |
| 8538 @DomName("Element.dataset") |
8040 final Map<String, String> dataset; | 8539 final Map<String, String> dataset; |
8041 | 8540 |
8042 /// @domName Element.firstElementChild; @docsEditable true | 8541 /// @docsEditable true |
8043 @JSName('firstElementChild') | 8542 @JSName('firstElementChild') |
| 8543 @DomName("Element.firstElementChild") |
8044 final Element $dom_firstElementChild; | 8544 final Element $dom_firstElementChild; |
8045 | 8545 |
8046 /// @domName Element.lastElementChild; @docsEditable true | 8546 /// @docsEditable true |
8047 @JSName('lastElementChild') | 8547 @JSName('lastElementChild') |
| 8548 @DomName("Element.lastElementChild") |
8048 final Element $dom_lastElementChild; | 8549 final Element $dom_lastElementChild; |
8049 | 8550 |
8050 /// @domName Element.nextElementSibling; @docsEditable true | 8551 /// @docsEditable true |
| 8552 @DomName("Element.nextElementSibling") |
8051 final Element nextElementSibling; | 8553 final Element nextElementSibling; |
8052 | 8554 |
8053 /// @domName Element.offsetHeight; @docsEditable true | 8555 /// @docsEditable true |
| 8556 @DomName("Element.offsetHeight") |
8054 final int offsetHeight; | 8557 final int offsetHeight; |
8055 | 8558 |
8056 /// @domName Element.offsetLeft; @docsEditable true | 8559 /// @docsEditable true |
| 8560 @DomName("Element.offsetLeft") |
8057 final int offsetLeft; | 8561 final int offsetLeft; |
8058 | 8562 |
8059 /// @domName Element.offsetParent; @docsEditable true | 8563 /// @docsEditable true |
| 8564 @DomName("Element.offsetParent") |
8060 final Element offsetParent; | 8565 final Element offsetParent; |
8061 | 8566 |
8062 /// @domName Element.offsetTop; @docsEditable true | 8567 /// @docsEditable true |
| 8568 @DomName("Element.offsetTop") |
8063 final int offsetTop; | 8569 final int offsetTop; |
8064 | 8570 |
8065 /// @domName Element.offsetWidth; @docsEditable true | 8571 /// @docsEditable true |
| 8572 @DomName("Element.offsetWidth") |
8066 final int offsetWidth; | 8573 final int offsetWidth; |
8067 | 8574 |
8068 /// @domName Element.previousElementSibling; @docsEditable true | 8575 /// @docsEditable true |
| 8576 @DomName("Element.previousElementSibling") |
8069 final Element previousElementSibling; | 8577 final Element previousElementSibling; |
8070 | 8578 |
8071 /// @domName Element.scrollHeight; @docsEditable true | 8579 /// @docsEditable true |
| 8580 @DomName("Element.scrollHeight") |
8072 final int scrollHeight; | 8581 final int scrollHeight; |
8073 | 8582 |
8074 /// @domName Element.scrollLeft; @docsEditable true | 8583 /// @docsEditable true |
| 8584 @DomName("Element.scrollLeft") |
8075 int scrollLeft; | 8585 int scrollLeft; |
8076 | 8586 |
8077 /// @domName Element.scrollTop; @docsEditable true | 8587 /// @docsEditable true |
| 8588 @DomName("Element.scrollTop") |
8078 int scrollTop; | 8589 int scrollTop; |
8079 | 8590 |
8080 /// @domName Element.scrollWidth; @docsEditable true | 8591 /// @docsEditable true |
| 8592 @DomName("Element.scrollWidth") |
8081 final int scrollWidth; | 8593 final int scrollWidth; |
8082 | 8594 |
8083 /// @domName Element.style; @docsEditable true | 8595 /// @docsEditable true |
| 8596 @DomName("Element.style") |
8084 final CssStyleDeclaration style; | 8597 final CssStyleDeclaration style; |
8085 | 8598 |
8086 /// @domName Element.tagName; @docsEditable true | 8599 /// @docsEditable true |
| 8600 @DomName("Element.tagName") |
8087 final String tagName; | 8601 final String tagName; |
8088 | 8602 |
8089 /// @domName Element.webkitPseudo; @docsEditable true | 8603 /// @docsEditable true |
| 8604 @DomName("Element.webkitPseudo") |
8090 String webkitPseudo; | 8605 String webkitPseudo; |
8091 | 8606 |
8092 /// @domName Element.webkitShadowRoot; @docsEditable true | 8607 /// @docsEditable true |
| 8608 @DomName("Element.webkitShadowRoot") |
8093 final ShadowRoot webkitShadowRoot; | 8609 final ShadowRoot webkitShadowRoot; |
8094 | 8610 |
8095 /// @domName Element.blur; @docsEditable true | 8611 /// @docsEditable true |
| 8612 @DomName("Element.blur") |
8096 void blur() native; | 8613 void blur() native; |
8097 | 8614 |
8098 /// @domName Element.focus; @docsEditable true | 8615 /// @docsEditable true |
| 8616 @DomName("Element.focus") |
8099 void focus() native; | 8617 void focus() native; |
8100 | 8618 |
8101 /// @domName Element.getAttribute; @docsEditable true | 8619 /// @docsEditable true |
8102 @JSName('getAttribute') | 8620 @JSName('getAttribute') |
| 8621 @DomName("Element.getAttribute") |
8103 String $dom_getAttribute(String name) native; | 8622 String $dom_getAttribute(String name) native; |
8104 | 8623 |
8105 /// @domName Element.getAttributeNS; @docsEditable true | 8624 /// @docsEditable true |
8106 @JSName('getAttributeNS') | 8625 @JSName('getAttributeNS') |
| 8626 @DomName("Element.getAttributeNS") |
8107 String $dom_getAttributeNS(String namespaceURI, String localName) native; | 8627 String $dom_getAttributeNS(String namespaceURI, String localName) native; |
8108 | 8628 |
8109 /// @domName Element.getBoundingClientRect; @docsEditable true | 8629 /// @docsEditable true |
| 8630 @DomName("Element.getBoundingClientRect") |
8110 ClientRect getBoundingClientRect() native; | 8631 ClientRect getBoundingClientRect() native; |
8111 | 8632 |
8112 /// @domName Element.getClientRects; @docsEditable true | 8633 /// @docsEditable true |
| 8634 @DomName("Element.getClientRects") |
8113 @Returns('_ClientRectList') @Creates('_ClientRectList') | 8635 @Returns('_ClientRectList') @Creates('_ClientRectList') |
8114 List<ClientRect> getClientRects() native; | 8636 List<ClientRect> getClientRects() native; |
8115 | 8637 |
8116 /// @domName Element.getElementsByClassName; @docsEditable true | 8638 /// @docsEditable true |
8117 @JSName('getElementsByClassName') | 8639 @JSName('getElementsByClassName') |
| 8640 @DomName("Element.getElementsByClassName") |
8118 @Returns('NodeList') @Creates('NodeList') | 8641 @Returns('NodeList') @Creates('NodeList') |
8119 List<Node> $dom_getElementsByClassName(String name) native; | 8642 List<Node> $dom_getElementsByClassName(String name) native; |
8120 | 8643 |
8121 /// @domName Element.getElementsByTagName; @docsEditable true | 8644 /// @docsEditable true |
8122 @JSName('getElementsByTagName') | 8645 @JSName('getElementsByTagName') |
| 8646 @DomName("Element.getElementsByTagName") |
8123 @Returns('NodeList') @Creates('NodeList') | 8647 @Returns('NodeList') @Creates('NodeList') |
8124 List<Node> $dom_getElementsByTagName(String name) native; | 8648 List<Node> $dom_getElementsByTagName(String name) native; |
8125 | 8649 |
8126 /// @domName Element.hasAttribute; @docsEditable true | 8650 /// @docsEditable true |
8127 @JSName('hasAttribute') | 8651 @JSName('hasAttribute') |
| 8652 @DomName("Element.hasAttribute") |
8128 bool $dom_hasAttribute(String name) native; | 8653 bool $dom_hasAttribute(String name) native; |
8129 | 8654 |
8130 /// @domName Element.hasAttributeNS; @docsEditable true | 8655 /// @docsEditable true |
8131 @JSName('hasAttributeNS') | 8656 @JSName('hasAttributeNS') |
| 8657 @DomName("Element.hasAttributeNS") |
8132 bool $dom_hasAttributeNS(String namespaceURI, String localName) native; | 8658 bool $dom_hasAttributeNS(String namespaceURI, String localName) native; |
8133 | 8659 |
8134 /// @domName Element.querySelector; @docsEditable true | 8660 /// @docsEditable true |
8135 @JSName('querySelector') | 8661 @JSName('querySelector') |
| 8662 @DomName("Element.querySelector") |
8136 Element $dom_querySelector(String selectors) native; | 8663 Element $dom_querySelector(String selectors) native; |
8137 | 8664 |
8138 /// @domName Element.querySelectorAll; @docsEditable true | 8665 /// @docsEditable true |
8139 @JSName('querySelectorAll') | 8666 @JSName('querySelectorAll') |
| 8667 @DomName("Element.querySelectorAll") |
8140 @Returns('NodeList') @Creates('NodeList') | 8668 @Returns('NodeList') @Creates('NodeList') |
8141 List<Node> $dom_querySelectorAll(String selectors) native; | 8669 List<Node> $dom_querySelectorAll(String selectors) native; |
8142 | 8670 |
8143 /// @domName Element.removeAttribute; @docsEditable true | 8671 /// @docsEditable true |
8144 @JSName('removeAttribute') | 8672 @JSName('removeAttribute') |
| 8673 @DomName("Element.removeAttribute") |
8145 void $dom_removeAttribute(String name) native; | 8674 void $dom_removeAttribute(String name) native; |
8146 | 8675 |
8147 /// @domName Element.removeAttributeNS; @docsEditable true | 8676 /// @docsEditable true |
8148 @JSName('removeAttributeNS') | 8677 @JSName('removeAttributeNS') |
| 8678 @DomName("Element.removeAttributeNS") |
8149 void $dom_removeAttributeNS(String namespaceURI, String localName) native; | 8679 void $dom_removeAttributeNS(String namespaceURI, String localName) native; |
8150 | 8680 |
8151 /// @domName Element.scrollByLines; @docsEditable true | 8681 /// @docsEditable true |
| 8682 @DomName("Element.scrollByLines") |
8152 void scrollByLines(int lines) native; | 8683 void scrollByLines(int lines) native; |
8153 | 8684 |
8154 /// @domName Element.scrollByPages; @docsEditable true | 8685 /// @docsEditable true |
| 8686 @DomName("Element.scrollByPages") |
8155 void scrollByPages(int pages) native; | 8687 void scrollByPages(int pages) native; |
8156 | 8688 |
8157 /// @domName Element.scrollIntoViewIfNeeded; @docsEditable true | 8689 /// @docsEditable true |
8158 @JSName('scrollIntoViewIfNeeded') | 8690 @JSName('scrollIntoViewIfNeeded') |
| 8691 @DomName("Element.scrollIntoViewIfNeeded") |
8159 void scrollIntoView([bool centerIfNeeded]) native; | 8692 void scrollIntoView([bool centerIfNeeded]) native; |
8160 | 8693 |
8161 /// @domName Element.setAttribute; @docsEditable true | 8694 /// @docsEditable true |
8162 @JSName('setAttribute') | 8695 @JSName('setAttribute') |
| 8696 @DomName("Element.setAttribute") |
8163 void $dom_setAttribute(String name, String value) native; | 8697 void $dom_setAttribute(String name, String value) native; |
8164 | 8698 |
8165 /// @domName Element.setAttributeNS; @docsEditable true | 8699 /// @docsEditable true |
8166 @JSName('setAttributeNS') | 8700 @JSName('setAttributeNS') |
| 8701 @DomName("Element.setAttributeNS") |
8167 void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String val
ue) native; | 8702 void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String val
ue) native; |
8168 | 8703 |
8169 /// @domName Element.webkitCreateShadowRoot; @docsEditable true | 8704 /// @docsEditable true |
8170 @JSName('webkitCreateShadowRoot') | 8705 @JSName('webkitCreateShadowRoot') |
8171 @SupportedBrowser(SupportedBrowser.CHROME, '25') @Experimental() | 8706 @DomName("Element.webkitCreateShadowRoot") @SupportedBrowser(SupportedBrowser.
CHROME, '25') @Experimental() |
8172 ShadowRoot createShadowRoot() native; | 8707 ShadowRoot createShadowRoot() native; |
8173 | 8708 |
8174 /// @domName Element.webkitRequestFullScreen; @docsEditable true | 8709 /// @docsEditable true |
| 8710 @DomName("Element.webkitRequestFullScreen") |
8175 void webkitRequestFullScreen(int flags) native; | 8711 void webkitRequestFullScreen(int flags) native; |
8176 | 8712 |
8177 /// @domName Element.webkitRequestFullscreen; @docsEditable true | 8713 /// @docsEditable true |
| 8714 @DomName("Element.webkitRequestFullscreen") |
8178 void webkitRequestFullscreen() native; | 8715 void webkitRequestFullscreen() native; |
8179 | 8716 |
8180 /// @domName Element.webkitRequestPointerLock; @docsEditable true | 8717 /// @docsEditable true |
| 8718 @DomName("Element.webkitRequestPointerLock") |
8181 void webkitRequestPointerLock() native; | 8719 void webkitRequestPointerLock() native; |
8182 | 8720 |
8183 } | 8721 } |
8184 | 8722 |
8185 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); | 8723 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
8186 class _ElementFactoryProvider { | 8724 class _ElementFactoryProvider { |
8187 static final _CUSTOM_PARENT_TAG_MAP = const { | 8725 static final _CUSTOM_PARENT_TAG_MAP = const { |
8188 'body' : 'html', | 8726 'body' : 'html', |
8189 'head' : 'html', | 8727 'head' : 'html', |
8190 'caption' : 'table', | 8728 'caption' : 'table', |
8191 'td': 'tr', | 8729 'td': 'tr', |
8192 'colgroup': 'table', | 8730 'colgroup': 'table', |
8193 'col' : 'colgroup', | 8731 'col' : 'colgroup', |
8194 'tr' : 'tbody', | 8732 'tr' : 'tbody', |
8195 'tbody' : 'table', | 8733 'tbody' : 'table', |
8196 'tfoot' : 'table', | 8734 'tfoot' : 'table', |
8197 'thead' : 'table', | 8735 'thead' : 'table', |
8198 'track' : 'audio', | 8736 'track' : 'audio', |
8199 }; | 8737 }; |
8200 | 8738 |
8201 /** @domName Document.createElement */ | 8739 @DomName("Document.createElement") |
8202 static Element createElement_html(String html) { | 8740 static Element createElement_html(String html) { |
8203 // TODO(jacobr): this method can be made more robust and performant. | 8741 // TODO(jacobr): this method can be made more robust and performant. |
8204 // 1) Cache the dummy parent elements required to use innerHTML rather than | 8742 // 1) Cache the dummy parent elements required to use innerHTML rather than |
8205 // creating them every call. | 8743 // creating them every call. |
8206 // 2) Verify that the html does not contain leading or trailing text nodes. | 8744 // 2) Verify that the html does not contain leading or trailing text nodes. |
8207 // 3) Verify that the html does not contain both <head> and <body> tags. | 8745 // 3) Verify that the html does not contain both <head> and <body> tags. |
8208 // 4) Detatch the created element from its dummy parent. | 8746 // 4) Detatch the created element from its dummy parent. |
8209 String parentTag = 'div'; | 8747 String parentTag = 'div'; |
8210 String tag; | 8748 String tag; |
8211 final match = _START_TAG_REGEXP.firstMatch(html); | 8749 final match = _START_TAG_REGEXP.firstMatch(html); |
(...skipping 15 matching lines...) Expand all Loading... |
8227 // only contains a head or body element. | 8765 // only contains a head or body element. |
8228 element = temp.children[tag == 'head' ? 0 : 1]; | 8766 element = temp.children[tag == 'head' ? 0 : 1]; |
8229 } else { | 8767 } else { |
8230 throw new ArgumentError('HTML had ${temp.children.length} ' | 8768 throw new ArgumentError('HTML had ${temp.children.length} ' |
8231 'top level elements but 1 expected'); | 8769 'top level elements but 1 expected'); |
8232 } | 8770 } |
8233 element.remove(); | 8771 element.remove(); |
8234 return element; | 8772 return element; |
8235 } | 8773 } |
8236 | 8774 |
8237 /** @domName Document.createElement */ | 8775 @DomName("Document.createElement") |
8238 // Optimization to improve performance until the dart2js compiler inlines this | 8776 // Optimization to improve performance until the dart2js compiler inlines this |
8239 // method. | 8777 // method. |
8240 static dynamic createElement_tag(String tag) => | 8778 static dynamic createElement_tag(String tag) => |
8241 JS('Element', 'document.createElement(#)', tag); | 8779 JS('Element', 'document.createElement(#)', tag); |
8242 } | 8780 } |
8243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8244 // for details. All rights reserved. Use of this source code is governed by a | 8782 // for details. All rights reserved. Use of this source code is governed by a |
8245 // BSD-style license that can be found in the LICENSE file. | 8783 // BSD-style license that can be found in the LICENSE file. |
8246 | 8784 |
8247 | 8785 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8400 // Firefox | 8938 // Firefox |
8401 return this['DOMMouseScroll']; | 8939 return this['DOMMouseScroll']; |
8402 } | 8940 } |
8403 } | 8941 } |
8404 } | 8942 } |
8405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8943 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8406 // for details. All rights reserved. Use of this source code is governed by a | 8944 // for details. All rights reserved. Use of this source code is governed by a |
8407 // BSD-style license that can be found in the LICENSE file. | 8945 // BSD-style license that can be found in the LICENSE file. |
8408 | 8946 |
8409 | 8947 |
8410 /// @domName ElementTraversal | 8948 @DomName("ElementTraversal") |
8411 abstract class ElementTraversal { | 8949 abstract class ElementTraversal { |
8412 | 8950 |
8413 int $dom_childElementCount; | 8951 int $dom_childElementCount; |
8414 | 8952 |
8415 Element $dom_firstElementChild; | 8953 Element $dom_firstElementChild; |
8416 | 8954 |
8417 Element $dom_lastElementChild; | 8955 Element $dom_lastElementChild; |
8418 | 8956 |
8419 Element nextElementSibling; | 8957 Element nextElementSibling; |
8420 | 8958 |
8421 Element previousElementSibling; | 8959 Element previousElementSibling; |
8422 } | 8960 } |
8423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8424 // for details. All rights reserved. Use of this source code is governed by a | 8962 // for details. All rights reserved. Use of this source code is governed by a |
8425 // BSD-style license that can be found in the LICENSE file. | 8963 // BSD-style license that can be found in the LICENSE file. |
8426 | 8964 |
8427 | 8965 |
8428 /// @domName HTMLEmbedElement; @docsEditable true | 8966 /// @docsEditable true |
| 8967 @DomName("HTMLEmbedElement") |
8429 @SupportedBrowser(SupportedBrowser.CHROME) | 8968 @SupportedBrowser(SupportedBrowser.CHROME) |
8430 @SupportedBrowser(SupportedBrowser.IE) | 8969 @SupportedBrowser(SupportedBrowser.IE) |
8431 @SupportedBrowser(SupportedBrowser.SAFARI) | 8970 @SupportedBrowser(SupportedBrowser.SAFARI) |
8432 class EmbedElement extends Element native "*HTMLEmbedElement" { | 8971 class EmbedElement extends Element native "*HTMLEmbedElement" { |
8433 | 8972 |
8434 ///@docsEditable true | 8973 /// @docsEditable true |
8435 factory EmbedElement() => document.$dom_createElement("embed"); | 8974 factory EmbedElement() => document.$dom_createElement("embed"); |
8436 | 8975 |
8437 /// Checks if this type is supported on the current platform. | 8976 /// Checks if this type is supported on the current platform. |
8438 static bool get supported => Element.isTagSupported('embed'); | 8977 static bool get supported => Element.isTagSupported('embed'); |
8439 | 8978 |
8440 /// @domName HTMLEmbedElement.align; @docsEditable true | 8979 /// @docsEditable true |
| 8980 @DomName("HTMLEmbedElement.align") |
8441 String align; | 8981 String align; |
8442 | 8982 |
8443 /// @domName HTMLEmbedElement.height; @docsEditable true | 8983 /// @docsEditable true |
| 8984 @DomName("HTMLEmbedElement.height") |
8444 String height; | 8985 String height; |
8445 | 8986 |
8446 /// @domName HTMLEmbedElement.name; @docsEditable true | 8987 /// @docsEditable true |
| 8988 @DomName("HTMLEmbedElement.name") |
8447 String name; | 8989 String name; |
8448 | 8990 |
8449 /// @domName HTMLEmbedElement.src; @docsEditable true | 8991 /// @docsEditable true |
| 8992 @DomName("HTMLEmbedElement.src") |
8450 String src; | 8993 String src; |
8451 | 8994 |
8452 /// @domName HTMLEmbedElement.type; @docsEditable true | 8995 /// @docsEditable true |
| 8996 @DomName("HTMLEmbedElement.type") |
8453 String type; | 8997 String type; |
8454 | 8998 |
8455 /// @domName HTMLEmbedElement.width; @docsEditable true | 8999 /// @docsEditable true |
| 9000 @DomName("HTMLEmbedElement.width") |
8456 String width; | 9001 String width; |
8457 } | 9002 } |
8458 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8459 // for details. All rights reserved. Use of this source code is governed by a | 9004 // for details. All rights reserved. Use of this source code is governed by a |
8460 // BSD-style license that can be found in the LICENSE file. | 9005 // BSD-style license that can be found in the LICENSE file. |
8461 | 9006 |
8462 | 9007 |
8463 /// @domName EntityReference; @docsEditable true | 9008 /// @docsEditable true |
| 9009 @DomName("EntityReference") |
8464 class EntityReference extends Node native "*EntityReference" { | 9010 class EntityReference extends Node native "*EntityReference" { |
8465 } | 9011 } |
8466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9012 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8467 // for details. All rights reserved. Use of this source code is governed by a | 9013 // for details. All rights reserved. Use of this source code is governed by a |
8468 // BSD-style license that can be found in the LICENSE file. | 9014 // BSD-style license that can be found in the LICENSE file. |
8469 | 9015 |
8470 // WARNING: Do not edit - generated code. | 9016 // WARNING: Do not edit - generated code. |
8471 | 9017 |
8472 | 9018 |
8473 typedef void EntriesCallback(List<Entry> entries); | 9019 typedef void EntriesCallback(List<Entry> entries); |
8474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8475 // for details. All rights reserved. Use of this source code is governed by a | 9021 // for details. All rights reserved. Use of this source code is governed by a |
8476 // BSD-style license that can be found in the LICENSE file. | 9022 // BSD-style license that can be found in the LICENSE file. |
8477 | 9023 |
8478 | 9024 |
8479 /// @domName Entry; @docsEditable true | 9025 /// @docsEditable true |
| 9026 @DomName("Entry") |
8480 class Entry native "*Entry" { | 9027 class Entry native "*Entry" { |
8481 | 9028 |
8482 /// @domName Entry.filesystem; @docsEditable true | 9029 /// @docsEditable true |
| 9030 @DomName("Entry.filesystem") |
8483 final FileSystem filesystem; | 9031 final FileSystem filesystem; |
8484 | 9032 |
8485 /// @domName Entry.fullPath; @docsEditable true | 9033 /// @docsEditable true |
| 9034 @DomName("Entry.fullPath") |
8486 final String fullPath; | 9035 final String fullPath; |
8487 | 9036 |
8488 /// @domName Entry.isDirectory; @docsEditable true | 9037 /// @docsEditable true |
| 9038 @DomName("Entry.isDirectory") |
8489 final bool isDirectory; | 9039 final bool isDirectory; |
8490 | 9040 |
8491 /// @domName Entry.isFile; @docsEditable true | 9041 /// @docsEditable true |
| 9042 @DomName("Entry.isFile") |
8492 final bool isFile; | 9043 final bool isFile; |
8493 | 9044 |
8494 /// @domName Entry.name; @docsEditable true | 9045 /// @docsEditable true |
| 9046 @DomName("Entry.name") |
8495 final String name; | 9047 final String name; |
8496 | 9048 |
8497 /// @domName Entry.copyTo; @docsEditable true | 9049 /// @docsEditable true |
| 9050 @DomName("Entry.copyTo") |
8498 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) native; | 9051 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) native; |
8499 | 9052 |
8500 /// @domName Entry.getMetadata; @docsEditable true | 9053 /// @docsEditable true |
| 9054 @DomName("Entry.getMetadata") |
8501 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k]) native; | 9055 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k]) native; |
8502 | 9056 |
8503 /// @domName Entry.getParent; @docsEditable true | 9057 /// @docsEditable true |
| 9058 @DomName("Entry.getParent") |
8504 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n
ative; | 9059 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n
ative; |
8505 | 9060 |
8506 /// @domName Entry.moveTo; @docsEditable true | 9061 /// @docsEditable true |
| 9062 @DomName("Entry.moveTo") |
8507 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) native; | 9063 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) native; |
8508 | 9064 |
8509 /// @domName Entry.remove; @docsEditable true | 9065 /// @docsEditable true |
| 9066 @DomName("Entry.remove") |
8510 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ
e; | 9067 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ
e; |
8511 | 9068 |
8512 /// @domName Entry.toURL; @docsEditable true | 9069 /// @docsEditable true |
8513 @JSName('toURL') | 9070 @JSName('toURL') |
| 9071 @DomName("Entry.toURL") |
8514 String toUrl() native; | 9072 String toUrl() native; |
8515 } | 9073 } |
8516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8517 // for details. All rights reserved. Use of this source code is governed by a | 9075 // for details. All rights reserved. Use of this source code is governed by a |
8518 // BSD-style license that can be found in the LICENSE file. | 9076 // BSD-style license that can be found in the LICENSE file. |
8519 | 9077 |
8520 // WARNING: Do not edit - generated code. | 9078 // WARNING: Do not edit - generated code. |
8521 | 9079 |
8522 | 9080 |
8523 typedef void EntryCallback(Entry entry); | 9081 typedef void EntryCallback(Entry entry); |
8524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9082 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8525 // for details. All rights reserved. Use of this source code is governed by a | 9083 // for details. All rights reserved. Use of this source code is governed by a |
8526 // BSD-style license that can be found in the LICENSE file. | 9084 // BSD-style license that can be found in the LICENSE file. |
8527 | 9085 |
8528 | 9086 |
8529 /// @domName EntrySync; @docsEditable true | 9087 /// @docsEditable true |
| 9088 @DomName("EntrySync") |
8530 class EntrySync native "*EntrySync" { | 9089 class EntrySync native "*EntrySync" { |
8531 | 9090 |
8532 /// @domName EntrySync.filesystem; @docsEditable true | 9091 /// @docsEditable true |
| 9092 @DomName("EntrySync.filesystem") |
8533 final FileSystemSync filesystem; | 9093 final FileSystemSync filesystem; |
8534 | 9094 |
8535 /// @domName EntrySync.fullPath; @docsEditable true | 9095 /// @docsEditable true |
| 9096 @DomName("EntrySync.fullPath") |
8536 final String fullPath; | 9097 final String fullPath; |
8537 | 9098 |
8538 /// @domName EntrySync.isDirectory; @docsEditable true | 9099 /// @docsEditable true |
| 9100 @DomName("EntrySync.isDirectory") |
8539 final bool isDirectory; | 9101 final bool isDirectory; |
8540 | 9102 |
8541 /// @domName EntrySync.isFile; @docsEditable true | 9103 /// @docsEditable true |
| 9104 @DomName("EntrySync.isFile") |
8542 final bool isFile; | 9105 final bool isFile; |
8543 | 9106 |
8544 /// @domName EntrySync.name; @docsEditable true | 9107 /// @docsEditable true |
| 9108 @DomName("EntrySync.name") |
8545 final String name; | 9109 final String name; |
8546 | 9110 |
8547 /// @domName EntrySync.copyTo; @docsEditable true | 9111 /// @docsEditable true |
| 9112 @DomName("EntrySync.copyTo") |
8548 EntrySync copyTo(DirectoryEntrySync parent, String name) native; | 9113 EntrySync copyTo(DirectoryEntrySync parent, String name) native; |
8549 | 9114 |
8550 /// @domName EntrySync.getMetadata; @docsEditable true | 9115 /// @docsEditable true |
| 9116 @DomName("EntrySync.getMetadata") |
8551 Metadata getMetadata() native; | 9117 Metadata getMetadata() native; |
8552 | 9118 |
8553 /// @domName EntrySync.getParent; @docsEditable true | 9119 /// @docsEditable true |
| 9120 @DomName("EntrySync.getParent") |
8554 EntrySync getParent() native; | 9121 EntrySync getParent() native; |
8555 | 9122 |
8556 /// @domName EntrySync.moveTo; @docsEditable true | 9123 /// @docsEditable true |
| 9124 @DomName("EntrySync.moveTo") |
8557 EntrySync moveTo(DirectoryEntrySync parent, String name) native; | 9125 EntrySync moveTo(DirectoryEntrySync parent, String name) native; |
8558 | 9126 |
8559 /// @domName EntrySync.remove; @docsEditable true | 9127 /// @docsEditable true |
| 9128 @DomName("EntrySync.remove") |
8560 void remove() native; | 9129 void remove() native; |
8561 | 9130 |
8562 /// @domName EntrySync.toURL; @docsEditable true | 9131 /// @docsEditable true |
8563 @JSName('toURL') | 9132 @JSName('toURL') |
| 9133 @DomName("EntrySync.toURL") |
8564 String toUrl() native; | 9134 String toUrl() native; |
8565 } | 9135 } |
8566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8567 // for details. All rights reserved. Use of this source code is governed by a | 9137 // for details. All rights reserved. Use of this source code is governed by a |
8568 // BSD-style license that can be found in the LICENSE file. | 9138 // BSD-style license that can be found in the LICENSE file. |
8569 | 9139 |
8570 // WARNING: Do not edit - generated code. | 9140 // WARNING: Do not edit - generated code. |
8571 | 9141 |
8572 | 9142 |
8573 typedef void ErrorCallback(FileError error); | 9143 typedef void ErrorCallback(FileError error); |
8574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8575 // for details. All rights reserved. Use of this source code is governed by a | 9145 // for details. All rights reserved. Use of this source code is governed by a |
8576 // BSD-style license that can be found in the LICENSE file. | 9146 // BSD-style license that can be found in the LICENSE file. |
8577 | 9147 |
8578 | 9148 |
8579 /// @domName ErrorEvent; @docsEditable true | 9149 /// @docsEditable true |
| 9150 @DomName("ErrorEvent") |
8580 class ErrorEvent extends Event native "*ErrorEvent" { | 9151 class ErrorEvent extends Event native "*ErrorEvent" { |
8581 | 9152 |
8582 /// @domName ErrorEvent.filename; @docsEditable true | 9153 /// @docsEditable true |
| 9154 @DomName("ErrorEvent.filename") |
8583 final String filename; | 9155 final String filename; |
8584 | 9156 |
8585 /// @domName ErrorEvent.lineno; @docsEditable true | 9157 /// @docsEditable true |
| 9158 @DomName("ErrorEvent.lineno") |
8586 final int lineno; | 9159 final int lineno; |
8587 | 9160 |
8588 /// @domName ErrorEvent.message; @docsEditable true | 9161 /// @docsEditable true |
| 9162 @DomName("ErrorEvent.message") |
8589 final String message; | 9163 final String message; |
8590 } | 9164 } |
8591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8592 // for details. All rights reserved. Use of this source code is governed by a | 9166 // for details. All rights reserved. Use of this source code is governed by a |
8593 // BSD-style license that can be found in the LICENSE file. | 9167 // BSD-style license that can be found in the LICENSE file. |
8594 | 9168 |
8595 // WARNING: Do not edit - generated code. | 9169 // WARNING: Do not edit - generated code. |
8596 | 9170 |
8597 | 9171 |
8598 /// @domName Event | 9172 @DomName("Event") |
8599 class Event native "*Event" { | 9173 class Event native "*Event" { |
8600 // In JS, canBubble and cancelable are technically required parameters to | 9174 // In JS, canBubble and cancelable are technically required parameters to |
8601 // init*Event. In practice, though, if they aren't provided they simply | 9175 // init*Event. In practice, though, if they aren't provided they simply |
8602 // default to false (since that's Boolean(undefined)). | 9176 // default to false (since that's Boolean(undefined)). |
8603 // | 9177 // |
8604 // Contrary to JS, we default canBubble and cancelable to true, since that's | 9178 // Contrary to JS, we default canBubble and cancelable to true, since that's |
8605 // what people want most of the time anyway. | 9179 // what people want most of the time anyway. |
8606 factory Event(String type, [bool canBubble = true, bool cancelable = true]) => | 9180 factory Event(String type, [bool canBubble = true, bool cancelable = true]) => |
8607 _EventFactoryProvider.createEvent(type, canBubble, cancelable); | 9181 _EventFactoryProvider.createEvent(type, canBubble, cancelable); |
8608 | 9182 |
(...skipping 30 matching lines...) Expand all Loading... |
8639 static const int MOUSEOUT = 8; | 9213 static const int MOUSEOUT = 8; |
8640 | 9214 |
8641 static const int MOUSEOVER = 4; | 9215 static const int MOUSEOVER = 4; |
8642 | 9216 |
8643 static const int MOUSEUP = 2; | 9217 static const int MOUSEUP = 2; |
8644 | 9218 |
8645 static const int NONE = 0; | 9219 static const int NONE = 0; |
8646 | 9220 |
8647 static const int SELECT = 16384; | 9221 static const int SELECT = 16384; |
8648 | 9222 |
8649 /// @domName Event.bubbles; @docsEditable true | 9223 /// @docsEditable true |
| 9224 @DomName("Event.bubbles") |
8650 final bool bubbles; | 9225 final bool bubbles; |
8651 | 9226 |
8652 /// @domName Event.cancelBubble; @docsEditable true | 9227 /// @docsEditable true |
| 9228 @DomName("Event.cancelBubble") |
8653 bool cancelBubble; | 9229 bool cancelBubble; |
8654 | 9230 |
8655 /// @domName Event.cancelable; @docsEditable true | 9231 /// @docsEditable true |
| 9232 @DomName("Event.cancelable") |
8656 final bool cancelable; | 9233 final bool cancelable; |
8657 | 9234 |
8658 /// @domName Event.clipboardData; @docsEditable true | 9235 /// @docsEditable true |
| 9236 @DomName("Event.clipboardData") |
8659 final Clipboard clipboardData; | 9237 final Clipboard clipboardData; |
8660 | 9238 |
8661 /// @domName Event.currentTarget; @docsEditable true | 9239 /// @docsEditable true |
8662 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren
tTarget); | 9240 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._curren
tTarget); |
8663 @JSName('currentTarget') | 9241 @JSName('currentTarget') |
8664 @Creates('Null') @Returns('EventTarget|=Object') | 9242 @DomName("Event.currentTarget") @Creates('Null') @Returns('EventTarget|=Object
') |
8665 final dynamic _currentTarget; | 9243 final dynamic _currentTarget; |
8666 | 9244 |
8667 /// @domName Event.defaultPrevented; @docsEditable true | 9245 /// @docsEditable true |
| 9246 @DomName("Event.defaultPrevented") |
8668 final bool defaultPrevented; | 9247 final bool defaultPrevented; |
8669 | 9248 |
8670 /// @domName Event.eventPhase; @docsEditable true | 9249 /// @docsEditable true |
| 9250 @DomName("Event.eventPhase") |
8671 final int eventPhase; | 9251 final int eventPhase; |
8672 | 9252 |
8673 /// @domName Event.returnValue; @docsEditable true | 9253 /// @docsEditable true |
| 9254 @DomName("Event.returnValue") |
8674 bool returnValue; | 9255 bool returnValue; |
8675 | 9256 |
8676 /// @domName Event.target; @docsEditable true | 9257 /// @docsEditable true |
8677 EventTarget get target => _convertNativeToDart_EventTarget(this._target); | 9258 EventTarget get target => _convertNativeToDart_EventTarget(this._target); |
8678 @JSName('target') | 9259 @JSName('target') |
8679 @Creates('Node') @Returns('EventTarget|=Object') | 9260 @DomName("Event.target") @Creates('Node') @Returns('EventTarget|=Object') |
8680 final dynamic _target; | 9261 final dynamic _target; |
8681 | 9262 |
8682 /// @domName Event.timeStamp; @docsEditable true | 9263 /// @docsEditable true |
| 9264 @DomName("Event.timeStamp") |
8683 final int timeStamp; | 9265 final int timeStamp; |
8684 | 9266 |
8685 /// @domName Event.type; @docsEditable true | 9267 /// @docsEditable true |
| 9268 @DomName("Event.type") |
8686 final String type; | 9269 final String type; |
8687 | 9270 |
8688 /// @domName Event.initEvent; @docsEditable true | 9271 /// @docsEditable true |
8689 @JSName('initEvent') | 9272 @JSName('initEvent') |
| 9273 @DomName("Event.initEvent") |
8690 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg
) native; | 9274 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg
) native; |
8691 | 9275 |
8692 /// @domName Event.preventDefault; @docsEditable true | 9276 /// @docsEditable true |
| 9277 @DomName("Event.preventDefault") |
8693 void preventDefault() native; | 9278 void preventDefault() native; |
8694 | 9279 |
8695 /// @domName Event.stopImmediatePropagation; @docsEditable true | 9280 /// @docsEditable true |
| 9281 @DomName("Event.stopImmediatePropagation") |
8696 void stopImmediatePropagation() native; | 9282 void stopImmediatePropagation() native; |
8697 | 9283 |
8698 /// @domName Event.stopPropagation; @docsEditable true | 9284 /// @docsEditable true |
| 9285 @DomName("Event.stopPropagation") |
8699 void stopPropagation() native; | 9286 void stopPropagation() native; |
8700 | 9287 |
8701 } | 9288 } |
8702 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8703 // for details. All rights reserved. Use of this source code is governed by a | 9290 // for details. All rights reserved. Use of this source code is governed by a |
8704 // BSD-style license that can be found in the LICENSE file. | 9291 // BSD-style license that can be found in the LICENSE file. |
8705 | 9292 |
8706 | 9293 |
8707 /// @domName EventException; @docsEditable true | 9294 /// @docsEditable true |
| 9295 @DomName("EventException") |
8708 class EventException native "*EventException" { | 9296 class EventException native "*EventException" { |
8709 | 9297 |
8710 static const int DISPATCH_REQUEST_ERR = 1; | 9298 static const int DISPATCH_REQUEST_ERR = 1; |
8711 | 9299 |
8712 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; | 9300 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; |
8713 | 9301 |
8714 /// @domName EventException.code; @docsEditable true | 9302 /// @docsEditable true |
| 9303 @DomName("EventException.code") |
8715 final int code; | 9304 final int code; |
8716 | 9305 |
8717 /// @domName EventException.message; @docsEditable true | 9306 /// @docsEditable true |
| 9307 @DomName("EventException.message") |
8718 final String message; | 9308 final String message; |
8719 | 9309 |
8720 /// @domName EventException.name; @docsEditable true | 9310 /// @docsEditable true |
| 9311 @DomName("EventException.name") |
8721 final String name; | 9312 final String name; |
8722 | 9313 |
8723 /// @domName EventException.toString; @docsEditable true | 9314 /// @docsEditable true |
| 9315 @DomName("EventException.toString") |
8724 String toString() native; | 9316 String toString() native; |
8725 } | 9317 } |
8726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8727 // for details. All rights reserved. Use of this source code is governed by a | 9319 // for details. All rights reserved. Use of this source code is governed by a |
8728 // BSD-style license that can be found in the LICENSE file. | 9320 // BSD-style license that can be found in the LICENSE file. |
8729 | 9321 |
8730 | 9322 |
8731 /// @domName EventSource; @docsEditable true | 9323 /// @docsEditable true |
| 9324 @DomName("EventSource") |
8732 class EventSource extends EventTarget native "*EventSource" { | 9325 class EventSource extends EventTarget native "*EventSource" { |
8733 | 9326 |
8734 ///@docsEditable true | 9327 /// @docsEditable true |
8735 factory EventSource(String scriptUrl) => EventSource._create(scriptUrl); | 9328 factory EventSource(String scriptUrl) => EventSource._create(scriptUrl); |
8736 static EventSource _create(String scriptUrl) => JS('EventSource', 'new EventSo
urce(#)', scriptUrl); | 9329 static EventSource _create(String scriptUrl) => JS('EventSource', 'new EventSo
urce(#)', scriptUrl); |
8737 | 9330 |
8738 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 9331 /// @docsEditable true |
| 9332 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
8739 EventSourceEvents get on => | 9333 EventSourceEvents get on => |
8740 new EventSourceEvents(this); | 9334 new EventSourceEvents(this); |
8741 | 9335 |
8742 static const int CLOSED = 2; | 9336 static const int CLOSED = 2; |
8743 | 9337 |
8744 static const int CONNECTING = 0; | 9338 static const int CONNECTING = 0; |
8745 | 9339 |
8746 static const int OPEN = 1; | 9340 static const int OPEN = 1; |
8747 | 9341 |
8748 /// @domName EventSource.readyState; @docsEditable true | 9342 /// @docsEditable true |
| 9343 @DomName("EventSource.readyState") |
8749 final int readyState; | 9344 final int readyState; |
8750 | 9345 |
8751 /// @domName EventSource.url; @docsEditable true | 9346 /// @docsEditable true |
| 9347 @DomName("EventSource.url") |
8752 final String url; | 9348 final String url; |
8753 | 9349 |
8754 /// @domName EventSource.addEventListener; @docsEditable true | 9350 /// @docsEditable true |
8755 @JSName('addEventListener') | 9351 @JSName('addEventListener') |
| 9352 @DomName("EventSource.addEventListener") |
8756 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 9353 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
8757 | 9354 |
8758 /// @domName EventSource.close; @docsEditable true | 9355 /// @docsEditable true |
| 9356 @DomName("EventSource.close") |
8759 void close() native; | 9357 void close() native; |
8760 | 9358 |
8761 /// @domName EventSource.dispatchEvent; @docsEditable true | 9359 /// @docsEditable true |
8762 @JSName('dispatchEvent') | 9360 @JSName('dispatchEvent') |
| 9361 @DomName("EventSource.dispatchEvent") |
8763 bool $dom_dispatchEvent(Event evt) native; | 9362 bool $dom_dispatchEvent(Event evt) native; |
8764 | 9363 |
8765 /// @domName EventSource.removeEventListener; @docsEditable true | 9364 /// @docsEditable true |
8766 @JSName('removeEventListener') | 9365 @JSName('removeEventListener') |
| 9366 @DomName("EventSource.removeEventListener") |
8767 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 9367 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
8768 } | 9368 } |
8769 | 9369 |
8770 /// @docsEditable true | 9370 /// @docsEditable true |
8771 class EventSourceEvents extends Events { | 9371 class EventSourceEvents extends Events { |
8772 /// @docsEditable true | 9372 /// @docsEditable true |
8773 EventSourceEvents(EventTarget _ptr) : super(_ptr); | 9373 EventSourceEvents(EventTarget _ptr) : super(_ptr); |
8774 | 9374 |
8775 /// @docsEditable true | 9375 /// @docsEditable true |
8776 EventListenerList get error => this['error']; | 9376 EventListenerList get error => this['error']; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8840 | 9440 |
8841 void _add(EventListener listener, bool useCapture) { | 9441 void _add(EventListener listener, bool useCapture) { |
8842 _ptr.$dom_addEventListener(_type, listener, useCapture); | 9442 _ptr.$dom_addEventListener(_type, listener, useCapture); |
8843 } | 9443 } |
8844 | 9444 |
8845 void _remove(EventListener listener, bool useCapture) { | 9445 void _remove(EventListener listener, bool useCapture) { |
8846 _ptr.$dom_removeEventListener(_type, listener, useCapture); | 9446 _ptr.$dom_removeEventListener(_type, listener, useCapture); |
8847 } | 9447 } |
8848 } | 9448 } |
8849 | 9449 |
8850 /// @domName EventTarget | 9450 @DomName("EventTarget") |
8851 /** | 9451 /** |
8852 * Base class for all browser objects that support events. | 9452 * Base class for all browser objects that support events. |
8853 * | 9453 * |
8854 * Use the [on] property to add, remove, and dispatch events (rather than | 9454 * Use the [on] property to add, remove, and dispatch events (rather than |
8855 * [$dom_addEventListener], [$dom_dispatchEvent], and | 9455 * [$dom_addEventListener], [$dom_dispatchEvent], and |
8856 * [$dom_removeEventListener]) for compile-time type checks and a more concise | 9456 * [$dom_removeEventListener]) for compile-time type checks and a more concise |
8857 * API. | 9457 * API. |
8858 */ | 9458 */ |
8859 class EventTarget native "*EventTarget" { | 9459 class EventTarget native "*EventTarget" { |
8860 | 9460 |
8861 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent */ | 9461 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
8862 Events get on => new Events(this); | 9462 Events get on => new Events(this); |
8863 | 9463 |
8864 /// @domName EventTarget.addEventListener; @docsEditable true | 9464 /// @docsEditable true |
8865 @JSName('addEventListener') | 9465 @JSName('addEventListener') |
| 9466 @DomName("EventTarget.addEventListener") |
8866 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 9467 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
8867 | 9468 |
8868 /// @domName EventTarget.dispatchEvent; @docsEditable true | 9469 /// @docsEditable true |
8869 @JSName('dispatchEvent') | 9470 @JSName('dispatchEvent') |
| 9471 @DomName("EventTarget.dispatchEvent") |
8870 bool $dom_dispatchEvent(Event event) native; | 9472 bool $dom_dispatchEvent(Event event) native; |
8871 | 9473 |
8872 /// @domName EventTarget.removeEventListener; @docsEditable true | 9474 /// @docsEditable true |
8873 @JSName('removeEventListener') | 9475 @JSName('removeEventListener') |
| 9476 @DomName("EventTarget.removeEventListener") |
8874 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 9477 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
8875 | 9478 |
8876 } | 9479 } |
8877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8878 // for details. All rights reserved. Use of this source code is governed by a | 9481 // for details. All rights reserved. Use of this source code is governed by a |
8879 // BSD-style license that can be found in the LICENSE file. | 9482 // BSD-style license that can be found in the LICENSE file. |
8880 | 9483 |
8881 | 9484 |
8882 /// @domName EXTTextureFilterAnisotropic; @docsEditable true | 9485 /// @docsEditable true |
| 9486 @DomName("EXTTextureFilterAnisotropic") |
8883 class ExtTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { | 9487 class ExtTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { |
8884 | 9488 |
8885 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; | 9489 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; |
8886 | 9490 |
8887 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; | 9491 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; |
8888 } | 9492 } |
8889 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8890 // for details. All rights reserved. Use of this source code is governed by a | 9494 // for details. All rights reserved. Use of this source code is governed by a |
8891 // BSD-style license that can be found in the LICENSE file. | 9495 // BSD-style license that can be found in the LICENSE file. |
8892 | 9496 |
8893 | 9497 |
8894 /// @domName HTMLFieldSetElement; @docsEditable true | 9498 /// @docsEditable true |
| 9499 @DomName("HTMLFieldSetElement") |
8895 class FieldSetElement extends Element native "*HTMLFieldSetElement" { | 9500 class FieldSetElement extends Element native "*HTMLFieldSetElement" { |
8896 | 9501 |
8897 ///@docsEditable true | 9502 /// @docsEditable true |
8898 factory FieldSetElement() => document.$dom_createElement("fieldset"); | 9503 factory FieldSetElement() => document.$dom_createElement("fieldset"); |
8899 | 9504 |
8900 /// @domName HTMLFieldSetElement.disabled; @docsEditable true | 9505 /// @docsEditable true |
| 9506 @DomName("HTMLFieldSetElement.disabled") |
8901 bool disabled; | 9507 bool disabled; |
8902 | 9508 |
8903 /// @domName HTMLFieldSetElement.elements; @docsEditable true | 9509 /// @docsEditable true |
| 9510 @DomName("HTMLFieldSetElement.elements") |
8904 final HtmlCollection elements; | 9511 final HtmlCollection elements; |
8905 | 9512 |
8906 /// @domName HTMLFieldSetElement.form; @docsEditable true | 9513 /// @docsEditable true |
| 9514 @DomName("HTMLFieldSetElement.form") |
8907 final FormElement form; | 9515 final FormElement form; |
8908 | 9516 |
8909 /// @domName HTMLFieldSetElement.name; @docsEditable true | 9517 /// @docsEditable true |
| 9518 @DomName("HTMLFieldSetElement.name") |
8910 String name; | 9519 String name; |
8911 | 9520 |
8912 /// @domName HTMLFieldSetElement.type; @docsEditable true | 9521 /// @docsEditable true |
| 9522 @DomName("HTMLFieldSetElement.type") |
8913 final String type; | 9523 final String type; |
8914 | 9524 |
8915 /// @domName HTMLFieldSetElement.validationMessage; @docsEditable true | 9525 /// @docsEditable true |
| 9526 @DomName("HTMLFieldSetElement.validationMessage") |
8916 final String validationMessage; | 9527 final String validationMessage; |
8917 | 9528 |
8918 /// @domName HTMLFieldSetElement.validity; @docsEditable true | 9529 /// @docsEditable true |
| 9530 @DomName("HTMLFieldSetElement.validity") |
8919 final ValidityState validity; | 9531 final ValidityState validity; |
8920 | 9532 |
8921 /// @domName HTMLFieldSetElement.willValidate; @docsEditable true | 9533 /// @docsEditable true |
| 9534 @DomName("HTMLFieldSetElement.willValidate") |
8922 final bool willValidate; | 9535 final bool willValidate; |
8923 | 9536 |
8924 /// @domName HTMLFieldSetElement.checkValidity; @docsEditable true | 9537 /// @docsEditable true |
| 9538 @DomName("HTMLFieldSetElement.checkValidity") |
8925 bool checkValidity() native; | 9539 bool checkValidity() native; |
8926 | 9540 |
8927 /// @domName HTMLFieldSetElement.setCustomValidity; @docsEditable true | 9541 /// @docsEditable true |
| 9542 @DomName("HTMLFieldSetElement.setCustomValidity") |
8928 void setCustomValidity(String error) native; | 9543 void setCustomValidity(String error) native; |
8929 } | 9544 } |
8930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8931 // for details. All rights reserved. Use of this source code is governed by a | 9546 // for details. All rights reserved. Use of this source code is governed by a |
8932 // BSD-style license that can be found in the LICENSE file. | 9547 // BSD-style license that can be found in the LICENSE file. |
8933 | 9548 |
8934 | 9549 |
8935 /// @domName File; @docsEditable true | 9550 /// @docsEditable true |
| 9551 @DomName("File") |
8936 class File extends Blob native "*File" { | 9552 class File extends Blob native "*File" { |
8937 | 9553 |
8938 /// @domName File.lastModifiedDate; @docsEditable true | 9554 /// @docsEditable true |
| 9555 @DomName("File.lastModifiedDate") |
8939 final Date lastModifiedDate; | 9556 final Date lastModifiedDate; |
8940 | 9557 |
8941 /// @domName File.name; @docsEditable true | 9558 /// @docsEditable true |
| 9559 @DomName("File.name") |
8942 final String name; | 9560 final String name; |
8943 | 9561 |
8944 /// @domName File.webkitRelativePath; @docsEditable true | 9562 /// @docsEditable true |
| 9563 @DomName("File.webkitRelativePath") |
8945 final String webkitRelativePath; | 9564 final String webkitRelativePath; |
8946 } | 9565 } |
8947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8948 // for details. All rights reserved. Use of this source code is governed by a | 9567 // for details. All rights reserved. Use of this source code is governed by a |
8949 // BSD-style license that can be found in the LICENSE file. | 9568 // BSD-style license that can be found in the LICENSE file. |
8950 | 9569 |
8951 // WARNING: Do not edit - generated code. | 9570 // WARNING: Do not edit - generated code. |
8952 | 9571 |
8953 | 9572 |
8954 typedef void FileCallback(File file); | 9573 typedef void FileCallback(File file); |
8955 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8956 // for details. All rights reserved. Use of this source code is governed by a | 9575 // for details. All rights reserved. Use of this source code is governed by a |
8957 // BSD-style license that can be found in the LICENSE file. | 9576 // BSD-style license that can be found in the LICENSE file. |
8958 | 9577 |
8959 | 9578 |
8960 /// @domName FileEntry; @docsEditable true | 9579 /// @docsEditable true |
| 9580 @DomName("FileEntry") |
8961 class FileEntry extends Entry native "*FileEntry" { | 9581 class FileEntry extends Entry native "*FileEntry" { |
8962 | 9582 |
8963 /// @domName FileEntry.createWriter; @docsEditable true | 9583 /// @docsEditable true |
| 9584 @DomName("FileEntry.createWriter") |
8964 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]) native; | 9585 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]) native; |
8965 | 9586 |
8966 /// @domName FileEntry.file; @docsEditable true | 9587 /// @docsEditable true |
| 9588 @DomName("FileEntry.file") |
8967 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; | 9589 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; |
8968 } | 9590 } |
8969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8970 // for details. All rights reserved. Use of this source code is governed by a | 9592 // for details. All rights reserved. Use of this source code is governed by a |
8971 // BSD-style license that can be found in the LICENSE file. | 9593 // BSD-style license that can be found in the LICENSE file. |
8972 | 9594 |
8973 | 9595 |
8974 /// @domName FileEntrySync; @docsEditable true | 9596 /// @docsEditable true |
| 9597 @DomName("FileEntrySync") |
8975 class FileEntrySync extends EntrySync native "*FileEntrySync" { | 9598 class FileEntrySync extends EntrySync native "*FileEntrySync" { |
8976 | 9599 |
8977 /// @domName FileEntrySync.createWriter; @docsEditable true | 9600 /// @docsEditable true |
| 9601 @DomName("FileEntrySync.createWriter") |
8978 FileWriterSync createWriter() native; | 9602 FileWriterSync createWriter() native; |
8979 | 9603 |
8980 /// @domName FileEntrySync.file; @docsEditable true | 9604 /// @docsEditable true |
| 9605 @DomName("FileEntrySync.file") |
8981 File file() native; | 9606 File file() native; |
8982 } | 9607 } |
8983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8984 // for details. All rights reserved. Use of this source code is governed by a | 9609 // for details. All rights reserved. Use of this source code is governed by a |
8985 // BSD-style license that can be found in the LICENSE file. | 9610 // BSD-style license that can be found in the LICENSE file. |
8986 | 9611 |
8987 | 9612 |
8988 /// @domName FileError; @docsEditable true | 9613 /// @docsEditable true |
| 9614 @DomName("FileError") |
8989 class FileError native "*FileError" { | 9615 class FileError native "*FileError" { |
8990 | 9616 |
8991 static const int ABORT_ERR = 3; | 9617 static const int ABORT_ERR = 3; |
8992 | 9618 |
8993 static const int ENCODING_ERR = 5; | 9619 static const int ENCODING_ERR = 5; |
8994 | 9620 |
8995 static const int INVALID_MODIFICATION_ERR = 9; | 9621 static const int INVALID_MODIFICATION_ERR = 9; |
8996 | 9622 |
8997 static const int INVALID_STATE_ERR = 7; | 9623 static const int INVALID_STATE_ERR = 7; |
8998 | 9624 |
8999 static const int NOT_FOUND_ERR = 1; | 9625 static const int NOT_FOUND_ERR = 1; |
9000 | 9626 |
9001 static const int NOT_READABLE_ERR = 4; | 9627 static const int NOT_READABLE_ERR = 4; |
9002 | 9628 |
9003 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | 9629 static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
9004 | 9630 |
9005 static const int PATH_EXISTS_ERR = 12; | 9631 static const int PATH_EXISTS_ERR = 12; |
9006 | 9632 |
9007 static const int QUOTA_EXCEEDED_ERR = 10; | 9633 static const int QUOTA_EXCEEDED_ERR = 10; |
9008 | 9634 |
9009 static const int SECURITY_ERR = 2; | 9635 static const int SECURITY_ERR = 2; |
9010 | 9636 |
9011 static const int SYNTAX_ERR = 8; | 9637 static const int SYNTAX_ERR = 8; |
9012 | 9638 |
9013 static const int TYPE_MISMATCH_ERR = 11; | 9639 static const int TYPE_MISMATCH_ERR = 11; |
9014 | 9640 |
9015 /// @domName FileError.code; @docsEditable true | 9641 /// @docsEditable true |
| 9642 @DomName("FileError.code") |
9016 final int code; | 9643 final int code; |
9017 } | 9644 } |
9018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9019 // for details. All rights reserved. Use of this source code is governed by a | 9646 // for details. All rights reserved. Use of this source code is governed by a |
9020 // BSD-style license that can be found in the LICENSE file. | 9647 // BSD-style license that can be found in the LICENSE file. |
9021 | 9648 |
9022 | 9649 |
9023 /// @domName FileException; @docsEditable true | 9650 /// @docsEditable true |
| 9651 @DomName("FileException") |
9024 class FileException native "*FileException" { | 9652 class FileException native "*FileException" { |
9025 | 9653 |
9026 static const int ABORT_ERR = 3; | 9654 static const int ABORT_ERR = 3; |
9027 | 9655 |
9028 static const int ENCODING_ERR = 5; | 9656 static const int ENCODING_ERR = 5; |
9029 | 9657 |
9030 static const int INVALID_MODIFICATION_ERR = 9; | 9658 static const int INVALID_MODIFICATION_ERR = 9; |
9031 | 9659 |
9032 static const int INVALID_STATE_ERR = 7; | 9660 static const int INVALID_STATE_ERR = 7; |
9033 | 9661 |
9034 static const int NOT_FOUND_ERR = 1; | 9662 static const int NOT_FOUND_ERR = 1; |
9035 | 9663 |
9036 static const int NOT_READABLE_ERR = 4; | 9664 static const int NOT_READABLE_ERR = 4; |
9037 | 9665 |
9038 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | 9666 static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
9039 | 9667 |
9040 static const int PATH_EXISTS_ERR = 12; | 9668 static const int PATH_EXISTS_ERR = 12; |
9041 | 9669 |
9042 static const int QUOTA_EXCEEDED_ERR = 10; | 9670 static const int QUOTA_EXCEEDED_ERR = 10; |
9043 | 9671 |
9044 static const int SECURITY_ERR = 2; | 9672 static const int SECURITY_ERR = 2; |
9045 | 9673 |
9046 static const int SYNTAX_ERR = 8; | 9674 static const int SYNTAX_ERR = 8; |
9047 | 9675 |
9048 static const int TYPE_MISMATCH_ERR = 11; | 9676 static const int TYPE_MISMATCH_ERR = 11; |
9049 | 9677 |
9050 /// @domName FileException.code; @docsEditable true | 9678 /// @docsEditable true |
| 9679 @DomName("FileException.code") |
9051 final int code; | 9680 final int code; |
9052 | 9681 |
9053 /// @domName FileException.message; @docsEditable true | 9682 /// @docsEditable true |
| 9683 @DomName("FileException.message") |
9054 final String message; | 9684 final String message; |
9055 | 9685 |
9056 /// @domName FileException.name; @docsEditable true | 9686 /// @docsEditable true |
| 9687 @DomName("FileException.name") |
9057 final String name; | 9688 final String name; |
9058 | 9689 |
9059 /// @domName FileException.toString; @docsEditable true | 9690 /// @docsEditable true |
| 9691 @DomName("FileException.toString") |
9060 String toString() native; | 9692 String toString() native; |
9061 } | 9693 } |
9062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9694 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9063 // for details. All rights reserved. Use of this source code is governed by a | 9695 // for details. All rights reserved. Use of this source code is governed by a |
9064 // BSD-style license that can be found in the LICENSE file. | 9696 // BSD-style license that can be found in the LICENSE file. |
9065 | 9697 |
9066 | 9698 |
9067 /// @domName FileList; @docsEditable true | 9699 /// @docsEditable true |
| 9700 @DomName("FileList") |
9068 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
st" { | 9701 class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileLi
st" { |
9069 | 9702 |
9070 /// @domName FileList.length; @docsEditable true | 9703 /// @docsEditable true |
| 9704 @DomName("FileList.length") |
9071 int get length => JS("int", "#.length", this); | 9705 int get length => JS("int", "#.length", this); |
9072 | 9706 |
9073 File operator[](int index) => JS("File", "#[#]", this, index); | 9707 File operator[](int index) => JS("File", "#[#]", this, index); |
9074 | 9708 |
9075 void operator[]=(int index, File value) { | 9709 void operator[]=(int index, File value) { |
9076 throw new UnsupportedError("Cannot assign element of immutable List."); | 9710 throw new UnsupportedError("Cannot assign element of immutable List."); |
9077 } | 9711 } |
9078 // -- start List<File> mixins. | 9712 // -- start List<File> mixins. |
9079 // File is the element type. | 9713 // File is the element type. |
9080 | 9714 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9208 | 9842 |
9209 void insertRange(int start, int rangeLength, [File initialValue]) { | 9843 void insertRange(int start, int rangeLength, [File initialValue]) { |
9210 throw new UnsupportedError("Cannot insertRange on immutable List."); | 9844 throw new UnsupportedError("Cannot insertRange on immutable List."); |
9211 } | 9845 } |
9212 | 9846 |
9213 List<File> getRange(int start, int rangeLength) => | 9847 List<File> getRange(int start, int rangeLength) => |
9214 Lists.getRange(this, start, rangeLength, <File>[]); | 9848 Lists.getRange(this, start, rangeLength, <File>[]); |
9215 | 9849 |
9216 // -- end List<File> mixins. | 9850 // -- end List<File> mixins. |
9217 | 9851 |
9218 /// @domName FileList.item; @docsEditable true | 9852 /// @docsEditable true |
| 9853 @DomName("FileList.item") |
9219 File item(int index) native; | 9854 File item(int index) native; |
9220 } | 9855 } |
9221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9222 // for details. All rights reserved. Use of this source code is governed by a | 9857 // for details. All rights reserved. Use of this source code is governed by a |
9223 // BSD-style license that can be found in the LICENSE file. | 9858 // BSD-style license that can be found in the LICENSE file. |
9224 | 9859 |
9225 | 9860 |
9226 /// @domName FileReader; @docsEditable true | 9861 /// @docsEditable true |
| 9862 @DomName("FileReader") |
9227 class FileReader extends EventTarget native "*FileReader" { | 9863 class FileReader extends EventTarget native "*FileReader" { |
9228 | 9864 |
9229 ///@docsEditable true | 9865 /// @docsEditable true |
9230 factory FileReader() => FileReader._create(); | 9866 factory FileReader() => FileReader._create(); |
9231 static FileReader _create() => JS('FileReader', 'new FileReader()'); | 9867 static FileReader _create() => JS('FileReader', 'new FileReader()'); |
9232 | 9868 |
9233 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 9869 /// @docsEditable true |
| 9870 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
9234 FileReaderEvents get on => | 9871 FileReaderEvents get on => |
9235 new FileReaderEvents(this); | 9872 new FileReaderEvents(this); |
9236 | 9873 |
9237 static const int DONE = 2; | 9874 static const int DONE = 2; |
9238 | 9875 |
9239 static const int EMPTY = 0; | 9876 static const int EMPTY = 0; |
9240 | 9877 |
9241 static const int LOADING = 1; | 9878 static const int LOADING = 1; |
9242 | 9879 |
9243 /// @domName FileReader.error; @docsEditable true | 9880 /// @docsEditable true |
| 9881 @DomName("FileReader.error") |
9244 final FileError error; | 9882 final FileError error; |
9245 | 9883 |
9246 /// @domName FileReader.readyState; @docsEditable true | 9884 /// @docsEditable true |
| 9885 @DomName("FileReader.readyState") |
9247 final int readyState; | 9886 final int readyState; |
9248 | 9887 |
9249 /// @domName FileReader.result; @docsEditable true | 9888 /// @docsEditable true |
9250 @Creates('String|ArrayBuffer|Null') | 9889 @DomName("FileReader.result") @Creates('String|ArrayBuffer|Null') |
9251 final Object result; | 9890 final Object result; |
9252 | 9891 |
9253 /// @domName FileReader.abort; @docsEditable true | 9892 /// @docsEditable true |
| 9893 @DomName("FileReader.abort") |
9254 void abort() native; | 9894 void abort() native; |
9255 | 9895 |
9256 /// @domName FileReader.addEventListener; @docsEditable true | 9896 /// @docsEditable true |
9257 @JSName('addEventListener') | 9897 @JSName('addEventListener') |
| 9898 @DomName("FileReader.addEventListener") |
9258 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 9899 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
9259 | 9900 |
9260 /// @domName FileReader.dispatchEvent; @docsEditable true | 9901 /// @docsEditable true |
9261 @JSName('dispatchEvent') | 9902 @JSName('dispatchEvent') |
| 9903 @DomName("FileReader.dispatchEvent") |
9262 bool $dom_dispatchEvent(Event evt) native; | 9904 bool $dom_dispatchEvent(Event evt) native; |
9263 | 9905 |
9264 /// @domName FileReader.readAsArrayBuffer; @docsEditable true | 9906 /// @docsEditable true |
| 9907 @DomName("FileReader.readAsArrayBuffer") |
9265 void readAsArrayBuffer(Blob blob) native; | 9908 void readAsArrayBuffer(Blob blob) native; |
9266 | 9909 |
9267 /// @domName FileReader.readAsBinaryString; @docsEditable true | 9910 /// @docsEditable true |
| 9911 @DomName("FileReader.readAsBinaryString") |
9268 void readAsBinaryString(Blob blob) native; | 9912 void readAsBinaryString(Blob blob) native; |
9269 | 9913 |
9270 /// @domName FileReader.readAsDataURL; @docsEditable true | 9914 /// @docsEditable true |
9271 @JSName('readAsDataURL') | 9915 @JSName('readAsDataURL') |
| 9916 @DomName("FileReader.readAsDataURL") |
9272 void readAsDataUrl(Blob blob) native; | 9917 void readAsDataUrl(Blob blob) native; |
9273 | 9918 |
9274 /// @domName FileReader.readAsText; @docsEditable true | 9919 /// @docsEditable true |
| 9920 @DomName("FileReader.readAsText") |
9275 void readAsText(Blob blob, [String encoding]) native; | 9921 void readAsText(Blob blob, [String encoding]) native; |
9276 | 9922 |
9277 /// @domName FileReader.removeEventListener; @docsEditable true | 9923 /// @docsEditable true |
9278 @JSName('removeEventListener') | 9924 @JSName('removeEventListener') |
| 9925 @DomName("FileReader.removeEventListener") |
9279 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 9926 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
9280 } | 9927 } |
9281 | 9928 |
9282 /// @docsEditable true | 9929 /// @docsEditable true |
9283 class FileReaderEvents extends Events { | 9930 class FileReaderEvents extends Events { |
9284 /// @docsEditable true | 9931 /// @docsEditable true |
9285 FileReaderEvents(EventTarget _ptr) : super(_ptr); | 9932 FileReaderEvents(EventTarget _ptr) : super(_ptr); |
9286 | 9933 |
9287 /// @docsEditable true | 9934 /// @docsEditable true |
9288 EventListenerList get abort => this['abort']; | 9935 EventListenerList get abort => this['abort']; |
(...skipping 11 matching lines...) Expand all Loading... |
9300 EventListenerList get loadStart => this['loadstart']; | 9947 EventListenerList get loadStart => this['loadstart']; |
9301 | 9948 |
9302 /// @docsEditable true | 9949 /// @docsEditable true |
9303 EventListenerList get progress => this['progress']; | 9950 EventListenerList get progress => this['progress']; |
9304 } | 9951 } |
9305 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9306 // for details. All rights reserved. Use of this source code is governed by a | 9953 // for details. All rights reserved. Use of this source code is governed by a |
9307 // BSD-style license that can be found in the LICENSE file. | 9954 // BSD-style license that can be found in the LICENSE file. |
9308 | 9955 |
9309 | 9956 |
9310 /// @domName FileReaderSync; @docsEditable true | 9957 /// @docsEditable true |
| 9958 @DomName("FileReaderSync") |
9311 class FileReaderSync native "*FileReaderSync" { | 9959 class FileReaderSync native "*FileReaderSync" { |
9312 | 9960 |
9313 ///@docsEditable true | 9961 /// @docsEditable true |
9314 factory FileReaderSync() => FileReaderSync._create(); | 9962 factory FileReaderSync() => FileReaderSync._create(); |
9315 static FileReaderSync _create() => JS('FileReaderSync', 'new FileReaderSync()'
); | 9963 static FileReaderSync _create() => JS('FileReaderSync', 'new FileReaderSync()'
); |
9316 | 9964 |
9317 /// @domName FileReaderSync.readAsArrayBuffer; @docsEditable true | 9965 /// @docsEditable true |
| 9966 @DomName("FileReaderSync.readAsArrayBuffer") |
9318 ArrayBuffer readAsArrayBuffer(Blob blob) native; | 9967 ArrayBuffer readAsArrayBuffer(Blob blob) native; |
9319 | 9968 |
9320 /// @domName FileReaderSync.readAsBinaryString; @docsEditable true | 9969 /// @docsEditable true |
| 9970 @DomName("FileReaderSync.readAsBinaryString") |
9321 String readAsBinaryString(Blob blob) native; | 9971 String readAsBinaryString(Blob blob) native; |
9322 | 9972 |
9323 /// @domName FileReaderSync.readAsDataURL; @docsEditable true | 9973 /// @docsEditable true |
9324 @JSName('readAsDataURL') | 9974 @JSName('readAsDataURL') |
| 9975 @DomName("FileReaderSync.readAsDataURL") |
9325 String readAsDataUrl(Blob blob) native; | 9976 String readAsDataUrl(Blob blob) native; |
9326 | 9977 |
9327 /// @domName FileReaderSync.readAsText; @docsEditable true | 9978 /// @docsEditable true |
| 9979 @DomName("FileReaderSync.readAsText") |
9328 String readAsText(Blob blob, [String encoding]) native; | 9980 String readAsText(Blob blob, [String encoding]) native; |
9329 } | 9981 } |
9330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9331 // for details. All rights reserved. Use of this source code is governed by a | 9983 // for details. All rights reserved. Use of this source code is governed by a |
9332 // BSD-style license that can be found in the LICENSE file. | 9984 // BSD-style license that can be found in the LICENSE file. |
9333 | 9985 |
9334 | 9986 |
9335 /// @domName DOMFileSystem; @docsEditable true | 9987 /// @docsEditable true |
| 9988 @DomName("DOMFileSystem") |
9336 class FileSystem native "*DOMFileSystem" { | 9989 class FileSystem native "*DOMFileSystem" { |
9337 | 9990 |
9338 /// @domName DOMFileSystem.name; @docsEditable true | 9991 /// @docsEditable true |
| 9992 @DomName("DOMFileSystem.name") |
9339 final String name; | 9993 final String name; |
9340 | 9994 |
9341 /// @domName DOMFileSystem.root; @docsEditable true | 9995 /// @docsEditable true |
| 9996 @DomName("DOMFileSystem.root") |
9342 final DirectoryEntry root; | 9997 final DirectoryEntry root; |
9343 } | 9998 } |
9344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9345 // for details. All rights reserved. Use of this source code is governed by a | 10000 // for details. All rights reserved. Use of this source code is governed by a |
9346 // BSD-style license that can be found in the LICENSE file. | 10001 // BSD-style license that can be found in the LICENSE file. |
9347 | 10002 |
9348 // WARNING: Do not edit - generated code. | 10003 // WARNING: Do not edit - generated code. |
9349 | 10004 |
9350 | 10005 |
9351 typedef void FileSystemCallback(FileSystem fileSystem); | 10006 typedef void FileSystemCallback(FileSystem fileSystem); |
9352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10007 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9353 // for details. All rights reserved. Use of this source code is governed by a | 10008 // for details. All rights reserved. Use of this source code is governed by a |
9354 // BSD-style license that can be found in the LICENSE file. | 10009 // BSD-style license that can be found in the LICENSE file. |
9355 | 10010 |
9356 | 10011 |
9357 /// @domName DOMFileSystemSync; @docsEditable true | 10012 /// @docsEditable true |
| 10013 @DomName("DOMFileSystemSync") |
9358 class FileSystemSync native "*DOMFileSystemSync" { | 10014 class FileSystemSync native "*DOMFileSystemSync" { |
9359 | 10015 |
9360 /// @domName DOMFileSystemSync.name; @docsEditable true | 10016 /// @docsEditable true |
| 10017 @DomName("DOMFileSystemSync.name") |
9361 final String name; | 10018 final String name; |
9362 | 10019 |
9363 /// @domName DOMFileSystemSync.root; @docsEditable true | 10020 /// @docsEditable true |
| 10021 @DomName("DOMFileSystemSync.root") |
9364 final DirectoryEntrySync root; | 10022 final DirectoryEntrySync root; |
9365 } | 10023 } |
9366 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10024 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9367 // for details. All rights reserved. Use of this source code is governed by a | 10025 // for details. All rights reserved. Use of this source code is governed by a |
9368 // BSD-style license that can be found in the LICENSE file. | 10026 // BSD-style license that can be found in the LICENSE file. |
9369 | 10027 |
9370 | 10028 |
9371 /// @domName FileWriter; @docsEditable true | 10029 /// @docsEditable true |
| 10030 @DomName("FileWriter") |
9372 class FileWriter extends EventTarget native "*FileWriter" { | 10031 class FileWriter extends EventTarget native "*FileWriter" { |
9373 | 10032 |
9374 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 10033 /// @docsEditable true |
| 10034 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
9375 FileWriterEvents get on => | 10035 FileWriterEvents get on => |
9376 new FileWriterEvents(this); | 10036 new FileWriterEvents(this); |
9377 | 10037 |
9378 static const int DONE = 2; | 10038 static const int DONE = 2; |
9379 | 10039 |
9380 static const int INIT = 0; | 10040 static const int INIT = 0; |
9381 | 10041 |
9382 static const int WRITING = 1; | 10042 static const int WRITING = 1; |
9383 | 10043 |
9384 /// @domName FileWriter.error; @docsEditable true | 10044 /// @docsEditable true |
| 10045 @DomName("FileWriter.error") |
9385 final FileError error; | 10046 final FileError error; |
9386 | 10047 |
9387 /// @domName FileWriter.length; @docsEditable true | 10048 /// @docsEditable true |
| 10049 @DomName("FileWriter.length") |
9388 final int length; | 10050 final int length; |
9389 | 10051 |
9390 /// @domName FileWriter.position; @docsEditable true | 10052 /// @docsEditable true |
| 10053 @DomName("FileWriter.position") |
9391 final int position; | 10054 final int position; |
9392 | 10055 |
9393 /// @domName FileWriter.readyState; @docsEditable true | 10056 /// @docsEditable true |
| 10057 @DomName("FileWriter.readyState") |
9394 final int readyState; | 10058 final int readyState; |
9395 | 10059 |
9396 /// @domName FileWriter.abort; @docsEditable true | 10060 /// @docsEditable true |
| 10061 @DomName("FileWriter.abort") |
9397 void abort() native; | 10062 void abort() native; |
9398 | 10063 |
9399 /// @domName FileWriter.addEventListener; @docsEditable true | 10064 /// @docsEditable true |
9400 @JSName('addEventListener') | 10065 @JSName('addEventListener') |
| 10066 @DomName("FileWriter.addEventListener") |
9401 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 10067 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
9402 | 10068 |
9403 /// @domName FileWriter.dispatchEvent; @docsEditable true | 10069 /// @docsEditable true |
9404 @JSName('dispatchEvent') | 10070 @JSName('dispatchEvent') |
| 10071 @DomName("FileWriter.dispatchEvent") |
9405 bool $dom_dispatchEvent(Event evt) native; | 10072 bool $dom_dispatchEvent(Event evt) native; |
9406 | 10073 |
9407 /// @domName FileWriter.removeEventListener; @docsEditable true | 10074 /// @docsEditable true |
9408 @JSName('removeEventListener') | 10075 @JSName('removeEventListener') |
| 10076 @DomName("FileWriter.removeEventListener") |
9409 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 10077 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
9410 | 10078 |
9411 /// @domName FileWriter.seek; @docsEditable true | 10079 /// @docsEditable true |
| 10080 @DomName("FileWriter.seek") |
9412 void seek(int position) native; | 10081 void seek(int position) native; |
9413 | 10082 |
9414 /// @domName FileWriter.truncate; @docsEditable true | 10083 /// @docsEditable true |
| 10084 @DomName("FileWriter.truncate") |
9415 void truncate(int size) native; | 10085 void truncate(int size) native; |
9416 | 10086 |
9417 /// @domName FileWriter.write; @docsEditable true | 10087 /// @docsEditable true |
| 10088 @DomName("FileWriter.write") |
9418 void write(Blob data) native; | 10089 void write(Blob data) native; |
9419 } | 10090 } |
9420 | 10091 |
9421 /// @docsEditable true | 10092 /// @docsEditable true |
9422 class FileWriterEvents extends Events { | 10093 class FileWriterEvents extends Events { |
9423 /// @docsEditable true | 10094 /// @docsEditable true |
9424 FileWriterEvents(EventTarget _ptr) : super(_ptr); | 10095 FileWriterEvents(EventTarget _ptr) : super(_ptr); |
9425 | 10096 |
9426 /// @docsEditable true | 10097 /// @docsEditable true |
9427 EventListenerList get abort => this['abort']; | 10098 EventListenerList get abort => this['abort']; |
(...skipping 19 matching lines...) Expand all Loading... |
9447 | 10118 |
9448 // WARNING: Do not edit - generated code. | 10119 // WARNING: Do not edit - generated code. |
9449 | 10120 |
9450 | 10121 |
9451 typedef void FileWriterCallback(FileWriter fileWriter); | 10122 typedef void FileWriterCallback(FileWriter fileWriter); |
9452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10123 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9453 // for details. All rights reserved. Use of this source code is governed by a | 10124 // for details. All rights reserved. Use of this source code is governed by a |
9454 // BSD-style license that can be found in the LICENSE file. | 10125 // BSD-style license that can be found in the LICENSE file. |
9455 | 10126 |
9456 | 10127 |
9457 /// @domName FileWriterSync; @docsEditable true | 10128 /// @docsEditable true |
| 10129 @DomName("FileWriterSync") |
9458 class FileWriterSync native "*FileWriterSync" { | 10130 class FileWriterSync native "*FileWriterSync" { |
9459 | 10131 |
9460 /// @domName FileWriterSync.length; @docsEditable true | 10132 /// @docsEditable true |
| 10133 @DomName("FileWriterSync.length") |
9461 final int length; | 10134 final int length; |
9462 | 10135 |
9463 /// @domName FileWriterSync.position; @docsEditable true | 10136 /// @docsEditable true |
| 10137 @DomName("FileWriterSync.position") |
9464 final int position; | 10138 final int position; |
9465 | 10139 |
9466 /// @domName FileWriterSync.seek; @docsEditable true | 10140 /// @docsEditable true |
| 10141 @DomName("FileWriterSync.seek") |
9467 void seek(int position) native; | 10142 void seek(int position) native; |
9468 | 10143 |
9469 /// @domName FileWriterSync.truncate; @docsEditable true | 10144 /// @docsEditable true |
| 10145 @DomName("FileWriterSync.truncate") |
9470 void truncate(int size) native; | 10146 void truncate(int size) native; |
9471 | 10147 |
9472 /// @domName FileWriterSync.write; @docsEditable true | 10148 /// @docsEditable true |
| 10149 @DomName("FileWriterSync.write") |
9473 void write(Blob data) native; | 10150 void write(Blob data) native; |
9474 } | 10151 } |
9475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10152 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9476 // for details. All rights reserved. Use of this source code is governed by a | 10153 // for details. All rights reserved. Use of this source code is governed by a |
9477 // BSD-style license that can be found in the LICENSE file. | 10154 // BSD-style license that can be found in the LICENSE file. |
9478 | 10155 |
9479 | 10156 |
9480 /// @domName Float32Array; @docsEditable true | 10157 /// @docsEditable true |
| 10158 @DomName("Float32Array") |
9481 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
, List<num> native "*Float32Array" { | 10159 class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior
, List<num> native "*Float32Array" { |
9482 | 10160 |
9483 factory Float32Array(int length) => | 10161 factory Float32Array(int length) => |
9484 _TypedArrayFactoryProvider.createFloat32Array(length); | 10162 _TypedArrayFactoryProvider.createFloat32Array(length); |
9485 | 10163 |
9486 factory Float32Array.fromList(List<num> list) => | 10164 factory Float32Array.fromList(List<num> list) => |
9487 _TypedArrayFactoryProvider.createFloat32Array_fromList(list); | 10165 _TypedArrayFactoryProvider.createFloat32Array_fromList(list); |
9488 | 10166 |
9489 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt
h]) => | 10167 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt
h]) => |
9490 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset,
length); | 10168 _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset,
length); |
9491 | 10169 |
9492 static const int BYTES_PER_ELEMENT = 4; | 10170 static const int BYTES_PER_ELEMENT = 4; |
9493 | 10171 |
9494 /// @domName Float32Array.length; @docsEditable true | 10172 /// @docsEditable true |
| 10173 @DomName("Float32Array.length") |
9495 int get length => JS("int", "#.length", this); | 10174 int get length => JS("int", "#.length", this); |
9496 | 10175 |
9497 num operator[](int index) => JS("num", "#[#]", this, index); | 10176 num operator[](int index) => JS("num", "#[#]", this, index); |
9498 | 10177 |
9499 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<num> mixins. | 10178 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<num> mixins. |
9500 // num is the element type. | 10179 // num is the element type. |
9501 | 10180 |
9502 // From Iterable<num>: | 10181 // From Iterable<num>: |
9503 | 10182 |
9504 Iterator<num> get iterator { | 10183 Iterator<num> get iterator { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9629 | 10308 |
9630 void insertRange(int start, int rangeLength, [num initialValue]) { | 10309 void insertRange(int start, int rangeLength, [num initialValue]) { |
9631 throw new UnsupportedError("Cannot insertRange on immutable List."); | 10310 throw new UnsupportedError("Cannot insertRange on immutable List."); |
9632 } | 10311 } |
9633 | 10312 |
9634 List<num> getRange(int start, int rangeLength) => | 10313 List<num> getRange(int start, int rangeLength) => |
9635 Lists.getRange(this, start, rangeLength, <num>[]); | 10314 Lists.getRange(this, start, rangeLength, <num>[]); |
9636 | 10315 |
9637 // -- end List<num> mixins. | 10316 // -- end List<num> mixins. |
9638 | 10317 |
9639 /// @domName Float32Array.setElements; @docsEditable true | 10318 /// @docsEditable true |
9640 @JSName('set') | 10319 @JSName('set') |
| 10320 @DomName("Float32Array.set") |
9641 void setElements(Object array, [int offset]) native; | 10321 void setElements(Object array, [int offset]) native; |
9642 | 10322 |
9643 /// @domName Float32Array.subarray; @docsEditable true | 10323 /// @docsEditable true |
| 10324 @DomName("Float32Array.subarray") |
9644 Float32Array subarray(int start, [int end]) native; | 10325 Float32Array subarray(int start, [int end]) native; |
9645 } | 10326 } |
9646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9647 // for details. All rights reserved. Use of this source code is governed by a | 10328 // for details. All rights reserved. Use of this source code is governed by a |
9648 // BSD-style license that can be found in the LICENSE file. | 10329 // BSD-style license that can be found in the LICENSE file. |
9649 | 10330 |
9650 | 10331 |
9651 /// @domName Float64Array; @docsEditable true | 10332 /// @docsEditable true |
| 10333 @DomName("Float64Array") |
9652 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
, List<num> native "*Float64Array" { | 10334 class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior
, List<num> native "*Float64Array" { |
9653 | 10335 |
9654 factory Float64Array(int length) => | 10336 factory Float64Array(int length) => |
9655 _TypedArrayFactoryProvider.createFloat64Array(length); | 10337 _TypedArrayFactoryProvider.createFloat64Array(length); |
9656 | 10338 |
9657 factory Float64Array.fromList(List<num> list) => | 10339 factory Float64Array.fromList(List<num> list) => |
9658 _TypedArrayFactoryProvider.createFloat64Array_fromList(list); | 10340 _TypedArrayFactoryProvider.createFloat64Array_fromList(list); |
9659 | 10341 |
9660 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt
h]) => | 10342 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt
h]) => |
9661 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset,
length); | 10343 _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset,
length); |
9662 | 10344 |
9663 static const int BYTES_PER_ELEMENT = 8; | 10345 static const int BYTES_PER_ELEMENT = 8; |
9664 | 10346 |
9665 /// @domName Float64Array.length; @docsEditable true | 10347 /// @docsEditable true |
| 10348 @DomName("Float64Array.length") |
9666 int get length => JS("int", "#.length", this); | 10349 int get length => JS("int", "#.length", this); |
9667 | 10350 |
9668 num operator[](int index) => JS("num", "#[#]", this, index); | 10351 num operator[](int index) => JS("num", "#[#]", this, index); |
9669 | 10352 |
9670 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<num> mixins. | 10353 void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<num> mixins. |
9671 // num is the element type. | 10354 // num is the element type. |
9672 | 10355 |
9673 // From Iterable<num>: | 10356 // From Iterable<num>: |
9674 | 10357 |
9675 Iterator<num> get iterator { | 10358 Iterator<num> get iterator { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9800 | 10483 |
9801 void insertRange(int start, int rangeLength, [num initialValue]) { | 10484 void insertRange(int start, int rangeLength, [num initialValue]) { |
9802 throw new UnsupportedError("Cannot insertRange on immutable List."); | 10485 throw new UnsupportedError("Cannot insertRange on immutable List."); |
9803 } | 10486 } |
9804 | 10487 |
9805 List<num> getRange(int start, int rangeLength) => | 10488 List<num> getRange(int start, int rangeLength) => |
9806 Lists.getRange(this, start, rangeLength, <num>[]); | 10489 Lists.getRange(this, start, rangeLength, <num>[]); |
9807 | 10490 |
9808 // -- end List<num> mixins. | 10491 // -- end List<num> mixins. |
9809 | 10492 |
9810 /// @domName Float64Array.setElements; @docsEditable true | 10493 /// @docsEditable true |
9811 @JSName('set') | 10494 @JSName('set') |
| 10495 @DomName("Float64Array.set") |
9812 void setElements(Object array, [int offset]) native; | 10496 void setElements(Object array, [int offset]) native; |
9813 | 10497 |
9814 /// @domName Float64Array.subarray; @docsEditable true | 10498 /// @docsEditable true |
| 10499 @DomName("Float64Array.subarray") |
9815 Float64Array subarray(int start, [int end]) native; | 10500 Float64Array subarray(int start, [int end]) native; |
9816 } | 10501 } |
9817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9818 // for details. All rights reserved. Use of this source code is governed by a | 10503 // for details. All rights reserved. Use of this source code is governed by a |
9819 // BSD-style license that can be found in the LICENSE file. | 10504 // BSD-style license that can be found in the LICENSE file. |
9820 | 10505 |
9821 | 10506 |
9822 /// @domName HTMLFontElement; @docsEditable true | 10507 /// @docsEditable true |
| 10508 @DomName("HTMLFontElement") |
9823 class FontElement extends Element native "*HTMLFontElement" { | 10509 class FontElement extends Element native "*HTMLFontElement" { |
9824 | 10510 |
9825 /// @domName HTMLFontElement.color; @docsEditable true | 10511 /// @docsEditable true |
| 10512 @DomName("HTMLFontElement.color") |
9826 String color; | 10513 String color; |
9827 | 10514 |
9828 /// @domName HTMLFontElement.face; @docsEditable true | 10515 /// @docsEditable true |
| 10516 @DomName("HTMLFontElement.face") |
9829 String face; | 10517 String face; |
9830 | 10518 |
9831 /// @domName HTMLFontElement.size; @docsEditable true | 10519 /// @docsEditable true |
| 10520 @DomName("HTMLFontElement.size") |
9832 String size; | 10521 String size; |
9833 } | 10522 } |
9834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9835 // for details. All rights reserved. Use of this source code is governed by a | 10524 // for details. All rights reserved. Use of this source code is governed by a |
9836 // BSD-style license that can be found in the LICENSE file. | 10525 // BSD-style license that can be found in the LICENSE file. |
9837 | 10526 |
9838 | 10527 |
9839 /// @domName FormData; @docsEditable true | 10528 /// @docsEditable true |
| 10529 @DomName("FormData") |
9840 class FormData native "*FormData" { | 10530 class FormData native "*FormData" { |
9841 | 10531 |
9842 ///@docsEditable true | 10532 /// @docsEditable true |
9843 factory FormData([FormElement form]) { | 10533 factory FormData([FormElement form]) { |
9844 if (!?form) { | 10534 if (!?form) { |
9845 return FormData._create(); | 10535 return FormData._create(); |
9846 } | 10536 } |
9847 return FormData._create(form); | 10537 return FormData._create(form); |
9848 } | 10538 } |
9849 static FormData _create([FormElement form]) { | 10539 static FormData _create([FormElement form]) { |
9850 if (!?form) { | 10540 if (!?form) { |
9851 return JS('FormData', 'new FormData()'); | 10541 return JS('FormData', 'new FormData()'); |
9852 } | 10542 } |
9853 return JS('FormData', 'new FormData(#)', form); | 10543 return JS('FormData', 'new FormData(#)', form); |
9854 } | 10544 } |
9855 | 10545 |
9856 /// @domName DOMFormData.append; @docsEditable true | 10546 /// @docsEditable true |
| 10547 @DomName("DOMFormData.append") |
9857 void append(String name, value, [String filename]) native; | 10548 void append(String name, value, [String filename]) native; |
9858 } | 10549 } |
9859 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9860 // for details. All rights reserved. Use of this source code is governed by a | 10551 // for details. All rights reserved. Use of this source code is governed by a |
9861 // BSD-style license that can be found in the LICENSE file. | 10552 // BSD-style license that can be found in the LICENSE file. |
9862 | 10553 |
9863 | 10554 |
9864 /// @domName HTMLFormElement; @docsEditable true | 10555 /// @docsEditable true |
| 10556 @DomName("HTMLFormElement") |
9865 class FormElement extends Element native "*HTMLFormElement" { | 10557 class FormElement extends Element native "*HTMLFormElement" { |
9866 | 10558 |
9867 ///@docsEditable true | 10559 /// @docsEditable true |
9868 factory FormElement() => document.$dom_createElement("form"); | 10560 factory FormElement() => document.$dom_createElement("form"); |
9869 | 10561 |
9870 /// @domName HTMLFormElement.acceptCharset; @docsEditable true | 10562 /// @docsEditable true |
| 10563 @DomName("HTMLFormElement.acceptCharset") |
9871 String acceptCharset; | 10564 String acceptCharset; |
9872 | 10565 |
9873 /// @domName HTMLFormElement.action; @docsEditable true | 10566 /// @docsEditable true |
| 10567 @DomName("HTMLFormElement.action") |
9874 String action; | 10568 String action; |
9875 | 10569 |
9876 /// @domName HTMLFormElement.autocomplete; @docsEditable true | 10570 /// @docsEditable true |
| 10571 @DomName("HTMLFormElement.autocomplete") |
9877 String autocomplete; | 10572 String autocomplete; |
9878 | 10573 |
9879 /// @domName HTMLFormElement.encoding; @docsEditable true | 10574 /// @docsEditable true |
| 10575 @DomName("HTMLFormElement.encoding") |
9880 String encoding; | 10576 String encoding; |
9881 | 10577 |
9882 /// @domName HTMLFormElement.enctype; @docsEditable true | 10578 /// @docsEditable true |
| 10579 @DomName("HTMLFormElement.enctype") |
9883 String enctype; | 10580 String enctype; |
9884 | 10581 |
9885 /// @domName HTMLFormElement.length; @docsEditable true | 10582 /// @docsEditable true |
| 10583 @DomName("HTMLFormElement.length") |
9886 final int length; | 10584 final int length; |
9887 | 10585 |
9888 /// @domName HTMLFormElement.method; @docsEditable true | 10586 /// @docsEditable true |
| 10587 @DomName("HTMLFormElement.method") |
9889 String method; | 10588 String method; |
9890 | 10589 |
9891 /// @domName HTMLFormElement.name; @docsEditable true | 10590 /// @docsEditable true |
| 10591 @DomName("HTMLFormElement.name") |
9892 String name; | 10592 String name; |
9893 | 10593 |
9894 /// @domName HTMLFormElement.noValidate; @docsEditable true | 10594 /// @docsEditable true |
| 10595 @DomName("HTMLFormElement.noValidate") |
9895 bool noValidate; | 10596 bool noValidate; |
9896 | 10597 |
9897 /// @domName HTMLFormElement.target; @docsEditable true | 10598 /// @docsEditable true |
| 10599 @DomName("HTMLFormElement.target") |
9898 String target; | 10600 String target; |
9899 | 10601 |
9900 /// @domName HTMLFormElement.checkValidity; @docsEditable true | 10602 /// @docsEditable true |
| 10603 @DomName("HTMLFormElement.checkValidity") |
9901 bool checkValidity() native; | 10604 bool checkValidity() native; |
9902 | 10605 |
9903 /// @domName HTMLFormElement.reset; @docsEditable true | 10606 /// @docsEditable true |
| 10607 @DomName("HTMLFormElement.reset") |
9904 void reset() native; | 10608 void reset() native; |
9905 | 10609 |
9906 /// @domName HTMLFormElement.submit; @docsEditable true | 10610 /// @docsEditable true |
| 10611 @DomName("HTMLFormElement.submit") |
9907 void submit() native; | 10612 void submit() native; |
9908 } | 10613 } |
9909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9910 // for details. All rights reserved. Use of this source code is governed by a | 10615 // for details. All rights reserved. Use of this source code is governed by a |
9911 // BSD-style license that can be found in the LICENSE file. | 10616 // BSD-style license that can be found in the LICENSE file. |
9912 | 10617 |
9913 | 10618 |
9914 /// @domName HTMLFrameElement; @docsEditable true | 10619 /// @docsEditable true |
| 10620 @DomName("HTMLFrameElement") |
9915 class FrameElement extends Element native "*HTMLFrameElement" { | 10621 class FrameElement extends Element native "*HTMLFrameElement" { |
9916 | 10622 |
9917 /// @domName HTMLFrameElement.contentWindow; @docsEditable true | 10623 /// @docsEditable true |
9918 WindowBase get contentWindow => _convertNativeToDart_Window(this._contentWindo
w); | 10624 WindowBase get contentWindow => _convertNativeToDart_Window(this._contentWindo
w); |
9919 @JSName('contentWindow') | 10625 @JSName('contentWindow') |
9920 @Creates('Window|=Object') @Returns('Window|=Object') | 10626 @DomName("HTMLFrameElement.contentWindow") @Creates('Window|=Object') @Returns
('Window|=Object') |
9921 final dynamic _contentWindow; | 10627 final dynamic _contentWindow; |
9922 | 10628 |
9923 /// @domName HTMLFrameElement.frameBorder; @docsEditable true | 10629 /// @docsEditable true |
| 10630 @DomName("HTMLFrameElement.frameBorder") |
9924 String frameBorder; | 10631 String frameBorder; |
9925 | 10632 |
9926 /// @domName HTMLFrameElement.height; @docsEditable true | 10633 /// @docsEditable true |
| 10634 @DomName("HTMLFrameElement.height") |
9927 final int height; | 10635 final int height; |
9928 | 10636 |
9929 /// @domName HTMLFrameElement.location; @docsEditable true | 10637 /// @docsEditable true |
| 10638 @DomName("HTMLFrameElement.location") |
9930 String location; | 10639 String location; |
9931 | 10640 |
9932 /// @domName HTMLFrameElement.longDesc; @docsEditable true | 10641 /// @docsEditable true |
| 10642 @DomName("HTMLFrameElement.longDesc") |
9933 String longDesc; | 10643 String longDesc; |
9934 | 10644 |
9935 /// @domName HTMLFrameElement.marginHeight; @docsEditable true | 10645 /// @docsEditable true |
| 10646 @DomName("HTMLFrameElement.marginHeight") |
9936 String marginHeight; | 10647 String marginHeight; |
9937 | 10648 |
9938 /// @domName HTMLFrameElement.marginWidth; @docsEditable true | 10649 /// @docsEditable true |
| 10650 @DomName("HTMLFrameElement.marginWidth") |
9939 String marginWidth; | 10651 String marginWidth; |
9940 | 10652 |
9941 /// @domName HTMLFrameElement.name; @docsEditable true | 10653 /// @docsEditable true |
| 10654 @DomName("HTMLFrameElement.name") |
9942 String name; | 10655 String name; |
9943 | 10656 |
9944 /// @domName HTMLFrameElement.noResize; @docsEditable true | 10657 /// @docsEditable true |
| 10658 @DomName("HTMLFrameElement.noResize") |
9945 bool noResize; | 10659 bool noResize; |
9946 | 10660 |
9947 /// @domName HTMLFrameElement.scrolling; @docsEditable true | 10661 /// @docsEditable true |
| 10662 @DomName("HTMLFrameElement.scrolling") |
9948 String scrolling; | 10663 String scrolling; |
9949 | 10664 |
9950 /// @domName HTMLFrameElement.src; @docsEditable true | 10665 /// @docsEditable true |
| 10666 @DomName("HTMLFrameElement.src") |
9951 String src; | 10667 String src; |
9952 | 10668 |
9953 /// @domName HTMLFrameElement.width; @docsEditable true | 10669 /// @docsEditable true |
| 10670 @DomName("HTMLFrameElement.width") |
9954 final int width; | 10671 final int width; |
9955 } | 10672 } |
9956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
9957 // for details. All rights reserved. Use of this source code is governed by a | 10674 // for details. All rights reserved. Use of this source code is governed by a |
9958 // BSD-style license that can be found in the LICENSE file. | 10675 // BSD-style license that can be found in the LICENSE file. |
9959 | 10676 |
9960 | 10677 |
9961 /// @domName HTMLFrameSetElement; @docsEditable true | 10678 /// @docsEditable true |
| 10679 @DomName("HTMLFrameSetElement") |
9962 class FrameSetElement extends Element native "*HTMLFrameSetElement" { | 10680 class FrameSetElement extends Element native "*HTMLFrameSetElement" { |
9963 | 10681 |
9964 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 10682 /// @docsEditable true |
| 10683 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
9965 FrameSetElementEvents get on => | 10684 FrameSetElementEvents get on => |
9966 new FrameSetElementEvents(this); | 10685 new FrameSetElementEvents(this); |
9967 | 10686 |
9968 /// @domName HTMLFrameSetElement.cols; @docsEditable true | 10687 /// @docsEditable true |
| 10688 @DomName("HTMLFrameSetElement.cols") |
9969 String cols; | 10689 String cols; |
9970 | 10690 |
9971 /// @domName HTMLFrameSetElement.rows; @docsEditable true | 10691 /// @docsEditable true |
| 10692 @DomName("HTMLFrameSetElement.rows") |
9972 String rows; | 10693 String rows; |
9973 } | 10694 } |
9974 | 10695 |
9975 /// @docsEditable true | 10696 /// @docsEditable true |
9976 class FrameSetElementEvents extends ElementEvents { | 10697 class FrameSetElementEvents extends ElementEvents { |
9977 /// @docsEditable true | 10698 /// @docsEditable true |
9978 FrameSetElementEvents(EventTarget _ptr) : super(_ptr); | 10699 FrameSetElementEvents(EventTarget _ptr) : super(_ptr); |
9979 | 10700 |
9980 /// @docsEditable true | 10701 /// @docsEditable true |
9981 EventListenerList get beforeUnload => this['beforeunload']; | 10702 EventListenerList get beforeUnload => this['beforeunload']; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10014 EventListenerList get storage => this['storage']; | 10735 EventListenerList get storage => this['storage']; |
10015 | 10736 |
10016 /// @docsEditable true | 10737 /// @docsEditable true |
10017 EventListenerList get unload => this['unload']; | 10738 EventListenerList get unload => this['unload']; |
10018 } | 10739 } |
10019 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10740 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10020 // for details. All rights reserved. Use of this source code is governed by a | 10741 // for details. All rights reserved. Use of this source code is governed by a |
10021 // BSD-style license that can be found in the LICENSE file. | 10742 // BSD-style license that can be found in the LICENSE file. |
10022 | 10743 |
10023 | 10744 |
10024 /// @domName Gamepad; @docsEditable true | 10745 /// @docsEditable true |
| 10746 @DomName("Gamepad") |
10025 class Gamepad native "*Gamepad" { | 10747 class Gamepad native "*Gamepad" { |
10026 | 10748 |
10027 /// @domName Gamepad.axes; @docsEditable true | 10749 /// @docsEditable true |
| 10750 @DomName("Gamepad.axes") |
10028 final List<num> axes; | 10751 final List<num> axes; |
10029 | 10752 |
10030 /// @domName Gamepad.buttons; @docsEditable true | 10753 /// @docsEditable true |
| 10754 @DomName("Gamepad.buttons") |
10031 final List<num> buttons; | 10755 final List<num> buttons; |
10032 | 10756 |
10033 /// @domName Gamepad.id; @docsEditable true | 10757 /// @docsEditable true |
| 10758 @DomName("Gamepad.id") |
10034 final String id; | 10759 final String id; |
10035 | 10760 |
10036 /// @domName Gamepad.index; @docsEditable true | 10761 /// @docsEditable true |
| 10762 @DomName("Gamepad.index") |
10037 final int index; | 10763 final int index; |
10038 | 10764 |
10039 /// @domName Gamepad.timestamp; @docsEditable true | 10765 /// @docsEditable true |
| 10766 @DomName("Gamepad.timestamp") |
10040 final int timestamp; | 10767 final int timestamp; |
10041 } | 10768 } |
10042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10043 // for details. All rights reserved. Use of this source code is governed by a | 10770 // for details. All rights reserved. Use of this source code is governed by a |
10044 // BSD-style license that can be found in the LICENSE file. | 10771 // BSD-style license that can be found in the LICENSE file. |
10045 | 10772 |
10046 | 10773 |
10047 /// @domName Geolocation; @docsEditable true | 10774 /// @docsEditable true |
| 10775 @DomName("Geolocation") |
10048 class Geolocation native "*Geolocation" { | 10776 class Geolocation native "*Geolocation" { |
10049 | 10777 |
10050 /// @domName Geolocation.clearWatch; @docsEditable true | 10778 /// @docsEditable true |
| 10779 @DomName("Geolocation.clearWatch") |
10051 void clearWatch(int watchId) native; | 10780 void clearWatch(int watchId) native; |
10052 | 10781 |
10053 /// @domName Geolocation.getCurrentPosition; @docsEditable true | 10782 /// @docsEditable true |
| 10783 @DomName("Geolocation.getCurrentPosition") |
10054 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]) native; | 10784 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]) native; |
10055 | 10785 |
10056 /// @domName Geolocation.watchPosition; @docsEditable true | 10786 /// @docsEditable true |
| 10787 @DomName("Geolocation.watchPosition") |
10057 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]) native; | 10788 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]) native; |
10058 } | 10789 } |
10059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10060 // for details. All rights reserved. Use of this source code is governed by a | 10791 // for details. All rights reserved. Use of this source code is governed by a |
10061 // BSD-style license that can be found in the LICENSE file. | 10792 // BSD-style license that can be found in the LICENSE file. |
10062 | 10793 |
10063 | 10794 |
10064 /// @domName Geoposition; @docsEditable true | 10795 /// @docsEditable true |
| 10796 @DomName("Geoposition") |
10065 class Geoposition native "*Geoposition" { | 10797 class Geoposition native "*Geoposition" { |
10066 | 10798 |
10067 /// @domName Geoposition.coords; @docsEditable true | 10799 /// @docsEditable true |
| 10800 @DomName("Geoposition.coords") |
10068 final Coordinates coords; | 10801 final Coordinates coords; |
10069 | 10802 |
10070 /// @domName Geoposition.timestamp; @docsEditable true | 10803 /// @docsEditable true |
| 10804 @DomName("Geoposition.timestamp") |
10071 final int timestamp; | 10805 final int timestamp; |
10072 } | 10806 } |
10073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10807 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10074 // for details. All rights reserved. Use of this source code is governed by a | 10808 // for details. All rights reserved. Use of this source code is governed by a |
10075 // BSD-style license that can be found in the LICENSE file. | 10809 // BSD-style license that can be found in the LICENSE file. |
10076 | 10810 |
10077 | 10811 |
10078 /// @domName HTMLHRElement; @docsEditable true | 10812 /// @docsEditable true |
| 10813 @DomName("HTMLHRElement") |
10079 class HRElement extends Element native "*HTMLHRElement" { | 10814 class HRElement extends Element native "*HTMLHRElement" { |
10080 | 10815 |
10081 ///@docsEditable true | 10816 /// @docsEditable true |
10082 factory HRElement() => document.$dom_createElement("hr"); | 10817 factory HRElement() => document.$dom_createElement("hr"); |
10083 } | 10818 } |
10084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10085 // for details. All rights reserved. Use of this source code is governed by a | 10820 // for details. All rights reserved. Use of this source code is governed by a |
10086 // BSD-style license that can be found in the LICENSE file. | 10821 // BSD-style license that can be found in the LICENSE file. |
10087 | 10822 |
10088 | 10823 |
10089 /// @domName HashChangeEvent; @docsEditable true | 10824 /// @docsEditable true |
| 10825 @DomName("HashChangeEvent") |
10090 class HashChangeEvent extends Event native "*HashChangeEvent" { | 10826 class HashChangeEvent extends Event native "*HashChangeEvent" { |
10091 | 10827 |
10092 /// @domName HashChangeEvent.newURL; @docsEditable true | 10828 /// @docsEditable true |
10093 @JSName('newURL') | 10829 @JSName('newURL') |
| 10830 @DomName("HashChangeEvent.newURL") |
10094 final String newUrl; | 10831 final String newUrl; |
10095 | 10832 |
10096 /// @domName HashChangeEvent.oldURL; @docsEditable true | 10833 /// @docsEditable true |
10097 @JSName('oldURL') | 10834 @JSName('oldURL') |
| 10835 @DomName("HashChangeEvent.oldURL") |
10098 final String oldUrl; | 10836 final String oldUrl; |
10099 | 10837 |
10100 /// @domName HashChangeEvent.initHashChangeEvent; @docsEditable true | 10838 /// @docsEditable true |
| 10839 @DomName("HashChangeEvent.initHashChangeEvent") |
10101 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) native; | 10840 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) native; |
10102 } | 10841 } |
10103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10104 // for details. All rights reserved. Use of this source code is governed by a | 10843 // for details. All rights reserved. Use of this source code is governed by a |
10105 // BSD-style license that can be found in the LICENSE file. | 10844 // BSD-style license that can be found in the LICENSE file. |
10106 | 10845 |
10107 | 10846 |
10108 /// @domName HTMLHeadElement; @docsEditable true | 10847 /// @docsEditable true |
| 10848 @DomName("HTMLHeadElement") |
10109 class HeadElement extends Element native "*HTMLHeadElement" { | 10849 class HeadElement extends Element native "*HTMLHeadElement" { |
10110 | 10850 |
10111 ///@docsEditable true | 10851 /// @docsEditable true |
10112 factory HeadElement() => document.$dom_createElement("head"); | 10852 factory HeadElement() => document.$dom_createElement("head"); |
10113 } | 10853 } |
10114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10115 // for details. All rights reserved. Use of this source code is governed by a | 10855 // for details. All rights reserved. Use of this source code is governed by a |
10116 // BSD-style license that can be found in the LICENSE file. | 10856 // BSD-style license that can be found in the LICENSE file. |
10117 | 10857 |
10118 | 10858 |
10119 /// @domName HTMLHeadingElement; @docsEditable true | 10859 /// @docsEditable true |
| 10860 @DomName("HTMLHeadingElement") |
10120 class HeadingElement extends Element native "*HTMLHeadingElement" { | 10861 class HeadingElement extends Element native "*HTMLHeadingElement" { |
10121 | 10862 |
10122 ///@docsEditable true | 10863 /// @docsEditable true |
10123 factory HeadingElement.h1() => document.$dom_createElement("h1"); | 10864 factory HeadingElement.h1() => document.$dom_createElement("h1"); |
10124 | 10865 |
10125 ///@docsEditable true | 10866 /// @docsEditable true |
10126 factory HeadingElement.h2() => document.$dom_createElement("h2"); | 10867 factory HeadingElement.h2() => document.$dom_createElement("h2"); |
10127 | 10868 |
10128 ///@docsEditable true | 10869 /// @docsEditable true |
10129 factory HeadingElement.h3() => document.$dom_createElement("h3"); | 10870 factory HeadingElement.h3() => document.$dom_createElement("h3"); |
10130 | 10871 |
10131 ///@docsEditable true | 10872 /// @docsEditable true |
10132 factory HeadingElement.h4() => document.$dom_createElement("h4"); | 10873 factory HeadingElement.h4() => document.$dom_createElement("h4"); |
10133 | 10874 |
10134 ///@docsEditable true | 10875 /// @docsEditable true |
10135 factory HeadingElement.h5() => document.$dom_createElement("h5"); | 10876 factory HeadingElement.h5() => document.$dom_createElement("h5"); |
10136 | 10877 |
10137 ///@docsEditable true | 10878 /// @docsEditable true |
10138 factory HeadingElement.h6() => document.$dom_createElement("h6"); | 10879 factory HeadingElement.h6() => document.$dom_createElement("h6"); |
10139 } | 10880 } |
10140 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10141 // for details. All rights reserved. Use of this source code is governed by a | 10882 // for details. All rights reserved. Use of this source code is governed by a |
10142 // BSD-style license that can be found in the LICENSE file. | 10883 // BSD-style license that can be found in the LICENSE file. |
10143 | 10884 |
10144 | 10885 |
10145 /// @domName History; @docsEditable true | 10886 /// @docsEditable true |
| 10887 @DomName("History") |
10146 class History implements HistoryBase native "*History" { | 10888 class History implements HistoryBase native "*History" { |
10147 | 10889 |
10148 /** | 10890 /** |
10149 * Checks if the State APIs are supported on the current platform. | 10891 * Checks if the State APIs are supported on the current platform. |
10150 * | 10892 * |
10151 * See also: | 10893 * See also: |
10152 * | 10894 * |
10153 * * [pushState] | 10895 * * [pushState] |
10154 * * [replaceState] | 10896 * * [replaceState] |
10155 * * [state] | 10897 * * [state] |
10156 */ | 10898 */ |
10157 static bool get supportsState => JS('bool', '!!window.history.pushState'); | 10899 static bool get supportsState => JS('bool', '!!window.history.pushState'); |
10158 | 10900 |
10159 /// @domName History.length; @docsEditable true | 10901 /// @docsEditable true |
| 10902 @DomName("History.length") |
10160 final int length; | 10903 final int length; |
10161 | 10904 |
10162 /// @domName History.state; @docsEditable true | 10905 /// @docsEditable true |
10163 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); | 10906 dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); |
10164 @JSName('state') | 10907 @JSName('state') |
10165 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript
Value | 10908 @DomName("History.state") @annotation_Creates_SerializedScriptValue @annotatio
n_Returns_SerializedScriptValue |
10166 final dynamic _state; | 10909 final dynamic _state; |
10167 | 10910 |
10168 /// @domName History.back; @docsEditable true | 10911 /// @docsEditable true |
| 10912 @DomName("History.back") |
10169 void back() native; | 10913 void back() native; |
10170 | 10914 |
10171 /// @domName History.forward; @docsEditable true | 10915 /// @docsEditable true |
| 10916 @DomName("History.forward") |
10172 void forward() native; | 10917 void forward() native; |
10173 | 10918 |
10174 /// @domName History.go; @docsEditable true | 10919 /// @docsEditable true |
| 10920 @DomName("History.go") |
10175 void go(int distance) native; | 10921 void go(int distance) native; |
10176 | 10922 |
10177 /// @domName History.pushState; @docsEditable true | 10923 /// @docsEditable true |
10178 @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.
FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(Supporte
dBrowser.SAFARI) | 10924 @DomName("History.pushState") @SupportedBrowser(SupportedBrowser.CHROME) @Supp
ortedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '1
0') @SupportedBrowser(SupportedBrowser.SAFARI) |
10179 void pushState(Object data, String title, [String url]) native; | 10925 void pushState(Object data, String title, [String url]) native; |
10180 | 10926 |
10181 /// @domName History.replaceState; @docsEditable true | 10927 /// @docsEditable true |
10182 @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.
FIREFOX) @SupportedBrowser(SupportedBrowser.IE, '10') @SupportedBrowser(Supporte
dBrowser.SAFARI) | 10928 @DomName("History.replaceState") @SupportedBrowser(SupportedBrowser.CHROME) @S
upportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE,
'10') @SupportedBrowser(SupportedBrowser.SAFARI) |
10183 void replaceState(Object data, String title, [String url]) native; | 10929 void replaceState(Object data, String title, [String url]) native; |
10184 } | 10930 } |
10185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10186 // for details. All rights reserved. Use of this source code is governed by a | 10932 // for details. All rights reserved. Use of this source code is governed by a |
10187 // BSD-style license that can be found in the LICENSE file. | 10933 // BSD-style license that can be found in the LICENSE file. |
10188 | 10934 |
10189 | 10935 |
10190 /// @domName HTMLAllCollection; @docsEditable true | 10936 /// @docsEditable true |
| 10937 @DomName("HTMLAllCollection") |
10191 class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
"*HTMLAllCollection" { | 10938 class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native
"*HTMLAllCollection" { |
10192 | 10939 |
10193 /// @domName HTMLAllCollection.length; @docsEditable true | 10940 /// @docsEditable true |
| 10941 @DomName("HTMLAllCollection.length") |
10194 int get length => JS("int", "#.length", this); | 10942 int get length => JS("int", "#.length", this); |
10195 | 10943 |
10196 Node operator[](int index) => JS("Node", "#[#]", this, index); | 10944 Node operator[](int index) => JS("Node", "#[#]", this, index); |
10197 | 10945 |
10198 void operator[]=(int index, Node value) { | 10946 void operator[]=(int index, Node value) { |
10199 throw new UnsupportedError("Cannot assign element of immutable List."); | 10947 throw new UnsupportedError("Cannot assign element of immutable List."); |
10200 } | 10948 } |
10201 // -- start List<Node> mixins. | 10949 // -- start List<Node> mixins. |
10202 // Node is the element type. | 10950 // Node is the element type. |
10203 | 10951 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10331 | 11079 |
10332 void insertRange(int start, int rangeLength, [Node initialValue]) { | 11080 void insertRange(int start, int rangeLength, [Node initialValue]) { |
10333 throw new UnsupportedError("Cannot insertRange on immutable List."); | 11081 throw new UnsupportedError("Cannot insertRange on immutable List."); |
10334 } | 11082 } |
10335 | 11083 |
10336 List<Node> getRange(int start, int rangeLength) => | 11084 List<Node> getRange(int start, int rangeLength) => |
10337 Lists.getRange(this, start, rangeLength, <Node>[]); | 11085 Lists.getRange(this, start, rangeLength, <Node>[]); |
10338 | 11086 |
10339 // -- end List<Node> mixins. | 11087 // -- end List<Node> mixins. |
10340 | 11088 |
10341 /// @domName HTMLAllCollection.item; @docsEditable true | 11089 /// @docsEditable true |
| 11090 @DomName("HTMLAllCollection.item") |
10342 Node item(int index) native; | 11091 Node item(int index) native; |
10343 | 11092 |
10344 /// @domName HTMLAllCollection.namedItem; @docsEditable true | 11093 /// @docsEditable true |
| 11094 @DomName("HTMLAllCollection.namedItem") |
10345 Node namedItem(String name) native; | 11095 Node namedItem(String name) native; |
10346 | 11096 |
10347 /// @domName HTMLAllCollection.tags; @docsEditable true | 11097 /// @docsEditable true |
| 11098 @DomName("HTMLAllCollection.tags") |
10348 @Returns('NodeList') @Creates('NodeList') | 11099 @Returns('NodeList') @Creates('NodeList') |
10349 List<Node> tags(String name) native; | 11100 List<Node> tags(String name) native; |
10350 } | 11101 } |
10351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10352 // for details. All rights reserved. Use of this source code is governed by a | 11103 // for details. All rights reserved. Use of this source code is governed by a |
10353 // BSD-style license that can be found in the LICENSE file. | 11104 // BSD-style license that can be found in the LICENSE file. |
10354 | 11105 |
10355 | 11106 |
10356 /// @domName HTMLCollection; @docsEditable true | 11107 /// @docsEditable true |
| 11108 @DomName("HTMLCollection") |
10357 class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
HTMLCollection" { | 11109 class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*
HTMLCollection" { |
10358 | 11110 |
10359 /// @domName HTMLCollection.length; @docsEditable true | 11111 /// @docsEditable true |
| 11112 @DomName("HTMLCollection.length") |
10360 int get length => JS("int", "#.length", this); | 11113 int get length => JS("int", "#.length", this); |
10361 | 11114 |
10362 Node operator[](int index) => JS("Node", "#[#]", this, index); | 11115 Node operator[](int index) => JS("Node", "#[#]", this, index); |
10363 | 11116 |
10364 void operator[]=(int index, Node value) { | 11117 void operator[]=(int index, Node value) { |
10365 throw new UnsupportedError("Cannot assign element of immutable List."); | 11118 throw new UnsupportedError("Cannot assign element of immutable List."); |
10366 } | 11119 } |
10367 // -- start List<Node> mixins. | 11120 // -- start List<Node> mixins. |
10368 // Node is the element type. | 11121 // Node is the element type. |
10369 | 11122 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10497 | 11250 |
10498 void insertRange(int start, int rangeLength, [Node initialValue]) { | 11251 void insertRange(int start, int rangeLength, [Node initialValue]) { |
10499 throw new UnsupportedError("Cannot insertRange on immutable List."); | 11252 throw new UnsupportedError("Cannot insertRange on immutable List."); |
10500 } | 11253 } |
10501 | 11254 |
10502 List<Node> getRange(int start, int rangeLength) => | 11255 List<Node> getRange(int start, int rangeLength) => |
10503 Lists.getRange(this, start, rangeLength, <Node>[]); | 11256 Lists.getRange(this, start, rangeLength, <Node>[]); |
10504 | 11257 |
10505 // -- end List<Node> mixins. | 11258 // -- end List<Node> mixins. |
10506 | 11259 |
10507 /// @domName HTMLCollection.item; @docsEditable true | 11260 /// @docsEditable true |
| 11261 @DomName("HTMLCollection.item") |
10508 Node item(int index) native; | 11262 Node item(int index) native; |
10509 | 11263 |
10510 /// @domName HTMLCollection.namedItem; @docsEditable true | 11264 /// @docsEditable true |
| 11265 @DomName("HTMLCollection.namedItem") |
10511 Node namedItem(String name) native; | 11266 Node namedItem(String name) native; |
10512 } | 11267 } |
10513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10514 // for details. All rights reserved. Use of this source code is governed by a | 11269 // for details. All rights reserved. Use of this source code is governed by a |
10515 // BSD-style license that can be found in the LICENSE file. | 11270 // BSD-style license that can be found in the LICENSE file. |
10516 | 11271 |
10517 // WARNING: Do not edit - generated code. | 11272 // WARNING: Do not edit - generated code. |
10518 | 11273 |
10519 | 11274 |
10520 /// @domName HTMLDocument | 11275 @DomName("HTMLDocument") |
10521 class HtmlDocument extends Document native "*HTMLDocument" { | 11276 class HtmlDocument extends Document native "*HTMLDocument" { |
10522 | 11277 |
10523 /// @domName HTMLDocument.activeElement; @docsEditable true | 11278 /// @docsEditable true |
| 11279 @DomName("HTMLDocument.activeElement") |
10524 final Element activeElement; | 11280 final Element activeElement; |
10525 | 11281 |
10526 /** @domName Document.body */ | 11282 @DomName("Document.body") |
10527 BodyElement get body => document.$dom_body; | 11283 BodyElement get body => document.$dom_body; |
10528 | 11284 |
10529 /** @domName Document.body */ | 11285 @DomName("Document.body") |
10530 void set body(BodyElement value) { | 11286 void set body(BodyElement value) { |
10531 document.$dom_body = value; | 11287 document.$dom_body = value; |
10532 } | 11288 } |
10533 | 11289 |
10534 /** @domName Document.caretRangeFromPoint */ | 11290 @DomName("Document.caretRangeFromPoint") |
10535 Range caretRangeFromPoint(int x, int y) { | 11291 Range caretRangeFromPoint(int x, int y) { |
10536 return document.$dom_caretRangeFromPoint(x, y); | 11292 return document.$dom_caretRangeFromPoint(x, y); |
10537 } | 11293 } |
10538 | 11294 |
10539 /** @domName Document.elementFromPoint */ | 11295 @DomName("Document.elementFromPoint") |
10540 Element elementFromPoint(int x, int y) { | 11296 Element elementFromPoint(int x, int y) { |
10541 return document.$dom_elementFromPoint(x, y); | 11297 return document.$dom_elementFromPoint(x, y); |
10542 } | 11298 } |
10543 | 11299 |
10544 /** | 11300 /** |
10545 * Checks if the getCssCanvasContext API is supported on the current platform. | 11301 * Checks if the getCssCanvasContext API is supported on the current platform. |
10546 * | 11302 * |
10547 * See also: | 11303 * See also: |
10548 * | 11304 * |
10549 * * [getCssCanvasContext] | 11305 * * [getCssCanvasContext] |
(...skipping 18 matching lines...) Expand all Loading... |
10568 * context.fillRect(0, 0, 100, 100); | 11324 * context.fillRect(0, 0, 100, 100); |
10569 * | 11325 * |
10570 * See also: | 11326 * See also: |
10571 * | 11327 * |
10572 * * [supportsCssCanvasContext] | 11328 * * [supportsCssCanvasContext] |
10573 * * [CanvasElement.getContext] | 11329 * * [CanvasElement.getContext] |
10574 */ | 11330 */ |
10575 @SupportedBrowser(SupportedBrowser.CHROME) | 11331 @SupportedBrowser(SupportedBrowser.CHROME) |
10576 @SupportedBrowser(SupportedBrowser.SAFARI) | 11332 @SupportedBrowser(SupportedBrowser.SAFARI) |
10577 @Experimental() | 11333 @Experimental() |
| 11334 @DomName("Document.getCSSCanvasContext") |
10578 CanvasRenderingContext getCssCanvasContext(String contextId, String name, | 11335 CanvasRenderingContext getCssCanvasContext(String contextId, String name, |
10579 int width, int height) { | 11336 int width, int height) { |
10580 return document.$dom_getCssCanvasContext(contextId, name, width, height); | 11337 return document.$dom_getCssCanvasContext(contextId, name, width, height); |
10581 } | 11338 } |
10582 | 11339 |
10583 /** @domName Document.head */ | 11340 @DomName("Document.head") |
10584 HeadElement get head => document.$dom_head; | 11341 HeadElement get head => document.$dom_head; |
10585 | 11342 |
10586 /** @domName Document.lastModified */ | 11343 @DomName("Document.lastModified") |
10587 String get lastModified => document.$dom_lastModified; | 11344 String get lastModified => document.$dom_lastModified; |
10588 | 11345 |
10589 /** @domName Document.preferredStylesheetSet */ | 11346 @DomName("Document.preferredStylesheetSet") |
10590 String get preferredStylesheetSet => document.$dom_preferredStylesheetSet; | 11347 String get preferredStylesheetSet => document.$dom_preferredStylesheetSet; |
10591 | 11348 |
10592 /** @domName Document.referrer */ | 11349 @DomName("Document.referrer") |
10593 String get referrer => document.$dom_referrer; | 11350 String get referrer => document.$dom_referrer; |
10594 | 11351 |
10595 /** @domName Document.selectedStylesheetSet */ | 11352 @DomName("Document.selectedStylesheetSet") |
10596 String get selectedStylesheetSet => document.$dom_selectedStylesheetSet; | 11353 String get selectedStylesheetSet => document.$dom_selectedStylesheetSet; |
10597 void set selectedStylesheetSet(String value) { | 11354 void set selectedStylesheetSet(String value) { |
10598 document.$dom_selectedStylesheetSet = value; | 11355 document.$dom_selectedStylesheetSet = value; |
10599 } | 11356 } |
10600 | 11357 |
10601 /** @domName Document.styleSheets */ | 11358 @DomName("Document.styleSheets") |
10602 List<StyleSheet> get styleSheets => document.$dom_styleSheets; | 11359 List<StyleSheet> get styleSheets => document.$dom_styleSheets; |
10603 | 11360 |
10604 /** @domName Document.title */ | 11361 @DomName("Document.title") |
10605 String get title => document.$dom_title; | 11362 String get title => document.$dom_title; |
10606 | 11363 |
10607 /** @domName Document.title */ | 11364 @DomName("Document.title") |
10608 void set title(String value) { | 11365 void set title(String value) { |
10609 document.$dom_title = value; | 11366 document.$dom_title = value; |
10610 } | 11367 } |
10611 | 11368 |
10612 /** @domName Document.webkitCancelFullScreen */ | 11369 @DomName("Document.webkitCancelFullScreen") |
10613 void webkitCancelFullScreen() { | 11370 void webkitCancelFullScreen() { |
10614 document.$dom_webkitCancelFullScreen(); | 11371 document.$dom_webkitCancelFullScreen(); |
10615 } | 11372 } |
10616 | 11373 |
10617 /** @domName Document.webkitExitFullscreen */ | 11374 @DomName("Document.webkitExitFullscreen") |
10618 void webkitExitFullscreen() { | 11375 void webkitExitFullscreen() { |
10619 document.$dom_webkitExitFullscreen(); | 11376 document.$dom_webkitExitFullscreen(); |
10620 } | 11377 } |
10621 | 11378 |
10622 /** @domName Document.webkitExitPointerLock */ | 11379 @DomName("Document.webkitExitPointerLock") |
10623 void webkitExitPointerLock() { | 11380 void webkitExitPointerLock() { |
10624 document.$dom_webkitExitPointerLock(); | 11381 document.$dom_webkitExitPointerLock(); |
10625 } | 11382 } |
10626 | 11383 |
10627 /** @domName Document.webkitFullscreenElement */ | 11384 @DomName("Document.webkitFullscreenElement") |
10628 Element get webkitFullscreenElement => document.$dom_webkitFullscreenElement; | 11385 Element get webkitFullscreenElement => document.$dom_webkitFullscreenElement; |
10629 | 11386 |
10630 /** @domName Document.webkitFullscreenEnabled */ | 11387 @DomName("Document.webkitFullscreenEnabled") |
10631 bool get webkitFullscreenEnabled => document.$dom_webkitFullscreenEnabled; | 11388 bool get webkitFullscreenEnabled => document.$dom_webkitFullscreenEnabled; |
10632 | 11389 |
10633 /** @domName Document.webkitHidden */ | 11390 @DomName("Document.webkitHidden") |
10634 bool get webkitHidden => document.$dom_webkitHidden; | 11391 bool get webkitHidden => document.$dom_webkitHidden; |
10635 | 11392 |
10636 /** @domName Document.webkitIsFullScreen */ | 11393 @DomName("Document.webkitIsFullScreen") |
10637 bool get webkitIsFullScreen => document.$dom_webkitIsFullScreen; | 11394 bool get webkitIsFullScreen => document.$dom_webkitIsFullScreen; |
10638 | 11395 |
10639 /** @domName Document.webkitPointerLockElement */ | 11396 @DomName("Document.webkitPointerLockElement") |
10640 Element get webkitPointerLockElement => | 11397 Element get webkitPointerLockElement => |
10641 document.$dom_webkitPointerLockElement; | 11398 document.$dom_webkitPointerLockElement; |
10642 | 11399 |
10643 /** @domName Document.webkitVisibilityState */ | 11400 @DomName("Document.webkitVisibilityState") |
10644 String get webkitVisibilityState => document.$dom_webkitVisibilityState; | 11401 String get webkitVisibilityState => document.$dom_webkitVisibilityState; |
10645 } | 11402 } |
10646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10647 // for details. All rights reserved. Use of this source code is governed by a | 11404 // for details. All rights reserved. Use of this source code is governed by a |
10648 // BSD-style license that can be found in the LICENSE file. | 11405 // BSD-style license that can be found in the LICENSE file. |
10649 | 11406 |
10650 | 11407 |
10651 /// @domName HTMLHtmlElement; @docsEditable true | 11408 /// @docsEditable true |
| 11409 @DomName("HTMLHtmlElement") |
10652 class HtmlElement extends Element native "*HTMLHtmlElement" { | 11410 class HtmlElement extends Element native "*HTMLHtmlElement" { |
10653 | 11411 |
10654 ///@docsEditable true | 11412 /// @docsEditable true |
10655 factory HtmlElement() => document.$dom_createElement("html"); | 11413 factory HtmlElement() => document.$dom_createElement("html"); |
10656 } | 11414 } |
10657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10658 // for details. All rights reserved. Use of this source code is governed by a | 11416 // for details. All rights reserved. Use of this source code is governed by a |
10659 // BSD-style license that can be found in the LICENSE file. | 11417 // BSD-style license that can be found in the LICENSE file. |
10660 | 11418 |
10661 | 11419 |
10662 /// @domName HTMLFormControlsCollection; @docsEditable true | 11420 /// @docsEditable true |
| 11421 @DomName("HTMLFormControlsCollection") |
10663 class HtmlFormControlsCollection extends HtmlCollection native "*HTMLFormControl
sCollection" { | 11422 class HtmlFormControlsCollection extends HtmlCollection native "*HTMLFormControl
sCollection" { |
10664 | 11423 |
10665 /// @domName HTMLFormControlsCollection.namedItem; @docsEditable true | 11424 /// @docsEditable true |
| 11425 @DomName("HTMLFormControlsCollection.namedItem") |
10666 Node namedItem(String name) native; | 11426 Node namedItem(String name) native; |
10667 } | 11427 } |
10668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10669 // for details. All rights reserved. Use of this source code is governed by a | 11429 // for details. All rights reserved. Use of this source code is governed by a |
10670 // BSD-style license that can be found in the LICENSE file. | 11430 // BSD-style license that can be found in the LICENSE file. |
10671 | 11431 |
10672 | 11432 |
10673 /// @domName HTMLOptionsCollection; @docsEditable true | 11433 /// @docsEditable true |
| 11434 @DomName("HTMLOptionsCollection") |
10674 class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio
n" { | 11435 class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio
n" { |
10675 | 11436 |
10676 // Shadowing definition. | 11437 // Shadowing definition. |
10677 /// @domName HTMLOptionsCollection.length; @docsEditable true | 11438 /// @docsEditable true |
10678 int get length => JS("int", "#.length", this); | 11439 int get length => JS("int", "#.length", this); |
10679 | 11440 |
10680 /// @domName HTMLOptionsCollection.length; @docsEditable true | 11441 /// @docsEditable true |
10681 void set length(int value) { | 11442 void set length(int value) { |
10682 JS("void", "#.length = #", this, value); | 11443 JS("void", "#.length = #", this, value); |
10683 } | 11444 } |
10684 | 11445 |
10685 /// @domName HTMLOptionsCollection.selectedIndex; @docsEditable true | 11446 /// @docsEditable true |
| 11447 @DomName("HTMLOptionsCollection.selectedIndex") |
10686 int selectedIndex; | 11448 int selectedIndex; |
10687 | 11449 |
10688 /// @domName HTMLOptionsCollection.namedItem; @docsEditable true | 11450 /// @docsEditable true |
| 11451 @DomName("HTMLOptionsCollection.namedItem") |
10689 Node namedItem(String name) native; | 11452 Node namedItem(String name) native; |
10690 | 11453 |
10691 /// @domName HTMLOptionsCollection.remove; @docsEditable true | 11454 /// @docsEditable true |
| 11455 @DomName("HTMLOptionsCollection.remove") |
10692 void remove(int index) native; | 11456 void remove(int index) native; |
10693 } | 11457 } |
10694 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11458 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
10695 // for details. All rights reserved. Use of this source code is governed by a | 11459 // for details. All rights reserved. Use of this source code is governed by a |
10696 // BSD-style license that can be found in the LICENSE file. | 11460 // BSD-style license that can be found in the LICENSE file. |
10697 | 11461 |
10698 | 11462 |
10699 /** | 11463 /** |
10700 * A utility for retrieving data from a URL. | 11464 * A utility for retrieving data from a URL. |
10701 * | 11465 * |
(...skipping 12 matching lines...) Expand all Loading... |
10714 * port, and application layer protocol) as the URL you are trying to access | 11478 * port, and application layer protocol) as the URL you are trying to access |
10715 * with HttpRequest. However, there are ways to | 11479 * with HttpRequest. However, there are ways to |
10716 * [get around this restriction](http://www.dartlang.org/articles/json-web-servi
ce/#note-on-jsonp). | 11480 * [get around this restriction](http://www.dartlang.org/articles/json-web-servi
ce/#note-on-jsonp). |
10717 * | 11481 * |
10718 * See also: | 11482 * See also: |
10719 * | 11483 * |
10720 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json-
web-service/#getting-data) | 11484 * * [Dart article on using HttpRequests](http://www.dartlang.org/articles/json-
web-service/#getting-data) |
10721 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpReq
uest) | 11485 * * [JS XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpReq
uest) |
10722 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttp
Request/Using_XMLHttpRequest) | 11486 * * [Using XMLHttpRequest](https://developer.mozilla.org/en-US/docs/DOM/XMLHttp
Request/Using_XMLHttpRequest) |
10723 */ | 11487 */ |
10724 /// @domName XMLHttpRequest | 11488 @DomName("XMLHttpRequest") |
10725 class HttpRequest extends EventTarget native "*XMLHttpRequest" { | 11489 class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
10726 /** | 11490 /** |
10727 * Creates a URL get request for the specified `url`. | 11491 * Creates a URL get request for the specified `url`. |
10728 * | 11492 * |
10729 * After completing the request, the object will call the user-provided | 11493 * After completing the request, the object will call the user-provided |
10730 * [onComplete] callback. | 11494 * [onComplete] callback. |
10731 */ | 11495 */ |
10732 factory HttpRequest.get(String url, onComplete(HttpRequest request)) => | 11496 factory HttpRequest.get(String url, onComplete(HttpRequest request)) => |
10733 _HttpRequestUtils.get(url, onComplete, false); | 11497 _HttpRequestUtils.get(url, onComplete, false); |
10734 | 11498 |
(...skipping 13 matching lines...) Expand all Loading... |
10748 * * The `Access-Control-Allow-Credentials` header of `url` must be set to tru
e. | 11512 * * The `Access-Control-Allow-Credentials` header of `url` must be set to tru
e. |
10749 * * If `Access-Control-Expose-Headers` has not been set to true, only a subse
t of all the response headers will be returned when calling [getAllRequestHeader
s]. | 11513 * * If `Access-Control-Expose-Headers` has not been set to true, only a subse
t of all the response headers will be returned when calling [getAllRequestHeader
s]. |
10750 * | 11514 * |
10751 * See also: [authorization headers](http://en.wikipedia.org/wiki/Basic_access
_authentication). | 11515 * See also: [authorization headers](http://en.wikipedia.org/wiki/Basic_access
_authentication). |
10752 */ | 11516 */ |
10753 factory HttpRequest.getWithCredentials(String url, | 11517 factory HttpRequest.getWithCredentials(String url, |
10754 onComplete(HttpRequest request)) => | 11518 onComplete(HttpRequest request)) => |
10755 _HttpRequestUtils.get(url, onComplete, true); | 11519 _HttpRequestUtils.get(url, onComplete, true); |
10756 | 11520 |
10757 | 11521 |
10758 ///@docsEditable true | 11522 /// @docsEditable true |
10759 factory HttpRequest() => HttpRequest._create(); | 11523 factory HttpRequest() => HttpRequest._create(); |
10760 static HttpRequest _create() => JS('HttpRequest', 'new XMLHttpRequest()'); | 11524 static HttpRequest _create() => JS('HttpRequest', 'new XMLHttpRequest()'); |
10761 | 11525 |
10762 /** | 11526 /// @docsEditable true |
10763 * Get the set of [HttpRequestEvents] that this request can respond to. | 11527 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
10764 * Usually used when adding an EventListener, such as in | |
10765 * `document.window.on.keyDown.add((e) => print('keydown happened'))`. | |
10766 */ | |
10767 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | |
10768 HttpRequestEvents get on => | 11528 HttpRequestEvents get on => |
10769 new HttpRequestEvents(this); | 11529 new HttpRequestEvents(this); |
10770 | 11530 |
10771 static const int DONE = 4; | 11531 static const int DONE = 4; |
10772 | 11532 |
10773 static const int HEADERS_RECEIVED = 2; | 11533 static const int HEADERS_RECEIVED = 2; |
10774 | 11534 |
10775 static const int LOADING = 3; | 11535 static const int LOADING = 3; |
10776 | 11536 |
10777 static const int OPENED = 1; | 11537 static const int OPENED = 1; |
10778 | 11538 |
10779 static const int UNSENT = 0; | 11539 static const int UNSENT = 0; |
10780 | 11540 |
10781 /** | 11541 /// @docsEditable true |
10782 * Indicator of the current state of the request: | 11542 @DomName("XMLHttpRequest.readyState") |
10783 * | |
10784 * <table> | |
10785 * <tr> | |
10786 * <td>Value</td> | |
10787 * <td>State</td> | |
10788 * <td>Meaning</td> | |
10789 * </tr> | |
10790 * <tr> | |
10791 * <td>0</td> | |
10792 * <td>unsent</td> | |
10793 * <td><code>open()</code> has not yet been called</td> | |
10794 * </tr> | |
10795 * <tr> | |
10796 * <td>1</td> | |
10797 * <td>opened</td> | |
10798 * <td><code>send()</code> has not yet been called</td> | |
10799 * </tr> | |
10800 * <tr> | |
10801 * <td>2</td> | |
10802 * <td>headers received</td> | |
10803 * <td><code>sent()</code> has been called; response headers and <code>sta
tus</code> are available</td> | |
10804 * </tr> | |
10805 * <tr> | |
10806 * <td>3</td> <td>loading</td> <td><code>responseText</code> holds some da
ta</td> | |
10807 * </tr> | |
10808 * <tr> | |
10809 * <td>4</td> <td>done</td> <td>request is complete</td> | |
10810 * </tr> | |
10811 * </table> | |
10812 */ | |
10813 /// @domName XMLHttpRequest.readyState; @docsEditable true | |
10814 final int readyState; | 11543 final int readyState; |
10815 | 11544 |
10816 /** | 11545 /// @docsEditable true |
10817 * The data received as a reponse from the request. | 11546 @DomName("XMLHttpRequest.response") @Creates('ArrayBuffer|Blob|Document|=Objec
t|=List|String|num') |
10818 * | |
10819 * The data could be in the | |
10820 * form of a [String], [ArrayBuffer], [Document], [Blob], or json (also a | |
10821 * [String]). `null` indicates request failure. | |
10822 */ | |
10823 /// @domName XMLHttpRequest.response; @docsEditable true | |
10824 @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num') | |
10825 final Object response; | 11547 final Object response; |
10826 | 11548 |
10827 /** | 11549 /// @docsEditable true |
10828 * The response in string form or null on failure. | 11550 @DomName("XMLHttpRequest.responseText") |
10829 */ | |
10830 /// @domName XMLHttpRequest.responseText; @docsEditable true | |
10831 final String responseText; | 11551 final String responseText; |
10832 | 11552 |
10833 /** | 11553 /// @docsEditable true |
10834 * [String] telling the server the desired response format. | 11554 @DomName("XMLHttpRequest.responseType") |
10835 * | |
10836 * Default is `String`. | |
10837 * Other options are one of 'arraybuffer', 'blob', 'document', 'json', | |
10838 * 'text'. Some newer browsers will throw `NS_ERROR_DOM_INVALID_ACCESS_ERR` if | |
10839 * `responseType` is set while performing a synchronous request. | |
10840 * | |
10841 * See also: [MDN responseType](https://developer.mozilla.org/en-US/docs/DOM/X
MLHttpRequest#responseType) | |
10842 */ | |
10843 /// @domName XMLHttpRequest.responseType; @docsEditable true | |
10844 String responseType; | 11555 String responseType; |
10845 | 11556 |
10846 /** | 11557 /** |
10847 * The request response, or null on failure. | 11558 * The request response, or null on failure. |
10848 * | 11559 * |
10849 * The response is processed as | 11560 * The response is processed as |
10850 * `text/xml` stream, unless responseType = 'document' and the request is | 11561 * `text/xml` stream, unless responseType = 'document' and the request is |
10851 * synchronous. | 11562 * synchronous. |
10852 */ | 11563 */ |
10853 /// @domName XMLHttpRequest.responseXML; @docsEditable true | 11564 /// @docsEditable true |
10854 @JSName('responseXML') | 11565 @JSName('responseXML') |
| 11566 @DomName("XMLHttpRequest.responseXML") |
10855 final Document responseXml; | 11567 final Document responseXml; |
10856 | 11568 |
10857 /** | 11569 /// @docsEditable true |
10858 * The http result code from the request (200, 404, etc). | 11570 @DomName("XMLHttpRequest.status") |
10859 * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_of_HTTP_sta
tus_codes) | |
10860 */ | |
10861 /// @domName XMLHttpRequest.status; @docsEditable true | |
10862 final int status; | 11571 final int status; |
10863 | 11572 |
10864 /** | 11573 /// @docsEditable true |
10865 * The request response string (such as "200 OK"). | 11574 @DomName("XMLHttpRequest.statusText") |
10866 * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_of_HTTP_sta
tus_codes) | |
10867 */ | |
10868 /// @domName XMLHttpRequest.statusText; @docsEditable true | |
10869 final String statusText; | 11575 final String statusText; |
10870 | 11576 |
10871 /** | 11577 /// @docsEditable true |
10872 * [EventTarget] that can hold listeners to track the progress of the request. | 11578 @DomName("XMLHttpRequest.upload") |
10873 * The events fired will be members of [HttpRequestUploadEvents]. | |
10874 */ | |
10875 /// @domName XMLHttpRequest.upload; @docsEditable true | |
10876 final HttpRequestUpload upload; | 11579 final HttpRequestUpload upload; |
10877 | 11580 |
10878 /** | 11581 /// @docsEditable true |
10879 * True if cross-site requests should use credentials such as cookies | 11582 @DomName("XMLHttpRequest.withCredentials") |
10880 * or authorization headers; false otherwise. | |
10881 * | |
10882 * This value is ignored for same-site requests. | |
10883 */ | |
10884 /// @domName XMLHttpRequest.withCredentials; @docsEditable true | |
10885 bool withCredentials; | 11583 bool withCredentials; |
10886 | 11584 |
10887 /** | 11585 /// @docsEditable true |
10888 * Stop the current request. | 11586 @DomName("XMLHttpRequest.abort") |
10889 * | |
10890 * The request can only be stopped if readyState is `HEADERS_RECIEVED` or | |
10891 * `LOADING`. If this method is not in the process of being sent, the method | |
10892 * has no effect. | |
10893 */ | |
10894 /// @domName XMLHttpRequest.abort; @docsEditable true | |
10895 void abort() native; | 11587 void abort() native; |
10896 | 11588 |
10897 /// @domName XMLHttpRequest.addEventListener; @docsEditable true | 11589 /// @docsEditable true |
10898 @JSName('addEventListener') | 11590 @JSName('addEventListener') |
| 11591 @DomName("XMLHttpRequest.addEventListener") |
10899 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 11592 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
10900 | 11593 |
10901 /// @domName XMLHttpRequest.dispatchEvent; @docsEditable true | 11594 /// @docsEditable true |
10902 @JSName('dispatchEvent') | 11595 @JSName('dispatchEvent') |
| 11596 @DomName("XMLHttpRequest.dispatchEvent") |
10903 bool $dom_dispatchEvent(Event evt) native; | 11597 bool $dom_dispatchEvent(Event evt) native; |
10904 | 11598 |
10905 /** | 11599 /// @docsEditable true |
10906 * Retrieve all the response headers from a request. | 11600 @DomName("XMLHttpRequest.getAllResponseHeaders") |
10907 * | |
10908 * `null` if no headers have been received. For multipart requests, | |
10909 * `getAllResponseHeaders` will return the response headers for the current | |
10910 * part of the request. | |
10911 * | |
10912 * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_of_HTTP_
header_fields#Responses) | |
10913 * for a list of common response headers. | |
10914 */ | |
10915 /// @domName XMLHttpRequest.getAllResponseHeaders; @docsEditable true | |
10916 String getAllResponseHeaders() native; | 11601 String getAllResponseHeaders() native; |
10917 | 11602 |
10918 /** | 11603 /// @docsEditable true |
10919 * Return the response header named `header`, or `null` if not found. | 11604 @DomName("XMLHttpRequest.getResponseHeader") |
10920 * | |
10921 * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_of_HTTP_
header_fields#Responses) | |
10922 * for a list of common response headers. | |
10923 */ | |
10924 /// @domName XMLHttpRequest.getResponseHeader; @docsEditable true | |
10925 String getResponseHeader(String header) native; | 11605 String getResponseHeader(String header) native; |
10926 | 11606 |
10927 /** | 11607 /// @docsEditable true |
10928 * Specify the desired `url`, and `method` to use in making the request. | 11608 @DomName("XMLHttpRequest.open") |
10929 * | |
10930 * By default the request is done asyncronously, with no user or password | |
10931 * authentication information. If `async` is false, the request will be send | |
10932 * synchronously. | |
10933 * | |
10934 * Calling `open` again on a currently active request is equivalent to | |
10935 * calling `abort`. | |
10936 */ | |
10937 /// @domName XMLHttpRequest.open; @docsEditable true | |
10938 void open(String method, String url, [bool async, String user, String password
]) native; | 11609 void open(String method, String url, [bool async, String user, String password
]) native; |
10939 | 11610 |
10940 /** | 11611 /// @docsEditable true |
10941 * Specify a particular MIME type (such as `text/xml`) desired for the | 11612 @DomName("XMLHttpRequest.overrideMimeType") |
10942 * response. | |
10943 * | |
10944 * This value must be set before the request has been sent. See also the list | |
10945 * of [common MIME types](http://en.wikipedia.org/wiki/Internet_media_type#Lis
t_of_common_media_types) | |
10946 */ | |
10947 /// @domName XMLHttpRequest.overrideMimeType; @docsEditable true | |
10948 void overrideMimeType(String override) native; | 11613 void overrideMimeType(String override) native; |
10949 | 11614 |
10950 /// @domName XMLHttpRequest.removeEventListener; @docsEditable true | 11615 /// @docsEditable true |
10951 @JSName('removeEventListener') | 11616 @JSName('removeEventListener') |
| 11617 @DomName("XMLHttpRequest.removeEventListener") |
10952 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 11618 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
10953 | 11619 |
10954 /** | 11620 /// @docsEditable true |
10955 * Send the request with any given `data`. | 11621 @DomName("XMLHttpRequest.send") |
10956 * | |
10957 * See also: | |
10958 * [send() docs](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#s
end()) | |
10959 * from MDN. | |
10960 */ | |
10961 /// @domName XMLHttpRequest.send; @docsEditable true | |
10962 void send([data]) native; | 11622 void send([data]) native; |
10963 | 11623 |
10964 /** Sets HTTP `header` to `value`. */ | 11624 /// @docsEditable true |
10965 /// @domName XMLHttpRequest.setRequestHeader; @docsEditable true | 11625 @DomName("XMLHttpRequest.setRequestHeader") |
10966 void setRequestHeader(String header, String value) native; | 11626 void setRequestHeader(String header, String value) native; |
10967 | 11627 |
10968 } | 11628 } |
10969 | 11629 |
10970 /** | 11630 /** |
10971 * A class that supports listening for and dispatching events that can fire when | 11631 * A class that supports listening for and dispatching events that can fire when |
10972 * making an HTTP request. | 11632 * making an HTTP request. |
10973 * | 11633 * |
10974 * Here's an example of adding an event handler that executes once an HTTP | 11634 * Here's an example of adding an event handler that executes once an HTTP |
10975 * request has fully loaded: | 11635 * request has fully loaded: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11035 * object's `readyState` changes values. | 11695 * object's `readyState` changes values. |
11036 */ | 11696 */ |
11037 /// @docsEditable true | 11697 /// @docsEditable true |
11038 EventListenerList get readyStateChange => this['readystatechange']; | 11698 EventListenerList get readyStateChange => this['readystatechange']; |
11039 } | 11699 } |
11040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11041 // for details. All rights reserved. Use of this source code is governed by a | 11701 // for details. All rights reserved. Use of this source code is governed by a |
11042 // BSD-style license that can be found in the LICENSE file. | 11702 // BSD-style license that can be found in the LICENSE file. |
11043 | 11703 |
11044 | 11704 |
11045 /// @domName XMLHttpRequestException; @docsEditable true | 11705 /// @docsEditable true |
| 11706 @DomName("XMLHttpRequestException") |
11046 class HttpRequestException native "*XMLHttpRequestException" { | 11707 class HttpRequestException native "*XMLHttpRequestException" { |
11047 | 11708 |
11048 static const int ABORT_ERR = 102; | 11709 static const int ABORT_ERR = 102; |
11049 | 11710 |
11050 static const int NETWORK_ERR = 101; | 11711 static const int NETWORK_ERR = 101; |
11051 | 11712 |
11052 /// @domName XMLHttpRequestException.code; @docsEditable true | 11713 /// @docsEditable true |
| 11714 @DomName("XMLHttpRequestException.code") |
11053 final int code; | 11715 final int code; |
11054 | 11716 |
11055 /// @domName XMLHttpRequestException.message; @docsEditable true | 11717 /// @docsEditable true |
| 11718 @DomName("XMLHttpRequestException.message") |
11056 final String message; | 11719 final String message; |
11057 | 11720 |
11058 /// @domName XMLHttpRequestException.name; @docsEditable true | 11721 /// @docsEditable true |
| 11722 @DomName("XMLHttpRequestException.name") |
11059 final String name; | 11723 final String name; |
11060 | 11724 |
11061 /// @domName XMLHttpRequestException.toString; @docsEditable true | 11725 /// @docsEditable true |
| 11726 @DomName("XMLHttpRequestException.toString") |
11062 String toString() native; | 11727 String toString() native; |
11063 } | 11728 } |
11064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11729 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11065 // for details. All rights reserved. Use of this source code is governed by a | 11730 // for details. All rights reserved. Use of this source code is governed by a |
11066 // BSD-style license that can be found in the LICENSE file. | 11731 // BSD-style license that can be found in the LICENSE file. |
11067 | 11732 |
11068 | 11733 |
11069 /// @domName XMLHttpRequestProgressEvent; @docsEditable true | 11734 /// @docsEditable true |
| 11735 @DomName("XMLHttpRequestProgressEvent") |
11070 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg
ressEvent" { | 11736 class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProg
ressEvent" { |
11071 | 11737 |
11072 /// @domName XMLHttpRequestProgressEvent.position; @docsEditable true | 11738 /// @docsEditable true |
| 11739 @DomName("XMLHttpRequestProgressEvent.position") |
11073 final int position; | 11740 final int position; |
11074 | 11741 |
11075 /// @domName XMLHttpRequestProgressEvent.totalSize; @docsEditable true | 11742 /// @docsEditable true |
| 11743 @DomName("XMLHttpRequestProgressEvent.totalSize") |
11076 final int totalSize; | 11744 final int totalSize; |
11077 } | 11745 } |
11078 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11079 // for details. All rights reserved. Use of this source code is governed by a | 11747 // for details. All rights reserved. Use of this source code is governed by a |
11080 // BSD-style license that can be found in the LICENSE file. | 11748 // BSD-style license that can be found in the LICENSE file. |
11081 | 11749 |
11082 | 11750 |
11083 /// @domName XMLHttpRequestUpload; @docsEditable true | 11751 /// @docsEditable true |
| 11752 @DomName("XMLHttpRequestUpload") |
11084 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { | 11753 class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { |
11085 | 11754 |
11086 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 11755 /// @docsEditable true |
| 11756 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
11087 HttpRequestUploadEvents get on => | 11757 HttpRequestUploadEvents get on => |
11088 new HttpRequestUploadEvents(this); | 11758 new HttpRequestUploadEvents(this); |
11089 | 11759 |
11090 /// @domName XMLHttpRequestUpload.addEventListener; @docsEditable true | 11760 /// @docsEditable true |
11091 @JSName('addEventListener') | 11761 @JSName('addEventListener') |
| 11762 @DomName("XMLHttpRequestUpload.addEventListener") |
11092 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 11763 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
11093 | 11764 |
11094 /// @domName XMLHttpRequestUpload.dispatchEvent; @docsEditable true | 11765 /// @docsEditable true |
11095 @JSName('dispatchEvent') | 11766 @JSName('dispatchEvent') |
| 11767 @DomName("XMLHttpRequestUpload.dispatchEvent") |
11096 bool $dom_dispatchEvent(Event evt) native; | 11768 bool $dom_dispatchEvent(Event evt) native; |
11097 | 11769 |
11098 /// @domName XMLHttpRequestUpload.removeEventListener; @docsEditable true | 11770 /// @docsEditable true |
11099 @JSName('removeEventListener') | 11771 @JSName('removeEventListener') |
| 11772 @DomName("XMLHttpRequestUpload.removeEventListener") |
11100 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 11773 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
11101 } | 11774 } |
11102 | 11775 |
11103 /// @docsEditable true | 11776 /// @docsEditable true |
11104 class HttpRequestUploadEvents extends Events { | 11777 class HttpRequestUploadEvents extends Events { |
11105 /// @docsEditable true | 11778 /// @docsEditable true |
11106 HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr); | 11779 HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr); |
11107 | 11780 |
11108 /// @docsEditable true | 11781 /// @docsEditable true |
11109 EventListenerList get abort => this['abort']; | 11782 EventListenerList get abort => this['abort']; |
(...skipping 11 matching lines...) Expand all Loading... |
11121 EventListenerList get loadStart => this['loadstart']; | 11794 EventListenerList get loadStart => this['loadstart']; |
11122 | 11795 |
11123 /// @docsEditable true | 11796 /// @docsEditable true |
11124 EventListenerList get progress => this['progress']; | 11797 EventListenerList get progress => this['progress']; |
11125 } | 11798 } |
11126 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11127 // for details. All rights reserved. Use of this source code is governed by a | 11800 // for details. All rights reserved. Use of this source code is governed by a |
11128 // BSD-style license that can be found in the LICENSE file. | 11801 // BSD-style license that can be found in the LICENSE file. |
11129 | 11802 |
11130 | 11803 |
11131 /// @domName HTMLIFrameElement; @docsEditable true | 11804 /// @docsEditable true |
| 11805 @DomName("HTMLIFrameElement") |
11132 class IFrameElement extends Element native "*HTMLIFrameElement" { | 11806 class IFrameElement extends Element native "*HTMLIFrameElement" { |
11133 | 11807 |
11134 ///@docsEditable true | 11808 /// @docsEditable true |
11135 factory IFrameElement() => document.$dom_createElement("iframe"); | 11809 factory IFrameElement() => document.$dom_createElement("iframe"); |
11136 | 11810 |
11137 /// @domName HTMLIFrameElement.contentWindow; @docsEditable true | 11811 /// @docsEditable true |
11138 WindowBase get contentWindow => _convertNativeToDart_Window(this._contentWindo
w); | 11812 WindowBase get contentWindow => _convertNativeToDart_Window(this._contentWindo
w); |
11139 @JSName('contentWindow') | 11813 @JSName('contentWindow') |
11140 @Creates('Window|=Object') @Returns('Window|=Object') | 11814 @DomName("HTMLIFrameElement.contentWindow") @Creates('Window|=Object') @Return
s('Window|=Object') |
11141 final dynamic _contentWindow; | 11815 final dynamic _contentWindow; |
11142 | 11816 |
11143 /// @domName HTMLIFrameElement.height; @docsEditable true | 11817 /// @docsEditable true |
| 11818 @DomName("HTMLIFrameElement.height") |
11144 String height; | 11819 String height; |
11145 | 11820 |
11146 /// @domName HTMLIFrameElement.name; @docsEditable true | 11821 /// @docsEditable true |
| 11822 @DomName("HTMLIFrameElement.name") |
11147 String name; | 11823 String name; |
11148 | 11824 |
11149 /// @domName HTMLIFrameElement.sandbox; @docsEditable true | 11825 /// @docsEditable true |
| 11826 @DomName("HTMLIFrameElement.sandbox") |
11150 String sandbox; | 11827 String sandbox; |
11151 | 11828 |
11152 /// @domName HTMLIFrameElement.src; @docsEditable true | 11829 /// @docsEditable true |
| 11830 @DomName("HTMLIFrameElement.src") |
11153 String src; | 11831 String src; |
11154 | 11832 |
11155 /// @domName HTMLIFrameElement.srcdoc; @docsEditable true | 11833 /// @docsEditable true |
| 11834 @DomName("HTMLIFrameElement.srcdoc") |
11156 String srcdoc; | 11835 String srcdoc; |
11157 | 11836 |
11158 /// @domName HTMLIFrameElement.width; @docsEditable true | 11837 /// @docsEditable true |
| 11838 @DomName("HTMLIFrameElement.width") |
11159 String width; | 11839 String width; |
11160 } | 11840 } |
11161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11162 // for details. All rights reserved. Use of this source code is governed by a | 11842 // for details. All rights reserved. Use of this source code is governed by a |
11163 // BSD-style license that can be found in the LICENSE file. | 11843 // BSD-style license that can be found in the LICENSE file. |
11164 | 11844 |
11165 | 11845 |
11166 /// @domName ImageData; @docsEditable true | 11846 /// @docsEditable true |
| 11847 @DomName("ImageData") |
11167 class ImageData native "*ImageData" { | 11848 class ImageData native "*ImageData" { |
11168 | 11849 |
11169 /// @domName ImageData.data; @docsEditable true | 11850 /// @docsEditable true |
| 11851 @DomName("ImageData.data") |
11170 final Uint8ClampedArray data; | 11852 final Uint8ClampedArray data; |
11171 | 11853 |
11172 /// @domName ImageData.height; @docsEditable true | 11854 /// @docsEditable true |
| 11855 @DomName("ImageData.height") |
11173 final int height; | 11856 final int height; |
11174 | 11857 |
11175 /// @domName ImageData.width; @docsEditable true | 11858 /// @docsEditable true |
| 11859 @DomName("ImageData.width") |
11176 final int width; | 11860 final int width; |
11177 } | 11861 } |
11178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11179 // for details. All rights reserved. Use of this source code is governed by a | 11863 // for details. All rights reserved. Use of this source code is governed by a |
11180 // BSD-style license that can be found in the LICENSE file. | 11864 // BSD-style license that can be found in the LICENSE file. |
11181 | 11865 |
11182 | 11866 |
11183 /// @domName HTMLImageElement; @docsEditable true | 11867 /// @docsEditable true |
| 11868 @DomName("HTMLImageElement") |
11184 class ImageElement extends Element native "*HTMLImageElement" { | 11869 class ImageElement extends Element native "*HTMLImageElement" { |
11185 | 11870 |
11186 ///@docsEditable true | 11871 /// @docsEditable true |
11187 factory ImageElement({String src, int width, int height}) { | 11872 factory ImageElement({String src, int width, int height}) { |
11188 var e = document.$dom_createElement("img"); | 11873 var e = document.$dom_createElement("img"); |
11189 if (src != null) e.src = src; | 11874 if (src != null) e.src = src; |
11190 if (width != null) e.width = width; | 11875 if (width != null) e.width = width; |
11191 if (height != null) e.height = height; | 11876 if (height != null) e.height = height; |
11192 return e; | 11877 return e; |
11193 } | 11878 } |
11194 | 11879 |
11195 /// @domName HTMLImageElement.alt; @docsEditable true | 11880 /// @docsEditable true |
| 11881 @DomName("HTMLImageElement.alt") |
11196 String alt; | 11882 String alt; |
11197 | 11883 |
11198 /// @domName HTMLImageElement.border; @docsEditable true | 11884 /// @docsEditable true |
| 11885 @DomName("HTMLImageElement.border") |
11199 String border; | 11886 String border; |
11200 | 11887 |
11201 /// @domName HTMLImageElement.complete; @docsEditable true | 11888 /// @docsEditable true |
| 11889 @DomName("HTMLImageElement.complete") |
11202 final bool complete; | 11890 final bool complete; |
11203 | 11891 |
11204 /// @domName HTMLImageElement.crossOrigin; @docsEditable true | 11892 /// @docsEditable true |
| 11893 @DomName("HTMLImageElement.crossOrigin") |
11205 String crossOrigin; | 11894 String crossOrigin; |
11206 | 11895 |
11207 /// @domName HTMLImageElement.height; @docsEditable true | 11896 /// @docsEditable true |
| 11897 @DomName("HTMLImageElement.height") |
11208 int height; | 11898 int height; |
11209 | 11899 |
11210 /// @domName HTMLImageElement.isMap; @docsEditable true | 11900 /// @docsEditable true |
| 11901 @DomName("HTMLImageElement.isMap") |
11211 bool isMap; | 11902 bool isMap; |
11212 | 11903 |
11213 /// @domName HTMLImageElement.lowsrc; @docsEditable true | 11904 /// @docsEditable true |
| 11905 @DomName("HTMLImageElement.lowsrc") |
11214 String lowsrc; | 11906 String lowsrc; |
11215 | 11907 |
11216 /// @domName HTMLImageElement.naturalHeight; @docsEditable true | 11908 /// @docsEditable true |
| 11909 @DomName("HTMLImageElement.naturalHeight") |
11217 final int naturalHeight; | 11910 final int naturalHeight; |
11218 | 11911 |
11219 /// @domName HTMLImageElement.naturalWidth; @docsEditable true | 11912 /// @docsEditable true |
| 11913 @DomName("HTMLImageElement.naturalWidth") |
11220 final int naturalWidth; | 11914 final int naturalWidth; |
11221 | 11915 |
11222 /// @domName HTMLImageElement.src; @docsEditable true | 11916 /// @docsEditable true |
| 11917 @DomName("HTMLImageElement.src") |
11223 String src; | 11918 String src; |
11224 | 11919 |
11225 /// @domName HTMLImageElement.useMap; @docsEditable true | 11920 /// @docsEditable true |
| 11921 @DomName("HTMLImageElement.useMap") |
11226 String useMap; | 11922 String useMap; |
11227 | 11923 |
11228 /// @domName HTMLImageElement.width; @docsEditable true | 11924 /// @docsEditable true |
| 11925 @DomName("HTMLImageElement.width") |
11229 int width; | 11926 int width; |
11230 | 11927 |
11231 /// @domName HTMLImageElement.x; @docsEditable true | 11928 /// @docsEditable true |
| 11929 @DomName("HTMLImageElement.x") |
11232 final int x; | 11930 final int x; |
11233 | 11931 |
11234 /// @domName HTMLImageElement.y; @docsEditable true | 11932 /// @docsEditable true |
| 11933 @DomName("HTMLImageElement.y") |
11235 final int y; | 11934 final int y; |
11236 } | 11935 } |
11237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11238 // for details. All rights reserved. Use of this source code is governed by a | 11937 // for details. All rights reserved. Use of this source code is governed by a |
11239 // BSD-style license that can be found in the LICENSE file. | 11938 // BSD-style license that can be found in the LICENSE file. |
11240 | 11939 |
11241 | 11940 |
11242 /// @domName HTMLInputElement | 11941 @DomName("HTMLInputElement") |
11243 class InputElement extends Element implements | 11942 class InputElement extends Element implements |
11244 HiddenInputElement, | 11943 HiddenInputElement, |
11245 SearchInputElement, | 11944 SearchInputElement, |
11246 TextInputElement, | 11945 TextInputElement, |
11247 UrlInputElement, | 11946 UrlInputElement, |
11248 TelephoneInputElement, | 11947 TelephoneInputElement, |
11249 EmailInputElement, | 11948 EmailInputElement, |
11250 PasswordInputElement, | 11949 PasswordInputElement, |
11251 DateTimeInputElement, | 11950 DateTimeInputElement, |
11252 DateInputElement, | 11951 DateInputElement, |
11253 MonthInputElement, | 11952 MonthInputElement, |
11254 WeekInputElement, | 11953 WeekInputElement, |
11255 TimeInputElement, | 11954 TimeInputElement, |
11256 LocalDateTimeInputElement, | 11955 LocalDateTimeInputElement, |
11257 NumberInputElement, | 11956 NumberInputElement, |
11258 RangeInputElement, | 11957 RangeInputElement, |
11259 CheckboxInputElement, | 11958 CheckboxInputElement, |
11260 RadioButtonInputElement, | 11959 RadioButtonInputElement, |
11261 FileUploadInputElement, | 11960 FileUploadInputElement, |
11262 SubmitButtonInputElement, | 11961 SubmitButtonInputElement, |
11263 ImageButtonInputElement, | 11962 ImageButtonInputElement, |
11264 ResetButtonInputElement, | 11963 ResetButtonInputElement, |
11265 ButtonInputElement | 11964 ButtonInputElement |
11266 native "*HTMLInputElement" { | 11965 native "*HTMLInputElement" { |
11267 | 11966 |
11268 ///@docsEditable true | 11967 /// @docsEditable true |
11269 factory InputElement({String type}) { | 11968 factory InputElement({String type}) { |
11270 var e = document.$dom_createElement("input"); | 11969 var e = document.$dom_createElement("input"); |
11271 if (type != null) { | 11970 if (type != null) { |
11272 try { | 11971 try { |
11273 // IE throws an exception for unknown types. | 11972 // IE throws an exception for unknown types. |
11274 e.type = type; | 11973 e.type = type; |
11275 } catch(_) {} | 11974 } catch(_) {} |
11276 } | 11975 } |
11277 return e; | 11976 return e; |
11278 } | 11977 } |
11279 | 11978 |
11280 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 11979 /// @docsEditable true |
| 11980 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
11281 InputElementEvents get on => | 11981 InputElementEvents get on => |
11282 new InputElementEvents(this); | 11982 new InputElementEvents(this); |
11283 | 11983 |
11284 /// @domName HTMLInputElement.accept; @docsEditable true | 11984 /// @docsEditable true |
| 11985 @DomName("HTMLInputElement.accept") |
11285 String accept; | 11986 String accept; |
11286 | 11987 |
11287 /// @domName HTMLInputElement.alt; @docsEditable true | 11988 /// @docsEditable true |
| 11989 @DomName("HTMLInputElement.alt") |
11288 String alt; | 11990 String alt; |
11289 | 11991 |
11290 /// @domName HTMLInputElement.autocomplete; @docsEditable true | 11992 /// @docsEditable true |
| 11993 @DomName("HTMLInputElement.autocomplete") |
11291 String autocomplete; | 11994 String autocomplete; |
11292 | 11995 |
11293 /// @domName HTMLInputElement.autofocus; @docsEditable true | 11996 /// @docsEditable true |
| 11997 @DomName("HTMLInputElement.autofocus") |
11294 bool autofocus; | 11998 bool autofocus; |
11295 | 11999 |
11296 /// @domName HTMLInputElement.checked; @docsEditable true | 12000 /// @docsEditable true |
| 12001 @DomName("HTMLInputElement.checked") |
11297 bool checked; | 12002 bool checked; |
11298 | 12003 |
11299 /// @domName HTMLInputElement.defaultChecked; @docsEditable true | 12004 /// @docsEditable true |
| 12005 @DomName("HTMLInputElement.defaultChecked") |
11300 bool defaultChecked; | 12006 bool defaultChecked; |
11301 | 12007 |
11302 /// @domName HTMLInputElement.defaultValue; @docsEditable true | 12008 /// @docsEditable true |
| 12009 @DomName("HTMLInputElement.defaultValue") |
11303 String defaultValue; | 12010 String defaultValue; |
11304 | 12011 |
11305 /// @domName HTMLInputElement.dirName; @docsEditable true | 12012 /// @docsEditable true |
| 12013 @DomName("HTMLInputElement.dirName") |
11306 String dirName; | 12014 String dirName; |
11307 | 12015 |
11308 /// @domName HTMLInputElement.disabled; @docsEditable true | 12016 /// @docsEditable true |
| 12017 @DomName("HTMLInputElement.disabled") |
11309 bool disabled; | 12018 bool disabled; |
11310 | 12019 |
11311 /// @domName HTMLInputElement.files; @docsEditable true | 12020 /// @docsEditable true |
| 12021 @DomName("HTMLInputElement.files") |
11312 @Returns('FileList') @Creates('FileList') | 12022 @Returns('FileList') @Creates('FileList') |
11313 List<File> files; | 12023 List<File> files; |
11314 | 12024 |
11315 /// @domName HTMLInputElement.form; @docsEditable true | 12025 /// @docsEditable true |
| 12026 @DomName("HTMLInputElement.form") |
11316 final FormElement form; | 12027 final FormElement form; |
11317 | 12028 |
11318 /// @domName HTMLInputElement.formAction; @docsEditable true | 12029 /// @docsEditable true |
| 12030 @DomName("HTMLInputElement.formAction") |
11319 String formAction; | 12031 String formAction; |
11320 | 12032 |
11321 /// @domName HTMLInputElement.formEnctype; @docsEditable true | 12033 /// @docsEditable true |
| 12034 @DomName("HTMLInputElement.formEnctype") |
11322 String formEnctype; | 12035 String formEnctype; |
11323 | 12036 |
11324 /// @domName HTMLInputElement.formMethod; @docsEditable true | 12037 /// @docsEditable true |
| 12038 @DomName("HTMLInputElement.formMethod") |
11325 String formMethod; | 12039 String formMethod; |
11326 | 12040 |
11327 /// @domName HTMLInputElement.formNoValidate; @docsEditable true | 12041 /// @docsEditable true |
| 12042 @DomName("HTMLInputElement.formNoValidate") |
11328 bool formNoValidate; | 12043 bool formNoValidate; |
11329 | 12044 |
11330 /// @domName HTMLInputElement.formTarget; @docsEditable true | 12045 /// @docsEditable true |
| 12046 @DomName("HTMLInputElement.formTarget") |
11331 String formTarget; | 12047 String formTarget; |
11332 | 12048 |
11333 /// @domName HTMLInputElement.height; @docsEditable true | 12049 /// @docsEditable true |
| 12050 @DomName("HTMLInputElement.height") |
11334 int height; | 12051 int height; |
11335 | 12052 |
11336 /// @domName HTMLInputElement.incremental; @docsEditable true | 12053 /// @docsEditable true |
| 12054 @DomName("HTMLInputElement.incremental") |
11337 bool incremental; | 12055 bool incremental; |
11338 | 12056 |
11339 /// @domName HTMLInputElement.indeterminate; @docsEditable true | 12057 /// @docsEditable true |
| 12058 @DomName("HTMLInputElement.indeterminate") |
11340 bool indeterminate; | 12059 bool indeterminate; |
11341 | 12060 |
11342 /// @domName HTMLInputElement.labels; @docsEditable true | 12061 /// @docsEditable true |
| 12062 @DomName("HTMLInputElement.labels") |
11343 @Returns('NodeList') @Creates('NodeList') | 12063 @Returns('NodeList') @Creates('NodeList') |
11344 final List<Node> labels; | 12064 final List<Node> labels; |
11345 | 12065 |
11346 /// @domName HTMLInputElement.list; @docsEditable true | 12066 /// @docsEditable true |
| 12067 @DomName("HTMLInputElement.list") |
11347 final Element list; | 12068 final Element list; |
11348 | 12069 |
11349 /// @domName HTMLInputElement.max; @docsEditable true | 12070 /// @docsEditable true |
| 12071 @DomName("HTMLInputElement.max") |
11350 String max; | 12072 String max; |
11351 | 12073 |
11352 /// @domName HTMLInputElement.maxLength; @docsEditable true | 12074 /// @docsEditable true |
| 12075 @DomName("HTMLInputElement.maxLength") |
11353 int maxLength; | 12076 int maxLength; |
11354 | 12077 |
11355 /// @domName HTMLInputElement.min; @docsEditable true | 12078 /// @docsEditable true |
| 12079 @DomName("HTMLInputElement.min") |
11356 String min; | 12080 String min; |
11357 | 12081 |
11358 /// @domName HTMLInputElement.multiple; @docsEditable true | 12082 /// @docsEditable true |
| 12083 @DomName("HTMLInputElement.multiple") |
11359 bool multiple; | 12084 bool multiple; |
11360 | 12085 |
11361 /// @domName HTMLInputElement.name; @docsEditable true | 12086 /// @docsEditable true |
| 12087 @DomName("HTMLInputElement.name") |
11362 String name; | 12088 String name; |
11363 | 12089 |
11364 /// @domName HTMLInputElement.pattern; @docsEditable true | 12090 /// @docsEditable true |
| 12091 @DomName("HTMLInputElement.pattern") |
11365 String pattern; | 12092 String pattern; |
11366 | 12093 |
11367 /// @domName HTMLInputElement.placeholder; @docsEditable true | 12094 /// @docsEditable true |
| 12095 @DomName("HTMLInputElement.placeholder") |
11368 String placeholder; | 12096 String placeholder; |
11369 | 12097 |
11370 /// @domName HTMLInputElement.readOnly; @docsEditable true | 12098 /// @docsEditable true |
| 12099 @DomName("HTMLInputElement.readOnly") |
11371 bool readOnly; | 12100 bool readOnly; |
11372 | 12101 |
11373 /// @domName HTMLInputElement.required; @docsEditable true | 12102 /// @docsEditable true |
| 12103 @DomName("HTMLInputElement.required") |
11374 bool required; | 12104 bool required; |
11375 | 12105 |
11376 /// @domName HTMLInputElement.selectionDirection; @docsEditable true | 12106 /// @docsEditable true |
| 12107 @DomName("HTMLInputElement.selectionDirection") |
11377 String selectionDirection; | 12108 String selectionDirection; |
11378 | 12109 |
11379 /// @domName HTMLInputElement.selectionEnd; @docsEditable true | 12110 /// @docsEditable true |
| 12111 @DomName("HTMLInputElement.selectionEnd") |
11380 int selectionEnd; | 12112 int selectionEnd; |
11381 | 12113 |
11382 /// @domName HTMLInputElement.selectionStart; @docsEditable true | 12114 /// @docsEditable true |
| 12115 @DomName("HTMLInputElement.selectionStart") |
11383 int selectionStart; | 12116 int selectionStart; |
11384 | 12117 |
11385 /// @domName HTMLInputElement.size; @docsEditable true | 12118 /// @docsEditable true |
| 12119 @DomName("HTMLInputElement.size") |
11386 int size; | 12120 int size; |
11387 | 12121 |
11388 /// @domName HTMLInputElement.src; @docsEditable true | 12122 /// @docsEditable true |
| 12123 @DomName("HTMLInputElement.src") |
11389 String src; | 12124 String src; |
11390 | 12125 |
11391 /// @domName HTMLInputElement.step; @docsEditable true | 12126 /// @docsEditable true |
| 12127 @DomName("HTMLInputElement.step") |
11392 String step; | 12128 String step; |
11393 | 12129 |
11394 /// @domName HTMLInputElement.type; @docsEditable true | 12130 /// @docsEditable true |
| 12131 @DomName("HTMLInputElement.type") |
11395 String type; | 12132 String type; |
11396 | 12133 |
11397 /// @domName HTMLInputElement.useMap; @docsEditable true | 12134 /// @docsEditable true |
| 12135 @DomName("HTMLInputElement.useMap") |
11398 String useMap; | 12136 String useMap; |
11399 | 12137 |
11400 /// @domName HTMLInputElement.validationMessage; @docsEditable true | 12138 /// @docsEditable true |
| 12139 @DomName("HTMLInputElement.validationMessage") |
11401 final String validationMessage; | 12140 final String validationMessage; |
11402 | 12141 |
11403 /// @domName HTMLInputElement.validity; @docsEditable true | 12142 /// @docsEditable true |
| 12143 @DomName("HTMLInputElement.validity") |
11404 final ValidityState validity; | 12144 final ValidityState validity; |
11405 | 12145 |
11406 /// @domName HTMLInputElement.value; @docsEditable true | 12146 /// @docsEditable true |
| 12147 @DomName("HTMLInputElement.value") |
11407 String value; | 12148 String value; |
11408 | 12149 |
11409 /// @domName HTMLInputElement.valueAsDate; @docsEditable true | 12150 /// @docsEditable true |
| 12151 @DomName("HTMLInputElement.valueAsDate") |
11410 Date valueAsDate; | 12152 Date valueAsDate; |
11411 | 12153 |
11412 /// @domName HTMLInputElement.valueAsNumber; @docsEditable true | 12154 /// @docsEditable true |
| 12155 @DomName("HTMLInputElement.valueAsNumber") |
11413 num valueAsNumber; | 12156 num valueAsNumber; |
11414 | 12157 |
11415 /// @domName HTMLInputElement.webkitEntries; @docsEditable true | 12158 /// @docsEditable true |
| 12159 @DomName("HTMLInputElement.webkitEntries") |
11416 @Returns('_EntryArray') @Creates('_EntryArray') | 12160 @Returns('_EntryArray') @Creates('_EntryArray') |
11417 final List<Entry> webkitEntries; | 12161 final List<Entry> webkitEntries; |
11418 | 12162 |
11419 /// @domName HTMLInputElement.webkitGrammar; @docsEditable true | 12163 /// @docsEditable true |
| 12164 @DomName("HTMLInputElement.webkitGrammar") |
11420 bool webkitGrammar; | 12165 bool webkitGrammar; |
11421 | 12166 |
11422 /// @domName HTMLInputElement.webkitSpeech; @docsEditable true | 12167 /// @docsEditable true |
| 12168 @DomName("HTMLInputElement.webkitSpeech") |
11423 bool webkitSpeech; | 12169 bool webkitSpeech; |
11424 | 12170 |
11425 /// @domName HTMLInputElement.webkitdirectory; @docsEditable true | 12171 /// @docsEditable true |
| 12172 @DomName("HTMLInputElement.webkitdirectory") |
11426 bool webkitdirectory; | 12173 bool webkitdirectory; |
11427 | 12174 |
11428 /// @domName HTMLInputElement.width; @docsEditable true | 12175 /// @docsEditable true |
| 12176 @DomName("HTMLInputElement.width") |
11429 int width; | 12177 int width; |
11430 | 12178 |
11431 /// @domName HTMLInputElement.willValidate; @docsEditable true | 12179 /// @docsEditable true |
| 12180 @DomName("HTMLInputElement.willValidate") |
11432 final bool willValidate; | 12181 final bool willValidate; |
11433 | 12182 |
11434 /// @domName HTMLInputElement.checkValidity; @docsEditable true | 12183 /// @docsEditable true |
| 12184 @DomName("HTMLInputElement.checkValidity") |
11435 bool checkValidity() native; | 12185 bool checkValidity() native; |
11436 | 12186 |
11437 /// @domName HTMLInputElement.select; @docsEditable true | 12187 /// @docsEditable true |
| 12188 @DomName("HTMLInputElement.select") |
11438 void select() native; | 12189 void select() native; |
11439 | 12190 |
11440 /// @domName HTMLInputElement.setCustomValidity; @docsEditable true | 12191 /// @docsEditable true |
| 12192 @DomName("HTMLInputElement.setCustomValidity") |
11441 void setCustomValidity(String error) native; | 12193 void setCustomValidity(String error) native; |
11442 | 12194 |
11443 /// @domName HTMLInputElement.setRangeText; @docsEditable true | 12195 /// @docsEditable true |
| 12196 @DomName("HTMLInputElement.setRangeText") |
11444 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; | 12197 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; |
11445 | 12198 |
11446 /// @domName HTMLInputElement.setSelectionRange; @docsEditable true | 12199 /// @docsEditable true |
| 12200 @DomName("HTMLInputElement.setSelectionRange") |
11447 void setSelectionRange(int start, int end, [String direction]) native; | 12201 void setSelectionRange(int start, int end, [String direction]) native; |
11448 | 12202 |
11449 /// @domName HTMLInputElement.stepDown; @docsEditable true | 12203 /// @docsEditable true |
| 12204 @DomName("HTMLInputElement.stepDown") |
11450 void stepDown([int n]) native; | 12205 void stepDown([int n]) native; |
11451 | 12206 |
11452 /// @domName HTMLInputElement.stepUp; @docsEditable true | 12207 /// @docsEditable true |
| 12208 @DomName("HTMLInputElement.stepUp") |
11453 void stepUp([int n]) native; | 12209 void stepUp([int n]) native; |
11454 | 12210 |
11455 } | 12211 } |
11456 | 12212 |
11457 | 12213 |
11458 // Interfaces representing the InputElement APIs which are supported | 12214 // Interfaces representing the InputElement APIs which are supported |
11459 // for the various types of InputElement. | 12215 // for the various types of InputElement. |
11460 // From http://dev.w3.org/html5/spec/the-input-element.html#the-input-element. | 12216 // From http://dev.w3.org/html5/spec/the-input-element.html#the-input-element. |
11461 | 12217 |
11462 /** | 12218 /** |
11463 * Exposes the functionality common between all InputElement types. | 12219 * Exposes the functionality common between all InputElement types. |
11464 */ | 12220 */ |
11465 abstract class InputElementBase implements Element { | 12221 abstract class InputElementBase implements Element { |
11466 /// @domName HTMLInputElement.autofocus | 12222 @DomName("HTMLInputElement.autofocus") |
11467 bool autofocus; | 12223 bool autofocus; |
11468 | 12224 |
11469 /// @domName HTMLInputElement.disabled | 12225 @DomName("HTMLInputElement.disabled") |
11470 bool disabled; | 12226 bool disabled; |
11471 | 12227 |
11472 /// @domName HTMLInputElement.incremental | 12228 @DomName("HTMLInputElement.incremental") |
11473 bool incremental; | 12229 bool incremental; |
11474 | 12230 |
11475 /// @domName HTMLInputElement.indeterminate | 12231 @DomName("HTMLInputElement.indeterminate") |
11476 bool indeterminate; | 12232 bool indeterminate; |
11477 | 12233 |
11478 /// @domName HTMLInputElement.labels | 12234 @DomName("HTMLInputElement.labels") |
11479 List<Node> get labels; | 12235 List<Node> get labels; |
11480 | 12236 |
11481 /// @domName HTMLInputElement.name | 12237 @DomName("HTMLInputElement.name") |
11482 String name; | 12238 String name; |
11483 | 12239 |
11484 /// @domName HTMLInputElement.validationMessage | 12240 @DomName("HTMLInputElement.validationMessage") |
11485 String get validationMessage; | 12241 String get validationMessage; |
11486 | 12242 |
11487 /// @domName HTMLInputElement.validity | 12243 @DomName("HTMLInputElement.validity") |
11488 ValidityState get validity; | 12244 ValidityState get validity; |
11489 | 12245 |
11490 /// @domName HTMLInputElement.value | 12246 @DomName("HTMLInputElement.value") |
11491 String value; | 12247 String value; |
11492 | 12248 |
11493 /// @domName HTMLInputElement.willValidate | 12249 @DomName("HTMLInputElement.willValidate") |
11494 bool get willValidate; | 12250 bool get willValidate; |
11495 | 12251 |
11496 /// @domName HTMLInputElement.checkValidity | 12252 @DomName("HTMLInputElement.checkValidity") |
11497 bool checkValidity(); | 12253 bool checkValidity(); |
11498 | 12254 |
11499 /// @domName HTMLInputElement.setCustomValidity | 12255 @DomName("HTMLInputElement.setCustomValidity") |
11500 void setCustomValidity(String error); | 12256 void setCustomValidity(String error); |
11501 } | 12257 } |
11502 | 12258 |
11503 /** | 12259 /** |
11504 * Hidden input which is not intended to be seen or edited by the user. | 12260 * Hidden input which is not intended to be seen or edited by the user. |
11505 */ | 12261 */ |
11506 abstract class HiddenInputElement implements Element { | 12262 abstract class HiddenInputElement implements Element { |
11507 factory HiddenInputElement() => new InputElement(type: 'hidden'); | 12263 factory HiddenInputElement() => new InputElement(type: 'hidden'); |
11508 } | 12264 } |
11509 | 12265 |
11510 | 12266 |
11511 /** | 12267 /** |
11512 * Base interface for all inputs which involve text editing. | 12268 * Base interface for all inputs which involve text editing. |
11513 */ | 12269 */ |
11514 abstract class TextInputElementBase implements InputElementBase { | 12270 abstract class TextInputElementBase implements InputElementBase { |
11515 /// @domName HTMLInputElement.autocomplete | 12271 @DomName("HTMLInputElement.autocomplete") |
11516 String autocomplete; | 12272 String autocomplete; |
11517 | 12273 |
11518 /// @domName HTMLInputElement.maxLength | 12274 @DomName("HTMLInputElement.maxLength") |
11519 int maxLength; | 12275 int maxLength; |
11520 | 12276 |
11521 /// @domName HTMLInputElement.pattern | 12277 @DomName("HTMLInputElement.pattern") |
11522 String pattern; | 12278 String pattern; |
11523 | 12279 |
11524 /// @domName HTMLInputElement.placeholder | 12280 @DomName("HTMLInputElement.placeholder") |
11525 String placeholder; | 12281 String placeholder; |
11526 | 12282 |
11527 /// @domName HTMLInputElement.readOnly | 12283 @DomName("HTMLInputElement.readOnly") |
11528 bool readOnly; | 12284 bool readOnly; |
11529 | 12285 |
11530 /// @domName HTMLInputElement.required | 12286 @DomName("HTMLInputElement.required") |
11531 bool required; | 12287 bool required; |
11532 | 12288 |
11533 /// @domName HTMLInputElement.size | 12289 @DomName("HTMLInputElement.size") |
11534 int size; | 12290 int size; |
11535 | 12291 |
11536 /// @domName HTMLInputElement.select | 12292 @DomName("HTMLInputElement.select") |
11537 void select(); | 12293 void select(); |
11538 | 12294 |
11539 /// @domName HTMLInputElement.selectionDirection | 12295 @DomName("HTMLInputElement.selectionDirection") |
11540 String selectionDirection; | 12296 String selectionDirection; |
11541 | 12297 |
11542 /// @domName HTMLInputElement.selectionEnd | 12298 @DomName("HTMLInputElement.selectionEnd") |
11543 int selectionEnd; | 12299 int selectionEnd; |
11544 | 12300 |
11545 /// @domName HTMLInputElement.selectionStart | 12301 @DomName("HTMLInputElement.selectionStart") |
11546 int selectionStart; | 12302 int selectionStart; |
11547 | 12303 |
11548 /// @domName HTMLInputElement.setSelectionRange | 12304 @DomName("HTMLInputElement.setSelectionRange") |
11549 void setSelectionRange(int start, int end, [String direction]); | 12305 void setSelectionRange(int start, int end, [String direction]); |
11550 } | 12306 } |
11551 | 12307 |
11552 /** | 12308 /** |
11553 * Similar to [TextInputElement], but on platforms where search is styled | 12309 * Similar to [TextInputElement], but on platforms where search is styled |
11554 * differently this will get the search style. | 12310 * differently this will get the search style. |
11555 * | 12311 * |
11556 * Use [supported] to check if this is supported on the current platform. | 12312 * Use [supported] to check if this is supported on the current platform. |
11557 */ | 12313 */ |
11558 @SupportedBrowser(SupportedBrowser.CHROME) | 12314 @SupportedBrowser(SupportedBrowser.CHROME) |
11559 @SupportedBrowser(SupportedBrowser.FIREFOX) | 12315 @SupportedBrowser(SupportedBrowser.FIREFOX) |
11560 @SupportedBrowser(SupportedBrowser.IE, '10') | 12316 @SupportedBrowser(SupportedBrowser.IE, '10') |
11561 @SupportedBrowser(SupportedBrowser.SAFARI) | 12317 @SupportedBrowser(SupportedBrowser.SAFARI) |
11562 abstract class SearchInputElement implements TextInputElementBase { | 12318 abstract class SearchInputElement implements TextInputElementBase { |
11563 factory SearchInputElement() => new InputElement(type: 'search'); | 12319 factory SearchInputElement() => new InputElement(type: 'search'); |
11564 | 12320 |
11565 /// @domName HTMLInputElement.dirName; | 12321 @DomName("HTMLInputElement.dirName") |
11566 String dirName; | 12322 String dirName; |
11567 | 12323 |
11568 /// @domName HTMLInputElement.list; | 12324 @DomName("HTMLInputElement.list") |
11569 Element get list; | 12325 Element get list; |
11570 | 12326 |
11571 /// Returns true if this input type is supported on the current platform. | 12327 /// Returns true if this input type is supported on the current platform. |
11572 static bool get supported { | 12328 static bool get supported { |
11573 return (new InputElement(type: 'search')).type == 'search'; | 12329 return (new InputElement(type: 'search')).type == 'search'; |
11574 } | 12330 } |
11575 } | 12331 } |
11576 | 12332 |
11577 /** | 12333 /** |
11578 * A basic text input editor control. | 12334 * A basic text input editor control. |
11579 */ | 12335 */ |
11580 abstract class TextInputElement implements TextInputElementBase { | 12336 abstract class TextInputElement implements TextInputElementBase { |
11581 factory TextInputElement() => new InputElement(type: 'text'); | 12337 factory TextInputElement() => new InputElement(type: 'text'); |
11582 | 12338 |
11583 /// @domName HTMLInputElement.dirName; | 12339 @DomName("HTMLInputElement.dirName") |
11584 String dirName; | 12340 String dirName; |
11585 | 12341 |
11586 /// @domName HTMLInputElement.list; | 12342 @DomName("HTMLInputElement.list") |
11587 Element get list; | 12343 Element get list; |
11588 } | 12344 } |
11589 | 12345 |
11590 /** | 12346 /** |
11591 * A control for editing an absolute URL. | 12347 * A control for editing an absolute URL. |
11592 * | 12348 * |
11593 * Use [supported] to check if this is supported on the current platform. | 12349 * Use [supported] to check if this is supported on the current platform. |
11594 */ | 12350 */ |
11595 @SupportedBrowser(SupportedBrowser.CHROME) | 12351 @SupportedBrowser(SupportedBrowser.CHROME) |
11596 @SupportedBrowser(SupportedBrowser.FIREFOX) | 12352 @SupportedBrowser(SupportedBrowser.FIREFOX) |
11597 @SupportedBrowser(SupportedBrowser.IE, '10') | 12353 @SupportedBrowser(SupportedBrowser.IE, '10') |
11598 @SupportedBrowser(SupportedBrowser.SAFARI) | 12354 @SupportedBrowser(SupportedBrowser.SAFARI) |
11599 abstract class UrlInputElement implements TextInputElementBase { | 12355 abstract class UrlInputElement implements TextInputElementBase { |
11600 factory UrlInputElement() => new InputElement(type: 'url'); | 12356 factory UrlInputElement() => new InputElement(type: 'url'); |
11601 | 12357 |
11602 /// @domName HTMLInputElement.list; | 12358 @DomName("HTMLInputElement.list") |
11603 Element get list; | 12359 Element get list; |
11604 | 12360 |
11605 /// Returns true if this input type is supported on the current platform. | 12361 /// Returns true if this input type is supported on the current platform. |
11606 static bool get supported { | 12362 static bool get supported { |
11607 return (new InputElement(type: 'url')).type == 'url'; | 12363 return (new InputElement(type: 'url')).type == 'url'; |
11608 } | 12364 } |
11609 } | 12365 } |
11610 | 12366 |
11611 /** | 12367 /** |
11612 * Represents a control for editing a telephone number. | 12368 * Represents a control for editing a telephone number. |
11613 * | 12369 * |
11614 * This provides a single line of text with minimal formatting help since | 12370 * This provides a single line of text with minimal formatting help since |
11615 * there is a wide variety of telephone numbers. | 12371 * there is a wide variety of telephone numbers. |
11616 * | 12372 * |
11617 * Use [supported] to check if this is supported on the current platform. | 12373 * Use [supported] to check if this is supported on the current platform. |
11618 */ | 12374 */ |
11619 @SupportedBrowser(SupportedBrowser.CHROME) | 12375 @SupportedBrowser(SupportedBrowser.CHROME) |
11620 @SupportedBrowser(SupportedBrowser.FIREFOX) | 12376 @SupportedBrowser(SupportedBrowser.FIREFOX) |
11621 @SupportedBrowser(SupportedBrowser.IE, '10') | 12377 @SupportedBrowser(SupportedBrowser.IE, '10') |
11622 @SupportedBrowser(SupportedBrowser.SAFARI) | 12378 @SupportedBrowser(SupportedBrowser.SAFARI) |
11623 abstract class TelephoneInputElement implements TextInputElementBase { | 12379 abstract class TelephoneInputElement implements TextInputElementBase { |
11624 factory TelephoneInputElement() => new InputElement(type: 'tel'); | 12380 factory TelephoneInputElement() => new InputElement(type: 'tel'); |
11625 | 12381 |
11626 /// @domName HTMLInputElement.list; | 12382 @DomName("HTMLInputElement.list") |
11627 Element get list; | 12383 Element get list; |
11628 | 12384 |
11629 /// Returns true if this input type is supported on the current platform. | 12385 /// Returns true if this input type is supported on the current platform. |
11630 static bool get supported { | 12386 static bool get supported { |
11631 return (new InputElement(type: 'tel')).type == 'tel'; | 12387 return (new InputElement(type: 'tel')).type == 'tel'; |
11632 } | 12388 } |
11633 } | 12389 } |
11634 | 12390 |
11635 /** | 12391 /** |
11636 * An e-mail address or list of e-mail addresses. | 12392 * An e-mail address or list of e-mail addresses. |
11637 * | 12393 * |
11638 * Use [supported] to check if this is supported on the current platform. | 12394 * Use [supported] to check if this is supported on the current platform. |
11639 */ | 12395 */ |
11640 @SupportedBrowser(SupportedBrowser.CHROME) | 12396 @SupportedBrowser(SupportedBrowser.CHROME) |
11641 @SupportedBrowser(SupportedBrowser.FIREFOX) | 12397 @SupportedBrowser(SupportedBrowser.FIREFOX) |
11642 @SupportedBrowser(SupportedBrowser.IE, '10') | 12398 @SupportedBrowser(SupportedBrowser.IE, '10') |
11643 @SupportedBrowser(SupportedBrowser.SAFARI) | 12399 @SupportedBrowser(SupportedBrowser.SAFARI) |
11644 abstract class EmailInputElement implements TextInputElementBase { | 12400 abstract class EmailInputElement implements TextInputElementBase { |
11645 factory EmailInputElement() => new InputElement(type: 'email'); | 12401 factory EmailInputElement() => new InputElement(type: 'email'); |
11646 | 12402 |
11647 /// @domName HTMLInputElement.autocomplete | 12403 @DomName("HTMLInputElement.autocomplete") |
11648 String autocomplete; | 12404 String autocomplete; |
11649 | 12405 |
11650 /// @domName HTMLInputElement.autofocus | 12406 @DomName("HTMLInputElement.autofocus") |
11651 bool autofocus; | 12407 bool autofocus; |
11652 | 12408 |
11653 /// @domName HTMLInputElement.list; | 12409 @DomName("HTMLInputElement.list") |
11654 Element get list; | 12410 Element get list; |
11655 | 12411 |
11656 /// @domName HTMLInputElement.maxLength | 12412 @DomName("HTMLInputElement.maxLength") |
11657 int maxLength; | 12413 int maxLength; |
11658 | 12414 |
11659 /// @domName HTMLInputElement.multiple; | 12415 @DomName("HTMLInputElement.multiple") |
11660 bool multiple; | 12416 bool multiple; |
11661 | 12417 |
11662 /// @domName HTMLInputElement.pattern | 12418 @DomName("HTMLInputElement.pattern") |
11663 String pattern; | 12419 String pattern; |
11664 | 12420 |
11665 /// @domName HTMLInputElement.placeholder | 12421 @DomName("HTMLInputElement.placeholder") |
11666 String placeholder; | 12422 String placeholder; |
11667 | 12423 |
11668 /// @domName HTMLInputElement.readOnly | 12424 @DomName("HTMLInputElement.readOnly") |
11669 bool readOnly; | 12425 bool readOnly; |
11670 | 12426 |
11671 /// @domName HTMLInputElement.required | 12427 @DomName("HTMLInputElement.required") |
11672 bool required; | 12428 bool required; |
11673 | 12429 |
11674 /// @domName HTMLInputElement.size | 12430 @DomName("HTMLInputElement.size") |
11675 int size; | 12431 int size; |
11676 | 12432 |
11677 /// Returns true if this input type is supported on the current platform. | 12433 /// Returns true if this input type is supported on the current platform. |
11678 static bool get supported { | 12434 static bool get supported { |
11679 return (new InputElement(type: 'email')).type == 'email'; | 12435 return (new InputElement(type: 'email')).type == 'email'; |
11680 } | 12436 } |
11681 } | 12437 } |
11682 | 12438 |
11683 /** | 12439 /** |
11684 * Text with no line breaks (sensitive information). | 12440 * Text with no line breaks (sensitive information). |
11685 */ | 12441 */ |
11686 abstract class PasswordInputElement implements TextInputElementBase { | 12442 abstract class PasswordInputElement implements TextInputElementBase { |
11687 factory PasswordInputElement() => new InputElement(type: 'password'); | 12443 factory PasswordInputElement() => new InputElement(type: 'password'); |
11688 } | 12444 } |
11689 | 12445 |
11690 /** | 12446 /** |
11691 * Base interface for all input element types which involve ranges. | 12447 * Base interface for all input element types which involve ranges. |
11692 */ | 12448 */ |
11693 abstract class RangeInputElementBase implements InputElementBase { | 12449 abstract class RangeInputElementBase implements InputElementBase { |
11694 | 12450 |
11695 /// @domName HTMLInputElement.list | 12451 @DomName("HTMLInputElement.list") |
11696 Element get list; | 12452 Element get list; |
11697 | 12453 |
11698 /// @domName HTMLInputElement.max | 12454 @DomName("HTMLInputElement.max") |
11699 String max; | 12455 String max; |
11700 | 12456 |
11701 /// @domName HTMLInputElement.min | 12457 @DomName("HTMLInputElement.min") |
11702 String min; | 12458 String min; |
11703 | 12459 |
11704 /// @domName HTMLInputElement.step | 12460 @DomName("HTMLInputElement.step") |
11705 String step; | 12461 String step; |
11706 | 12462 |
11707 /// @domName HTMLInputElement.valueAsNumber | 12463 @DomName("HTMLInputElement.valueAsNumber") |
11708 num valueAsNumber; | 12464 num valueAsNumber; |
11709 | 12465 |
11710 /// @domName HTMLInputElement.stepDown | 12466 @DomName("HTMLInputElement.stepDown") |
11711 void stepDown([int n]); | 12467 void stepDown([int n]); |
11712 | 12468 |
11713 /// @domName HTMLInputElement.stepUp | 12469 @DomName("HTMLInputElement.stepUp") |
11714 void stepUp([int n]); | 12470 void stepUp([int n]); |
11715 } | 12471 } |
11716 | 12472 |
11717 /** | 12473 /** |
11718 * A date and time (year, month, day, hour, minute, second, fraction of a | 12474 * A date and time (year, month, day, hour, minute, second, fraction of a |
11719 * second) with the time zone set to UTC. | 12475 * second) with the time zone set to UTC. |
11720 * | 12476 * |
11721 * Use [supported] to check if this is supported on the current platform. | 12477 * Use [supported] to check if this is supported on the current platform. |
11722 */ | 12478 */ |
11723 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 12479 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
11724 @Experimental() | 12480 @Experimental() |
11725 abstract class DateTimeInputElement implements RangeInputElementBase { | 12481 abstract class DateTimeInputElement implements RangeInputElementBase { |
11726 factory DateTimeInputElement() => new InputElement(type: 'datetime'); | 12482 factory DateTimeInputElement() => new InputElement(type: 'datetime'); |
11727 | 12483 |
11728 /// @domName HTMLInputElement.valueAsDate | 12484 @DomName("HTMLInputElement.valueAsDate") |
11729 Date valueAsDate; | 12485 Date valueAsDate; |
11730 | 12486 |
11731 /// @domName HTMLInputElement.readOnly | 12487 @DomName("HTMLInputElement.readOnly") |
11732 bool readOnly; | 12488 bool readOnly; |
11733 | 12489 |
11734 /// @domName HTMLInputElement.required | 12490 @DomName("HTMLInputElement.required") |
11735 bool required; | 12491 bool required; |
11736 | 12492 |
11737 /// Returns true if this input type is supported on the current platform. | 12493 /// Returns true if this input type is supported on the current platform. |
11738 static bool get supported { | 12494 static bool get supported { |
11739 return (new InputElement(type: 'datetime')).type == 'datetime'; | 12495 return (new InputElement(type: 'datetime')).type == 'datetime'; |
11740 } | 12496 } |
11741 } | 12497 } |
11742 | 12498 |
11743 /** | 12499 /** |
11744 * A date (year, month, day) with no time zone. | 12500 * A date (year, month, day) with no time zone. |
11745 * | 12501 * |
11746 * Use [supported] to check if this is supported on the current platform. | 12502 * Use [supported] to check if this is supported on the current platform. |
11747 */ | 12503 */ |
11748 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 12504 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
11749 @Experimental() | 12505 @Experimental() |
11750 abstract class DateInputElement implements RangeInputElementBase { | 12506 abstract class DateInputElement implements RangeInputElementBase { |
11751 factory DateInputElement() => new InputElement(type: 'date'); | 12507 factory DateInputElement() => new InputElement(type: 'date'); |
11752 | 12508 |
11753 /// @domName HTMLInputElement.valueAsDate | 12509 @DomName("HTMLInputElement.valueAsDate") |
11754 Date valueAsDate; | 12510 Date valueAsDate; |
11755 | 12511 |
11756 /// @domName HTMLInputElement.readOnly | 12512 @DomName("HTMLInputElement.readOnly") |
11757 bool readOnly; | 12513 bool readOnly; |
11758 | 12514 |
11759 /// @domName HTMLInputElement.required | 12515 @DomName("HTMLInputElement.required") |
11760 bool required; | 12516 bool required; |
11761 | 12517 |
11762 /// Returns true if this input type is supported on the current platform. | 12518 /// Returns true if this input type is supported on the current platform. |
11763 static bool get supported { | 12519 static bool get supported { |
11764 return (new InputElement(type: 'date')).type == 'date'; | 12520 return (new InputElement(type: 'date')).type == 'date'; |
11765 } | 12521 } |
11766 } | 12522 } |
11767 | 12523 |
11768 /** | 12524 /** |
11769 * A date consisting of a year and a month with no time zone. | 12525 * A date consisting of a year and a month with no time zone. |
11770 * | 12526 * |
11771 * Use [supported] to check if this is supported on the current platform. | 12527 * Use [supported] to check if this is supported on the current platform. |
11772 */ | 12528 */ |
11773 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 12529 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
11774 @Experimental() | 12530 @Experimental() |
11775 abstract class MonthInputElement implements RangeInputElementBase { | 12531 abstract class MonthInputElement implements RangeInputElementBase { |
11776 factory MonthInputElement() => new InputElement(type: 'month'); | 12532 factory MonthInputElement() => new InputElement(type: 'month'); |
11777 | 12533 |
11778 /// @domName HTMLInputElement.valueAsDate | 12534 @DomName("HTMLInputElement.valueAsDate") |
11779 Date valueAsDate; | 12535 Date valueAsDate; |
11780 | 12536 |
11781 /// @domName HTMLInputElement.readOnly | 12537 @DomName("HTMLInputElement.readOnly") |
11782 bool readOnly; | 12538 bool readOnly; |
11783 | 12539 |
11784 /// @domName HTMLInputElement.required | 12540 @DomName("HTMLInputElement.required") |
11785 bool required; | 12541 bool required; |
11786 | 12542 |
11787 /// Returns true if this input type is supported on the current platform. | 12543 /// Returns true if this input type is supported on the current platform. |
11788 static bool get supported { | 12544 static bool get supported { |
11789 return (new InputElement(type: 'month')).type == 'month'; | 12545 return (new InputElement(type: 'month')).type == 'month'; |
11790 } | 12546 } |
11791 } | 12547 } |
11792 | 12548 |
11793 /** | 12549 /** |
11794 * A date consisting of a week-year number and a week number with no time zone. | 12550 * A date consisting of a week-year number and a week number with no time zone. |
11795 * | 12551 * |
11796 * Use [supported] to check if this is supported on the current platform. | 12552 * Use [supported] to check if this is supported on the current platform. |
11797 */ | 12553 */ |
11798 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 12554 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
11799 @Experimental() | 12555 @Experimental() |
11800 abstract class WeekInputElement implements RangeInputElementBase { | 12556 abstract class WeekInputElement implements RangeInputElementBase { |
11801 factory WeekInputElement() => new InputElement(type: 'week'); | 12557 factory WeekInputElement() => new InputElement(type: 'week'); |
11802 | 12558 |
11803 /// @domName HTMLInputElement.valueAsDate | 12559 @DomName("HTMLInputElement.valueAsDate") |
11804 Date valueAsDate; | 12560 Date valueAsDate; |
11805 | 12561 |
11806 /// @domName HTMLInputElement.readOnly | 12562 @DomName("HTMLInputElement.readOnly") |
11807 bool readOnly; | 12563 bool readOnly; |
11808 | 12564 |
11809 /// @domName HTMLInputElement.required | 12565 @DomName("HTMLInputElement.required") |
11810 bool required; | 12566 bool required; |
11811 | 12567 |
11812 /// Returns true if this input type is supported on the current platform. | 12568 /// Returns true if this input type is supported on the current platform. |
11813 static bool get supported { | 12569 static bool get supported { |
11814 return (new InputElement(type: 'week')).type == 'week'; | 12570 return (new InputElement(type: 'week')).type == 'week'; |
11815 } | 12571 } |
11816 } | 12572 } |
11817 | 12573 |
11818 /** | 12574 /** |
11819 * A time (hour, minute, seconds, fractional seconds) with no time zone. | 12575 * A time (hour, minute, seconds, fractional seconds) with no time zone. |
11820 * | 12576 * |
11821 * Use [supported] to check if this is supported on the current platform. | 12577 * Use [supported] to check if this is supported on the current platform. |
11822 */ | 12578 */ |
11823 @SupportedBrowser(SupportedBrowser.CHROME) | 12579 @SupportedBrowser(SupportedBrowser.CHROME) |
11824 @Experimental() | 12580 @Experimental() |
11825 abstract class TimeInputElement implements RangeInputElementBase { | 12581 abstract class TimeInputElement implements RangeInputElementBase { |
11826 factory TimeInputElement() => new InputElement(type: 'time'); | 12582 factory TimeInputElement() => new InputElement(type: 'time'); |
11827 | 12583 |
11828 /// @domName HTMLInputElement.valueAsDate | 12584 @DomName("HTMLInputElement.valueAsDate") |
11829 Date valueAsDate; | 12585 Date valueAsDate; |
11830 | 12586 |
11831 /// @domName HTMLInputElement.readOnly | 12587 @DomName("HTMLInputElement.readOnly") |
11832 bool readOnly; | 12588 bool readOnly; |
11833 | 12589 |
11834 /// @domName HTMLInputElement.required | 12590 @DomName("HTMLInputElement.required") |
11835 bool required; | 12591 bool required; |
11836 | 12592 |
11837 /// Returns true if this input type is supported on the current platform. | 12593 /// Returns true if this input type is supported on the current platform. |
11838 static bool get supported { | 12594 static bool get supported { |
11839 return (new InputElement(type: 'time')).type == 'time'; | 12595 return (new InputElement(type: 'time')).type == 'time'; |
11840 } | 12596 } |
11841 } | 12597 } |
11842 | 12598 |
11843 /** | 12599 /** |
11844 * A date and time (year, month, day, hour, minute, second, fraction of a | 12600 * A date and time (year, month, day, hour, minute, second, fraction of a |
11845 * second) with no time zone. | 12601 * second) with no time zone. |
11846 * | 12602 * |
11847 * Use [supported] to check if this is supported on the current platform. | 12603 * Use [supported] to check if this is supported on the current platform. |
11848 */ | 12604 */ |
11849 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 12605 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
11850 @Experimental() | 12606 @Experimental() |
11851 abstract class LocalDateTimeInputElement implements RangeInputElementBase { | 12607 abstract class LocalDateTimeInputElement implements RangeInputElementBase { |
11852 factory LocalDateTimeInputElement() => | 12608 factory LocalDateTimeInputElement() => |
11853 new InputElement(type: 'datetime-local'); | 12609 new InputElement(type: 'datetime-local'); |
11854 | 12610 |
11855 /// @domName HTMLInputElement.readOnly | 12611 @DomName("HTMLInputElement.readOnly") |
11856 bool readOnly; | 12612 bool readOnly; |
11857 | 12613 |
11858 /// @domName HTMLInputElement.required | 12614 @DomName("HTMLInputElement.required") |
11859 bool required; | 12615 bool required; |
11860 | 12616 |
11861 /// Returns true if this input type is supported on the current platform. | 12617 /// Returns true if this input type is supported on the current platform. |
11862 static bool get supported { | 12618 static bool get supported { |
11863 return (new InputElement(type: 'datetime-local')).type == 'datetime-local'; | 12619 return (new InputElement(type: 'datetime-local')).type == 'datetime-local'; |
11864 } | 12620 } |
11865 } | 12621 } |
11866 | 12622 |
11867 /** | 12623 /** |
11868 * A numeric editor control. | 12624 * A numeric editor control. |
11869 */ | 12625 */ |
11870 @SupportedBrowser(SupportedBrowser.CHROME) | 12626 @SupportedBrowser(SupportedBrowser.CHROME) |
11871 @SupportedBrowser(SupportedBrowser.IE) | 12627 @SupportedBrowser(SupportedBrowser.IE) |
11872 @SupportedBrowser(SupportedBrowser.SAFARI) | 12628 @SupportedBrowser(SupportedBrowser.SAFARI) |
11873 @Experimental() | 12629 @Experimental() |
11874 abstract class NumberInputElement implements RangeInputElementBase { | 12630 abstract class NumberInputElement implements RangeInputElementBase { |
11875 factory NumberInputElement() => new InputElement(type: 'number'); | 12631 factory NumberInputElement() => new InputElement(type: 'number'); |
11876 | 12632 |
11877 /// @domName HTMLInputElement.placeholder | 12633 @DomName("HTMLInputElement.placeholder") |
11878 String placeholder; | 12634 String placeholder; |
11879 | 12635 |
11880 /// @domName HTMLInputElement.readOnly | 12636 @DomName("HTMLInputElement.readOnly") |
11881 bool readOnly; | 12637 bool readOnly; |
11882 | 12638 |
11883 /// @domName HTMLInputElement.required | 12639 @DomName("HTMLInputElement.required") |
11884 bool required; | 12640 bool required; |
11885 | 12641 |
11886 /// Returns true if this input type is supported on the current platform. | 12642 /// Returns true if this input type is supported on the current platform. |
11887 static bool get supported { | 12643 static bool get supported { |
11888 return (new InputElement(type: 'number')).type == 'number'; | 12644 return (new InputElement(type: 'number')).type == 'number'; |
11889 } | 12645 } |
11890 } | 12646 } |
11891 | 12647 |
11892 /** | 12648 /** |
11893 * Similar to [NumberInputElement] but the browser may provide more optimal | 12649 * Similar to [NumberInputElement] but the browser may provide more optimal |
(...skipping 15 matching lines...) Expand all Loading... |
11909 | 12665 |
11910 /** | 12666 /** |
11911 * A boolean editor control. | 12667 * A boolean editor control. |
11912 * | 12668 * |
11913 * Note that if [indeterminate] is set then this control is in a third | 12669 * Note that if [indeterminate] is set then this control is in a third |
11914 * indeterminate state. | 12670 * indeterminate state. |
11915 */ | 12671 */ |
11916 abstract class CheckboxInputElement implements InputElementBase { | 12672 abstract class CheckboxInputElement implements InputElementBase { |
11917 factory CheckboxInputElement() => new InputElement(type: 'checkbox'); | 12673 factory CheckboxInputElement() => new InputElement(type: 'checkbox'); |
11918 | 12674 |
11919 /// @domName HTMLInputElement.checked | 12675 @DomName("HTMLInputElement.checked") |
11920 bool checked; | 12676 bool checked; |
11921 | 12677 |
11922 /// @domName HTMLInputElement.required | 12678 @DomName("HTMLInputElement.required") |
11923 bool required; | 12679 bool required; |
11924 } | 12680 } |
11925 | 12681 |
11926 | 12682 |
11927 /** | 12683 /** |
11928 * A control that when used with other [ReadioButtonInputElement] controls | 12684 * A control that when used with other [ReadioButtonInputElement] controls |
11929 * forms a radio button group in which only one control can be checked at a | 12685 * forms a radio button group in which only one control can be checked at a |
11930 * time. | 12686 * time. |
11931 * | 12687 * |
11932 * Radio buttons are considered to be in the same radio button group if: | 12688 * Radio buttons are considered to be in the same radio button group if: |
11933 * | 12689 * |
11934 * * They are all of type 'radio'. | 12690 * * They are all of type 'radio'. |
11935 * * They all have either the same [FormElement] owner, or no owner. | 12691 * * They all have either the same [FormElement] owner, or no owner. |
11936 * * Their name attributes contain the same name. | 12692 * * Their name attributes contain the same name. |
11937 */ | 12693 */ |
11938 abstract class RadioButtonInputElement implements InputElementBase { | 12694 abstract class RadioButtonInputElement implements InputElementBase { |
11939 factory RadioButtonInputElement() => new InputElement(type: 'radio'); | 12695 factory RadioButtonInputElement() => new InputElement(type: 'radio'); |
11940 | 12696 |
11941 /// @domName HTMLInputElement.checked | 12697 @DomName("HTMLInputElement.checked") |
11942 bool checked; | 12698 bool checked; |
11943 | 12699 |
11944 /// @domName HTMLInputElement.required | 12700 @DomName("HTMLInputElement.required") |
11945 bool required; | 12701 bool required; |
11946 } | 12702 } |
11947 | 12703 |
11948 /** | 12704 /** |
11949 * A control for picking files from the user's computer. | 12705 * A control for picking files from the user's computer. |
11950 */ | 12706 */ |
11951 abstract class FileUploadInputElement implements InputElementBase { | 12707 abstract class FileUploadInputElement implements InputElementBase { |
11952 factory FileUploadInputElement() => new InputElement(type: 'file'); | 12708 factory FileUploadInputElement() => new InputElement(type: 'file'); |
11953 | 12709 |
11954 /// @domName HTMLInputElement.accept | 12710 @DomName("HTMLInputElement.accept") |
11955 String accept; | 12711 String accept; |
11956 | 12712 |
11957 /// @domName HTMLInputElement.multiple | 12713 @DomName("HTMLInputElement.multiple") |
11958 bool multiple; | 12714 bool multiple; |
11959 | 12715 |
11960 /// @domName HTMLInputElement.required | 12716 @DomName("HTMLInputElement.required") |
11961 bool required; | 12717 bool required; |
11962 | 12718 |
11963 /// @domName HTMLInputElement.files | 12719 @DomName("HTMLInputElement.files") |
11964 List<File> files; | 12720 List<File> files; |
11965 } | 12721 } |
11966 | 12722 |
11967 /** | 12723 /** |
11968 * A button, which when clicked, submits the form. | 12724 * A button, which when clicked, submits the form. |
11969 */ | 12725 */ |
11970 abstract class SubmitButtonInputElement implements InputElementBase { | 12726 abstract class SubmitButtonInputElement implements InputElementBase { |
11971 factory SubmitButtonInputElement() => new InputElement(type: 'submit'); | 12727 factory SubmitButtonInputElement() => new InputElement(type: 'submit'); |
11972 | 12728 |
11973 /// @domName HTMLInputElement.formAction | 12729 @DomName("HTMLInputElement.formAction") |
11974 String formAction; | 12730 String formAction; |
11975 | 12731 |
11976 /// @domName HTMLInputElement.formEnctype | 12732 @DomName("HTMLInputElement.formEnctype") |
11977 String formEnctype; | 12733 String formEnctype; |
11978 | 12734 |
11979 /// @domName HTMLInputElement.formMethod | 12735 @DomName("HTMLInputElement.formMethod") |
11980 String formMethod; | 12736 String formMethod; |
11981 | 12737 |
11982 /// @domName HTMLInputElement.formNoValidate | 12738 @DomName("HTMLInputElement.formNoValidate") |
11983 bool formNoValidate; | 12739 bool formNoValidate; |
11984 | 12740 |
11985 /// @domName HTMLInputElement.formTarget | 12741 @DomName("HTMLInputElement.formTarget") |
11986 String formTarget; | 12742 String formTarget; |
11987 } | 12743 } |
11988 | 12744 |
11989 /** | 12745 /** |
11990 * Either an image which the user can select a coordinate to or a form | 12746 * Either an image which the user can select a coordinate to or a form |
11991 * submit button. | 12747 * submit button. |
11992 */ | 12748 */ |
11993 abstract class ImageButtonInputElement implements InputElementBase { | 12749 abstract class ImageButtonInputElement implements InputElementBase { |
11994 factory ImageButtonInputElement() => new InputElement(type: 'image'); | 12750 factory ImageButtonInputElement() => new InputElement(type: 'image'); |
11995 | 12751 |
11996 /// @domName HTMLInputElement.alt | 12752 @DomName("HTMLInputElement.alt") |
11997 String alt; | 12753 String alt; |
11998 | 12754 |
11999 /// @domName HTMLInputElement.formAction | 12755 @DomName("HTMLInputElement.formAction") |
12000 String formAction; | 12756 String formAction; |
12001 | 12757 |
12002 /// @domName HTMLInputElement.formEnctype | 12758 @DomName("HTMLInputElement.formEnctype") |
12003 String formEnctype; | 12759 String formEnctype; |
12004 | 12760 |
12005 /// @domName HTMLInputElement.formMethod | 12761 @DomName("HTMLInputElement.formMethod") |
12006 String formMethod; | 12762 String formMethod; |
12007 | 12763 |
12008 /// @domName HTMLInputElement.formNoValidate | 12764 @DomName("HTMLInputElement.formNoValidate") |
12009 bool formNoValidate; | 12765 bool formNoValidate; |
12010 | 12766 |
12011 /// @domName HTMLInputElement.formTarget | 12767 @DomName("HTMLInputElement.formTarget") |
12012 String formTarget; | 12768 String formTarget; |
12013 | 12769 |
12014 /// @domName HTMLInputElement.height | 12770 @DomName("HTMLInputElement.height") |
12015 int height; | 12771 int height; |
12016 | 12772 |
12017 /// @domName HTMLInputElement.src | 12773 @DomName("HTMLInputElement.src") |
12018 String src; | 12774 String src; |
12019 | 12775 |
12020 /// @domName HTMLInputElement.width | 12776 @DomName("HTMLInputElement.width") |
12021 int width; | 12777 int width; |
12022 } | 12778 } |
12023 | 12779 |
12024 /** | 12780 /** |
12025 * A button, which when clicked, resets the form. | 12781 * A button, which when clicked, resets the form. |
12026 */ | 12782 */ |
12027 abstract class ResetButtonInputElement implements InputElementBase { | 12783 abstract class ResetButtonInputElement implements InputElementBase { |
12028 factory ResetButtonInputElement() => new InputElement(type: 'reset'); | 12784 factory ResetButtonInputElement() => new InputElement(type: 'reset'); |
12029 } | 12785 } |
12030 | 12786 |
(...skipping 11 matching lines...) Expand all Loading... |
12042 InputElementEvents(EventTarget _ptr) : super(_ptr); | 12798 InputElementEvents(EventTarget _ptr) : super(_ptr); |
12043 | 12799 |
12044 /// @docsEditable true | 12800 /// @docsEditable true |
12045 EventListenerList get speechChange => this['webkitSpeechChange']; | 12801 EventListenerList get speechChange => this['webkitSpeechChange']; |
12046 } | 12802 } |
12047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12048 // for details. All rights reserved. Use of this source code is governed by a | 12804 // for details. All rights reserved. Use of this source code is governed by a |
12049 // BSD-style license that can be found in the LICENSE file. | 12805 // BSD-style license that can be found in the LICENSE file. |
12050 | 12806 |
12051 | 12807 |
12052 /// @domName Int16Array; @docsEditable true | 12808 /// @docsEditable true |
| 12809 @DomName("Int16Array") |
12053 class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Int16Array" { | 12810 class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Int16Array" { |
12054 | 12811 |
12055 factory Int16Array(int length) => | 12812 factory Int16Array(int length) => |
12056 _TypedArrayFactoryProvider.createInt16Array(length); | 12813 _TypedArrayFactoryProvider.createInt16Array(length); |
12057 | 12814 |
12058 factory Int16Array.fromList(List<int> list) => | 12815 factory Int16Array.fromList(List<int> list) => |
12059 _TypedArrayFactoryProvider.createInt16Array_fromList(list); | 12816 _TypedArrayFactoryProvider.createInt16Array_fromList(list); |
12060 | 12817 |
12061 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => | 12818 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => |
12062 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l
ength); | 12819 _TypedArrayFactoryProvider.createInt16Array_fromBuffer(buffer, byteOffset, l
ength); |
12063 | 12820 |
12064 static const int BYTES_PER_ELEMENT = 2; | 12821 static const int BYTES_PER_ELEMENT = 2; |
12065 | 12822 |
12066 /// @domName Int16Array.length; @docsEditable true | 12823 /// @docsEditable true |
| 12824 @DomName("Int16Array.length") |
12067 int get length => JS("int", "#.length", this); | 12825 int get length => JS("int", "#.length", this); |
12068 | 12826 |
12069 int operator[](int index) => JS("int", "#[#]", this, index); | 12827 int operator[](int index) => JS("int", "#[#]", this, index); |
12070 | 12828 |
12071 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 12829 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
12072 // int is the element type. | 12830 // int is the element type. |
12073 | 12831 |
12074 // From Iterable<int>: | 12832 // From Iterable<int>: |
12075 | 12833 |
12076 Iterator<int> get iterator { | 12834 Iterator<int> get iterator { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12201 | 12959 |
12202 void insertRange(int start, int rangeLength, [int initialValue]) { | 12960 void insertRange(int start, int rangeLength, [int initialValue]) { |
12203 throw new UnsupportedError("Cannot insertRange on immutable List."); | 12961 throw new UnsupportedError("Cannot insertRange on immutable List."); |
12204 } | 12962 } |
12205 | 12963 |
12206 List<int> getRange(int start, int rangeLength) => | 12964 List<int> getRange(int start, int rangeLength) => |
12207 Lists.getRange(this, start, rangeLength, <int>[]); | 12965 Lists.getRange(this, start, rangeLength, <int>[]); |
12208 | 12966 |
12209 // -- end List<int> mixins. | 12967 // -- end List<int> mixins. |
12210 | 12968 |
12211 /// @domName Int16Array.setElements; @docsEditable true | 12969 /// @docsEditable true |
12212 @JSName('set') | 12970 @JSName('set') |
| 12971 @DomName("Int16Array.set") |
12213 void setElements(Object array, [int offset]) native; | 12972 void setElements(Object array, [int offset]) native; |
12214 | 12973 |
12215 /// @domName Int16Array.subarray; @docsEditable true | 12974 /// @docsEditable true |
| 12975 @DomName("Int16Array.subarray") |
12216 Int16Array subarray(int start, [int end]) native; | 12976 Int16Array subarray(int start, [int end]) native; |
12217 } | 12977 } |
12218 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12219 // for details. All rights reserved. Use of this source code is governed by a | 12979 // for details. All rights reserved. Use of this source code is governed by a |
12220 // BSD-style license that can be found in the LICENSE file. | 12980 // BSD-style license that can be found in the LICENSE file. |
12221 | 12981 |
12222 | 12982 |
12223 /// @domName Int32Array; @docsEditable true | 12983 /// @docsEditable true |
| 12984 @DomName("Int32Array") |
12224 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Int32Array" { | 12985 class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Int32Array" { |
12225 | 12986 |
12226 factory Int32Array(int length) => | 12987 factory Int32Array(int length) => |
12227 _TypedArrayFactoryProvider.createInt32Array(length); | 12988 _TypedArrayFactoryProvider.createInt32Array(length); |
12228 | 12989 |
12229 factory Int32Array.fromList(List<int> list) => | 12990 factory Int32Array.fromList(List<int> list) => |
12230 _TypedArrayFactoryProvider.createInt32Array_fromList(list); | 12991 _TypedArrayFactoryProvider.createInt32Array_fromList(list); |
12231 | 12992 |
12232 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => | 12993 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => |
12233 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l
ength); | 12994 _TypedArrayFactoryProvider.createInt32Array_fromBuffer(buffer, byteOffset, l
ength); |
12234 | 12995 |
12235 static const int BYTES_PER_ELEMENT = 4; | 12996 static const int BYTES_PER_ELEMENT = 4; |
12236 | 12997 |
12237 /// @domName Int32Array.length; @docsEditable true | 12998 /// @docsEditable true |
| 12999 @DomName("Int32Array.length") |
12238 int get length => JS("int", "#.length", this); | 13000 int get length => JS("int", "#.length", this); |
12239 | 13001 |
12240 int operator[](int index) => JS("int", "#[#]", this, index); | 13002 int operator[](int index) => JS("int", "#[#]", this, index); |
12241 | 13003 |
12242 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 13004 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
12243 // int is the element type. | 13005 // int is the element type. |
12244 | 13006 |
12245 // From Iterable<int>: | 13007 // From Iterable<int>: |
12246 | 13008 |
12247 Iterator<int> get iterator { | 13009 Iterator<int> get iterator { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12372 | 13134 |
12373 void insertRange(int start, int rangeLength, [int initialValue]) { | 13135 void insertRange(int start, int rangeLength, [int initialValue]) { |
12374 throw new UnsupportedError("Cannot insertRange on immutable List."); | 13136 throw new UnsupportedError("Cannot insertRange on immutable List."); |
12375 } | 13137 } |
12376 | 13138 |
12377 List<int> getRange(int start, int rangeLength) => | 13139 List<int> getRange(int start, int rangeLength) => |
12378 Lists.getRange(this, start, rangeLength, <int>[]); | 13140 Lists.getRange(this, start, rangeLength, <int>[]); |
12379 | 13141 |
12380 // -- end List<int> mixins. | 13142 // -- end List<int> mixins. |
12381 | 13143 |
12382 /// @domName Int32Array.setElements; @docsEditable true | 13144 /// @docsEditable true |
12383 @JSName('set') | 13145 @JSName('set') |
| 13146 @DomName("Int32Array.set") |
12384 void setElements(Object array, [int offset]) native; | 13147 void setElements(Object array, [int offset]) native; |
12385 | 13148 |
12386 /// @domName Int32Array.subarray; @docsEditable true | 13149 /// @docsEditable true |
| 13150 @DomName("Int32Array.subarray") |
12387 Int32Array subarray(int start, [int end]) native; | 13151 Int32Array subarray(int start, [int end]) native; |
12388 } | 13152 } |
12389 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13153 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12390 // for details. All rights reserved. Use of this source code is governed by a | 13154 // for details. All rights reserved. Use of this source code is governed by a |
12391 // BSD-style license that can be found in the LICENSE file. | 13155 // BSD-style license that can be found in the LICENSE file. |
12392 | 13156 |
12393 | 13157 |
12394 /// @domName Int8Array; @docsEditable true | 13158 /// @docsEditable true |
| 13159 @DomName("Int8Array") |
12395 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
ist<int> native "*Int8Array" { | 13160 class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L
ist<int> native "*Int8Array" { |
12396 | 13161 |
12397 factory Int8Array(int length) => | 13162 factory Int8Array(int length) => |
12398 _TypedArrayFactoryProvider.createInt8Array(length); | 13163 _TypedArrayFactoryProvider.createInt8Array(length); |
12399 | 13164 |
12400 factory Int8Array.fromList(List<int> list) => | 13165 factory Int8Array.fromList(List<int> list) => |
12401 _TypedArrayFactoryProvider.createInt8Array_fromList(list); | 13166 _TypedArrayFactoryProvider.createInt8Array_fromList(list); |
12402 | 13167 |
12403 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length])
=> | 13168 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length])
=> |
12404 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le
ngth); | 13169 _TypedArrayFactoryProvider.createInt8Array_fromBuffer(buffer, byteOffset, le
ngth); |
12405 | 13170 |
12406 static const int BYTES_PER_ELEMENT = 1; | 13171 static const int BYTES_PER_ELEMENT = 1; |
12407 | 13172 |
12408 /// @domName Int8Array.length; @docsEditable true | 13173 /// @docsEditable true |
| 13174 @DomName("Int8Array.length") |
12409 int get length => JS("int", "#.length", this); | 13175 int get length => JS("int", "#.length", this); |
12410 | 13176 |
12411 int operator[](int index) => JS("int", "#[#]", this, index); | 13177 int operator[](int index) => JS("int", "#[#]", this, index); |
12412 | 13178 |
12413 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 13179 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
12414 // int is the element type. | 13180 // int is the element type. |
12415 | 13181 |
12416 // From Iterable<int>: | 13182 // From Iterable<int>: |
12417 | 13183 |
12418 Iterator<int> get iterator { | 13184 Iterator<int> get iterator { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12543 | 13309 |
12544 void insertRange(int start, int rangeLength, [int initialValue]) { | 13310 void insertRange(int start, int rangeLength, [int initialValue]) { |
12545 throw new UnsupportedError("Cannot insertRange on immutable List."); | 13311 throw new UnsupportedError("Cannot insertRange on immutable List."); |
12546 } | 13312 } |
12547 | 13313 |
12548 List<int> getRange(int start, int rangeLength) => | 13314 List<int> getRange(int start, int rangeLength) => |
12549 Lists.getRange(this, start, rangeLength, <int>[]); | 13315 Lists.getRange(this, start, rangeLength, <int>[]); |
12550 | 13316 |
12551 // -- end List<int> mixins. | 13317 // -- end List<int> mixins. |
12552 | 13318 |
12553 /// @domName Int8Array.setElements; @docsEditable true | 13319 /// @docsEditable true |
12554 @JSName('set') | 13320 @JSName('set') |
| 13321 @DomName("Int8Array.set") |
12555 void setElements(Object array, [int offset]) native; | 13322 void setElements(Object array, [int offset]) native; |
12556 | 13323 |
12557 /// @domName Int8Array.subarray; @docsEditable true | 13324 /// @docsEditable true |
| 13325 @DomName("Int8Array.subarray") |
12558 Int8Array subarray(int start, [int end]) native; | 13326 Int8Array subarray(int start, [int end]) native; |
12559 } | 13327 } |
12560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13328 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12561 // for details. All rights reserved. Use of this source code is governed by a | 13329 // for details. All rights reserved. Use of this source code is governed by a |
12562 // BSD-style license that can be found in the LICENSE file. | 13330 // BSD-style license that can be found in the LICENSE file. |
12563 | 13331 |
12564 | 13332 |
12565 /// @domName JavaScriptCallFrame; @docsEditable true | 13333 /// @docsEditable true |
| 13334 @DomName("JavaScriptCallFrame") |
12566 class JavaScriptCallFrame native "*JavaScriptCallFrame" { | 13335 class JavaScriptCallFrame native "*JavaScriptCallFrame" { |
12567 | 13336 |
12568 static const int CATCH_SCOPE = 4; | 13337 static const int CATCH_SCOPE = 4; |
12569 | 13338 |
12570 static const int CLOSURE_SCOPE = 3; | 13339 static const int CLOSURE_SCOPE = 3; |
12571 | 13340 |
12572 static const int GLOBAL_SCOPE = 0; | 13341 static const int GLOBAL_SCOPE = 0; |
12573 | 13342 |
12574 static const int LOCAL_SCOPE = 1; | 13343 static const int LOCAL_SCOPE = 1; |
12575 | 13344 |
12576 static const int WITH_SCOPE = 2; | 13345 static const int WITH_SCOPE = 2; |
12577 | 13346 |
12578 /// @domName JavaScriptCallFrame.caller; @docsEditable true | 13347 /// @docsEditable true |
| 13348 @DomName("JavaScriptCallFrame.caller") |
12579 final JavaScriptCallFrame caller; | 13349 final JavaScriptCallFrame caller; |
12580 | 13350 |
12581 /// @domName JavaScriptCallFrame.column; @docsEditable true | 13351 /// @docsEditable true |
| 13352 @DomName("JavaScriptCallFrame.column") |
12582 final int column; | 13353 final int column; |
12583 | 13354 |
12584 /// @domName JavaScriptCallFrame.functionName; @docsEditable true | 13355 /// @docsEditable true |
| 13356 @DomName("JavaScriptCallFrame.functionName") |
12585 final String functionName; | 13357 final String functionName; |
12586 | 13358 |
12587 /// @domName JavaScriptCallFrame.line; @docsEditable true | 13359 /// @docsEditable true |
| 13360 @DomName("JavaScriptCallFrame.line") |
12588 final int line; | 13361 final int line; |
12589 | 13362 |
12590 /// @domName JavaScriptCallFrame.scopeChain; @docsEditable true | 13363 /// @docsEditable true |
| 13364 @DomName("JavaScriptCallFrame.scopeChain") |
12591 final List scopeChain; | 13365 final List scopeChain; |
12592 | 13366 |
12593 /// @domName JavaScriptCallFrame.sourceID; @docsEditable true | 13367 /// @docsEditable true |
| 13368 @DomName("JavaScriptCallFrame.sourceID") |
12594 final int sourceID; | 13369 final int sourceID; |
12595 | 13370 |
12596 /// @domName JavaScriptCallFrame.thisObject; @docsEditable true | 13371 /// @docsEditable true |
| 13372 @DomName("JavaScriptCallFrame.thisObject") |
12597 final Object thisObject; | 13373 final Object thisObject; |
12598 | 13374 |
12599 /// @domName JavaScriptCallFrame.type; @docsEditable true | 13375 /// @docsEditable true |
| 13376 @DomName("JavaScriptCallFrame.type") |
12600 final String type; | 13377 final String type; |
12601 | 13378 |
12602 /// @domName JavaScriptCallFrame.evaluate; @docsEditable true | 13379 /// @docsEditable true |
| 13380 @DomName("JavaScriptCallFrame.evaluate") |
12603 void evaluate(String script) native; | 13381 void evaluate(String script) native; |
12604 | 13382 |
12605 /// @domName JavaScriptCallFrame.restart; @docsEditable true | 13383 /// @docsEditable true |
| 13384 @DomName("JavaScriptCallFrame.restart") |
12606 Object restart() native; | 13385 Object restart() native; |
12607 | 13386 |
12608 /// @domName JavaScriptCallFrame.scopeType; @docsEditable true | 13387 /// @docsEditable true |
| 13388 @DomName("JavaScriptCallFrame.scopeType") |
12609 int scopeType(int scopeIndex) native; | 13389 int scopeType(int scopeIndex) native; |
12610 } | 13390 } |
12611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12612 // for details. All rights reserved. Use of this source code is governed by a | 13392 // for details. All rights reserved. Use of this source code is governed by a |
12613 // BSD-style license that can be found in the LICENSE file. | 13393 // BSD-style license that can be found in the LICENSE file. |
12614 | 13394 |
12615 | 13395 |
12616 /// @domName KeyboardEvent; @docsEditable true | 13396 /// @docsEditable true |
| 13397 @DomName("KeyboardEvent") |
12617 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { | 13398 class KeyboardEvent extends UIEvent native "*KeyboardEvent" { |
12618 | 13399 |
12619 factory KeyboardEvent(String type, Window view, | 13400 factory KeyboardEvent(String type, Window view, |
12620 [bool canBubble = true, bool cancelable = true, | 13401 [bool canBubble = true, bool cancelable = true, |
12621 String keyIdentifier = "", int keyLocation = 1, bool ctrlKey = false, | 13402 String keyIdentifier = "", int keyLocation = 1, bool ctrlKey = false, |
12622 bool altKey = false, bool shiftKey = false, bool metaKey = false, | 13403 bool altKey = false, bool shiftKey = false, bool metaKey = false, |
12623 bool altGraphKey = false]) { | 13404 bool altGraphKey = false]) { |
12624 final e = document.$dom_createEvent("KeyboardEvent"); | 13405 final e = document.$dom_createEvent("KeyboardEvent"); |
12625 e.$dom_initKeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, | 13406 e.$dom_initKeyboardEvent(type, canBubble, cancelable, view, keyIdentifier, |
12626 keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey); | 13407 keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey); |
12627 return e; | 13408 return e; |
12628 } | 13409 } |
12629 | 13410 |
12630 /** @domName KeyboardEvent.initKeyboardEvent */ | 13411 @DomName("KeyboardEvent.initKeyboardEvent") |
12631 void $dom_initKeyboardEvent(String type, bool canBubble, bool cancelable, | 13412 void $dom_initKeyboardEvent(String type, bool canBubble, bool cancelable, |
12632 Window view, String keyIdentifier, int keyLocation, bool ctrlKey, | 13413 Window view, String keyIdentifier, int keyLocation, bool ctrlKey, |
12633 bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) { | 13414 bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) { |
12634 if (JS('bool', 'typeof(#.initKeyEvent) == "function"', this)) { | 13415 if (JS('bool', 'typeof(#.initKeyEvent) == "function"', this)) { |
12635 // initKeyEvent is only in Firefox (instead of initKeyboardEvent). It has | 13416 // initKeyEvent is only in Firefox (instead of initKeyboardEvent). It has |
12636 // a slightly different signature, and allows you to specify keyCode and | 13417 // a slightly different signature, and allows you to specify keyCode and |
12637 // charCode as the last two arguments, but we just set them as the default | 13418 // charCode as the last two arguments, but we just set them as the default |
12638 // since they can't be specified in other browsers. | 13419 // since they can't be specified in other browsers. |
12639 JS('void', '#.initKeyEvent(#, #, #, #, #, #, #, #, 0, 0)', this, | 13420 JS('void', '#.initKeyEvent(#, #, #, #, #, #, #, #, 0, 0)', this, |
12640 type, canBubble, cancelable, view, | 13421 type, canBubble, cancelable, view, |
12641 ctrlKey, altKey, shiftKey, metaKey); | 13422 ctrlKey, altKey, shiftKey, metaKey); |
12642 } else { | 13423 } else { |
12643 // initKeyboardEvent is for all other browsers. | 13424 // initKeyboardEvent is for all other browsers. |
12644 JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #, #)', this, | 13425 JS('void', '#.initKeyboardEvent(#, #, #, #, #, #, #, #, #, #, #)', this, |
12645 type, canBubble, cancelable, view, keyIdentifier, keyLocation, | 13426 type, canBubble, cancelable, view, keyIdentifier, keyLocation, |
12646 ctrlKey, altKey, shiftKey, metaKey, altGraphKey); | 13427 ctrlKey, altKey, shiftKey, metaKey, altGraphKey); |
12647 } | 13428 } |
12648 } | 13429 } |
12649 | 13430 |
12650 /** @domName KeyboardEvent.keyCode */ | 13431 @DomName("KeyboardEvent.keyCode") |
12651 int get keyCode => $dom_keyCode; | 13432 int get keyCode => $dom_keyCode; |
12652 | 13433 |
12653 /** @domName KeyboardEvent.charCode */ | 13434 @DomName("KeyboardEvent.charCode") |
12654 int get charCode => $dom_charCode; | 13435 int get charCode => $dom_charCode; |
12655 | 13436 |
12656 /// @domName KeyboardEvent.altGraphKey; @docsEditable true | 13437 /// @docsEditable true |
| 13438 @DomName("KeyboardEvent.altGraphKey") |
12657 final bool altGraphKey; | 13439 final bool altGraphKey; |
12658 | 13440 |
12659 /// @domName KeyboardEvent.altKey; @docsEditable true | 13441 /// @docsEditable true |
| 13442 @DomName("KeyboardEvent.altKey") |
12660 final bool altKey; | 13443 final bool altKey; |
12661 | 13444 |
12662 /// @domName KeyboardEvent.ctrlKey; @docsEditable true | 13445 /// @docsEditable true |
| 13446 @DomName("KeyboardEvent.ctrlKey") |
12663 final bool ctrlKey; | 13447 final bool ctrlKey; |
12664 | 13448 |
12665 /// @domName KeyboardEvent.keyIdentifier; @docsEditable true | 13449 /// @docsEditable true |
12666 @JSName('keyIdentifier') | 13450 @JSName('keyIdentifier') |
| 13451 @DomName("KeyboardEvent.keyIdentifier") |
12667 final String $dom_keyIdentifier; | 13452 final String $dom_keyIdentifier; |
12668 | 13453 |
12669 /// @domName KeyboardEvent.keyLocation; @docsEditable true | 13454 /// @docsEditable true |
| 13455 @DomName("KeyboardEvent.keyLocation") |
12670 final int keyLocation; | 13456 final int keyLocation; |
12671 | 13457 |
12672 /// @domName KeyboardEvent.metaKey; @docsEditable true | 13458 /// @docsEditable true |
| 13459 @DomName("KeyboardEvent.metaKey") |
12673 final bool metaKey; | 13460 final bool metaKey; |
12674 | 13461 |
12675 /// @domName KeyboardEvent.shiftKey; @docsEditable true | 13462 /// @docsEditable true |
| 13463 @DomName("KeyboardEvent.shiftKey") |
12676 final bool shiftKey; | 13464 final bool shiftKey; |
12677 | 13465 |
12678 } | 13466 } |
12679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12680 // for details. All rights reserved. Use of this source code is governed by a | 13468 // for details. All rights reserved. Use of this source code is governed by a |
12681 // BSD-style license that can be found in the LICENSE file. | 13469 // BSD-style license that can be found in the LICENSE file. |
12682 | 13470 |
12683 | 13471 |
12684 /// @domName HTMLKeygenElement; @docsEditable true | 13472 /// @docsEditable true |
| 13473 @DomName("HTMLKeygenElement") |
12685 @SupportedBrowser(SupportedBrowser.CHROME) | 13474 @SupportedBrowser(SupportedBrowser.CHROME) |
12686 @SupportedBrowser(SupportedBrowser.SAFARI) | 13475 @SupportedBrowser(SupportedBrowser.SAFARI) |
12687 @Experimental() | 13476 @Experimental() |
12688 class KeygenElement extends Element native "*HTMLKeygenElement" { | 13477 class KeygenElement extends Element native "*HTMLKeygenElement" { |
12689 | 13478 |
12690 ///@docsEditable true | 13479 /// @docsEditable true |
12691 factory KeygenElement() => document.$dom_createElement("keygen"); | 13480 factory KeygenElement() => document.$dom_createElement("keygen"); |
12692 | 13481 |
12693 /// Checks if this type is supported on the current platform. | 13482 /// Checks if this type is supported on the current platform. |
12694 static bool get supported => Element.isTagSupported('keygen') && (new Element.
tag('keygen') is KeygenElement); | 13483 static bool get supported => Element.isTagSupported('keygen') && (new Element.
tag('keygen') is KeygenElement); |
12695 | 13484 |
12696 /// @domName HTMLKeygenElement.autofocus; @docsEditable true | 13485 /// @docsEditable true |
| 13486 @DomName("HTMLKeygenElement.autofocus") |
12697 bool autofocus; | 13487 bool autofocus; |
12698 | 13488 |
12699 /// @domName HTMLKeygenElement.challenge; @docsEditable true | 13489 /// @docsEditable true |
| 13490 @DomName("HTMLKeygenElement.challenge") |
12700 String challenge; | 13491 String challenge; |
12701 | 13492 |
12702 /// @domName HTMLKeygenElement.disabled; @docsEditable true | 13493 /// @docsEditable true |
| 13494 @DomName("HTMLKeygenElement.disabled") |
12703 bool disabled; | 13495 bool disabled; |
12704 | 13496 |
12705 /// @domName HTMLKeygenElement.form; @docsEditable true | 13497 /// @docsEditable true |
| 13498 @DomName("HTMLKeygenElement.form") |
12706 final FormElement form; | 13499 final FormElement form; |
12707 | 13500 |
12708 /// @domName HTMLKeygenElement.keytype; @docsEditable true | 13501 /// @docsEditable true |
| 13502 @DomName("HTMLKeygenElement.keytype") |
12709 String keytype; | 13503 String keytype; |
12710 | 13504 |
12711 /// @domName HTMLKeygenElement.labels; @docsEditable true | 13505 /// @docsEditable true |
| 13506 @DomName("HTMLKeygenElement.labels") |
12712 @Returns('NodeList') @Creates('NodeList') | 13507 @Returns('NodeList') @Creates('NodeList') |
12713 final List<Node> labels; | 13508 final List<Node> labels; |
12714 | 13509 |
12715 /// @domName HTMLKeygenElement.name; @docsEditable true | 13510 /// @docsEditable true |
| 13511 @DomName("HTMLKeygenElement.name") |
12716 String name; | 13512 String name; |
12717 | 13513 |
12718 /// @domName HTMLKeygenElement.type; @docsEditable true | 13514 /// @docsEditable true |
| 13515 @DomName("HTMLKeygenElement.type") |
12719 final String type; | 13516 final String type; |
12720 | 13517 |
12721 /// @domName HTMLKeygenElement.validationMessage; @docsEditable true | 13518 /// @docsEditable true |
| 13519 @DomName("HTMLKeygenElement.validationMessage") |
12722 final String validationMessage; | 13520 final String validationMessage; |
12723 | 13521 |
12724 /// @domName HTMLKeygenElement.validity; @docsEditable true | 13522 /// @docsEditable true |
| 13523 @DomName("HTMLKeygenElement.validity") |
12725 final ValidityState validity; | 13524 final ValidityState validity; |
12726 | 13525 |
12727 /// @domName HTMLKeygenElement.willValidate; @docsEditable true | 13526 /// @docsEditable true |
| 13527 @DomName("HTMLKeygenElement.willValidate") |
12728 final bool willValidate; | 13528 final bool willValidate; |
12729 | 13529 |
12730 /// @domName HTMLKeygenElement.checkValidity; @docsEditable true | 13530 /// @docsEditable true |
| 13531 @DomName("HTMLKeygenElement.checkValidity") |
12731 bool checkValidity() native; | 13532 bool checkValidity() native; |
12732 | 13533 |
12733 /// @domName HTMLKeygenElement.setCustomValidity; @docsEditable true | 13534 /// @docsEditable true |
| 13535 @DomName("HTMLKeygenElement.setCustomValidity") |
12734 void setCustomValidity(String error) native; | 13536 void setCustomValidity(String error) native; |
12735 } | 13537 } |
12736 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12737 // for details. All rights reserved. Use of this source code is governed by a | 13539 // for details. All rights reserved. Use of this source code is governed by a |
12738 // BSD-style license that can be found in the LICENSE file. | 13540 // BSD-style license that can be found in the LICENSE file. |
12739 | 13541 |
12740 | 13542 |
12741 /// @domName HTMLLIElement; @docsEditable true | 13543 /// @docsEditable true |
| 13544 @DomName("HTMLLIElement") |
12742 class LIElement extends Element native "*HTMLLIElement" { | 13545 class LIElement extends Element native "*HTMLLIElement" { |
12743 | 13546 |
12744 ///@docsEditable true | 13547 /// @docsEditable true |
12745 factory LIElement() => document.$dom_createElement("li"); | 13548 factory LIElement() => document.$dom_createElement("li"); |
12746 | 13549 |
12747 /// @domName HTMLLIElement.type; @docsEditable true | 13550 /// @docsEditable true |
| 13551 @DomName("HTMLLIElement.type") |
12748 String type; | 13552 String type; |
12749 | 13553 |
12750 /// @domName HTMLLIElement.value; @docsEditable true | 13554 /// @docsEditable true |
| 13555 @DomName("HTMLLIElement.value") |
12751 int value; | 13556 int value; |
12752 } | 13557 } |
12753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12754 // for details. All rights reserved. Use of this source code is governed by a | 13559 // for details. All rights reserved. Use of this source code is governed by a |
12755 // BSD-style license that can be found in the LICENSE file. | 13560 // BSD-style license that can be found in the LICENSE file. |
12756 | 13561 |
12757 | 13562 |
12758 /// @domName HTMLLabelElement; @docsEditable true | 13563 /// @docsEditable true |
| 13564 @DomName("HTMLLabelElement") |
12759 class LabelElement extends Element native "*HTMLLabelElement" { | 13565 class LabelElement extends Element native "*HTMLLabelElement" { |
12760 | 13566 |
12761 ///@docsEditable true | 13567 /// @docsEditable true |
12762 factory LabelElement() => document.$dom_createElement("label"); | 13568 factory LabelElement() => document.$dom_createElement("label"); |
12763 | 13569 |
12764 /// @domName HTMLLabelElement.control; @docsEditable true | 13570 /// @docsEditable true |
| 13571 @DomName("HTMLLabelElement.control") |
12765 final Element control; | 13572 final Element control; |
12766 | 13573 |
12767 /// @domName HTMLLabelElement.form; @docsEditable true | 13574 /// @docsEditable true |
| 13575 @DomName("HTMLLabelElement.form") |
12768 final FormElement form; | 13576 final FormElement form; |
12769 | 13577 |
12770 /// @domName HTMLLabelElement.htmlFor; @docsEditable true | 13578 /// @docsEditable true |
| 13579 @DomName("HTMLLabelElement.htmlFor") |
12771 String htmlFor; | 13580 String htmlFor; |
12772 } | 13581 } |
12773 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12774 // for details. All rights reserved. Use of this source code is governed by a | 13583 // for details. All rights reserved. Use of this source code is governed by a |
12775 // BSD-style license that can be found in the LICENSE file. | 13584 // BSD-style license that can be found in the LICENSE file. |
12776 | 13585 |
12777 | 13586 |
12778 /// @domName HTMLLegendElement; @docsEditable true | 13587 /// @docsEditable true |
| 13588 @DomName("HTMLLegendElement") |
12779 class LegendElement extends Element native "*HTMLLegendElement" { | 13589 class LegendElement extends Element native "*HTMLLegendElement" { |
12780 | 13590 |
12781 ///@docsEditable true | 13591 /// @docsEditable true |
12782 factory LegendElement() => document.$dom_createElement("legend"); | 13592 factory LegendElement() => document.$dom_createElement("legend"); |
12783 | 13593 |
12784 /// @domName HTMLLegendElement.align; @docsEditable true | 13594 /// @docsEditable true |
| 13595 @DomName("HTMLLegendElement.align") |
12785 String align; | 13596 String align; |
12786 | 13597 |
12787 /// @domName HTMLLegendElement.form; @docsEditable true | 13598 /// @docsEditable true |
| 13599 @DomName("HTMLLegendElement.form") |
12788 final FormElement form; | 13600 final FormElement form; |
12789 } | 13601 } |
12790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12791 // for details. All rights reserved. Use of this source code is governed by a | 13603 // for details. All rights reserved. Use of this source code is governed by a |
12792 // BSD-style license that can be found in the LICENSE file. | 13604 // BSD-style license that can be found in the LICENSE file. |
12793 | 13605 |
12794 | 13606 |
12795 /// @domName HTMLLinkElement; @docsEditable true | 13607 /// @docsEditable true |
| 13608 @DomName("HTMLLinkElement") |
12796 class LinkElement extends Element native "*HTMLLinkElement" { | 13609 class LinkElement extends Element native "*HTMLLinkElement" { |
12797 | 13610 |
12798 ///@docsEditable true | 13611 /// @docsEditable true |
12799 factory LinkElement() => document.$dom_createElement("link"); | 13612 factory LinkElement() => document.$dom_createElement("link"); |
12800 | 13613 |
12801 /// @domName HTMLLinkElement.disabled; @docsEditable true | 13614 /// @docsEditable true |
| 13615 @DomName("HTMLLinkElement.disabled") |
12802 bool disabled; | 13616 bool disabled; |
12803 | 13617 |
12804 /// @domName HTMLLinkElement.href; @docsEditable true | 13618 /// @docsEditable true |
| 13619 @DomName("HTMLLinkElement.href") |
12805 String href; | 13620 String href; |
12806 | 13621 |
12807 /// @domName HTMLLinkElement.hreflang; @docsEditable true | 13622 /// @docsEditable true |
| 13623 @DomName("HTMLLinkElement.hreflang") |
12808 String hreflang; | 13624 String hreflang; |
12809 | 13625 |
12810 /// @domName HTMLLinkElement.media; @docsEditable true | 13626 /// @docsEditable true |
| 13627 @DomName("HTMLLinkElement.media") |
12811 String media; | 13628 String media; |
12812 | 13629 |
12813 /// @domName HTMLLinkElement.rel; @docsEditable true | 13630 /// @docsEditable true |
| 13631 @DomName("HTMLLinkElement.rel") |
12814 String rel; | 13632 String rel; |
12815 | 13633 |
12816 /// @domName HTMLLinkElement.sheet; @docsEditable true | 13634 /// @docsEditable true |
| 13635 @DomName("HTMLLinkElement.sheet") |
12817 final StyleSheet sheet; | 13636 final StyleSheet sheet; |
12818 | 13637 |
12819 /// @domName HTMLLinkElement.sizes; @docsEditable true | 13638 /// @docsEditable true |
| 13639 @DomName("HTMLLinkElement.sizes") |
12820 DomSettableTokenList sizes; | 13640 DomSettableTokenList sizes; |
12821 | 13641 |
12822 /// @domName HTMLLinkElement.type; @docsEditable true | 13642 /// @docsEditable true |
| 13643 @DomName("HTMLLinkElement.type") |
12823 String type; | 13644 String type; |
12824 } | 13645 } |
12825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12826 // for details. All rights reserved. Use of this source code is governed by a | 13647 // for details. All rights reserved. Use of this source code is governed by a |
12827 // BSD-style license that can be found in the LICENSE file. | 13648 // BSD-style license that can be found in the LICENSE file. |
12828 | 13649 |
12829 | 13650 |
12830 /// @domName LocalMediaStream; @docsEditable true | 13651 /// @docsEditable true |
| 13652 @DomName("LocalMediaStream") |
12831 class LocalMediaStream extends MediaStream implements EventTarget native "*Local
MediaStream" { | 13653 class LocalMediaStream extends MediaStream implements EventTarget native "*Local
MediaStream" { |
12832 | 13654 |
12833 /// @domName LocalMediaStream.stop; @docsEditable true | 13655 /// @docsEditable true |
| 13656 @DomName("LocalMediaStream.stop") |
12834 void stop() native; | 13657 void stop() native; |
12835 } | 13658 } |
12836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12837 // for details. All rights reserved. Use of this source code is governed by a | 13660 // for details. All rights reserved. Use of this source code is governed by a |
12838 // BSD-style license that can be found in the LICENSE file. | 13661 // BSD-style license that can be found in the LICENSE file. |
12839 | 13662 |
12840 | 13663 |
12841 /// @domName Location; @docsEditable true | 13664 /// @docsEditable true |
| 13665 @DomName("Location") |
12842 class Location implements LocationBase native "*Location" { | 13666 class Location implements LocationBase native "*Location" { |
12843 | 13667 |
12844 /// @domName Location.ancestorOrigins; @docsEditable true | 13668 /// @docsEditable true |
| 13669 @DomName("Location.ancestorOrigins") |
12845 @Returns('DomStringList') @Creates('DomStringList') | 13670 @Returns('DomStringList') @Creates('DomStringList') |
12846 final List<String> ancestorOrigins; | 13671 final List<String> ancestorOrigins; |
12847 | 13672 |
12848 /// @domName Location.hash; @docsEditable true | 13673 /// @docsEditable true |
| 13674 @DomName("Location.hash") |
12849 String hash; | 13675 String hash; |
12850 | 13676 |
12851 /// @domName Location.host; @docsEditable true | 13677 /// @docsEditable true |
| 13678 @DomName("Location.host") |
12852 String host; | 13679 String host; |
12853 | 13680 |
12854 /// @domName Location.hostname; @docsEditable true | 13681 /// @docsEditable true |
| 13682 @DomName("Location.hostname") |
12855 String hostname; | 13683 String hostname; |
12856 | 13684 |
12857 /// @domName Location.href; @docsEditable true | 13685 /// @docsEditable true |
| 13686 @DomName("Location.href") |
12858 String href; | 13687 String href; |
12859 | 13688 |
12860 /// @domName Location.origin; @docsEditable true | 13689 /// @docsEditable true |
| 13690 @DomName("Location.origin") |
12861 final String origin; | 13691 final String origin; |
12862 | 13692 |
12863 /// @domName Location.pathname; @docsEditable true | 13693 /// @docsEditable true |
| 13694 @DomName("Location.pathname") |
12864 String pathname; | 13695 String pathname; |
12865 | 13696 |
12866 /// @domName Location.port; @docsEditable true | 13697 /// @docsEditable true |
| 13698 @DomName("Location.port") |
12867 String port; | 13699 String port; |
12868 | 13700 |
12869 /// @domName Location.protocol; @docsEditable true | 13701 /// @docsEditable true |
| 13702 @DomName("Location.protocol") |
12870 String protocol; | 13703 String protocol; |
12871 | 13704 |
12872 /// @domName Location.search; @docsEditable true | 13705 /// @docsEditable true |
| 13706 @DomName("Location.search") |
12873 String search; | 13707 String search; |
12874 | 13708 |
12875 /// @domName Location.assign; @docsEditable true | 13709 /// @docsEditable true |
| 13710 @DomName("Location.assign") |
12876 void assign(String url) native; | 13711 void assign(String url) native; |
12877 | 13712 |
12878 /// @domName Location.reload; @docsEditable true | 13713 /// @docsEditable true |
| 13714 @DomName("Location.reload") |
12879 void reload() native; | 13715 void reload() native; |
12880 | 13716 |
12881 /// @domName Location.replace; @docsEditable true | 13717 /// @docsEditable true |
| 13718 @DomName("Location.replace") |
12882 void replace(String url) native; | 13719 void replace(String url) native; |
12883 | 13720 |
12884 /// @domName Location.toString; @docsEditable true | 13721 /// @docsEditable true |
| 13722 @DomName("Location.toString") |
12885 String toString() native; | 13723 String toString() native; |
12886 } | 13724 } |
12887 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13725 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12888 // for details. All rights reserved. Use of this source code is governed by a | 13726 // for details. All rights reserved. Use of this source code is governed by a |
12889 // BSD-style license that can be found in the LICENSE file. | 13727 // BSD-style license that can be found in the LICENSE file. |
12890 | 13728 |
12891 | 13729 |
12892 /// @domName HTMLMapElement; @docsEditable true | 13730 /// @docsEditable true |
| 13731 @DomName("HTMLMapElement") |
12893 class MapElement extends Element native "*HTMLMapElement" { | 13732 class MapElement extends Element native "*HTMLMapElement" { |
12894 | 13733 |
12895 ///@docsEditable true | 13734 /// @docsEditable true |
12896 factory MapElement() => document.$dom_createElement("map"); | 13735 factory MapElement() => document.$dom_createElement("map"); |
12897 | 13736 |
12898 /// @domName HTMLMapElement.areas; @docsEditable true | 13737 /// @docsEditable true |
| 13738 @DomName("HTMLMapElement.areas") |
12899 final HtmlCollection areas; | 13739 final HtmlCollection areas; |
12900 | 13740 |
12901 /// @domName HTMLMapElement.name; @docsEditable true | 13741 /// @docsEditable true |
| 13742 @DomName("HTMLMapElement.name") |
12902 String name; | 13743 String name; |
12903 } | 13744 } |
12904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12905 // for details. All rights reserved. Use of this source code is governed by a | 13746 // for details. All rights reserved. Use of this source code is governed by a |
12906 // BSD-style license that can be found in the LICENSE file. | 13747 // BSD-style license that can be found in the LICENSE file. |
12907 | 13748 |
12908 | 13749 |
12909 /// @domName HTMLMarqueeElement; @docsEditable true | 13750 /// @docsEditable true |
| 13751 @DomName("HTMLMarqueeElement") |
12910 class MarqueeElement extends Element native "*HTMLMarqueeElement" { | 13752 class MarqueeElement extends Element native "*HTMLMarqueeElement" { |
12911 | 13753 |
12912 /// Checks if this type is supported on the current platform. | 13754 /// Checks if this type is supported on the current platform. |
12913 static bool get supported => Element.isTagSupported('marquee')&& (new Element.
tag('marquee') is MarqueeElement); | 13755 static bool get supported => Element.isTagSupported('marquee')&& (new Element.
tag('marquee') is MarqueeElement); |
12914 | 13756 |
12915 /// @domName HTMLMarqueeElement.behavior; @docsEditable true | 13757 /// @docsEditable true |
| 13758 @DomName("HTMLMarqueeElement.behavior") |
12916 String behavior; | 13759 String behavior; |
12917 | 13760 |
12918 /// @domName HTMLMarqueeElement.bgColor; @docsEditable true | 13761 /// @docsEditable true |
| 13762 @DomName("HTMLMarqueeElement.bgColor") |
12919 String bgColor; | 13763 String bgColor; |
12920 | 13764 |
12921 /// @domName HTMLMarqueeElement.direction; @docsEditable true | 13765 /// @docsEditable true |
| 13766 @DomName("HTMLMarqueeElement.direction") |
12922 String direction; | 13767 String direction; |
12923 | 13768 |
12924 /// @domName HTMLMarqueeElement.height; @docsEditable true | 13769 /// @docsEditable true |
| 13770 @DomName("HTMLMarqueeElement.height") |
12925 String height; | 13771 String height; |
12926 | 13772 |
12927 /// @domName HTMLMarqueeElement.hspace; @docsEditable true | 13773 /// @docsEditable true |
| 13774 @DomName("HTMLMarqueeElement.hspace") |
12928 int hspace; | 13775 int hspace; |
12929 | 13776 |
12930 /// @domName HTMLMarqueeElement.loop; @docsEditable true | 13777 /// @docsEditable true |
| 13778 @DomName("HTMLMarqueeElement.loop") |
12931 int loop; | 13779 int loop; |
12932 | 13780 |
12933 /// @domName HTMLMarqueeElement.scrollAmount; @docsEditable true | 13781 /// @docsEditable true |
| 13782 @DomName("HTMLMarqueeElement.scrollAmount") |
12934 int scrollAmount; | 13783 int scrollAmount; |
12935 | 13784 |
12936 /// @domName HTMLMarqueeElement.scrollDelay; @docsEditable true | 13785 /// @docsEditable true |
| 13786 @DomName("HTMLMarqueeElement.scrollDelay") |
12937 int scrollDelay; | 13787 int scrollDelay; |
12938 | 13788 |
12939 /// @domName HTMLMarqueeElement.trueSpeed; @docsEditable true | 13789 /// @docsEditable true |
| 13790 @DomName("HTMLMarqueeElement.trueSpeed") |
12940 bool trueSpeed; | 13791 bool trueSpeed; |
12941 | 13792 |
12942 /// @domName HTMLMarqueeElement.vspace; @docsEditable true | 13793 /// @docsEditable true |
| 13794 @DomName("HTMLMarqueeElement.vspace") |
12943 int vspace; | 13795 int vspace; |
12944 | 13796 |
12945 /// @domName HTMLMarqueeElement.width; @docsEditable true | 13797 /// @docsEditable true |
| 13798 @DomName("HTMLMarqueeElement.width") |
12946 String width; | 13799 String width; |
12947 | 13800 |
12948 /// @domName HTMLMarqueeElement.start; @docsEditable true | 13801 /// @docsEditable true |
| 13802 @DomName("HTMLMarqueeElement.start") |
12949 void start() native; | 13803 void start() native; |
12950 | 13804 |
12951 /// @domName HTMLMarqueeElement.stop; @docsEditable true | 13805 /// @docsEditable true |
| 13806 @DomName("HTMLMarqueeElement.stop") |
12952 void stop() native; | 13807 void stop() native; |
12953 } | 13808 } |
12954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12955 // for details. All rights reserved. Use of this source code is governed by a | 13810 // for details. All rights reserved. Use of this source code is governed by a |
12956 // BSD-style license that can be found in the LICENSE file. | 13811 // BSD-style license that can be found in the LICENSE file. |
12957 | 13812 |
12958 | 13813 |
12959 /// @domName MediaController; @docsEditable true | 13814 /// @docsEditable true |
| 13815 @DomName("MediaController") |
12960 class MediaController extends EventTarget native "*MediaController" { | 13816 class MediaController extends EventTarget native "*MediaController" { |
12961 | 13817 |
12962 ///@docsEditable true | 13818 /// @docsEditable true |
12963 factory MediaController() => MediaController._create(); | 13819 factory MediaController() => MediaController._create(); |
12964 static MediaController _create() => JS('MediaController', 'new MediaController
()'); | 13820 static MediaController _create() => JS('MediaController', 'new MediaController
()'); |
12965 | 13821 |
12966 /// @domName MediaController.buffered; @docsEditable true | 13822 /// @docsEditable true |
| 13823 @DomName("MediaController.buffered") |
12967 final TimeRanges buffered; | 13824 final TimeRanges buffered; |
12968 | 13825 |
12969 /// @domName MediaController.currentTime; @docsEditable true | 13826 /// @docsEditable true |
| 13827 @DomName("MediaController.currentTime") |
12970 num currentTime; | 13828 num currentTime; |
12971 | 13829 |
12972 /// @domName MediaController.defaultPlaybackRate; @docsEditable true | 13830 /// @docsEditable true |
| 13831 @DomName("MediaController.defaultPlaybackRate") |
12973 num defaultPlaybackRate; | 13832 num defaultPlaybackRate; |
12974 | 13833 |
12975 /// @domName MediaController.duration; @docsEditable true | 13834 /// @docsEditable true |
| 13835 @DomName("MediaController.duration") |
12976 final num duration; | 13836 final num duration; |
12977 | 13837 |
12978 /// @domName MediaController.muted; @docsEditable true | 13838 /// @docsEditable true |
| 13839 @DomName("MediaController.muted") |
12979 bool muted; | 13840 bool muted; |
12980 | 13841 |
12981 /// @domName MediaController.paused; @docsEditable true | 13842 /// @docsEditable true |
| 13843 @DomName("MediaController.paused") |
12982 final bool paused; | 13844 final bool paused; |
12983 | 13845 |
12984 /// @domName MediaController.playbackRate; @docsEditable true | 13846 /// @docsEditable true |
| 13847 @DomName("MediaController.playbackRate") |
12985 num playbackRate; | 13848 num playbackRate; |
12986 | 13849 |
12987 /// @domName MediaController.playbackState; @docsEditable true | 13850 /// @docsEditable true |
| 13851 @DomName("MediaController.playbackState") |
12988 final String playbackState; | 13852 final String playbackState; |
12989 | 13853 |
12990 /// @domName MediaController.played; @docsEditable true | 13854 /// @docsEditable true |
| 13855 @DomName("MediaController.played") |
12991 final TimeRanges played; | 13856 final TimeRanges played; |
12992 | 13857 |
12993 /// @domName MediaController.seekable; @docsEditable true | 13858 /// @docsEditable true |
| 13859 @DomName("MediaController.seekable") |
12994 final TimeRanges seekable; | 13860 final TimeRanges seekable; |
12995 | 13861 |
12996 /// @domName MediaController.volume; @docsEditable true | 13862 /// @docsEditable true |
| 13863 @DomName("MediaController.volume") |
12997 num volume; | 13864 num volume; |
12998 | 13865 |
12999 /// @domName MediaController.addEventListener; @docsEditable true | 13866 /// @docsEditable true |
13000 @JSName('addEventListener') | 13867 @JSName('addEventListener') |
| 13868 @DomName("MediaController.addEventListener") |
13001 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 13869 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
13002 | 13870 |
13003 /// @domName MediaController.dispatchEvent; @docsEditable true | 13871 /// @docsEditable true |
13004 @JSName('dispatchEvent') | 13872 @JSName('dispatchEvent') |
| 13873 @DomName("MediaController.dispatchEvent") |
13005 bool $dom_dispatchEvent(Event evt) native; | 13874 bool $dom_dispatchEvent(Event evt) native; |
13006 | 13875 |
13007 /// @domName MediaController.pause; @docsEditable true | 13876 /// @docsEditable true |
| 13877 @DomName("MediaController.pause") |
13008 void pause() native; | 13878 void pause() native; |
13009 | 13879 |
13010 /// @domName MediaController.play; @docsEditable true | 13880 /// @docsEditable true |
| 13881 @DomName("MediaController.play") |
13011 void play() native; | 13882 void play() native; |
13012 | 13883 |
13013 /// @domName MediaController.removeEventListener; @docsEditable true | 13884 /// @docsEditable true |
13014 @JSName('removeEventListener') | 13885 @JSName('removeEventListener') |
| 13886 @DomName("MediaController.removeEventListener") |
13015 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 13887 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
13016 | 13888 |
13017 /// @domName MediaController.unpause; @docsEditable true | 13889 /// @docsEditable true |
| 13890 @DomName("MediaController.unpause") |
13018 void unpause() native; | 13891 void unpause() native; |
13019 } | 13892 } |
13020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13021 // for details. All rights reserved. Use of this source code is governed by a | 13894 // for details. All rights reserved. Use of this source code is governed by a |
13022 // BSD-style license that can be found in the LICENSE file. | 13895 // BSD-style license that can be found in the LICENSE file. |
13023 | 13896 |
13024 | 13897 |
13025 /// @domName HTMLMediaElement; @docsEditable true | 13898 /// @docsEditable true |
| 13899 @DomName("HTMLMediaElement") |
13026 class MediaElement extends Element native "*HTMLMediaElement" { | 13900 class MediaElement extends Element native "*HTMLMediaElement" { |
13027 | 13901 |
13028 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 13902 /// @docsEditable true |
| 13903 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
13029 MediaElementEvents get on => | 13904 MediaElementEvents get on => |
13030 new MediaElementEvents(this); | 13905 new MediaElementEvents(this); |
13031 | 13906 |
13032 static const int HAVE_CURRENT_DATA = 2; | 13907 static const int HAVE_CURRENT_DATA = 2; |
13033 | 13908 |
13034 static const int HAVE_ENOUGH_DATA = 4; | 13909 static const int HAVE_ENOUGH_DATA = 4; |
13035 | 13910 |
13036 static const int HAVE_FUTURE_DATA = 3; | 13911 static const int HAVE_FUTURE_DATA = 3; |
13037 | 13912 |
13038 static const int HAVE_METADATA = 1; | 13913 static const int HAVE_METADATA = 1; |
13039 | 13914 |
13040 static const int HAVE_NOTHING = 0; | 13915 static const int HAVE_NOTHING = 0; |
13041 | 13916 |
13042 static const int NETWORK_EMPTY = 0; | 13917 static const int NETWORK_EMPTY = 0; |
13043 | 13918 |
13044 static const int NETWORK_IDLE = 1; | 13919 static const int NETWORK_IDLE = 1; |
13045 | 13920 |
13046 static const int NETWORK_LOADING = 2; | 13921 static const int NETWORK_LOADING = 2; |
13047 | 13922 |
13048 static const int NETWORK_NO_SOURCE = 3; | 13923 static const int NETWORK_NO_SOURCE = 3; |
13049 | 13924 |
13050 /// @domName HTMLMediaElement.autoplay; @docsEditable true | 13925 /// @docsEditable true |
| 13926 @DomName("HTMLMediaElement.autoplay") |
13051 bool autoplay; | 13927 bool autoplay; |
13052 | 13928 |
13053 /// @domName HTMLMediaElement.buffered; @docsEditable true | 13929 /// @docsEditable true |
| 13930 @DomName("HTMLMediaElement.buffered") |
13054 final TimeRanges buffered; | 13931 final TimeRanges buffered; |
13055 | 13932 |
13056 /// @domName HTMLMediaElement.controller; @docsEditable true | 13933 /// @docsEditable true |
| 13934 @DomName("HTMLMediaElement.controller") |
13057 MediaController controller; | 13935 MediaController controller; |
13058 | 13936 |
13059 /// @domName HTMLMediaElement.controls; @docsEditable true | 13937 /// @docsEditable true |
| 13938 @DomName("HTMLMediaElement.controls") |
13060 bool controls; | 13939 bool controls; |
13061 | 13940 |
13062 /// @domName HTMLMediaElement.currentSrc; @docsEditable true | 13941 /// @docsEditable true |
| 13942 @DomName("HTMLMediaElement.currentSrc") |
13063 final String currentSrc; | 13943 final String currentSrc; |
13064 | 13944 |
13065 /// @domName HTMLMediaElement.currentTime; @docsEditable true | 13945 /// @docsEditable true |
| 13946 @DomName("HTMLMediaElement.currentTime") |
13066 num currentTime; | 13947 num currentTime; |
13067 | 13948 |
13068 /// @domName HTMLMediaElement.defaultMuted; @docsEditable true | 13949 /// @docsEditable true |
| 13950 @DomName("HTMLMediaElement.defaultMuted") |
13069 bool defaultMuted; | 13951 bool defaultMuted; |
13070 | 13952 |
13071 /// @domName HTMLMediaElement.defaultPlaybackRate; @docsEditable true | 13953 /// @docsEditable true |
| 13954 @DomName("HTMLMediaElement.defaultPlaybackRate") |
13072 num defaultPlaybackRate; | 13955 num defaultPlaybackRate; |
13073 | 13956 |
13074 /// @domName HTMLMediaElement.duration; @docsEditable true | 13957 /// @docsEditable true |
| 13958 @DomName("HTMLMediaElement.duration") |
13075 final num duration; | 13959 final num duration; |
13076 | 13960 |
13077 /// @domName HTMLMediaElement.ended; @docsEditable true | 13961 /// @docsEditable true |
| 13962 @DomName("HTMLMediaElement.ended") |
13078 final bool ended; | 13963 final bool ended; |
13079 | 13964 |
13080 /// @domName HTMLMediaElement.error; @docsEditable true | 13965 /// @docsEditable true |
| 13966 @DomName("HTMLMediaElement.error") |
13081 final MediaError error; | 13967 final MediaError error; |
13082 | 13968 |
13083 /// @domName HTMLMediaElement.initialTime; @docsEditable true | 13969 /// @docsEditable true |
| 13970 @DomName("HTMLMediaElement.initialTime") |
13084 final num initialTime; | 13971 final num initialTime; |
13085 | 13972 |
13086 /// @domName HTMLMediaElement.loop; @docsEditable true | 13973 /// @docsEditable true |
| 13974 @DomName("HTMLMediaElement.loop") |
13087 bool loop; | 13975 bool loop; |
13088 | 13976 |
13089 /// @domName HTMLMediaElement.mediaGroup; @docsEditable true | 13977 /// @docsEditable true |
| 13978 @DomName("HTMLMediaElement.mediaGroup") |
13090 String mediaGroup; | 13979 String mediaGroup; |
13091 | 13980 |
13092 /// @domName HTMLMediaElement.muted; @docsEditable true | 13981 /// @docsEditable true |
| 13982 @DomName("HTMLMediaElement.muted") |
13093 bool muted; | 13983 bool muted; |
13094 | 13984 |
13095 /// @domName HTMLMediaElement.networkState; @docsEditable true | 13985 /// @docsEditable true |
| 13986 @DomName("HTMLMediaElement.networkState") |
13096 final int networkState; | 13987 final int networkState; |
13097 | 13988 |
13098 /// @domName HTMLMediaElement.paused; @docsEditable true | 13989 /// @docsEditable true |
| 13990 @DomName("HTMLMediaElement.paused") |
13099 final bool paused; | 13991 final bool paused; |
13100 | 13992 |
13101 /// @domName HTMLMediaElement.playbackRate; @docsEditable true | 13993 /// @docsEditable true |
| 13994 @DomName("HTMLMediaElement.playbackRate") |
13102 num playbackRate; | 13995 num playbackRate; |
13103 | 13996 |
13104 /// @domName HTMLMediaElement.played; @docsEditable true | 13997 /// @docsEditable true |
| 13998 @DomName("HTMLMediaElement.played") |
13105 final TimeRanges played; | 13999 final TimeRanges played; |
13106 | 14000 |
13107 /// @domName HTMLMediaElement.preload; @docsEditable true | 14001 /// @docsEditable true |
| 14002 @DomName("HTMLMediaElement.preload") |
13108 String preload; | 14003 String preload; |
13109 | 14004 |
13110 /// @domName HTMLMediaElement.readyState; @docsEditable true | 14005 /// @docsEditable true |
| 14006 @DomName("HTMLMediaElement.readyState") |
13111 final int readyState; | 14007 final int readyState; |
13112 | 14008 |
13113 /// @domName HTMLMediaElement.seekable; @docsEditable true | 14009 /// @docsEditable true |
| 14010 @DomName("HTMLMediaElement.seekable") |
13114 final TimeRanges seekable; | 14011 final TimeRanges seekable; |
13115 | 14012 |
13116 /// @domName HTMLMediaElement.seeking; @docsEditable true | 14013 /// @docsEditable true |
| 14014 @DomName("HTMLMediaElement.seeking") |
13117 final bool seeking; | 14015 final bool seeking; |
13118 | 14016 |
13119 /// @domName HTMLMediaElement.src; @docsEditable true | 14017 /// @docsEditable true |
| 14018 @DomName("HTMLMediaElement.src") |
13120 String src; | 14019 String src; |
13121 | 14020 |
13122 /// @domName HTMLMediaElement.startTime; @docsEditable true | 14021 /// @docsEditable true |
| 14022 @DomName("HTMLMediaElement.startTime") |
13123 final num startTime; | 14023 final num startTime; |
13124 | 14024 |
13125 /// @domName HTMLMediaElement.textTracks; @docsEditable true | 14025 /// @docsEditable true |
| 14026 @DomName("HTMLMediaElement.textTracks") |
13126 final TextTrackList textTracks; | 14027 final TextTrackList textTracks; |
13127 | 14028 |
13128 /// @domName HTMLMediaElement.volume; @docsEditable true | 14029 /// @docsEditable true |
| 14030 @DomName("HTMLMediaElement.volume") |
13129 num volume; | 14031 num volume; |
13130 | 14032 |
13131 /// @domName HTMLMediaElement.webkitAudioDecodedByteCount; @docsEditable true | 14033 /// @docsEditable true |
| 14034 @DomName("HTMLMediaElement.webkitAudioDecodedByteCount") |
13132 final int webkitAudioDecodedByteCount; | 14035 final int webkitAudioDecodedByteCount; |
13133 | 14036 |
13134 /// @domName HTMLMediaElement.webkitClosedCaptionsVisible; @docsEditable true | 14037 /// @docsEditable true |
| 14038 @DomName("HTMLMediaElement.webkitClosedCaptionsVisible") |
13135 bool webkitClosedCaptionsVisible; | 14039 bool webkitClosedCaptionsVisible; |
13136 | 14040 |
13137 /// @domName HTMLMediaElement.webkitHasClosedCaptions; @docsEditable true | 14041 /// @docsEditable true |
| 14042 @DomName("HTMLMediaElement.webkitHasClosedCaptions") |
13138 final bool webkitHasClosedCaptions; | 14043 final bool webkitHasClosedCaptions; |
13139 | 14044 |
13140 /// @domName HTMLMediaElement.webkitPreservesPitch; @docsEditable true | 14045 /// @docsEditable true |
| 14046 @DomName("HTMLMediaElement.webkitPreservesPitch") |
13141 bool webkitPreservesPitch; | 14047 bool webkitPreservesPitch; |
13142 | 14048 |
13143 /// @domName HTMLMediaElement.webkitVideoDecodedByteCount; @docsEditable true | 14049 /// @docsEditable true |
| 14050 @DomName("HTMLMediaElement.webkitVideoDecodedByteCount") |
13144 final int webkitVideoDecodedByteCount; | 14051 final int webkitVideoDecodedByteCount; |
13145 | 14052 |
13146 /// @domName HTMLMediaElement.addTextTrack; @docsEditable true | 14053 /// @docsEditable true |
| 14054 @DomName("HTMLMediaElement.addTextTrack") |
13147 TextTrack addTextTrack(String kind, [String label, String language]) native; | 14055 TextTrack addTextTrack(String kind, [String label, String language]) native; |
13148 | 14056 |
13149 /// @domName HTMLMediaElement.canPlayType; @docsEditable true | 14057 /// @docsEditable true |
| 14058 @DomName("HTMLMediaElement.canPlayType") |
13150 String canPlayType(String type, String keySystem) native; | 14059 String canPlayType(String type, String keySystem) native; |
13151 | 14060 |
13152 /// @domName HTMLMediaElement.load; @docsEditable true | 14061 /// @docsEditable true |
| 14062 @DomName("HTMLMediaElement.load") |
13153 void load() native; | 14063 void load() native; |
13154 | 14064 |
13155 /// @domName HTMLMediaElement.pause; @docsEditable true | 14065 /// @docsEditable true |
| 14066 @DomName("HTMLMediaElement.pause") |
13156 void pause() native; | 14067 void pause() native; |
13157 | 14068 |
13158 /// @domName HTMLMediaElement.play; @docsEditable true | 14069 /// @docsEditable true |
| 14070 @DomName("HTMLMediaElement.play") |
13159 void play() native; | 14071 void play() native; |
13160 | 14072 |
13161 /// @domName HTMLMediaElement.webkitAddKey; @docsEditable true | 14073 /// @docsEditable true |
| 14074 @DomName("HTMLMediaElement.webkitAddKey") |
13162 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri
ng sessionId]) native; | 14075 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri
ng sessionId]) native; |
13163 | 14076 |
13164 /// @domName HTMLMediaElement.webkitCancelKeyRequest; @docsEditable true | 14077 /// @docsEditable true |
| 14078 @DomName("HTMLMediaElement.webkitCancelKeyRequest") |
13165 void webkitCancelKeyRequest(String keySystem, String sessionId) native; | 14079 void webkitCancelKeyRequest(String keySystem, String sessionId) native; |
13166 | 14080 |
13167 /// @domName HTMLMediaElement.webkitGenerateKeyRequest; @docsEditable true | 14081 /// @docsEditable true |
| 14082 @DomName("HTMLMediaElement.webkitGenerateKeyRequest") |
13168 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native; | 14083 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]) native; |
13169 } | 14084 } |
13170 | 14085 |
13171 /// @docsEditable true | 14086 /// @docsEditable true |
13172 class MediaElementEvents extends ElementEvents { | 14087 class MediaElementEvents extends ElementEvents { |
13173 /// @docsEditable true | 14088 /// @docsEditable true |
13174 MediaElementEvents(EventTarget _ptr) : super(_ptr); | 14089 MediaElementEvents(EventTarget _ptr) : super(_ptr); |
13175 | 14090 |
13176 /// @docsEditable true | 14091 /// @docsEditable true |
13177 EventListenerList get canPlay => this['canplay']; | 14092 EventListenerList get canPlay => this['canplay']; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13246 EventListenerList get keyMessage => this['webkitkeymessage']; | 14161 EventListenerList get keyMessage => this['webkitkeymessage']; |
13247 | 14162 |
13248 /// @docsEditable true | 14163 /// @docsEditable true |
13249 EventListenerList get needKey => this['webkitneedkey']; | 14164 EventListenerList get needKey => this['webkitneedkey']; |
13250 } | 14165 } |
13251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14166 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13252 // for details. All rights reserved. Use of this source code is governed by a | 14167 // for details. All rights reserved. Use of this source code is governed by a |
13253 // BSD-style license that can be found in the LICENSE file. | 14168 // BSD-style license that can be found in the LICENSE file. |
13254 | 14169 |
13255 | 14170 |
13256 /// @domName MediaError; @docsEditable true | 14171 /// @docsEditable true |
| 14172 @DomName("MediaError") |
13257 class MediaError native "*MediaError" { | 14173 class MediaError native "*MediaError" { |
13258 | 14174 |
13259 static const int MEDIA_ERR_ABORTED = 1; | 14175 static const int MEDIA_ERR_ABORTED = 1; |
13260 | 14176 |
13261 static const int MEDIA_ERR_DECODE = 3; | 14177 static const int MEDIA_ERR_DECODE = 3; |
13262 | 14178 |
13263 static const int MEDIA_ERR_ENCRYPTED = 5; | 14179 static const int MEDIA_ERR_ENCRYPTED = 5; |
13264 | 14180 |
13265 static const int MEDIA_ERR_NETWORK = 2; | 14181 static const int MEDIA_ERR_NETWORK = 2; |
13266 | 14182 |
13267 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | 14183 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; |
13268 | 14184 |
13269 /// @domName MediaError.code; @docsEditable true | 14185 /// @docsEditable true |
| 14186 @DomName("MediaError.code") |
13270 final int code; | 14187 final int code; |
13271 } | 14188 } |
13272 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13273 // for details. All rights reserved. Use of this source code is governed by a | 14190 // for details. All rights reserved. Use of this source code is governed by a |
13274 // BSD-style license that can be found in the LICENSE file. | 14191 // BSD-style license that can be found in the LICENSE file. |
13275 | 14192 |
13276 | 14193 |
13277 /// @domName MediaKeyError; @docsEditable true | 14194 /// @docsEditable true |
| 14195 @DomName("MediaKeyError") |
13278 class MediaKeyError native "*MediaKeyError" { | 14196 class MediaKeyError native "*MediaKeyError" { |
13279 | 14197 |
13280 static const int MEDIA_KEYERR_CLIENT = 2; | 14198 static const int MEDIA_KEYERR_CLIENT = 2; |
13281 | 14199 |
13282 static const int MEDIA_KEYERR_DOMAIN = 6; | 14200 static const int MEDIA_KEYERR_DOMAIN = 6; |
13283 | 14201 |
13284 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; | 14202 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; |
13285 | 14203 |
13286 static const int MEDIA_KEYERR_OUTPUT = 4; | 14204 static const int MEDIA_KEYERR_OUTPUT = 4; |
13287 | 14205 |
13288 static const int MEDIA_KEYERR_SERVICE = 3; | 14206 static const int MEDIA_KEYERR_SERVICE = 3; |
13289 | 14207 |
13290 static const int MEDIA_KEYERR_UNKNOWN = 1; | 14208 static const int MEDIA_KEYERR_UNKNOWN = 1; |
13291 | 14209 |
13292 /// @domName MediaKeyError.code; @docsEditable true | 14210 /// @docsEditable true |
| 14211 @DomName("MediaKeyError.code") |
13293 final int code; | 14212 final int code; |
13294 } | 14213 } |
13295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13296 // for details. All rights reserved. Use of this source code is governed by a | 14215 // for details. All rights reserved. Use of this source code is governed by a |
13297 // BSD-style license that can be found in the LICENSE file. | 14216 // BSD-style license that can be found in the LICENSE file. |
13298 | 14217 |
13299 | 14218 |
13300 /// @domName MediaKeyEvent; @docsEditable true | 14219 /// @docsEditable true |
| 14220 @DomName("MediaKeyEvent") |
13301 class MediaKeyEvent extends Event native "*MediaKeyEvent" { | 14221 class MediaKeyEvent extends Event native "*MediaKeyEvent" { |
13302 | 14222 |
13303 /// @domName MediaKeyEvent.defaultURL; @docsEditable true | 14223 /// @docsEditable true |
13304 @JSName('defaultURL') | 14224 @JSName('defaultURL') |
| 14225 @DomName("MediaKeyEvent.defaultURL") |
13305 final String defaultUrl; | 14226 final String defaultUrl; |
13306 | 14227 |
13307 /// @domName MediaKeyEvent.errorCode; @docsEditable true | 14228 /// @docsEditable true |
| 14229 @DomName("MediaKeyEvent.errorCode") |
13308 final MediaKeyError errorCode; | 14230 final MediaKeyError errorCode; |
13309 | 14231 |
13310 /// @domName MediaKeyEvent.initData; @docsEditable true | 14232 /// @docsEditable true |
| 14233 @DomName("MediaKeyEvent.initData") |
13311 final Uint8Array initData; | 14234 final Uint8Array initData; |
13312 | 14235 |
13313 /// @domName MediaKeyEvent.keySystem; @docsEditable true | 14236 /// @docsEditable true |
| 14237 @DomName("MediaKeyEvent.keySystem") |
13314 final String keySystem; | 14238 final String keySystem; |
13315 | 14239 |
13316 /// @domName MediaKeyEvent.message; @docsEditable true | 14240 /// @docsEditable true |
| 14241 @DomName("MediaKeyEvent.message") |
13317 final Uint8Array message; | 14242 final Uint8Array message; |
13318 | 14243 |
13319 /// @domName MediaKeyEvent.sessionId; @docsEditable true | 14244 /// @docsEditable true |
| 14245 @DomName("MediaKeyEvent.sessionId") |
13320 final String sessionId; | 14246 final String sessionId; |
13321 | 14247 |
13322 /// @domName MediaKeyEvent.systemCode; @docsEditable true | 14248 /// @docsEditable true |
| 14249 @DomName("MediaKeyEvent.systemCode") |
13323 final int systemCode; | 14250 final int systemCode; |
13324 } | 14251 } |
13325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13326 // for details. All rights reserved. Use of this source code is governed by a | 14253 // for details. All rights reserved. Use of this source code is governed by a |
13327 // BSD-style license that can be found in the LICENSE file. | 14254 // BSD-style license that can be found in the LICENSE file. |
13328 | 14255 |
13329 | 14256 |
13330 /// @domName MediaList; @docsEditable true | 14257 /// @docsEditable true |
| 14258 @DomName("MediaList") |
13331 class MediaList native "*MediaList" { | 14259 class MediaList native "*MediaList" { |
13332 | 14260 |
13333 /// @domName MediaList.length; @docsEditable true | 14261 /// @docsEditable true |
| 14262 @DomName("MediaList.length") |
13334 final int length; | 14263 final int length; |
13335 | 14264 |
13336 /// @domName MediaList.mediaText; @docsEditable true | 14265 /// @docsEditable true |
| 14266 @DomName("MediaList.mediaText") |
13337 String mediaText; | 14267 String mediaText; |
13338 | 14268 |
13339 /// @domName MediaList.appendMedium; @docsEditable true | 14269 /// @docsEditable true |
| 14270 @DomName("MediaList.appendMedium") |
13340 void appendMedium(String newMedium) native; | 14271 void appendMedium(String newMedium) native; |
13341 | 14272 |
13342 /// @domName MediaList.deleteMedium; @docsEditable true | 14273 /// @docsEditable true |
| 14274 @DomName("MediaList.deleteMedium") |
13343 void deleteMedium(String oldMedium) native; | 14275 void deleteMedium(String oldMedium) native; |
13344 | 14276 |
13345 /// @domName MediaList.item; @docsEditable true | 14277 /// @docsEditable true |
| 14278 @DomName("MediaList.item") |
13346 String item(int index) native; | 14279 String item(int index) native; |
13347 } | 14280 } |
13348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13349 // for details. All rights reserved. Use of this source code is governed by a | 14282 // for details. All rights reserved. Use of this source code is governed by a |
13350 // BSD-style license that can be found in the LICENSE file. | 14283 // BSD-style license that can be found in the LICENSE file. |
13351 | 14284 |
13352 | 14285 |
13353 /// @domName MediaQueryList; @docsEditable true | 14286 /// @docsEditable true |
| 14287 @DomName("MediaQueryList") |
13354 class MediaQueryList native "*MediaQueryList" { | 14288 class MediaQueryList native "*MediaQueryList" { |
13355 | 14289 |
13356 /// @domName MediaQueryList.matches; @docsEditable true | 14290 /// @docsEditable true |
| 14291 @DomName("MediaQueryList.matches") |
13357 final bool matches; | 14292 final bool matches; |
13358 | 14293 |
13359 /// @domName MediaQueryList.media; @docsEditable true | 14294 /// @docsEditable true |
| 14295 @DomName("MediaQueryList.media") |
13360 final String media; | 14296 final String media; |
13361 | 14297 |
13362 /// @domName MediaQueryList.addListener; @docsEditable true | 14298 /// @docsEditable true |
| 14299 @DomName("MediaQueryList.addListener") |
13363 void addListener(MediaQueryListListener listener) native; | 14300 void addListener(MediaQueryListListener listener) native; |
13364 | 14301 |
13365 /// @domName MediaQueryList.removeListener; @docsEditable true | 14302 /// @docsEditable true |
| 14303 @DomName("MediaQueryList.removeListener") |
13366 void removeListener(MediaQueryListListener listener) native; | 14304 void removeListener(MediaQueryListListener listener) native; |
13367 } | 14305 } |
13368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14306 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13369 // for details. All rights reserved. Use of this source code is governed by a | 14307 // for details. All rights reserved. Use of this source code is governed by a |
13370 // BSD-style license that can be found in the LICENSE file. | 14308 // BSD-style license that can be found in the LICENSE file. |
13371 | 14309 |
13372 | 14310 |
13373 /// @domName MediaQueryListListener | 14311 @DomName("MediaQueryListListener") |
13374 abstract class MediaQueryListListener { | 14312 abstract class MediaQueryListListener { |
13375 | 14313 |
13376 /// @domName MediaQueryListListener.queryChanged; @docsEditable true | 14314 /// @docsEditable true |
13377 void queryChanged(MediaQueryList list); | 14315 void queryChanged(MediaQueryList list); |
13378 } | 14316 } |
13379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14317 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13380 // for details. All rights reserved. Use of this source code is governed by a | 14318 // for details. All rights reserved. Use of this source code is governed by a |
13381 // BSD-style license that can be found in the LICENSE file. | 14319 // BSD-style license that can be found in the LICENSE file. |
13382 | 14320 |
13383 | 14321 |
13384 /// @domName MediaSource; @docsEditable true | 14322 /// @docsEditable true |
| 14323 @DomName("MediaSource") |
13385 class MediaSource extends EventTarget native "*MediaSource" { | 14324 class MediaSource extends EventTarget native "*MediaSource" { |
13386 | 14325 |
13387 ///@docsEditable true | 14326 /// @docsEditable true |
13388 factory MediaSource() => MediaSource._create(); | 14327 factory MediaSource() => MediaSource._create(); |
13389 static MediaSource _create() => JS('MediaSource', 'new MediaSource()'); | 14328 static MediaSource _create() => JS('MediaSource', 'new MediaSource()'); |
13390 | 14329 |
13391 /// @domName MediaSource.activeSourceBuffers; @docsEditable true | 14330 /// @docsEditable true |
| 14331 @DomName("MediaSource.activeSourceBuffers") |
13392 final SourceBufferList activeSourceBuffers; | 14332 final SourceBufferList activeSourceBuffers; |
13393 | 14333 |
13394 /// @domName MediaSource.duration; @docsEditable true | 14334 /// @docsEditable true |
| 14335 @DomName("MediaSource.duration") |
13395 num duration; | 14336 num duration; |
13396 | 14337 |
13397 /// @domName MediaSource.readyState; @docsEditable true | 14338 /// @docsEditable true |
| 14339 @DomName("MediaSource.readyState") |
13398 final String readyState; | 14340 final String readyState; |
13399 | 14341 |
13400 /// @domName MediaSource.sourceBuffers; @docsEditable true | 14342 /// @docsEditable true |
| 14343 @DomName("MediaSource.sourceBuffers") |
13401 final SourceBufferList sourceBuffers; | 14344 final SourceBufferList sourceBuffers; |
13402 | 14345 |
13403 /// @domName MediaSource.addEventListener; @docsEditable true | 14346 /// @docsEditable true |
13404 @JSName('addEventListener') | 14347 @JSName('addEventListener') |
| 14348 @DomName("MediaSource.addEventListener") |
13405 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 14349 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
13406 | 14350 |
13407 /// @domName MediaSource.addSourceBuffer; @docsEditable true | 14351 /// @docsEditable true |
| 14352 @DomName("MediaSource.addSourceBuffer") |
13408 SourceBuffer addSourceBuffer(String type) native; | 14353 SourceBuffer addSourceBuffer(String type) native; |
13409 | 14354 |
13410 /// @domName MediaSource.dispatchEvent; @docsEditable true | 14355 /// @docsEditable true |
13411 @JSName('dispatchEvent') | 14356 @JSName('dispatchEvent') |
| 14357 @DomName("MediaSource.dispatchEvent") |
13412 bool $dom_dispatchEvent(Event event) native; | 14358 bool $dom_dispatchEvent(Event event) native; |
13413 | 14359 |
13414 /// @domName MediaSource.endOfStream; @docsEditable true | 14360 /// @docsEditable true |
| 14361 @DomName("MediaSource.endOfStream") |
13415 void endOfStream(String error) native; | 14362 void endOfStream(String error) native; |
13416 | 14363 |
13417 /// @domName MediaSource.removeEventListener; @docsEditable true | 14364 /// @docsEditable true |
13418 @JSName('removeEventListener') | 14365 @JSName('removeEventListener') |
| 14366 @DomName("MediaSource.removeEventListener") |
13419 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 14367 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
13420 | 14368 |
13421 /// @domName MediaSource.removeSourceBuffer; @docsEditable true | 14369 /// @docsEditable true |
| 14370 @DomName("MediaSource.removeSourceBuffer") |
13422 void removeSourceBuffer(SourceBuffer buffer) native; | 14371 void removeSourceBuffer(SourceBuffer buffer) native; |
13423 } | 14372 } |
13424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14373 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13425 // for details. All rights reserved. Use of this source code is governed by a | 14374 // for details. All rights reserved. Use of this source code is governed by a |
13426 // BSD-style license that can be found in the LICENSE file. | 14375 // BSD-style license that can be found in the LICENSE file. |
13427 | 14376 |
13428 | 14377 |
13429 /// @domName MediaStream; @docsEditable true | 14378 /// @docsEditable true |
| 14379 @DomName("MediaStream") |
13430 class MediaStream extends EventTarget native "*MediaStream" { | 14380 class MediaStream extends EventTarget native "*MediaStream" { |
13431 | 14381 |
13432 ///@docsEditable true | 14382 /// @docsEditable true |
13433 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid
eoTracks) => MediaStream._create(audioTracks, videoTracks); | 14383 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid
eoTracks) => MediaStream._create(audioTracks, videoTracks); |
13434 static MediaStream _create(MediaStreamTrackList audioTracks, MediaStreamTrackL
ist videoTracks) => JS('MediaStream', 'new MediaStream(#,#)', audioTracks, video
Tracks); | 14384 static MediaStream _create(MediaStreamTrackList audioTracks, MediaStreamTrackL
ist videoTracks) => JS('MediaStream', 'new MediaStream(#,#)', audioTracks, video
Tracks); |
13435 | 14385 |
13436 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 14386 /// @docsEditable true |
| 14387 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
13437 MediaStreamEvents get on => | 14388 MediaStreamEvents get on => |
13438 new MediaStreamEvents(this); | 14389 new MediaStreamEvents(this); |
13439 | 14390 |
13440 static const int ENDED = 2; | 14391 static const int ENDED = 2; |
13441 | 14392 |
13442 static const int LIVE = 1; | 14393 static const int LIVE = 1; |
13443 | 14394 |
13444 /// @domName MediaStream.audioTracks; @docsEditable true | 14395 /// @docsEditable true |
| 14396 @DomName("MediaStream.audioTracks") |
13445 final MediaStreamTrackList audioTracks; | 14397 final MediaStreamTrackList audioTracks; |
13446 | 14398 |
13447 /// @domName MediaStream.label; @docsEditable true | 14399 /// @docsEditable true |
| 14400 @DomName("MediaStream.label") |
13448 final String label; | 14401 final String label; |
13449 | 14402 |
13450 /// @domName MediaStream.readyState; @docsEditable true | 14403 /// @docsEditable true |
| 14404 @DomName("MediaStream.readyState") |
13451 final int readyState; | 14405 final int readyState; |
13452 | 14406 |
13453 /// @domName MediaStream.videoTracks; @docsEditable true | 14407 /// @docsEditable true |
| 14408 @DomName("MediaStream.videoTracks") |
13454 final MediaStreamTrackList videoTracks; | 14409 final MediaStreamTrackList videoTracks; |
13455 | 14410 |
13456 /// @domName MediaStream.addEventListener; @docsEditable true | 14411 /// @docsEditable true |
13457 @JSName('addEventListener') | 14412 @JSName('addEventListener') |
| 14413 @DomName("MediaStream.addEventListener") |
13458 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 14414 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
13459 | 14415 |
13460 /// @domName MediaStream.dispatchEvent; @docsEditable true | 14416 /// @docsEditable true |
13461 @JSName('dispatchEvent') | 14417 @JSName('dispatchEvent') |
| 14418 @DomName("MediaStream.dispatchEvent") |
13462 bool $dom_dispatchEvent(Event event) native; | 14419 bool $dom_dispatchEvent(Event event) native; |
13463 | 14420 |
13464 /// @domName MediaStream.removeEventListener; @docsEditable true | 14421 /// @docsEditable true |
13465 @JSName('removeEventListener') | 14422 @JSName('removeEventListener') |
| 14423 @DomName("MediaStream.removeEventListener") |
13466 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 14424 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
13467 } | 14425 } |
13468 | 14426 |
13469 /// @docsEditable true | 14427 /// @docsEditable true |
13470 class MediaStreamEvents extends Events { | 14428 class MediaStreamEvents extends Events { |
13471 /// @docsEditable true | 14429 /// @docsEditable true |
13472 MediaStreamEvents(EventTarget _ptr) : super(_ptr); | 14430 MediaStreamEvents(EventTarget _ptr) : super(_ptr); |
13473 | 14431 |
13474 /// @docsEditable true | 14432 /// @docsEditable true |
13475 EventListenerList get ended => this['ended']; | 14433 EventListenerList get ended => this['ended']; |
13476 } | 14434 } |
13477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13478 // for details. All rights reserved. Use of this source code is governed by a | 14436 // for details. All rights reserved. Use of this source code is governed by a |
13479 // BSD-style license that can be found in the LICENSE file. | 14437 // BSD-style license that can be found in the LICENSE file. |
13480 | 14438 |
13481 | 14439 |
13482 /// @domName MediaStreamEvent; @docsEditable true | 14440 /// @docsEditable true |
| 14441 @DomName("MediaStreamEvent") |
13483 class MediaStreamEvent extends Event native "*MediaStreamEvent" { | 14442 class MediaStreamEvent extends Event native "*MediaStreamEvent" { |
13484 | 14443 |
13485 /// @domName MediaStreamEvent.stream; @docsEditable true | 14444 /// @docsEditable true |
| 14445 @DomName("MediaStreamEvent.stream") |
13486 final MediaStream stream; | 14446 final MediaStream stream; |
13487 } | 14447 } |
13488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14448 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13489 // for details. All rights reserved. Use of this source code is governed by a | 14449 // for details. All rights reserved. Use of this source code is governed by a |
13490 // BSD-style license that can be found in the LICENSE file. | 14450 // BSD-style license that can be found in the LICENSE file. |
13491 | 14451 |
13492 | 14452 |
13493 /// @domName MediaStreamTrack; @docsEditable true | 14453 /// @docsEditable true |
| 14454 @DomName("MediaStreamTrack") |
13494 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { | 14455 class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { |
13495 | 14456 |
13496 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 14457 /// @docsEditable true |
| 14458 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
13497 MediaStreamTrackEvents get on => | 14459 MediaStreamTrackEvents get on => |
13498 new MediaStreamTrackEvents(this); | 14460 new MediaStreamTrackEvents(this); |
13499 | 14461 |
13500 static const int ENDED = 2; | 14462 static const int ENDED = 2; |
13501 | 14463 |
13502 static const int LIVE = 0; | 14464 static const int LIVE = 0; |
13503 | 14465 |
13504 static const int MUTED = 1; | 14466 static const int MUTED = 1; |
13505 | 14467 |
13506 /// @domName MediaStreamTrack.enabled; @docsEditable true | 14468 /// @docsEditable true |
| 14469 @DomName("MediaStreamTrack.enabled") |
13507 bool enabled; | 14470 bool enabled; |
13508 | 14471 |
13509 /// @domName MediaStreamTrack.kind; @docsEditable true | 14472 /// @docsEditable true |
| 14473 @DomName("MediaStreamTrack.kind") |
13510 final String kind; | 14474 final String kind; |
13511 | 14475 |
13512 /// @domName MediaStreamTrack.label; @docsEditable true | 14476 /// @docsEditable true |
| 14477 @DomName("MediaStreamTrack.label") |
13513 final String label; | 14478 final String label; |
13514 | 14479 |
13515 /// @domName MediaStreamTrack.readyState; @docsEditable true | 14480 /// @docsEditable true |
| 14481 @DomName("MediaStreamTrack.readyState") |
13516 final int readyState; | 14482 final int readyState; |
13517 | 14483 |
13518 /// @domName MediaStreamTrack.addEventListener; @docsEditable true | 14484 /// @docsEditable true |
13519 @JSName('addEventListener') | 14485 @JSName('addEventListener') |
| 14486 @DomName("MediaStreamTrack.addEventListener") |
13520 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 14487 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
13521 | 14488 |
13522 /// @domName MediaStreamTrack.dispatchEvent; @docsEditable true | 14489 /// @docsEditable true |
13523 @JSName('dispatchEvent') | 14490 @JSName('dispatchEvent') |
| 14491 @DomName("MediaStreamTrack.dispatchEvent") |
13524 bool $dom_dispatchEvent(Event event) native; | 14492 bool $dom_dispatchEvent(Event event) native; |
13525 | 14493 |
13526 /// @domName MediaStreamTrack.removeEventListener; @docsEditable true | 14494 /// @docsEditable true |
13527 @JSName('removeEventListener') | 14495 @JSName('removeEventListener') |
| 14496 @DomName("MediaStreamTrack.removeEventListener") |
13528 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 14497 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
13529 } | 14498 } |
13530 | 14499 |
13531 /// @docsEditable true | 14500 /// @docsEditable true |
13532 class MediaStreamTrackEvents extends Events { | 14501 class MediaStreamTrackEvents extends Events { |
13533 /// @docsEditable true | 14502 /// @docsEditable true |
13534 MediaStreamTrackEvents(EventTarget _ptr) : super(_ptr); | 14503 MediaStreamTrackEvents(EventTarget _ptr) : super(_ptr); |
13535 | 14504 |
13536 /// @docsEditable true | 14505 /// @docsEditable true |
13537 EventListenerList get ended => this['ended']; | 14506 EventListenerList get ended => this['ended']; |
13538 | 14507 |
13539 /// @docsEditable true | 14508 /// @docsEditable true |
13540 EventListenerList get mute => this['mute']; | 14509 EventListenerList get mute => this['mute']; |
13541 | 14510 |
13542 /// @docsEditable true | 14511 /// @docsEditable true |
13543 EventListenerList get unmute => this['unmute']; | 14512 EventListenerList get unmute => this['unmute']; |
13544 } | 14513 } |
13545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13546 // for details. All rights reserved. Use of this source code is governed by a | 14515 // for details. All rights reserved. Use of this source code is governed by a |
13547 // BSD-style license that can be found in the LICENSE file. | 14516 // BSD-style license that can be found in the LICENSE file. |
13548 | 14517 |
13549 | 14518 |
13550 /// @domName MediaStreamTrackEvent; @docsEditable true | 14519 /// @docsEditable true |
| 14520 @DomName("MediaStreamTrackEvent") |
13551 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { | 14521 class MediaStreamTrackEvent extends Event native "*MediaStreamTrackEvent" { |
13552 | 14522 |
13553 /// @domName MediaStreamTrackEvent.track; @docsEditable true | 14523 /// @docsEditable true |
| 14524 @DomName("MediaStreamTrackEvent.track") |
13554 final MediaStreamTrack track; | 14525 final MediaStreamTrack track; |
13555 } | 14526 } |
13556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13557 // for details. All rights reserved. Use of this source code is governed by a | 14528 // for details. All rights reserved. Use of this source code is governed by a |
13558 // BSD-style license that can be found in the LICENSE file. | 14529 // BSD-style license that can be found in the LICENSE file. |
13559 | 14530 |
13560 | 14531 |
13561 /// @domName MediaStreamTrackList; @docsEditable true | 14532 /// @docsEditable true |
| 14533 @DomName("MediaStreamTrackList") |
13562 class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" { | 14534 class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" { |
13563 | 14535 |
13564 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 14536 /// @docsEditable true |
| 14537 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
13565 MediaStreamTrackListEvents get on => | 14538 MediaStreamTrackListEvents get on => |
13566 new MediaStreamTrackListEvents(this); | 14539 new MediaStreamTrackListEvents(this); |
13567 | 14540 |
13568 /// @domName MediaStreamTrackList.length; @docsEditable true | 14541 /// @docsEditable true |
| 14542 @DomName("MediaStreamTrackList.length") |
13569 final int length; | 14543 final int length; |
13570 | 14544 |
13571 /// @domName MediaStreamTrackList.add; @docsEditable true | 14545 /// @docsEditable true |
| 14546 @DomName("MediaStreamTrackList.add") |
13572 void add(MediaStreamTrack track) native; | 14547 void add(MediaStreamTrack track) native; |
13573 | 14548 |
13574 /// @domName MediaStreamTrackList.addEventListener; @docsEditable true | 14549 /// @docsEditable true |
13575 @JSName('addEventListener') | 14550 @JSName('addEventListener') |
| 14551 @DomName("MediaStreamTrackList.addEventListener") |
13576 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 14552 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
13577 | 14553 |
13578 /// @domName MediaStreamTrackList.dispatchEvent; @docsEditable true | 14554 /// @docsEditable true |
13579 @JSName('dispatchEvent') | 14555 @JSName('dispatchEvent') |
| 14556 @DomName("MediaStreamTrackList.dispatchEvent") |
13580 bool $dom_dispatchEvent(Event event) native; | 14557 bool $dom_dispatchEvent(Event event) native; |
13581 | 14558 |
13582 /// @domName MediaStreamTrackList.item; @docsEditable true | 14559 /// @docsEditable true |
| 14560 @DomName("MediaStreamTrackList.item") |
13583 MediaStreamTrack item(int index) native; | 14561 MediaStreamTrack item(int index) native; |
13584 | 14562 |
13585 /// @domName MediaStreamTrackList.remove; @docsEditable true | 14563 /// @docsEditable true |
| 14564 @DomName("MediaStreamTrackList.remove") |
13586 void remove(MediaStreamTrack track) native; | 14565 void remove(MediaStreamTrack track) native; |
13587 | 14566 |
13588 /// @domName MediaStreamTrackList.removeEventListener; @docsEditable true | 14567 /// @docsEditable true |
13589 @JSName('removeEventListener') | 14568 @JSName('removeEventListener') |
| 14569 @DomName("MediaStreamTrackList.removeEventListener") |
13590 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 14570 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
13591 } | 14571 } |
13592 | 14572 |
13593 /// @docsEditable true | 14573 /// @docsEditable true |
13594 class MediaStreamTrackListEvents extends Events { | 14574 class MediaStreamTrackListEvents extends Events { |
13595 /// @docsEditable true | 14575 /// @docsEditable true |
13596 MediaStreamTrackListEvents(EventTarget _ptr) : super(_ptr); | 14576 MediaStreamTrackListEvents(EventTarget _ptr) : super(_ptr); |
13597 | 14577 |
13598 /// @docsEditable true | 14578 /// @docsEditable true |
13599 EventListenerList get addTrack => this['addtrack']; | 14579 EventListenerList get addTrack => this['addtrack']; |
13600 | 14580 |
13601 /// @docsEditable true | 14581 /// @docsEditable true |
13602 EventListenerList get removeTrack => this['removetrack']; | 14582 EventListenerList get removeTrack => this['removetrack']; |
13603 } | 14583 } |
13604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13605 // for details. All rights reserved. Use of this source code is governed by a | 14585 // for details. All rights reserved. Use of this source code is governed by a |
13606 // BSD-style license that can be found in the LICENSE file. | 14586 // BSD-style license that can be found in the LICENSE file. |
13607 | 14587 |
13608 | 14588 |
13609 /// @domName MemoryInfo; @docsEditable true | 14589 /// @docsEditable true |
| 14590 @DomName("MemoryInfo") |
13610 class MemoryInfo native "*MemoryInfo" { | 14591 class MemoryInfo native "*MemoryInfo" { |
13611 | 14592 |
13612 /// @domName MemoryInfo.jsHeapSizeLimit; @docsEditable true | 14593 /// @docsEditable true |
| 14594 @DomName("MemoryInfo.jsHeapSizeLimit") |
13613 final int jsHeapSizeLimit; | 14595 final int jsHeapSizeLimit; |
13614 | 14596 |
13615 /// @domName MemoryInfo.totalJSHeapSize; @docsEditable true | 14597 /// @docsEditable true |
| 14598 @DomName("MemoryInfo.totalJSHeapSize") |
13616 final int totalJSHeapSize; | 14599 final int totalJSHeapSize; |
13617 | 14600 |
13618 /// @domName MemoryInfo.usedJSHeapSize; @docsEditable true | 14601 /// @docsEditable true |
| 14602 @DomName("MemoryInfo.usedJSHeapSize") |
13619 final int usedJSHeapSize; | 14603 final int usedJSHeapSize; |
13620 } | 14604 } |
13621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13622 // for details. All rights reserved. Use of this source code is governed by a | 14606 // for details. All rights reserved. Use of this source code is governed by a |
13623 // BSD-style license that can be found in the LICENSE file. | 14607 // BSD-style license that can be found in the LICENSE file. |
13624 | 14608 |
13625 | 14609 |
13626 /** | 14610 /// @docsEditable true |
13627 * An HTML <menu> element. | 14611 @DomName("HTMLMenuElement") |
13628 * | |
13629 * A <menu> element represents an unordered list of menu commands. | |
13630 * | |
13631 * See also: | |
13632 * | |
13633 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu)
from MDN. | |
13634 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e
lement) from the W3C. | |
13635 */ | |
13636 /// @domName HTMLMenuElement; @docsEditable true | |
13637 class MenuElement extends Element native "*HTMLMenuElement" { | 14612 class MenuElement extends Element native "*HTMLMenuElement" { |
13638 | 14613 |
13639 ///@docsEditable true | 14614 /// @docsEditable true |
13640 factory MenuElement() => document.$dom_createElement("menu"); | 14615 factory MenuElement() => document.$dom_createElement("menu"); |
13641 } | 14616 } |
13642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13643 // for details. All rights reserved. Use of this source code is governed by a | 14618 // for details. All rights reserved. Use of this source code is governed by a |
13644 // BSD-style license that can be found in the LICENSE file. | 14619 // BSD-style license that can be found in the LICENSE file. |
13645 | 14620 |
13646 | 14621 |
13647 /// @domName MessageChannel; @docsEditable true | 14622 /// @docsEditable true |
| 14623 @DomName("MessageChannel") |
13648 class MessageChannel native "*MessageChannel" { | 14624 class MessageChannel native "*MessageChannel" { |
13649 | 14625 |
13650 ///@docsEditable true | 14626 /// @docsEditable true |
13651 factory MessageChannel() => MessageChannel._create(); | 14627 factory MessageChannel() => MessageChannel._create(); |
13652 static MessageChannel _create() => JS('MessageChannel', 'new MessageChannel()'
); | 14628 static MessageChannel _create() => JS('MessageChannel', 'new MessageChannel()'
); |
13653 | 14629 |
13654 /// @domName MessageChannel.port1; @docsEditable true | 14630 /// @docsEditable true |
| 14631 @DomName("MessageChannel.port1") |
13655 final MessagePort port1; | 14632 final MessagePort port1; |
13656 | 14633 |
13657 /// @domName MessageChannel.port2; @docsEditable true | 14634 /// @docsEditable true |
| 14635 @DomName("MessageChannel.port2") |
13658 final MessagePort port2; | 14636 final MessagePort port2; |
13659 } | 14637 } |
13660 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13661 // for details. All rights reserved. Use of this source code is governed by a | 14639 // for details. All rights reserved. Use of this source code is governed by a |
13662 // BSD-style license that can be found in the LICENSE file. | 14640 // BSD-style license that can be found in the LICENSE file. |
13663 | 14641 |
13664 | 14642 |
13665 /// @domName MessageEvent; @docsEditable true | 14643 /// @docsEditable true |
| 14644 @DomName("MessageEvent") |
13666 class MessageEvent extends Event native "*MessageEvent" { | 14645 class MessageEvent extends Event native "*MessageEvent" { |
13667 | 14646 |
13668 /// @domName MessageEvent.data; @docsEditable true | 14647 /// @docsEditable true |
13669 dynamic get data => convertNativeToDart_SerializedScriptValue(this._data); | 14648 dynamic get data => convertNativeToDart_SerializedScriptValue(this._data); |
13670 @JSName('data') | 14649 @JSName('data') |
13671 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript
Value | 14650 @DomName("MessageEvent.data") @annotation_Creates_SerializedScriptValue @annot
ation_Returns_SerializedScriptValue |
13672 final dynamic _data; | 14651 final dynamic _data; |
13673 | 14652 |
13674 /// @domName MessageEvent.lastEventId; @docsEditable true | 14653 /// @docsEditable true |
| 14654 @DomName("MessageEvent.lastEventId") |
13675 final String lastEventId; | 14655 final String lastEventId; |
13676 | 14656 |
13677 /// @domName MessageEvent.origin; @docsEditable true | 14657 /// @docsEditable true |
| 14658 @DomName("MessageEvent.origin") |
13678 final String origin; | 14659 final String origin; |
13679 | 14660 |
13680 /// @domName MessageEvent.ports; @docsEditable true | 14661 /// @docsEditable true |
13681 @Creates('=List') | 14662 @DomName("MessageEvent.ports") @Creates('=List') |
13682 final List ports; | 14663 final List ports; |
13683 | 14664 |
13684 /// @domName MessageEvent.source; @docsEditable true | 14665 /// @docsEditable true |
13685 WindowBase get source => _convertNativeToDart_Window(this._source); | 14666 WindowBase get source => _convertNativeToDart_Window(this._source); |
13686 @JSName('source') | 14667 @JSName('source') |
13687 @Creates('Window|=Object') @Returns('Window|=Object') | 14668 @DomName("MessageEvent.source") @Creates('Window|=Object') @Returns('Window|=O
bject') |
13688 final dynamic _source; | 14669 final dynamic _source; |
13689 | 14670 |
13690 /// @domName MessageEvent.initMessageEvent; @docsEditable true | 14671 /// @docsEditable true |
| 14672 @DomName("MessageEvent.initMessageEvent") |
13691 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, Window sourceArg, List m
essagePorts) native; | 14673 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, Window sourceArg, List m
essagePorts) native; |
13692 | 14674 |
13693 /// @domName MessageEvent.webkitInitMessageEvent; @docsEditable true | 14675 /// @docsEditable true |
| 14676 @DomName("MessageEvent.webkitInitMessageEvent") |
13694 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg,
List transferables) native; | 14677 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg,
List transferables) native; |
13695 } | 14678 } |
13696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13697 // for details. All rights reserved. Use of this source code is governed by a | 14680 // for details. All rights reserved. Use of this source code is governed by a |
13698 // BSD-style license that can be found in the LICENSE file. | 14681 // BSD-style license that can be found in the LICENSE file. |
13699 | 14682 |
13700 | 14683 |
13701 /// @domName MessagePort; @docsEditable true | 14684 /// @docsEditable true |
| 14685 @DomName("MessagePort") |
13702 class MessagePort extends EventTarget native "*MessagePort" { | 14686 class MessagePort extends EventTarget native "*MessagePort" { |
13703 | 14687 |
13704 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 14688 /// @docsEditable true |
| 14689 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
13705 MessagePortEvents get on => | 14690 MessagePortEvents get on => |
13706 new MessagePortEvents(this); | 14691 new MessagePortEvents(this); |
13707 | 14692 |
13708 /// @domName MessagePort.addEventListener; @docsEditable true | 14693 /// @docsEditable true |
13709 @JSName('addEventListener') | 14694 @JSName('addEventListener') |
| 14695 @DomName("MessagePort.addEventListener") |
13710 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 14696 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
13711 | 14697 |
13712 /// @domName MessagePort.close; @docsEditable true | 14698 /// @docsEditable true |
| 14699 @DomName("MessagePort.close") |
13713 void close() native; | 14700 void close() native; |
13714 | 14701 |
13715 /// @domName MessagePort.dispatchEvent; @docsEditable true | 14702 /// @docsEditable true |
13716 @JSName('dispatchEvent') | 14703 @JSName('dispatchEvent') |
| 14704 @DomName("MessagePort.dispatchEvent") |
13717 bool $dom_dispatchEvent(Event evt) native; | 14705 bool $dom_dispatchEvent(Event evt) native; |
13718 | 14706 |
13719 /// @domName MessagePort.postMessage; @docsEditable true | 14707 /// @docsEditable true |
13720 void postMessage(/*any*/ message, [List messagePorts]) { | 14708 void postMessage(/*any*/ message, [List messagePorts]) { |
13721 if (?messagePorts) { | 14709 if (?messagePorts) { |
13722 var message_1 = convertDartToNative_SerializedScriptValue(message); | 14710 var message_1 = convertDartToNative_SerializedScriptValue(message); |
13723 _postMessage_1(message_1, messagePorts); | 14711 _postMessage_1(message_1, messagePorts); |
13724 return; | 14712 return; |
13725 } | 14713 } |
13726 var message_2 = convertDartToNative_SerializedScriptValue(message); | 14714 var message_2 = convertDartToNative_SerializedScriptValue(message); |
13727 _postMessage_2(message_2); | 14715 _postMessage_2(message_2); |
13728 return; | 14716 return; |
13729 } | 14717 } |
13730 @JSName('postMessage') | 14718 @JSName('postMessage') |
| 14719 @DomName("MessagePort.postMessage") |
13731 void _postMessage_1(message, List messagePorts) native; | 14720 void _postMessage_1(message, List messagePorts) native; |
13732 @JSName('postMessage') | 14721 @JSName('postMessage') |
| 14722 @DomName("MessagePort.postMessage") |
13733 void _postMessage_2(message) native; | 14723 void _postMessage_2(message) native; |
13734 | 14724 |
13735 /// @domName MessagePort.removeEventListener; @docsEditable true | 14725 /// @docsEditable true |
13736 @JSName('removeEventListener') | 14726 @JSName('removeEventListener') |
| 14727 @DomName("MessagePort.removeEventListener") |
13737 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 14728 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
13738 | 14729 |
13739 /// @domName MessagePort.start; @docsEditable true | 14730 /// @docsEditable true |
| 14731 @DomName("MessagePort.start") |
13740 void start() native; | 14732 void start() native; |
13741 } | 14733 } |
13742 | 14734 |
13743 /// @docsEditable true | 14735 /// @docsEditable true |
13744 class MessagePortEvents extends Events { | 14736 class MessagePortEvents extends Events { |
13745 /// @docsEditable true | 14737 /// @docsEditable true |
13746 MessagePortEvents(EventTarget _ptr) : super(_ptr); | 14738 MessagePortEvents(EventTarget _ptr) : super(_ptr); |
13747 | 14739 |
13748 /// @docsEditable true | 14740 /// @docsEditable true |
13749 EventListenerList get message => this['message']; | 14741 EventListenerList get message => this['message']; |
13750 } | 14742 } |
13751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13752 // for details. All rights reserved. Use of this source code is governed by a | 14744 // for details. All rights reserved. Use of this source code is governed by a |
13753 // BSD-style license that can be found in the LICENSE file. | 14745 // BSD-style license that can be found in the LICENSE file. |
13754 | 14746 |
13755 | 14747 |
13756 /// @domName HTMLMetaElement; @docsEditable true | 14748 /// @docsEditable true |
| 14749 @DomName("HTMLMetaElement") |
13757 class MetaElement extends Element native "*HTMLMetaElement" { | 14750 class MetaElement extends Element native "*HTMLMetaElement" { |
13758 | 14751 |
13759 /// @domName HTMLMetaElement.content; @docsEditable true | 14752 /// @docsEditable true |
| 14753 @DomName("HTMLMetaElement.content") |
13760 String content; | 14754 String content; |
13761 | 14755 |
13762 /// @domName HTMLMetaElement.httpEquiv; @docsEditable true | 14756 /// @docsEditable true |
| 14757 @DomName("HTMLMetaElement.httpEquiv") |
13763 String httpEquiv; | 14758 String httpEquiv; |
13764 | 14759 |
13765 /// @domName HTMLMetaElement.name; @docsEditable true | 14760 /// @docsEditable true |
| 14761 @DomName("HTMLMetaElement.name") |
13766 String name; | 14762 String name; |
13767 } | 14763 } |
13768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13769 // for details. All rights reserved. Use of this source code is governed by a | 14765 // for details. All rights reserved. Use of this source code is governed by a |
13770 // BSD-style license that can be found in the LICENSE file. | 14766 // BSD-style license that can be found in the LICENSE file. |
13771 | 14767 |
13772 | 14768 |
13773 /// @domName Metadata; @docsEditable true | 14769 /// @docsEditable true |
| 14770 @DomName("Metadata") |
13774 class Metadata native "*Metadata" { | 14771 class Metadata native "*Metadata" { |
13775 | 14772 |
13776 /// @domName Metadata.modificationTime; @docsEditable true | 14773 /// @docsEditable true |
| 14774 @DomName("Metadata.modificationTime") |
13777 final Date modificationTime; | 14775 final Date modificationTime; |
13778 | 14776 |
13779 /// @domName Metadata.size; @docsEditable true | 14777 /// @docsEditable true |
| 14778 @DomName("Metadata.size") |
13780 final int size; | 14779 final int size; |
13781 } | 14780 } |
13782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13783 // for details. All rights reserved. Use of this source code is governed by a | 14782 // for details. All rights reserved. Use of this source code is governed by a |
13784 // BSD-style license that can be found in the LICENSE file. | 14783 // BSD-style license that can be found in the LICENSE file. |
13785 | 14784 |
13786 // WARNING: Do not edit - generated code. | 14785 // WARNING: Do not edit - generated code. |
13787 | 14786 |
13788 | 14787 |
13789 typedef void MetadataCallback(Metadata metadata); | 14788 typedef void MetadataCallback(Metadata metadata); |
13790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13791 // for details. All rights reserved. Use of this source code is governed by a | 14790 // for details. All rights reserved. Use of this source code is governed by a |
13792 // BSD-style license that can be found in the LICENSE file. | 14791 // BSD-style license that can be found in the LICENSE file. |
13793 | 14792 |
13794 | 14793 |
13795 /// @domName HTMLMeterElement; @docsEditable true | 14794 /// @docsEditable true |
| 14795 @DomName("HTMLMeterElement") |
13796 @SupportedBrowser(SupportedBrowser.CHROME) | 14796 @SupportedBrowser(SupportedBrowser.CHROME) |
13797 @SupportedBrowser(SupportedBrowser.FIREFOX) | 14797 @SupportedBrowser(SupportedBrowser.FIREFOX) |
13798 @SupportedBrowser(SupportedBrowser.SAFARI) | 14798 @SupportedBrowser(SupportedBrowser.SAFARI) |
13799 class MeterElement extends Element native "*HTMLMeterElement" { | 14799 class MeterElement extends Element native "*HTMLMeterElement" { |
13800 | 14800 |
13801 ///@docsEditable true | 14801 /// @docsEditable true |
13802 factory MeterElement() => document.$dom_createElement("meter"); | 14802 factory MeterElement() => document.$dom_createElement("meter"); |
13803 | 14803 |
13804 /// Checks if this type is supported on the current platform. | 14804 /// Checks if this type is supported on the current platform. |
13805 static bool get supported => Element.isTagSupported('meter'); | 14805 static bool get supported => Element.isTagSupported('meter'); |
13806 | 14806 |
13807 /// @domName HTMLMeterElement.high; @docsEditable true | 14807 /// @docsEditable true |
| 14808 @DomName("HTMLMeterElement.high") |
13808 num high; | 14809 num high; |
13809 | 14810 |
13810 /// @domName HTMLMeterElement.labels; @docsEditable true | 14811 /// @docsEditable true |
| 14812 @DomName("HTMLMeterElement.labels") |
13811 @Returns('NodeList') @Creates('NodeList') | 14813 @Returns('NodeList') @Creates('NodeList') |
13812 final List<Node> labels; | 14814 final List<Node> labels; |
13813 | 14815 |
13814 /// @domName HTMLMeterElement.low; @docsEditable true | 14816 /// @docsEditable true |
| 14817 @DomName("HTMLMeterElement.low") |
13815 num low; | 14818 num low; |
13816 | 14819 |
13817 /// @domName HTMLMeterElement.max; @docsEditable true | 14820 /// @docsEditable true |
| 14821 @DomName("HTMLMeterElement.max") |
13818 num max; | 14822 num max; |
13819 | 14823 |
13820 /// @domName HTMLMeterElement.min; @docsEditable true | 14824 /// @docsEditable true |
| 14825 @DomName("HTMLMeterElement.min") |
13821 num min; | 14826 num min; |
13822 | 14827 |
13823 /// @domName HTMLMeterElement.optimum; @docsEditable true | 14828 /// @docsEditable true |
| 14829 @DomName("HTMLMeterElement.optimum") |
13824 num optimum; | 14830 num optimum; |
13825 | 14831 |
13826 /// @domName HTMLMeterElement.value; @docsEditable true | 14832 /// @docsEditable true |
| 14833 @DomName("HTMLMeterElement.value") |
13827 num value; | 14834 num value; |
13828 } | 14835 } |
13829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13830 // for details. All rights reserved. Use of this source code is governed by a | 14837 // for details. All rights reserved. Use of this source code is governed by a |
13831 // BSD-style license that can be found in the LICENSE file. | 14838 // BSD-style license that can be found in the LICENSE file. |
13832 | 14839 |
13833 | 14840 |
13834 /// @domName HTMLModElement; @docsEditable true | 14841 /// @docsEditable true |
| 14842 @DomName("HTMLModElement") |
13835 class ModElement extends Element native "*HTMLModElement" { | 14843 class ModElement extends Element native "*HTMLModElement" { |
13836 | 14844 |
13837 /// @domName HTMLModElement.cite; @docsEditable true | 14845 /// @docsEditable true |
| 14846 @DomName("HTMLModElement.cite") |
13838 String cite; | 14847 String cite; |
13839 | 14848 |
13840 /// @domName HTMLModElement.dateTime; @docsEditable true | 14849 /// @docsEditable true |
| 14850 @DomName("HTMLModElement.dateTime") |
13841 String dateTime; | 14851 String dateTime; |
13842 } | 14852 } |
13843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13844 // for details. All rights reserved. Use of this source code is governed by a | 14854 // for details. All rights reserved. Use of this source code is governed by a |
13845 // BSD-style license that can be found in the LICENSE file. | 14855 // BSD-style license that can be found in the LICENSE file. |
13846 | 14856 |
13847 | 14857 |
13848 /// @domName MouseEvent | 14858 @DomName("MouseEvent") |
13849 class MouseEvent extends UIEvent native "*MouseEvent" { | 14859 class MouseEvent extends UIEvent native "*MouseEvent" { |
13850 factory MouseEvent(String type, Window view, int detail, int screenX, | 14860 factory MouseEvent(String type, Window view, int detail, int screenX, |
13851 int screenY, int clientX, int clientY, int button, [bool canBubble = true, | 14861 int screenY, int clientX, int clientY, int button, [bool canBubble = true, |
13852 bool cancelable = true, bool ctrlKey = false, bool altKey = false, | 14862 bool cancelable = true, bool ctrlKey = false, bool altKey = false, |
13853 bool shiftKey = false, bool metaKey = false, | 14863 bool shiftKey = false, bool metaKey = false, |
13854 EventTarget relatedTarget = null]) => | 14864 EventTarget relatedTarget = null]) => |
13855 _MouseEventFactoryProvider.createMouseEvent( | 14865 _MouseEventFactoryProvider.createMouseEvent( |
13856 type, view, detail, screenX, screenY, | 14866 type, view, detail, screenX, screenY, |
13857 clientX, clientY, button, canBubble, cancelable, | 14867 clientX, clientY, button, canBubble, cancelable, |
13858 ctrlKey, altKey, shiftKey, metaKey, | 14868 ctrlKey, altKey, shiftKey, metaKey, |
13859 relatedTarget); | 14869 relatedTarget); |
13860 | 14870 |
13861 /// @domName MouseEvent.altKey; @docsEditable true | 14871 /// @docsEditable true |
| 14872 @DomName("MouseEvent.altKey") |
13862 final bool altKey; | 14873 final bool altKey; |
13863 | 14874 |
13864 /// @domName MouseEvent.button; @docsEditable true | 14875 /// @docsEditable true |
| 14876 @DomName("MouseEvent.button") |
13865 final int button; | 14877 final int button; |
13866 | 14878 |
13867 /// @domName MouseEvent.clientX; @docsEditable true | 14879 /// @docsEditable true |
| 14880 @DomName("MouseEvent.clientX") |
13868 final int clientX; | 14881 final int clientX; |
13869 | 14882 |
13870 /// @domName MouseEvent.clientY; @docsEditable true | 14883 /// @docsEditable true |
| 14884 @DomName("MouseEvent.clientY") |
13871 final int clientY; | 14885 final int clientY; |
13872 | 14886 |
13873 /// @domName MouseEvent.ctrlKey; @docsEditable true | 14887 /// @docsEditable true |
| 14888 @DomName("MouseEvent.ctrlKey") |
13874 final bool ctrlKey; | 14889 final bool ctrlKey; |
13875 | 14890 |
13876 /// @domName MouseEvent.dataTransfer; @docsEditable true | 14891 /// @docsEditable true |
| 14892 @DomName("MouseEvent.dataTransfer") |
13877 final Clipboard dataTransfer; | 14893 final Clipboard dataTransfer; |
13878 | 14894 |
13879 /// @domName MouseEvent.fromElement; @docsEditable true | 14895 /// @docsEditable true |
| 14896 @DomName("MouseEvent.fromElement") |
13880 final Node fromElement; | 14897 final Node fromElement; |
13881 | 14898 |
13882 /// @domName MouseEvent.metaKey; @docsEditable true | 14899 /// @docsEditable true |
| 14900 @DomName("MouseEvent.metaKey") |
13883 final bool metaKey; | 14901 final bool metaKey; |
13884 | 14902 |
13885 /// @domName MouseEvent.relatedTarget; @docsEditable true | 14903 /// @docsEditable true |
13886 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate
dTarget); | 14904 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relate
dTarget); |
13887 @JSName('relatedTarget') | 14905 @JSName('relatedTarget') |
13888 @Creates('Node') @Returns('EventTarget|=Object') | 14906 @DomName("MouseEvent.relatedTarget") @Creates('Node') @Returns('EventTarget|=O
bject') |
13889 final dynamic _relatedTarget; | 14907 final dynamic _relatedTarget; |
13890 | 14908 |
13891 /// @domName MouseEvent.screenX; @docsEditable true | 14909 /// @docsEditable true |
| 14910 @DomName("MouseEvent.screenX") |
13892 final int screenX; | 14911 final int screenX; |
13893 | 14912 |
13894 /// @domName MouseEvent.screenY; @docsEditable true | 14913 /// @docsEditable true |
| 14914 @DomName("MouseEvent.screenY") |
13895 final int screenY; | 14915 final int screenY; |
13896 | 14916 |
13897 /// @domName MouseEvent.shiftKey; @docsEditable true | 14917 /// @docsEditable true |
| 14918 @DomName("MouseEvent.shiftKey") |
13898 final bool shiftKey; | 14919 final bool shiftKey; |
13899 | 14920 |
13900 /// @domName MouseEvent.toElement; @docsEditable true | 14921 /// @docsEditable true |
| 14922 @DomName("MouseEvent.toElement") |
13901 final Node toElement; | 14923 final Node toElement; |
13902 | 14924 |
13903 /// @domName MouseEvent.webkitMovementX; @docsEditable true | 14925 /// @docsEditable true |
| 14926 @DomName("MouseEvent.webkitMovementX") |
13904 final int webkitMovementX; | 14927 final int webkitMovementX; |
13905 | 14928 |
13906 /// @domName MouseEvent.webkitMovementY; @docsEditable true | 14929 /// @docsEditable true |
| 14930 @DomName("MouseEvent.webkitMovementY") |
13907 final int webkitMovementY; | 14931 final int webkitMovementY; |
13908 | 14932 |
13909 /// @domName MouseEvent.x; @docsEditable true | 14933 /// @docsEditable true |
| 14934 @DomName("MouseEvent.x") |
13910 final int x; | 14935 final int x; |
13911 | 14936 |
13912 /// @domName MouseEvent.y; @docsEditable true | 14937 /// @docsEditable true |
| 14938 @DomName("MouseEvent.y") |
13913 final int y; | 14939 final int y; |
13914 | 14940 |
13915 /// @domName MouseEvent.initMouseEvent; @docsEditable true | 14941 /// @docsEditable true |
13916 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window
view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlK
ey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTar
get) { | 14942 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window
view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlK
ey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTar
get) { |
13917 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); | 14943 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); |
13918 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s
creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar
get_1); | 14944 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s
creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar
get_1); |
13919 return; | 14945 return; |
13920 } | 14946 } |
13921 @JSName('initMouseEvent') | 14947 @JSName('initMouseEvent') |
| 14948 @DomName("MouseEvent.initMouseEvent") |
13922 void _$dom_initMouseEvent_1(type, canBubble, cancelable, Window view, detail,
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button,
relatedTarget) native; | 14949 void _$dom_initMouseEvent_1(type, canBubble, cancelable, Window view, detail,
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button,
relatedTarget) native; |
13923 | 14950 |
13924 | 14951 |
13925 int get offsetX { | 14952 int get offsetX { |
13926 if (JS('bool', '!!#.offsetX', this)) { | 14953 if (JS('bool', '!!#.offsetX', this)) { |
13927 return JS('int', '#.offsetX', this); | 14954 return JS('int', '#.offsetX', this); |
13928 } else { | 14955 } else { |
13929 // Firefox does not support offsetX. | 14956 // Firefox does not support offsetX. |
13930 var target = this.target; | 14957 var target = this.target; |
13931 if (!(target is Element)) { | 14958 if (!(target is Element)) { |
(...skipping 24 matching lines...) Expand all Loading... |
13956 | 14983 |
13957 // WARNING: Do not edit - generated code. | 14984 // WARNING: Do not edit - generated code. |
13958 | 14985 |
13959 | 14986 |
13960 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o
bserver); | 14987 typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver o
bserver); |
13961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14988 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13962 // for details. All rights reserved. Use of this source code is governed by a | 14989 // for details. All rights reserved. Use of this source code is governed by a |
13963 // BSD-style license that can be found in the LICENSE file. | 14990 // BSD-style license that can be found in the LICENSE file. |
13964 | 14991 |
13965 | 14992 |
13966 /// @domName MutationEvent; @docsEditable true | 14993 /// @docsEditable true |
| 14994 @DomName("MutationEvent") |
13967 class MutationEvent extends Event native "*MutationEvent" { | 14995 class MutationEvent extends Event native "*MutationEvent" { |
13968 | 14996 |
13969 static const int ADDITION = 2; | 14997 static const int ADDITION = 2; |
13970 | 14998 |
13971 static const int MODIFICATION = 1; | 14999 static const int MODIFICATION = 1; |
13972 | 15000 |
13973 static const int REMOVAL = 3; | 15001 static const int REMOVAL = 3; |
13974 | 15002 |
13975 /// @domName MutationEvent.attrChange; @docsEditable true | 15003 /// @docsEditable true |
| 15004 @DomName("MutationEvent.attrChange") |
13976 final int attrChange; | 15005 final int attrChange; |
13977 | 15006 |
13978 /// @domName MutationEvent.attrName; @docsEditable true | 15007 /// @docsEditable true |
| 15008 @DomName("MutationEvent.attrName") |
13979 final String attrName; | 15009 final String attrName; |
13980 | 15010 |
13981 /// @domName MutationEvent.newValue; @docsEditable true | 15011 /// @docsEditable true |
| 15012 @DomName("MutationEvent.newValue") |
13982 final String newValue; | 15013 final String newValue; |
13983 | 15014 |
13984 /// @domName MutationEvent.prevValue; @docsEditable true | 15015 /// @docsEditable true |
| 15016 @DomName("MutationEvent.prevValue") |
13985 final String prevValue; | 15017 final String prevValue; |
13986 | 15018 |
13987 /// @domName MutationEvent.relatedNode; @docsEditable true | 15019 /// @docsEditable true |
| 15020 @DomName("MutationEvent.relatedNode") |
13988 final Node relatedNode; | 15021 final Node relatedNode; |
13989 | 15022 |
13990 /// @domName MutationEvent.initMutationEvent; @docsEditable true | 15023 /// @docsEditable true |
| 15024 @DomName("MutationEvent.initMutationEvent") |
13991 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela
tedNode, String prevValue, String newValue, String attrName, int attrChange) nat
ive; | 15025 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela
tedNode, String prevValue, String newValue, String attrName, int attrChange) nat
ive; |
13992 } | 15026 } |
13993 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13994 // for details. All rights reserved. Use of this source code is governed by a | 15028 // for details. All rights reserved. Use of this source code is governed by a |
13995 // BSD-style license that can be found in the LICENSE file. | 15029 // BSD-style license that can be found in the LICENSE file. |
13996 | 15030 |
13997 | 15031 |
13998 /// @domName MutationObserver | 15032 @DomName("MutationObserver") |
13999 @SupportedBrowser(SupportedBrowser.CHROME) | 15033 @SupportedBrowser(SupportedBrowser.CHROME) |
14000 @SupportedBrowser(SupportedBrowser.FIREFOX) | 15034 @SupportedBrowser(SupportedBrowser.FIREFOX) |
14001 @SupportedBrowser(SupportedBrowser.SAFARI) | 15035 @SupportedBrowser(SupportedBrowser.SAFARI) |
14002 @Experimental() | 15036 @Experimental() |
14003 class MutationObserver native "*MutationObserver" { | 15037 class MutationObserver native "*MutationObserver" { |
14004 | 15038 |
14005 ///@docsEditable true | 15039 /// @docsEditable true |
14006 factory MutationObserver(MutationCallback callback) => MutationObserver._creat
e(callback); | 15040 factory MutationObserver(MutationCallback callback) => MutationObserver._creat
e(callback); |
14007 | 15041 |
14008 /// @domName MutationObserver.disconnect; @docsEditable true | 15042 /// @docsEditable true |
| 15043 @DomName("MutationObserver.disconnect") |
14009 void disconnect() native; | 15044 void disconnect() native; |
14010 | 15045 |
14011 /// @domName MutationObserver._observe; @docsEditable true | 15046 /// @docsEditable true |
14012 void _observe(Node target, Map options) { | 15047 void _observe(Node target, Map options) { |
14013 var options_1 = convertDartToNative_Dictionary(options); | 15048 var options_1 = convertDartToNative_Dictionary(options); |
14014 __observe_1(target, options_1); | 15049 __observe_1(target, options_1); |
14015 return; | 15050 return; |
14016 } | 15051 } |
14017 @JSName('observe') | 15052 @JSName('observe') |
| 15053 @DomName("MutationObserver.observe") |
14018 void __observe_1(Node target, options) native; | 15054 void __observe_1(Node target, options) native; |
14019 | 15055 |
14020 /// @domName MutationObserver.takeRecords; @docsEditable true | 15056 /// @docsEditable true |
| 15057 @DomName("MutationObserver.takeRecords") |
14021 List<MutationRecord> takeRecords() native; | 15058 List<MutationRecord> takeRecords() native; |
14022 | 15059 |
14023 /** | 15060 /** |
14024 * Checks to see if the mutation observer API is supported on the current | 15061 * Checks to see if the mutation observer API is supported on the current |
14025 * platform. | 15062 * platform. |
14026 */ | 15063 */ |
14027 static bool get supported { | 15064 static bool get supported { |
14028 return JS('bool', | 15065 return JS('bool', |
14029 '!!(window.MutationObserver || window.WebKitMutationObserver)'); | 15066 '!!(window.MutationObserver || window.WebKitMutationObserver)'); |
14030 } | 15067 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14099 'new(window.MutationObserver||window.WebKitMutationObserver||' | 15136 'new(window.MutationObserver||window.WebKitMutationObserver||' |
14100 'window.MozMutationObserver)(#)', | 15137 'window.MozMutationObserver)(#)', |
14101 convertDartClosureToJS(callback, 2)); | 15138 convertDartClosureToJS(callback, 2)); |
14102 } | 15139 } |
14103 } | 15140 } |
14104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14105 // for details. All rights reserved. Use of this source code is governed by a | 15142 // for details. All rights reserved. Use of this source code is governed by a |
14106 // BSD-style license that can be found in the LICENSE file. | 15143 // BSD-style license that can be found in the LICENSE file. |
14107 | 15144 |
14108 | 15145 |
14109 /// @domName MutationRecord; @docsEditable true | 15146 /// @docsEditable true |
| 15147 @DomName("MutationRecord") |
14110 class MutationRecord native "*MutationRecord" { | 15148 class MutationRecord native "*MutationRecord" { |
14111 | 15149 |
14112 /// @domName MutationRecord.addedNodes; @docsEditable true | 15150 /// @docsEditable true |
| 15151 @DomName("MutationRecord.addedNodes") |
14113 @Returns('NodeList') @Creates('NodeList') | 15152 @Returns('NodeList') @Creates('NodeList') |
14114 final List<Node> addedNodes; | 15153 final List<Node> addedNodes; |
14115 | 15154 |
14116 /// @domName MutationRecord.attributeName; @docsEditable true | 15155 /// @docsEditable true |
| 15156 @DomName("MutationRecord.attributeName") |
14117 final String attributeName; | 15157 final String attributeName; |
14118 | 15158 |
14119 /// @domName MutationRecord.attributeNamespace; @docsEditable true | 15159 /// @docsEditable true |
| 15160 @DomName("MutationRecord.attributeNamespace") |
14120 final String attributeNamespace; | 15161 final String attributeNamespace; |
14121 | 15162 |
14122 /// @domName MutationRecord.nextSibling; @docsEditable true | 15163 /// @docsEditable true |
| 15164 @DomName("MutationRecord.nextSibling") |
14123 final Node nextSibling; | 15165 final Node nextSibling; |
14124 | 15166 |
14125 /// @domName MutationRecord.oldValue; @docsEditable true | 15167 /// @docsEditable true |
| 15168 @DomName("MutationRecord.oldValue") |
14126 final String oldValue; | 15169 final String oldValue; |
14127 | 15170 |
14128 /// @domName MutationRecord.previousSibling; @docsEditable true | 15171 /// @docsEditable true |
| 15172 @DomName("MutationRecord.previousSibling") |
14129 final Node previousSibling; | 15173 final Node previousSibling; |
14130 | 15174 |
14131 /// @domName MutationRecord.removedNodes; @docsEditable true | 15175 /// @docsEditable true |
| 15176 @DomName("MutationRecord.removedNodes") |
14132 @Returns('NodeList') @Creates('NodeList') | 15177 @Returns('NodeList') @Creates('NodeList') |
14133 final List<Node> removedNodes; | 15178 final List<Node> removedNodes; |
14134 | 15179 |
14135 /// @domName MutationRecord.target; @docsEditable true | 15180 /// @docsEditable true |
| 15181 @DomName("MutationRecord.target") |
14136 final Node target; | 15182 final Node target; |
14137 | 15183 |
14138 /// @domName MutationRecord.type; @docsEditable true | 15184 /// @docsEditable true |
| 15185 @DomName("MutationRecord.type") |
14139 final String type; | 15186 final String type; |
14140 } | 15187 } |
14141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14142 // for details. All rights reserved. Use of this source code is governed by a | 15189 // for details. All rights reserved. Use of this source code is governed by a |
14143 // BSD-style license that can be found in the LICENSE file. | 15190 // BSD-style license that can be found in the LICENSE file. |
14144 | 15191 |
14145 | 15192 |
14146 /// @domName NamedNodeMap; @docsEditable true | 15193 /// @docsEditable true |
| 15194 @DomName("NamedNodeMap") |
14147 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
medNodeMap" { | 15195 class NamedNodeMap implements JavaScriptIndexingBehavior, List<Node> native "*Na
medNodeMap" { |
14148 | 15196 |
14149 /// @domName NamedNodeMap.length; @docsEditable true | 15197 /// @docsEditable true |
| 15198 @DomName("NamedNodeMap.length") |
14150 int get length => JS("int", "#.length", this); | 15199 int get length => JS("int", "#.length", this); |
14151 | 15200 |
14152 Node operator[](int index) => JS("Node", "#[#]", this, index); | 15201 Node operator[](int index) => JS("Node", "#[#]", this, index); |
14153 | 15202 |
14154 void operator[]=(int index, Node value) { | 15203 void operator[]=(int index, Node value) { |
14155 throw new UnsupportedError("Cannot assign element of immutable List."); | 15204 throw new UnsupportedError("Cannot assign element of immutable List."); |
14156 } | 15205 } |
14157 // -- start List<Node> mixins. | 15206 // -- start List<Node> mixins. |
14158 // Node is the element type. | 15207 // Node is the element type. |
14159 | 15208 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14287 | 15336 |
14288 void insertRange(int start, int rangeLength, [Node initialValue]) { | 15337 void insertRange(int start, int rangeLength, [Node initialValue]) { |
14289 throw new UnsupportedError("Cannot insertRange on immutable List."); | 15338 throw new UnsupportedError("Cannot insertRange on immutable List."); |
14290 } | 15339 } |
14291 | 15340 |
14292 List<Node> getRange(int start, int rangeLength) => | 15341 List<Node> getRange(int start, int rangeLength) => |
14293 Lists.getRange(this, start, rangeLength, <Node>[]); | 15342 Lists.getRange(this, start, rangeLength, <Node>[]); |
14294 | 15343 |
14295 // -- end List<Node> mixins. | 15344 // -- end List<Node> mixins. |
14296 | 15345 |
14297 /// @domName NamedNodeMap.getNamedItem; @docsEditable true | 15346 /// @docsEditable true |
| 15347 @DomName("NamedNodeMap.getNamedItem") |
14298 Node getNamedItem(String name) native; | 15348 Node getNamedItem(String name) native; |
14299 | 15349 |
14300 /// @domName NamedNodeMap.getNamedItemNS; @docsEditable true | 15350 /// @docsEditable true |
| 15351 @DomName("NamedNodeMap.getNamedItemNS") |
14301 Node getNamedItemNS(String namespaceURI, String localName) native; | 15352 Node getNamedItemNS(String namespaceURI, String localName) native; |
14302 | 15353 |
14303 /// @domName NamedNodeMap.item; @docsEditable true | 15354 /// @docsEditable true |
| 15355 @DomName("NamedNodeMap.item") |
14304 Node item(int index) native; | 15356 Node item(int index) native; |
14305 | 15357 |
14306 /// @domName NamedNodeMap.removeNamedItem; @docsEditable true | 15358 /// @docsEditable true |
| 15359 @DomName("NamedNodeMap.removeNamedItem") |
14307 Node removeNamedItem(String name) native; | 15360 Node removeNamedItem(String name) native; |
14308 | 15361 |
14309 /// @domName NamedNodeMap.removeNamedItemNS; @docsEditable true | 15362 /// @docsEditable true |
| 15363 @DomName("NamedNodeMap.removeNamedItemNS") |
14310 Node removeNamedItemNS(String namespaceURI, String localName) native; | 15364 Node removeNamedItemNS(String namespaceURI, String localName) native; |
14311 | 15365 |
14312 /// @domName NamedNodeMap.setNamedItem; @docsEditable true | 15366 /// @docsEditable true |
| 15367 @DomName("NamedNodeMap.setNamedItem") |
14313 Node setNamedItem(Node node) native; | 15368 Node setNamedItem(Node node) native; |
14314 | 15369 |
14315 /// @domName NamedNodeMap.setNamedItemNS; @docsEditable true | 15370 /// @docsEditable true |
| 15371 @DomName("NamedNodeMap.setNamedItemNS") |
14316 Node setNamedItemNS(Node node) native; | 15372 Node setNamedItemNS(Node node) native; |
14317 } | 15373 } |
14318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14319 // for details. All rights reserved. Use of this source code is governed by a | 15375 // for details. All rights reserved. Use of this source code is governed by a |
14320 // BSD-style license that can be found in the LICENSE file. | 15376 // BSD-style license that can be found in the LICENSE file. |
14321 | 15377 |
14322 | 15378 |
14323 /// @domName Navigator; @docsEditable true | 15379 /// @docsEditable true |
| 15380 @DomName("Navigator") |
14324 class Navigator native "*Navigator" { | 15381 class Navigator native "*Navigator" { |
14325 | 15382 |
14326 /// @domName Navigator.language; @docsEditable true | 15383 /// @docsEditable true |
| 15384 @DomName("Navigator.language") |
14327 String get language => JS('String', '#.language || #.userLanguage', this, | 15385 String get language => JS('String', '#.language || #.userLanguage', this, |
14328 this); | 15386 this); |
14329 | 15387 |
14330 /// @domName Navigator.appCodeName; @docsEditable true | 15388 /// @docsEditable true |
| 15389 @DomName("Navigator.appCodeName") |
14331 final String appCodeName; | 15390 final String appCodeName; |
14332 | 15391 |
14333 /// @domName Navigator.appName; @docsEditable true | 15392 /// @docsEditable true |
| 15393 @DomName("Navigator.appName") |
14334 final String appName; | 15394 final String appName; |
14335 | 15395 |
14336 /// @domName Navigator.appVersion; @docsEditable true | 15396 /// @docsEditable true |
| 15397 @DomName("Navigator.appVersion") |
14337 final String appVersion; | 15398 final String appVersion; |
14338 | 15399 |
14339 /// @domName Navigator.cookieEnabled; @docsEditable true | 15400 /// @docsEditable true |
| 15401 @DomName("Navigator.cookieEnabled") |
14340 final bool cookieEnabled; | 15402 final bool cookieEnabled; |
14341 | 15403 |
14342 /// @domName Navigator.geolocation; @docsEditable true | 15404 /// @docsEditable true |
| 15405 @DomName("Navigator.geolocation") |
14343 final Geolocation geolocation; | 15406 final Geolocation geolocation; |
14344 | 15407 |
14345 /// @domName Navigator.mimeTypes; @docsEditable true | 15408 /// @docsEditable true |
| 15409 @DomName("Navigator.mimeTypes") |
14346 final DomMimeTypeArray mimeTypes; | 15410 final DomMimeTypeArray mimeTypes; |
14347 | 15411 |
14348 /// @domName Navigator.onLine; @docsEditable true | 15412 /// @docsEditable true |
| 15413 @DomName("Navigator.onLine") |
14349 final bool onLine; | 15414 final bool onLine; |
14350 | 15415 |
14351 /// @domName Navigator.platform; @docsEditable true | 15416 /// @docsEditable true |
| 15417 @DomName("Navigator.platform") |
14352 final String platform; | 15418 final String platform; |
14353 | 15419 |
14354 /// @domName Navigator.plugins; @docsEditable true | 15420 /// @docsEditable true |
| 15421 @DomName("Navigator.plugins") |
14355 final DomPluginArray plugins; | 15422 final DomPluginArray plugins; |
14356 | 15423 |
14357 /// @domName Navigator.product; @docsEditable true | 15424 /// @docsEditable true |
| 15425 @DomName("Navigator.product") |
14358 final String product; | 15426 final String product; |
14359 | 15427 |
14360 /// @domName Navigator.productSub; @docsEditable true | 15428 /// @docsEditable true |
| 15429 @DomName("Navigator.productSub") |
14361 final String productSub; | 15430 final String productSub; |
14362 | 15431 |
14363 /// @domName Navigator.userAgent; @docsEditable true | 15432 /// @docsEditable true |
| 15433 @DomName("Navigator.userAgent") |
14364 final String userAgent; | 15434 final String userAgent; |
14365 | 15435 |
14366 /// @domName Navigator.vendor; @docsEditable true | 15436 /// @docsEditable true |
| 15437 @DomName("Navigator.vendor") |
14367 final String vendor; | 15438 final String vendor; |
14368 | 15439 |
14369 /// @domName Navigator.vendorSub; @docsEditable true | 15440 /// @docsEditable true |
| 15441 @DomName("Navigator.vendorSub") |
14370 final String vendorSub; | 15442 final String vendorSub; |
14371 | 15443 |
14372 /// @domName Navigator.webkitBattery; @docsEditable true | 15444 /// @docsEditable true |
| 15445 @DomName("Navigator.webkitBattery") |
14373 final BatteryManager webkitBattery; | 15446 final BatteryManager webkitBattery; |
14374 | 15447 |
14375 /// @domName Navigator.getStorageUpdates; @docsEditable true | 15448 /// @docsEditable true |
| 15449 @DomName("Navigator.getStorageUpdates") |
14376 void getStorageUpdates() native; | 15450 void getStorageUpdates() native; |
14377 | 15451 |
14378 /// @domName Navigator.javaEnabled; @docsEditable true | 15452 /// @docsEditable true |
| 15453 @DomName("Navigator.javaEnabled") |
14379 bool javaEnabled() native; | 15454 bool javaEnabled() native; |
14380 | 15455 |
14381 /// @domName Navigator.webkitGetGamepads; @docsEditable true | 15456 /// @docsEditable true |
| 15457 @DomName("Navigator.webkitGetGamepads") |
14382 @Returns('_GamepadList') @Creates('_GamepadList') | 15458 @Returns('_GamepadList') @Creates('_GamepadList') |
14383 List<Gamepad> webkitGetGamepads() native; | 15459 List<Gamepad> webkitGetGamepads() native; |
14384 | 15460 |
14385 /// @domName Navigator.webkitGetUserMedia; @docsEditable true | 15461 /// @docsEditable true |
14386 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) { | 15462 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) { |
14387 if (?errorCallback) { | 15463 if (?errorCallback) { |
14388 var options_1 = convertDartToNative_Dictionary(options); | 15464 var options_1 = convertDartToNative_Dictionary(options); |
14389 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); | 15465 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); |
14390 return; | 15466 return; |
14391 } | 15467 } |
14392 var options_2 = convertDartToNative_Dictionary(options); | 15468 var options_2 = convertDartToNative_Dictionary(options); |
14393 _webkitGetUserMedia_2(options_2, successCallback); | 15469 _webkitGetUserMedia_2(options_2, successCallback); |
14394 return; | 15470 return; |
14395 } | 15471 } |
14396 @JSName('webkitGetUserMedia') | 15472 @JSName('webkitGetUserMedia') |
| 15473 @DomName("Navigator.webkitGetUserMedia") |
14397 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC
allback, NavigatorUserMediaErrorCallback errorCallback) native; | 15474 void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successC
allback, NavigatorUserMediaErrorCallback errorCallback) native; |
14398 @JSName('webkitGetUserMedia') | 15475 @JSName('webkitGetUserMedia') |
| 15476 @DomName("Navigator.webkitGetUserMedia") |
14399 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC
allback) native; | 15477 void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successC
allback) native; |
14400 | 15478 |
14401 } | 15479 } |
14402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14403 // for details. All rights reserved. Use of this source code is governed by a | 15481 // for details. All rights reserved. Use of this source code is governed by a |
14404 // BSD-style license that can be found in the LICENSE file. | 15482 // BSD-style license that can be found in the LICENSE file. |
14405 | 15483 |
14406 | 15484 |
14407 /// @domName NavigatorUserMediaError; @docsEditable true | 15485 /// @docsEditable true |
| 15486 @DomName("NavigatorUserMediaError") |
14408 class NavigatorUserMediaError native "*NavigatorUserMediaError" { | 15487 class NavigatorUserMediaError native "*NavigatorUserMediaError" { |
14409 | 15488 |
14410 static const int PERMISSION_DENIED = 1; | 15489 static const int PERMISSION_DENIED = 1; |
14411 | 15490 |
14412 /// @domName NavigatorUserMediaError.code; @docsEditable true | 15491 /// @docsEditable true |
| 15492 @DomName("NavigatorUserMediaError.code") |
14413 final int code; | 15493 final int code; |
14414 } | 15494 } |
14415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14416 // for details. All rights reserved. Use of this source code is governed by a | 15496 // for details. All rights reserved. Use of this source code is governed by a |
14417 // BSD-style license that can be found in the LICENSE file. | 15497 // BSD-style license that can be found in the LICENSE file. |
14418 | 15498 |
14419 // WARNING: Do not edit - generated code. | 15499 // WARNING: Do not edit - generated code. |
14420 | 15500 |
14421 | 15501 |
14422 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); | 15502 typedef void NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14606 int get length => _this.$dom_childNodes.length; | 15686 int get length => _this.$dom_childNodes.length; |
14607 | 15687 |
14608 void set length(int value) { | 15688 void set length(int value) { |
14609 throw new UnsupportedError( | 15689 throw new UnsupportedError( |
14610 "Cannot set length on immutable List."); | 15690 "Cannot set length on immutable List."); |
14611 } | 15691 } |
14612 | 15692 |
14613 Node operator[](int index) => _this.$dom_childNodes[index]; | 15693 Node operator[](int index) => _this.$dom_childNodes[index]; |
14614 } | 15694 } |
14615 | 15695 |
14616 /// @domName Node | 15696 @DomName("Node") |
14617 class Node extends EventTarget native "*Node" { | 15697 class Node extends EventTarget native "*Node" { |
14618 List<Node> get nodes { | 15698 List<Node> get nodes { |
14619 return new _ChildNodeListLazy(this); | 15699 return new _ChildNodeListLazy(this); |
14620 } | 15700 } |
14621 | 15701 |
14622 void set nodes(Collection<Node> value) { | 15702 void set nodes(Collection<Node> value) { |
14623 // Copy list first since we don't want liveness during iteration. | 15703 // Copy list first since we don't want liveness during iteration. |
14624 // TODO(jacobr): there is a better way to do this. | 15704 // TODO(jacobr): there is a better way to do this. |
14625 List copy = new List.from(value); | 15705 List copy = new List.from(value); |
14626 text = ''; | 15706 text = ''; |
14627 for (Node node in copy) { | 15707 for (Node node in copy) { |
14628 $dom_appendChild(node); | 15708 $dom_appendChild(node); |
14629 } | 15709 } |
14630 } | 15710 } |
14631 | 15711 |
14632 /** | 15712 /** |
14633 * Removes this node from the DOM. | 15713 * Removes this node from the DOM. |
14634 * @domName Node.removeChild | |
14635 */ | 15714 */ |
| 15715 @DomName("Node.removeChild") |
14636 void remove() { | 15716 void remove() { |
14637 // TODO(jacobr): should we throw an exception if parent is already null? | 15717 // TODO(jacobr): should we throw an exception if parent is already null? |
14638 // TODO(vsm): Use the native remove when available. | 15718 // TODO(vsm): Use the native remove when available. |
14639 if (this.parentNode != null) { | 15719 if (this.parentNode != null) { |
14640 final Node parent = this.parentNode; | 15720 final Node parent = this.parentNode; |
14641 parentNode.$dom_removeChild(this); | 15721 parentNode.$dom_removeChild(this); |
14642 } | 15722 } |
14643 } | 15723 } |
14644 | 15724 |
14645 /** | 15725 /** |
14646 * Replaces this node with another node. | 15726 * Replaces this node with another node. |
14647 * @domName Node.replaceChild | |
14648 */ | 15727 */ |
| 15728 @DomName("Node.replaceChild") |
14649 Node replaceWith(Node otherNode) { | 15729 Node replaceWith(Node otherNode) { |
14650 try { | 15730 try { |
14651 final Node parent = this.parentNode; | 15731 final Node parent = this.parentNode; |
14652 parent.$dom_replaceChild(otherNode, this); | 15732 parent.$dom_replaceChild(otherNode, this); |
14653 } catch (e) { | 15733 } catch (e) { |
14654 | 15734 |
14655 }; | 15735 }; |
14656 return this; | 15736 return this; |
14657 } | 15737 } |
14658 | 15738 |
(...skipping 27 matching lines...) Expand all Loading... |
14686 static const int ENTITY_NODE = 6; | 15766 static const int ENTITY_NODE = 6; |
14687 | 15767 |
14688 static const int ENTITY_REFERENCE_NODE = 5; | 15768 static const int ENTITY_REFERENCE_NODE = 5; |
14689 | 15769 |
14690 static const int NOTATION_NODE = 12; | 15770 static const int NOTATION_NODE = 12; |
14691 | 15771 |
14692 static const int PROCESSING_INSTRUCTION_NODE = 7; | 15772 static const int PROCESSING_INSTRUCTION_NODE = 7; |
14693 | 15773 |
14694 static const int TEXT_NODE = 3; | 15774 static const int TEXT_NODE = 3; |
14695 | 15775 |
14696 /// @domName Node.attributes; @docsEditable true | 15776 /// @docsEditable true |
14697 @JSName('attributes') | 15777 @JSName('attributes') |
| 15778 @DomName("Node.attributes") |
14698 final NamedNodeMap $dom_attributes; | 15779 final NamedNodeMap $dom_attributes; |
14699 | 15780 |
14700 /// @domName Node.childNodes; @docsEditable true | 15781 /// @docsEditable true |
14701 @JSName('childNodes') | 15782 @JSName('childNodes') |
| 15783 @DomName("Node.childNodes") |
14702 @Returns('NodeList') @Creates('NodeList') | 15784 @Returns('NodeList') @Creates('NodeList') |
14703 final List<Node> $dom_childNodes; | 15785 final List<Node> $dom_childNodes; |
14704 | 15786 |
14705 /// @domName Node.firstChild; @docsEditable true | 15787 /// @docsEditable true |
14706 @JSName('firstChild') | 15788 @JSName('firstChild') |
| 15789 @DomName("Node.firstChild") |
14707 final Node $dom_firstChild; | 15790 final Node $dom_firstChild; |
14708 | 15791 |
14709 /// @domName Node.lastChild; @docsEditable true | 15792 /// @docsEditable true |
14710 @JSName('lastChild') | 15793 @JSName('lastChild') |
| 15794 @DomName("Node.lastChild") |
14711 final Node $dom_lastChild; | 15795 final Node $dom_lastChild; |
14712 | 15796 |
14713 /// @domName Node.localName; @docsEditable true | 15797 /// @docsEditable true |
14714 @JSName('localName') | 15798 @JSName('localName') |
| 15799 @DomName("Node.localName") |
14715 final String $dom_localName; | 15800 final String $dom_localName; |
14716 | 15801 |
14717 /// @domName Node.namespaceURI; @docsEditable true | 15802 /// @docsEditable true |
14718 @JSName('namespaceURI') | 15803 @JSName('namespaceURI') |
| 15804 @DomName("Node.namespaceURI") |
14719 final String $dom_namespaceUri; | 15805 final String $dom_namespaceUri; |
14720 | 15806 |
14721 /// @domName Node.nextSibling; @docsEditable true | 15807 /// @docsEditable true |
14722 @JSName('nextSibling') | 15808 @JSName('nextSibling') |
| 15809 @DomName("Node.nextSibling") |
14723 final Node nextNode; | 15810 final Node nextNode; |
14724 | 15811 |
14725 /// @domName Node.nodeType; @docsEditable true | 15812 /// @docsEditable true |
| 15813 @DomName("Node.nodeType") |
14726 final int nodeType; | 15814 final int nodeType; |
14727 | 15815 |
14728 /// @domName Node.ownerDocument; @docsEditable true | 15816 /// @docsEditable true |
14729 @JSName('ownerDocument') | 15817 @JSName('ownerDocument') |
| 15818 @DomName("Node.ownerDocument") |
14730 final Document document; | 15819 final Document document; |
14731 | 15820 |
14732 /// @domName Node.parentElement; @docsEditable true | 15821 /// @docsEditable true |
14733 @JSName('parentElement') | 15822 @JSName('parentElement') |
| 15823 @DomName("Node.parentElement") |
14734 final Element parent; | 15824 final Element parent; |
14735 | 15825 |
14736 /// @domName Node.parentNode; @docsEditable true | 15826 /// @docsEditable true |
| 15827 @DomName("Node.parentNode") |
14737 final Node parentNode; | 15828 final Node parentNode; |
14738 | 15829 |
14739 /// @domName Node.previousSibling; @docsEditable true | 15830 /// @docsEditable true |
14740 @JSName('previousSibling') | 15831 @JSName('previousSibling') |
| 15832 @DomName("Node.previousSibling") |
14741 final Node previousNode; | 15833 final Node previousNode; |
14742 | 15834 |
14743 /// @domName Node.textContent; @docsEditable true | 15835 /// @docsEditable true |
14744 @JSName('textContent') | 15836 @JSName('textContent') |
| 15837 @DomName("Node.textContent") |
14745 String text; | 15838 String text; |
14746 | 15839 |
14747 /// @domName Node.addEventListener; @docsEditable true | 15840 /// @docsEditable true |
14748 @JSName('addEventListener') | 15841 @JSName('addEventListener') |
| 15842 @DomName("Node.addEventListener") |
14749 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 15843 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
14750 | 15844 |
14751 /// @domName Node.appendChild; @docsEditable true | 15845 /// @docsEditable true |
14752 @JSName('appendChild') | 15846 @JSName('appendChild') |
| 15847 @DomName("Node.appendChild") |
14753 Node $dom_appendChild(Node newChild) native; | 15848 Node $dom_appendChild(Node newChild) native; |
14754 | 15849 |
14755 /// @domName Node.cloneNode; @docsEditable true | 15850 /// @docsEditable true |
14756 @JSName('cloneNode') | 15851 @JSName('cloneNode') |
| 15852 @DomName("Node.cloneNode") |
14757 Node clone(bool deep) native; | 15853 Node clone(bool deep) native; |
14758 | 15854 |
14759 /// @domName Node.contains; @docsEditable true | 15855 /// @docsEditable true |
| 15856 @DomName("Node.contains") |
14760 bool contains(Node other) native; | 15857 bool contains(Node other) native; |
14761 | 15858 |
14762 /// @domName Node.dispatchEvent; @docsEditable true | 15859 /// @docsEditable true |
14763 @JSName('dispatchEvent') | 15860 @JSName('dispatchEvent') |
| 15861 @DomName("Node.dispatchEvent") |
14764 bool $dom_dispatchEvent(Event event) native; | 15862 bool $dom_dispatchEvent(Event event) native; |
14765 | 15863 |
14766 /// @domName Node.hasChildNodes; @docsEditable true | 15864 /// @docsEditable true |
| 15865 @DomName("Node.hasChildNodes") |
14767 bool hasChildNodes() native; | 15866 bool hasChildNodes() native; |
14768 | 15867 |
14769 /// @domName Node.insertBefore; @docsEditable true | 15868 /// @docsEditable true |
| 15869 @DomName("Node.insertBefore") |
14770 Node insertBefore(Node newChild, Node refChild) native; | 15870 Node insertBefore(Node newChild, Node refChild) native; |
14771 | 15871 |
14772 /// @domName Node.removeChild; @docsEditable true | 15872 /// @docsEditable true |
14773 @JSName('removeChild') | 15873 @JSName('removeChild') |
| 15874 @DomName("Node.removeChild") |
14774 Node $dom_removeChild(Node oldChild) native; | 15875 Node $dom_removeChild(Node oldChild) native; |
14775 | 15876 |
14776 /// @domName Node.removeEventListener; @docsEditable true | 15877 /// @docsEditable true |
14777 @JSName('removeEventListener') | 15878 @JSName('removeEventListener') |
| 15879 @DomName("Node.removeEventListener") |
14778 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 15880 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
14779 | 15881 |
14780 /// @domName Node.replaceChild; @docsEditable true | 15882 /// @docsEditable true |
14781 @JSName('replaceChild') | 15883 @JSName('replaceChild') |
| 15884 @DomName("Node.replaceChild") |
14782 Node $dom_replaceChild(Node newChild, Node oldChild) native; | 15885 Node $dom_replaceChild(Node newChild, Node oldChild) native; |
14783 | 15886 |
14784 } | 15887 } |
14785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14786 // for details. All rights reserved. Use of this source code is governed by a | 15889 // for details. All rights reserved. Use of this source code is governed by a |
14787 // BSD-style license that can be found in the LICENSE file. | 15890 // BSD-style license that can be found in the LICENSE file. |
14788 | 15891 |
14789 | 15892 |
14790 /// @domName NodeFilter; @docsEditable true | 15893 /// @docsEditable true |
| 15894 @DomName("NodeFilter") |
14791 class NodeFilter native "*NodeFilter" { | 15895 class NodeFilter native "*NodeFilter" { |
14792 | 15896 |
14793 static const int FILTER_ACCEPT = 1; | 15897 static const int FILTER_ACCEPT = 1; |
14794 | 15898 |
14795 static const int FILTER_REJECT = 2; | 15899 static const int FILTER_REJECT = 2; |
14796 | 15900 |
14797 static const int FILTER_SKIP = 3; | 15901 static const int FILTER_SKIP = 3; |
14798 | 15902 |
14799 static const int SHOW_ALL = 0xFFFFFFFF; | 15903 static const int SHOW_ALL = 0xFFFFFFFF; |
14800 | 15904 |
(...skipping 14 matching lines...) Expand all Loading... |
14815 static const int SHOW_ENTITY = 0x00000020; | 15919 static const int SHOW_ENTITY = 0x00000020; |
14816 | 15920 |
14817 static const int SHOW_ENTITY_REFERENCE = 0x00000010; | 15921 static const int SHOW_ENTITY_REFERENCE = 0x00000010; |
14818 | 15922 |
14819 static const int SHOW_NOTATION = 0x00000800; | 15923 static const int SHOW_NOTATION = 0x00000800; |
14820 | 15924 |
14821 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | 15925 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; |
14822 | 15926 |
14823 static const int SHOW_TEXT = 0x00000004; | 15927 static const int SHOW_TEXT = 0x00000004; |
14824 | 15928 |
14825 /// @domName NodeFilter.acceptNode; @docsEditable true | 15929 /// @docsEditable true |
| 15930 @DomName("NodeFilter.acceptNode") |
14826 int acceptNode(Node n) native; | 15931 int acceptNode(Node n) native; |
14827 } | 15932 } |
14828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14829 // for details. All rights reserved. Use of this source code is governed by a | 15934 // for details. All rights reserved. Use of this source code is governed by a |
14830 // BSD-style license that can be found in the LICENSE file. | 15935 // BSD-style license that can be found in the LICENSE file. |
14831 | 15936 |
14832 | 15937 |
14833 /// @domName NodeIterator; @docsEditable true | 15938 /// @docsEditable true |
| 15939 @DomName("NodeIterator") |
14834 class NodeIterator native "*NodeIterator" { | 15940 class NodeIterator native "*NodeIterator" { |
14835 | 15941 |
14836 /// @domName NodeIterator.expandEntityReferences; @docsEditable true | 15942 /// @docsEditable true |
| 15943 @DomName("NodeIterator.expandEntityReferences") |
14837 final bool expandEntityReferences; | 15944 final bool expandEntityReferences; |
14838 | 15945 |
14839 /// @domName NodeIterator.filter; @docsEditable true | 15946 /// @docsEditable true |
| 15947 @DomName("NodeIterator.filter") |
14840 final NodeFilter filter; | 15948 final NodeFilter filter; |
14841 | 15949 |
14842 /// @domName NodeIterator.pointerBeforeReferenceNode; @docsEditable true | 15950 /// @docsEditable true |
| 15951 @DomName("NodeIterator.pointerBeforeReferenceNode") |
14843 final bool pointerBeforeReferenceNode; | 15952 final bool pointerBeforeReferenceNode; |
14844 | 15953 |
14845 /// @domName NodeIterator.referenceNode; @docsEditable true | 15954 /// @docsEditable true |
| 15955 @DomName("NodeIterator.referenceNode") |
14846 final Node referenceNode; | 15956 final Node referenceNode; |
14847 | 15957 |
14848 /// @domName NodeIterator.root; @docsEditable true | 15958 /// @docsEditable true |
| 15959 @DomName("NodeIterator.root") |
14849 final Node root; | 15960 final Node root; |
14850 | 15961 |
14851 /// @domName NodeIterator.whatToShow; @docsEditable true | 15962 /// @docsEditable true |
| 15963 @DomName("NodeIterator.whatToShow") |
14852 final int whatToShow; | 15964 final int whatToShow; |
14853 | 15965 |
14854 /// @domName NodeIterator.detach; @docsEditable true | 15966 /// @docsEditable true |
| 15967 @DomName("NodeIterator.detach") |
14855 void detach() native; | 15968 void detach() native; |
14856 | 15969 |
14857 /// @domName NodeIterator.nextNode; @docsEditable true | 15970 /// @docsEditable true |
| 15971 @DomName("NodeIterator.nextNode") |
14858 Node nextNode() native; | 15972 Node nextNode() native; |
14859 | 15973 |
14860 /// @domName NodeIterator.previousNode; @docsEditable true | 15974 /// @docsEditable true |
| 15975 @DomName("NodeIterator.previousNode") |
14861 Node previousNode() native; | 15976 Node previousNode() native; |
14862 } | 15977 } |
14863 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14864 // for details. All rights reserved. Use of this source code is governed by a | 15979 // for details. All rights reserved. Use of this source code is governed by a |
14865 // BSD-style license that can be found in the LICENSE file. | 15980 // BSD-style license that can be found in the LICENSE file. |
14866 | 15981 |
14867 | 15982 |
14868 /// @domName NodeList; @docsEditable true | 15983 /// @docsEditable true |
| 15984 @DomName("NodeList") |
14869 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
st" { | 15985 class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeLi
st" { |
14870 | 15986 |
14871 /// @domName NodeList.length; @docsEditable true | 15987 /// @docsEditable true |
| 15988 @DomName("NodeList.length") |
14872 int get length => JS("int", "#.length", this); | 15989 int get length => JS("int", "#.length", this); |
14873 | 15990 |
14874 Node operator[](int index) => JS("Node", "#[#]", this, index); | 15991 Node operator[](int index) => JS("Node", "#[#]", this, index); |
14875 | 15992 |
14876 void operator[]=(int index, Node value) { | 15993 void operator[]=(int index, Node value) { |
14877 throw new UnsupportedError("Cannot assign element of immutable List."); | 15994 throw new UnsupportedError("Cannot assign element of immutable List."); |
14878 } | 15995 } |
14879 // -- start List<Node> mixins. | 15996 // -- start List<Node> mixins. |
14880 // Node is the element type. | 15997 // Node is the element type. |
14881 | 15998 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15009 | 16126 |
15010 void insertRange(int start, int rangeLength, [Node initialValue]) { | 16127 void insertRange(int start, int rangeLength, [Node initialValue]) { |
15011 throw new UnsupportedError("Cannot insertRange on immutable List."); | 16128 throw new UnsupportedError("Cannot insertRange on immutable List."); |
15012 } | 16129 } |
15013 | 16130 |
15014 List<Node> getRange(int start, int rangeLength) => | 16131 List<Node> getRange(int start, int rangeLength) => |
15015 Lists.getRange(this, start, rangeLength, <Node>[]); | 16132 Lists.getRange(this, start, rangeLength, <Node>[]); |
15016 | 16133 |
15017 // -- end List<Node> mixins. | 16134 // -- end List<Node> mixins. |
15018 | 16135 |
15019 /// @domName NodeList.item; @docsEditable true | 16136 /// @docsEditable true |
15020 @JSName('item') | 16137 @JSName('item') |
| 16138 @DomName("NodeList.item") |
15021 Node _item(int index) native; | 16139 Node _item(int index) native; |
15022 } | 16140 } |
15023 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15024 // for details. All rights reserved. Use of this source code is governed by a | 16142 // for details. All rights reserved. Use of this source code is governed by a |
15025 // BSD-style license that can be found in the LICENSE file. | 16143 // BSD-style license that can be found in the LICENSE file. |
15026 | 16144 |
15027 | 16145 |
15028 /// @domName Notation; @docsEditable true | 16146 /// @docsEditable true |
| 16147 @DomName("Notation") |
15029 class Notation extends Node native "*Notation" { | 16148 class Notation extends Node native "*Notation" { |
15030 | 16149 |
15031 /// @domName Notation.publicId; @docsEditable true | 16150 /// @docsEditable true |
| 16151 @DomName("Notation.publicId") |
15032 final String publicId; | 16152 final String publicId; |
15033 | 16153 |
15034 /// @domName Notation.systemId; @docsEditable true | 16154 /// @docsEditable true |
| 16155 @DomName("Notation.systemId") |
15035 final String systemId; | 16156 final String systemId; |
15036 } | 16157 } |
15037 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15038 // for details. All rights reserved. Use of this source code is governed by a | 16159 // for details. All rights reserved. Use of this source code is governed by a |
15039 // BSD-style license that can be found in the LICENSE file. | 16160 // BSD-style license that can be found in the LICENSE file. |
15040 | 16161 |
15041 | 16162 |
15042 /// @domName Notification; @docsEditable true | 16163 /// @docsEditable true |
| 16164 @DomName("Notification") |
15043 class Notification extends EventTarget native "*Notification" { | 16165 class Notification extends EventTarget native "*Notification" { |
15044 | 16166 |
15045 ///@docsEditable true | 16167 /// @docsEditable true |
15046 factory Notification(String title, [Map options]) { | 16168 factory Notification(String title, [Map options]) { |
15047 if (!?options) { | 16169 if (!?options) { |
15048 return Notification._create(title); | 16170 return Notification._create(title); |
15049 } | 16171 } |
15050 return Notification._create(title, options); | 16172 return Notification._create(title, options); |
15051 } | 16173 } |
15052 static Notification _create(String title, [Map options]) { | 16174 static Notification _create(String title, [Map options]) { |
15053 if (!?options) { | 16175 if (!?options) { |
15054 return JS('Notification', 'new Notification(#)', title); | 16176 return JS('Notification', 'new Notification(#)', title); |
15055 } | 16177 } |
15056 return JS('Notification', 'new Notification(#,#)', title, options); | 16178 return JS('Notification', 'new Notification(#,#)', title, options); |
15057 } | 16179 } |
15058 | 16180 |
15059 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 16181 /// @docsEditable true |
| 16182 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
15060 NotificationEvents get on => | 16183 NotificationEvents get on => |
15061 new NotificationEvents(this); | 16184 new NotificationEvents(this); |
15062 | 16185 |
15063 /// @domName Notification.dir; @docsEditable true | 16186 /// @docsEditable true |
| 16187 @DomName("Notification.dir") |
15064 String dir; | 16188 String dir; |
15065 | 16189 |
15066 /// @domName Notification.permission; @docsEditable true | 16190 /// @docsEditable true |
| 16191 @DomName("Notification.permission") |
15067 final String permission; | 16192 final String permission; |
15068 | 16193 |
15069 /// @domName Notification.replaceId; @docsEditable true | 16194 /// @docsEditable true |
| 16195 @DomName("Notification.replaceId") |
15070 String replaceId; | 16196 String replaceId; |
15071 | 16197 |
15072 /// @domName Notification.tag; @docsEditable true | 16198 /// @docsEditable true |
| 16199 @DomName("Notification.tag") |
15073 String tag; | 16200 String tag; |
15074 | 16201 |
15075 /// @domName Notification.addEventListener; @docsEditable true | 16202 /// @docsEditable true |
15076 @JSName('addEventListener') | 16203 @JSName('addEventListener') |
| 16204 @DomName("Notification.addEventListener") |
15077 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 16205 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
15078 | 16206 |
15079 /// @domName Notification.cancel; @docsEditable true | 16207 /// @docsEditable true |
| 16208 @DomName("Notification.cancel") |
15080 void cancel() native; | 16209 void cancel() native; |
15081 | 16210 |
15082 /// @domName Notification.close; @docsEditable true | 16211 /// @docsEditable true |
| 16212 @DomName("Notification.close") |
15083 void close() native; | 16213 void close() native; |
15084 | 16214 |
15085 /// @domName Notification.dispatchEvent; @docsEditable true | 16215 /// @docsEditable true |
15086 @JSName('dispatchEvent') | 16216 @JSName('dispatchEvent') |
| 16217 @DomName("Notification.dispatchEvent") |
15087 bool $dom_dispatchEvent(Event evt) native; | 16218 bool $dom_dispatchEvent(Event evt) native; |
15088 | 16219 |
15089 /// @domName Notification.removeEventListener; @docsEditable true | 16220 /// @docsEditable true |
15090 @JSName('removeEventListener') | 16221 @JSName('removeEventListener') |
| 16222 @DomName("Notification.removeEventListener") |
15091 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 16223 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
15092 | 16224 |
15093 /// @domName Notification.requestPermission; @docsEditable true | 16225 /// @docsEditable true |
| 16226 @DomName("Notification.requestPermission") |
15094 static void requestPermission(NotificationPermissionCallback callback) native; | 16227 static void requestPermission(NotificationPermissionCallback callback) native; |
15095 | 16228 |
15096 /// @domName Notification.show; @docsEditable true | 16229 /// @docsEditable true |
| 16230 @DomName("Notification.show") |
15097 void show() native; | 16231 void show() native; |
15098 } | 16232 } |
15099 | 16233 |
15100 /// @docsEditable true | 16234 /// @docsEditable true |
15101 class NotificationEvents extends Events { | 16235 class NotificationEvents extends Events { |
15102 /// @docsEditable true | 16236 /// @docsEditable true |
15103 NotificationEvents(EventTarget _ptr) : super(_ptr); | 16237 NotificationEvents(EventTarget _ptr) : super(_ptr); |
15104 | 16238 |
15105 /// @docsEditable true | 16239 /// @docsEditable true |
15106 EventListenerList get click => this['click']; | 16240 EventListenerList get click => this['click']; |
15107 | 16241 |
15108 /// @docsEditable true | 16242 /// @docsEditable true |
15109 EventListenerList get close => this['close']; | 16243 EventListenerList get close => this['close']; |
15110 | 16244 |
15111 /// @docsEditable true | 16245 /// @docsEditable true |
15112 EventListenerList get display => this['display']; | 16246 EventListenerList get display => this['display']; |
15113 | 16247 |
15114 /// @docsEditable true | 16248 /// @docsEditable true |
15115 EventListenerList get error => this['error']; | 16249 EventListenerList get error => this['error']; |
15116 | 16250 |
15117 /// @docsEditable true | 16251 /// @docsEditable true |
15118 EventListenerList get show => this['show']; | 16252 EventListenerList get show => this['show']; |
15119 } | 16253 } |
15120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16254 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15121 // for details. All rights reserved. Use of this source code is governed by a | 16255 // for details. All rights reserved. Use of this source code is governed by a |
15122 // BSD-style license that can be found in the LICENSE file. | 16256 // BSD-style license that can be found in the LICENSE file. |
15123 | 16257 |
15124 | 16258 |
15125 /// @domName NotificationCenter; @docsEditable true | 16259 /// @docsEditable true |
| 16260 @DomName("NotificationCenter") |
15126 class NotificationCenter native "*NotificationCenter" { | 16261 class NotificationCenter native "*NotificationCenter" { |
15127 | 16262 |
15128 /// @domName NotificationCenter.checkPermission; @docsEditable true | 16263 /// @docsEditable true |
| 16264 @DomName("NotificationCenter.checkPermission") |
15129 int checkPermission() native; | 16265 int checkPermission() native; |
15130 | 16266 |
15131 /// @domName NotificationCenter.createHTMLNotification; @docsEditable true | 16267 /// @docsEditable true |
15132 @JSName('createHTMLNotification') | 16268 @JSName('createHTMLNotification') |
| 16269 @DomName("NotificationCenter.createHTMLNotification") |
15133 Notification createHtmlNotification(String url) native; | 16270 Notification createHtmlNotification(String url) native; |
15134 | 16271 |
15135 /// @domName NotificationCenter.createNotification; @docsEditable true | 16272 /// @docsEditable true |
| 16273 @DomName("NotificationCenter.createNotification") |
15136 Notification createNotification(String iconUrl, String title, String body) nat
ive; | 16274 Notification createNotification(String iconUrl, String title, String body) nat
ive; |
15137 | 16275 |
15138 /// @domName NotificationCenter.requestPermission; @docsEditable true | 16276 /// @docsEditable true |
| 16277 @DomName("NotificationCenter.requestPermission") |
15139 void requestPermission(VoidCallback callback) native; | 16278 void requestPermission(VoidCallback callback) native; |
15140 } | 16279 } |
15141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15142 // for details. All rights reserved. Use of this source code is governed by a | 16281 // for details. All rights reserved. Use of this source code is governed by a |
15143 // BSD-style license that can be found in the LICENSE file. | 16282 // BSD-style license that can be found in the LICENSE file. |
15144 | 16283 |
15145 // WARNING: Do not edit - generated code. | 16284 // WARNING: Do not edit - generated code. |
15146 | 16285 |
15147 | 16286 |
15148 typedef void NotificationPermissionCallback(String permission); | 16287 typedef void NotificationPermissionCallback(String permission); |
15149 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15150 // for details. All rights reserved. Use of this source code is governed by a | 16289 // for details. All rights reserved. Use of this source code is governed by a |
15151 // BSD-style license that can be found in the LICENSE file. | 16290 // BSD-style license that can be found in the LICENSE file. |
15152 | 16291 |
15153 | 16292 |
15154 /// @domName HTMLOListElement; @docsEditable true | 16293 /// @docsEditable true |
| 16294 @DomName("HTMLOListElement") |
15155 class OListElement extends Element native "*HTMLOListElement" { | 16295 class OListElement extends Element native "*HTMLOListElement" { |
15156 | 16296 |
15157 ///@docsEditable true | 16297 /// @docsEditable true |
15158 factory OListElement() => document.$dom_createElement("ol"); | 16298 factory OListElement() => document.$dom_createElement("ol"); |
15159 | 16299 |
15160 /// @domName HTMLOListElement.reversed; @docsEditable true | 16300 /// @docsEditable true |
| 16301 @DomName("HTMLOListElement.reversed") |
15161 bool reversed; | 16302 bool reversed; |
15162 | 16303 |
15163 /// @domName HTMLOListElement.start; @docsEditable true | 16304 /// @docsEditable true |
| 16305 @DomName("HTMLOListElement.start") |
15164 int start; | 16306 int start; |
15165 | 16307 |
15166 /// @domName HTMLOListElement.type; @docsEditable true | 16308 /// @docsEditable true |
| 16309 @DomName("HTMLOListElement.type") |
15167 String type; | 16310 String type; |
15168 } | 16311 } |
15169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16312 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15170 // for details. All rights reserved. Use of this source code is governed by a | 16313 // for details. All rights reserved. Use of this source code is governed by a |
15171 // BSD-style license that can be found in the LICENSE file. | 16314 // BSD-style license that can be found in the LICENSE file. |
15172 | 16315 |
15173 | 16316 |
15174 /// @domName HTMLObjectElement; @docsEditable true | 16317 /// @docsEditable true |
| 16318 @DomName("HTMLObjectElement") |
15175 @SupportedBrowser(SupportedBrowser.CHROME) | 16319 @SupportedBrowser(SupportedBrowser.CHROME) |
15176 @SupportedBrowser(SupportedBrowser.FIREFOX) | 16320 @SupportedBrowser(SupportedBrowser.FIREFOX) |
15177 @SupportedBrowser(SupportedBrowser.SAFARI) | 16321 @SupportedBrowser(SupportedBrowser.SAFARI) |
15178 class ObjectElement extends Element native "*HTMLObjectElement" { | 16322 class ObjectElement extends Element native "*HTMLObjectElement" { |
15179 | 16323 |
15180 ///@docsEditable true | 16324 /// @docsEditable true |
15181 factory ObjectElement() => document.$dom_createElement("object"); | 16325 factory ObjectElement() => document.$dom_createElement("object"); |
15182 | 16326 |
15183 /// Checks if this type is supported on the current platform. | 16327 /// Checks if this type is supported on the current platform. |
15184 static bool get supported => Element.isTagSupported('object'); | 16328 static bool get supported => Element.isTagSupported('object'); |
15185 | 16329 |
15186 /// @domName HTMLObjectElement.code; @docsEditable true | 16330 /// @docsEditable true |
| 16331 @DomName("HTMLObjectElement.code") |
15187 String code; | 16332 String code; |
15188 | 16333 |
15189 /// @domName HTMLObjectElement.data; @docsEditable true | 16334 /// @docsEditable true |
| 16335 @DomName("HTMLObjectElement.data") |
15190 String data; | 16336 String data; |
15191 | 16337 |
15192 /// @domName HTMLObjectElement.form; @docsEditable true | 16338 /// @docsEditable true |
| 16339 @DomName("HTMLObjectElement.form") |
15193 final FormElement form; | 16340 final FormElement form; |
15194 | 16341 |
15195 /// @domName HTMLObjectElement.height; @docsEditable true | 16342 /// @docsEditable true |
| 16343 @DomName("HTMLObjectElement.height") |
15196 String height; | 16344 String height; |
15197 | 16345 |
15198 /// @domName HTMLObjectElement.name; @docsEditable true | 16346 /// @docsEditable true |
| 16347 @DomName("HTMLObjectElement.name") |
15199 String name; | 16348 String name; |
15200 | 16349 |
15201 /// @domName HTMLObjectElement.type; @docsEditable true | 16350 /// @docsEditable true |
| 16351 @DomName("HTMLObjectElement.type") |
15202 String type; | 16352 String type; |
15203 | 16353 |
15204 /// @domName HTMLObjectElement.useMap; @docsEditable true | 16354 /// @docsEditable true |
| 16355 @DomName("HTMLObjectElement.useMap") |
15205 String useMap; | 16356 String useMap; |
15206 | 16357 |
15207 /// @domName HTMLObjectElement.validationMessage; @docsEditable true | 16358 /// @docsEditable true |
| 16359 @DomName("HTMLObjectElement.validationMessage") |
15208 final String validationMessage; | 16360 final String validationMessage; |
15209 | 16361 |
15210 /// @domName HTMLObjectElement.validity; @docsEditable true | 16362 /// @docsEditable true |
| 16363 @DomName("HTMLObjectElement.validity") |
15211 final ValidityState validity; | 16364 final ValidityState validity; |
15212 | 16365 |
15213 /// @domName HTMLObjectElement.width; @docsEditable true | 16366 /// @docsEditable true |
| 16367 @DomName("HTMLObjectElement.width") |
15214 String width; | 16368 String width; |
15215 | 16369 |
15216 /// @domName HTMLObjectElement.willValidate; @docsEditable true | 16370 /// @docsEditable true |
| 16371 @DomName("HTMLObjectElement.willValidate") |
15217 final bool willValidate; | 16372 final bool willValidate; |
15218 | 16373 |
15219 /// @domName HTMLObjectElement.checkValidity; @docsEditable true | 16374 /// @docsEditable true |
| 16375 @DomName("HTMLObjectElement.checkValidity") |
15220 bool checkValidity() native; | 16376 bool checkValidity() native; |
15221 | 16377 |
15222 /// @domName HTMLObjectElement.setCustomValidity; @docsEditable true | 16378 /// @docsEditable true |
| 16379 @DomName("HTMLObjectElement.setCustomValidity") |
15223 void setCustomValidity(String error) native; | 16380 void setCustomValidity(String error) native; |
15224 } | 16381 } |
15225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15226 // for details. All rights reserved. Use of this source code is governed by a | 16383 // for details. All rights reserved. Use of this source code is governed by a |
15227 // BSD-style license that can be found in the LICENSE file. | 16384 // BSD-style license that can be found in the LICENSE file. |
15228 | 16385 |
15229 | 16386 |
15230 /// @domName OESElementIndexUint; @docsEditable true | 16387 /// @docsEditable true |
| 16388 @DomName("OESElementIndexUint") |
15231 class OesElementIndexUint native "*OESElementIndexUint" { | 16389 class OesElementIndexUint native "*OESElementIndexUint" { |
15232 } | 16390 } |
15233 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15234 // for details. All rights reserved. Use of this source code is governed by a | 16392 // for details. All rights reserved. Use of this source code is governed by a |
15235 // BSD-style license that can be found in the LICENSE file. | 16393 // BSD-style license that can be found in the LICENSE file. |
15236 | 16394 |
15237 | 16395 |
15238 /// @domName OESStandardDerivatives; @docsEditable true | 16396 /// @docsEditable true |
| 16397 @DomName("OESStandardDerivatives") |
15239 class OesStandardDerivatives native "*OESStandardDerivatives" { | 16398 class OesStandardDerivatives native "*OESStandardDerivatives" { |
15240 | 16399 |
15241 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | 16400 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; |
15242 } | 16401 } |
15243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15244 // for details. All rights reserved. Use of this source code is governed by a | 16403 // for details. All rights reserved. Use of this source code is governed by a |
15245 // BSD-style license that can be found in the LICENSE file. | 16404 // BSD-style license that can be found in the LICENSE file. |
15246 | 16405 |
15247 | 16406 |
15248 /// @domName OESTextureFloat; @docsEditable true | 16407 /// @docsEditable true |
| 16408 @DomName("OESTextureFloat") |
15249 class OesTextureFloat native "*OESTextureFloat" { | 16409 class OesTextureFloat native "*OESTextureFloat" { |
15250 } | 16410 } |
15251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15252 // for details. All rights reserved. Use of this source code is governed by a | 16412 // for details. All rights reserved. Use of this source code is governed by a |
15253 // BSD-style license that can be found in the LICENSE file. | 16413 // BSD-style license that can be found in the LICENSE file. |
15254 | 16414 |
15255 | 16415 |
15256 /// @domName OESVertexArrayObject; @docsEditable true | 16416 /// @docsEditable true |
| 16417 @DomName("OESVertexArrayObject") |
15257 class OesVertexArrayObject native "*OESVertexArrayObject" { | 16418 class OesVertexArrayObject native "*OESVertexArrayObject" { |
15258 | 16419 |
15259 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; | 16420 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
15260 | 16421 |
15261 /// @domName OESVertexArrayObject.bindVertexArrayOES; @docsEditable true | 16422 /// @docsEditable true |
15262 @JSName('bindVertexArrayOES') | 16423 @JSName('bindVertexArrayOES') |
| 16424 @DomName("OESVertexArrayObject.bindVertexArrayOES") |
15263 void bindVertexArray(WebGLVertexArrayObject arrayObject) native; | 16425 void bindVertexArray(WebGLVertexArrayObject arrayObject) native; |
15264 | 16426 |
15265 /// @domName OESVertexArrayObject.createVertexArrayOES; @docsEditable true | 16427 /// @docsEditable true |
15266 @JSName('createVertexArrayOES') | 16428 @JSName('createVertexArrayOES') |
| 16429 @DomName("OESVertexArrayObject.createVertexArrayOES") |
15267 WebGLVertexArrayObject createVertexArray() native; | 16430 WebGLVertexArrayObject createVertexArray() native; |
15268 | 16431 |
15269 /// @domName OESVertexArrayObject.deleteVertexArrayOES; @docsEditable true | 16432 /// @docsEditable true |
15270 @JSName('deleteVertexArrayOES') | 16433 @JSName('deleteVertexArrayOES') |
| 16434 @DomName("OESVertexArrayObject.deleteVertexArrayOES") |
15271 void deleteVertexArray(WebGLVertexArrayObject arrayObject) native; | 16435 void deleteVertexArray(WebGLVertexArrayObject arrayObject) native; |
15272 | 16436 |
15273 /// @domName OESVertexArrayObject.isVertexArrayOES; @docsEditable true | 16437 /// @docsEditable true |
15274 @JSName('isVertexArrayOES') | 16438 @JSName('isVertexArrayOES') |
| 16439 @DomName("OESVertexArrayObject.isVertexArrayOES") |
15275 bool isVertexArray(WebGLVertexArrayObject arrayObject) native; | 16440 bool isVertexArray(WebGLVertexArrayObject arrayObject) native; |
15276 } | 16441 } |
15277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15278 // for details. All rights reserved. Use of this source code is governed by a | 16443 // for details. All rights reserved. Use of this source code is governed by a |
15279 // BSD-style license that can be found in the LICENSE file. | 16444 // BSD-style license that can be found in the LICENSE file. |
15280 | 16445 |
15281 | 16446 |
15282 /// @domName HTMLOptGroupElement; @docsEditable true | 16447 /// @docsEditable true |
| 16448 @DomName("HTMLOptGroupElement") |
15283 class OptGroupElement extends Element native "*HTMLOptGroupElement" { | 16449 class OptGroupElement extends Element native "*HTMLOptGroupElement" { |
15284 | 16450 |
15285 ///@docsEditable true | 16451 /// @docsEditable true |
15286 factory OptGroupElement() => document.$dom_createElement("optgroup"); | 16452 factory OptGroupElement() => document.$dom_createElement("optgroup"); |
15287 | 16453 |
15288 /// @domName HTMLOptGroupElement.disabled; @docsEditable true | 16454 /// @docsEditable true |
| 16455 @DomName("HTMLOptGroupElement.disabled") |
15289 bool disabled; | 16456 bool disabled; |
15290 | 16457 |
15291 /// @domName HTMLOptGroupElement.label; @docsEditable true | 16458 /// @docsEditable true |
| 16459 @DomName("HTMLOptGroupElement.label") |
15292 String label; | 16460 String label; |
15293 } | 16461 } |
15294 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15295 // for details. All rights reserved. Use of this source code is governed by a | 16463 // for details. All rights reserved. Use of this source code is governed by a |
15296 // BSD-style license that can be found in the LICENSE file. | 16464 // BSD-style license that can be found in the LICENSE file. |
15297 | 16465 |
15298 | 16466 |
15299 /// @domName HTMLOptionElement; @docsEditable true | 16467 /// @docsEditable true |
| 16468 @DomName("HTMLOptionElement") |
15300 class OptionElement extends Element native "*HTMLOptionElement" { | 16469 class OptionElement extends Element native "*HTMLOptionElement" { |
15301 | 16470 |
15302 ///@docsEditable true | 16471 /// @docsEditable true |
15303 factory OptionElement([String data, String value, bool defaultSelected, bool s
elected]) { | 16472 factory OptionElement([String data, String value, bool defaultSelected, bool s
elected]) { |
15304 if (!?data) { | 16473 if (!?data) { |
15305 return OptionElement._create(); | 16474 return OptionElement._create(); |
15306 } | 16475 } |
15307 if (!?value) { | 16476 if (!?value) { |
15308 return OptionElement._create(data); | 16477 return OptionElement._create(data); |
15309 } | 16478 } |
15310 if (!?defaultSelected) { | 16479 if (!?defaultSelected) { |
15311 return OptionElement._create(data, value); | 16480 return OptionElement._create(data, value); |
15312 } | 16481 } |
(...skipping 11 matching lines...) Expand all Loading... |
15324 } | 16493 } |
15325 if (!?defaultSelected) { | 16494 if (!?defaultSelected) { |
15326 return JS('OptionElement', 'new Option(#,#)', data, value); | 16495 return JS('OptionElement', 'new Option(#,#)', data, value); |
15327 } | 16496 } |
15328 if (!?selected) { | 16497 if (!?selected) { |
15329 return JS('OptionElement', 'new Option(#,#,#)', data, value, defaultSelect
ed); | 16498 return JS('OptionElement', 'new Option(#,#,#)', data, value, defaultSelect
ed); |
15330 } | 16499 } |
15331 return JS('OptionElement', 'new Option(#,#,#,#)', data, value, defaultSelect
ed, selected); | 16500 return JS('OptionElement', 'new Option(#,#,#,#)', data, value, defaultSelect
ed, selected); |
15332 } | 16501 } |
15333 | 16502 |
15334 /// @domName HTMLOptionElement.defaultSelected; @docsEditable true | 16503 /// @docsEditable true |
| 16504 @DomName("HTMLOptionElement.defaultSelected") |
15335 bool defaultSelected; | 16505 bool defaultSelected; |
15336 | 16506 |
15337 /// @domName HTMLOptionElement.disabled; @docsEditable true | 16507 /// @docsEditable true |
| 16508 @DomName("HTMLOptionElement.disabled") |
15338 bool disabled; | 16509 bool disabled; |
15339 | 16510 |
15340 /// @domName HTMLOptionElement.form; @docsEditable true | 16511 /// @docsEditable true |
| 16512 @DomName("HTMLOptionElement.form") |
15341 final FormElement form; | 16513 final FormElement form; |
15342 | 16514 |
15343 /// @domName HTMLOptionElement.index; @docsEditable true | 16515 /// @docsEditable true |
| 16516 @DomName("HTMLOptionElement.index") |
15344 final int index; | 16517 final int index; |
15345 | 16518 |
15346 /// @domName HTMLOptionElement.label; @docsEditable true | 16519 /// @docsEditable true |
| 16520 @DomName("HTMLOptionElement.label") |
15347 String label; | 16521 String label; |
15348 | 16522 |
15349 /// @domName HTMLOptionElement.selected; @docsEditable true | 16523 /// @docsEditable true |
| 16524 @DomName("HTMLOptionElement.selected") |
15350 bool selected; | 16525 bool selected; |
15351 | 16526 |
15352 /// @domName HTMLOptionElement.value; @docsEditable true | 16527 /// @docsEditable true |
| 16528 @DomName("HTMLOptionElement.value") |
15353 String value; | 16529 String value; |
15354 } | 16530 } |
15355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15356 // for details. All rights reserved. Use of this source code is governed by a | 16532 // for details. All rights reserved. Use of this source code is governed by a |
15357 // BSD-style license that can be found in the LICENSE file. | 16533 // BSD-style license that can be found in the LICENSE file. |
15358 | 16534 |
15359 | 16535 |
15360 /// @domName HTMLOutputElement; @docsEditable true | 16536 /// @docsEditable true |
| 16537 @DomName("HTMLOutputElement") |
15361 @SupportedBrowser(SupportedBrowser.CHROME) | 16538 @SupportedBrowser(SupportedBrowser.CHROME) |
15362 @SupportedBrowser(SupportedBrowser.FIREFOX) | 16539 @SupportedBrowser(SupportedBrowser.FIREFOX) |
15363 @SupportedBrowser(SupportedBrowser.SAFARI) | 16540 @SupportedBrowser(SupportedBrowser.SAFARI) |
15364 class OutputElement extends Element native "*HTMLOutputElement" { | 16541 class OutputElement extends Element native "*HTMLOutputElement" { |
15365 | 16542 |
15366 ///@docsEditable true | 16543 /// @docsEditable true |
15367 factory OutputElement() => document.$dom_createElement("output"); | 16544 factory OutputElement() => document.$dom_createElement("output"); |
15368 | 16545 |
15369 /// Checks if this type is supported on the current platform. | 16546 /// Checks if this type is supported on the current platform. |
15370 static bool get supported => Element.isTagSupported('output'); | 16547 static bool get supported => Element.isTagSupported('output'); |
15371 | 16548 |
15372 /// @domName HTMLOutputElement.defaultValue; @docsEditable true | 16549 /// @docsEditable true |
| 16550 @DomName("HTMLOutputElement.defaultValue") |
15373 String defaultValue; | 16551 String defaultValue; |
15374 | 16552 |
15375 /// @domName HTMLOutputElement.form; @docsEditable true | 16553 /// @docsEditable true |
| 16554 @DomName("HTMLOutputElement.form") |
15376 final FormElement form; | 16555 final FormElement form; |
15377 | 16556 |
15378 /// @domName HTMLOutputElement.htmlFor; @docsEditable true | 16557 /// @docsEditable true |
| 16558 @DomName("HTMLOutputElement.htmlFor") |
15379 DomSettableTokenList htmlFor; | 16559 DomSettableTokenList htmlFor; |
15380 | 16560 |
15381 /// @domName HTMLOutputElement.labels; @docsEditable true | 16561 /// @docsEditable true |
| 16562 @DomName("HTMLOutputElement.labels") |
15382 @Returns('NodeList') @Creates('NodeList') | 16563 @Returns('NodeList') @Creates('NodeList') |
15383 final List<Node> labels; | 16564 final List<Node> labels; |
15384 | 16565 |
15385 /// @domName HTMLOutputElement.name; @docsEditable true | 16566 /// @docsEditable true |
| 16567 @DomName("HTMLOutputElement.name") |
15386 String name; | 16568 String name; |
15387 | 16569 |
15388 /// @domName HTMLOutputElement.type; @docsEditable true | 16570 /// @docsEditable true |
| 16571 @DomName("HTMLOutputElement.type") |
15389 final String type; | 16572 final String type; |
15390 | 16573 |
15391 /// @domName HTMLOutputElement.validationMessage; @docsEditable true | 16574 /// @docsEditable true |
| 16575 @DomName("HTMLOutputElement.validationMessage") |
15392 final String validationMessage; | 16576 final String validationMessage; |
15393 | 16577 |
15394 /// @domName HTMLOutputElement.validity; @docsEditable true | 16578 /// @docsEditable true |
| 16579 @DomName("HTMLOutputElement.validity") |
15395 final ValidityState validity; | 16580 final ValidityState validity; |
15396 | 16581 |
15397 /// @domName HTMLOutputElement.value; @docsEditable true | 16582 /// @docsEditable true |
| 16583 @DomName("HTMLOutputElement.value") |
15398 String value; | 16584 String value; |
15399 | 16585 |
15400 /// @domName HTMLOutputElement.willValidate; @docsEditable true | 16586 /// @docsEditable true |
| 16587 @DomName("HTMLOutputElement.willValidate") |
15401 final bool willValidate; | 16588 final bool willValidate; |
15402 | 16589 |
15403 /// @domName HTMLOutputElement.checkValidity; @docsEditable true | 16590 /// @docsEditable true |
| 16591 @DomName("HTMLOutputElement.checkValidity") |
15404 bool checkValidity() native; | 16592 bool checkValidity() native; |
15405 | 16593 |
15406 /// @domName HTMLOutputElement.setCustomValidity; @docsEditable true | 16594 /// @docsEditable true |
| 16595 @DomName("HTMLOutputElement.setCustomValidity") |
15407 void setCustomValidity(String error) native; | 16596 void setCustomValidity(String error) native; |
15408 } | 16597 } |
15409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15410 // for details. All rights reserved. Use of this source code is governed by a | 16599 // for details. All rights reserved. Use of this source code is governed by a |
15411 // BSD-style license that can be found in the LICENSE file. | 16600 // BSD-style license that can be found in the LICENSE file. |
15412 | 16601 |
15413 | 16602 |
15414 /// @domName OverflowEvent; @docsEditable true | 16603 /// @docsEditable true |
| 16604 @DomName("OverflowEvent") |
15415 class OverflowEvent extends Event native "*OverflowEvent" { | 16605 class OverflowEvent extends Event native "*OverflowEvent" { |
15416 | 16606 |
15417 static const int BOTH = 2; | 16607 static const int BOTH = 2; |
15418 | 16608 |
15419 static const int HORIZONTAL = 0; | 16609 static const int HORIZONTAL = 0; |
15420 | 16610 |
15421 static const int VERTICAL = 1; | 16611 static const int VERTICAL = 1; |
15422 | 16612 |
15423 /// @domName OverflowEvent.horizontalOverflow; @docsEditable true | 16613 /// @docsEditable true |
| 16614 @DomName("OverflowEvent.horizontalOverflow") |
15424 final bool horizontalOverflow; | 16615 final bool horizontalOverflow; |
15425 | 16616 |
15426 /// @domName OverflowEvent.orient; @docsEditable true | 16617 /// @docsEditable true |
| 16618 @DomName("OverflowEvent.orient") |
15427 final int orient; | 16619 final int orient; |
15428 | 16620 |
15429 /// @domName OverflowEvent.verticalOverflow; @docsEditable true | 16621 /// @docsEditable true |
| 16622 @DomName("OverflowEvent.verticalOverflow") |
15430 final bool verticalOverflow; | 16623 final bool verticalOverflow; |
15431 } | 16624 } |
15432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15433 // for details. All rights reserved. Use of this source code is governed by a | 16626 // for details. All rights reserved. Use of this source code is governed by a |
15434 // BSD-style license that can be found in the LICENSE file. | 16627 // BSD-style license that can be found in the LICENSE file. |
15435 | 16628 |
15436 | 16629 |
15437 /// @domName PagePopupController; @docsEditable true | 16630 /// @docsEditable true |
| 16631 @DomName("PagePopupController") |
15438 class PagePopupController native "*PagePopupController" { | 16632 class PagePopupController native "*PagePopupController" { |
15439 | 16633 |
15440 /// @domName PagePopupController.formatMonth; @docsEditable true | 16634 /// @docsEditable true |
| 16635 @DomName("PagePopupController.formatMonth") |
15441 String formatMonth(int year, int zeroBaseMonth) native; | 16636 String formatMonth(int year, int zeroBaseMonth) native; |
15442 | 16637 |
15443 /// @domName PagePopupController.histogramEnumeration; @docsEditable true | 16638 /// @docsEditable true |
| 16639 @DomName("PagePopupController.histogramEnumeration") |
15444 void histogramEnumeration(String name, int sample, int boundaryValue) native; | 16640 void histogramEnumeration(String name, int sample, int boundaryValue) native; |
15445 | 16641 |
15446 /// @domName PagePopupController.localizeNumberString; @docsEditable true | 16642 /// @docsEditable true |
| 16643 @DomName("PagePopupController.localizeNumberString") |
15447 String localizeNumberString(String numberString) native; | 16644 String localizeNumberString(String numberString) native; |
15448 | 16645 |
15449 /// @domName PagePopupController.setValueAndClosePopup; @docsEditable true | 16646 /// @docsEditable true |
| 16647 @DomName("PagePopupController.setValueAndClosePopup") |
15450 void setValueAndClosePopup(int numberValue, String stringValue) native; | 16648 void setValueAndClosePopup(int numberValue, String stringValue) native; |
15451 } | 16649 } |
15452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15453 // for details. All rights reserved. Use of this source code is governed by a | 16651 // for details. All rights reserved. Use of this source code is governed by a |
15454 // BSD-style license that can be found in the LICENSE file. | 16652 // BSD-style license that can be found in the LICENSE file. |
15455 | 16653 |
15456 | 16654 |
15457 /// @domName PageTransitionEvent; @docsEditable true | 16655 /// @docsEditable true |
| 16656 @DomName("PageTransitionEvent") |
15458 class PageTransitionEvent extends Event native "*PageTransitionEvent" { | 16657 class PageTransitionEvent extends Event native "*PageTransitionEvent" { |
15459 | 16658 |
15460 /// @domName PageTransitionEvent.persisted; @docsEditable true | 16659 /// @docsEditable true |
| 16660 @DomName("PageTransitionEvent.persisted") |
15461 final bool persisted; | 16661 final bool persisted; |
15462 } | 16662 } |
15463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15464 // for details. All rights reserved. Use of this source code is governed by a | 16664 // for details. All rights reserved. Use of this source code is governed by a |
15465 // BSD-style license that can be found in the LICENSE file. | 16665 // BSD-style license that can be found in the LICENSE file. |
15466 | 16666 |
15467 | 16667 |
15468 /// @domName HTMLParagraphElement; @docsEditable true | 16668 /// @docsEditable true |
| 16669 @DomName("HTMLParagraphElement") |
15469 class ParagraphElement extends Element native "*HTMLParagraphElement" { | 16670 class ParagraphElement extends Element native "*HTMLParagraphElement" { |
15470 | 16671 |
15471 ///@docsEditable true | 16672 /// @docsEditable true |
15472 factory ParagraphElement() => document.$dom_createElement("p"); | 16673 factory ParagraphElement() => document.$dom_createElement("p"); |
15473 } | 16674 } |
15474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15475 // for details. All rights reserved. Use of this source code is governed by a | 16676 // for details. All rights reserved. Use of this source code is governed by a |
15476 // BSD-style license that can be found in the LICENSE file. | 16677 // BSD-style license that can be found in the LICENSE file. |
15477 | 16678 |
15478 | 16679 |
15479 /// @domName HTMLParamElement; @docsEditable true | 16680 /// @docsEditable true |
| 16681 @DomName("HTMLParamElement") |
15480 class ParamElement extends Element native "*HTMLParamElement" { | 16682 class ParamElement extends Element native "*HTMLParamElement" { |
15481 | 16683 |
15482 ///@docsEditable true | 16684 /// @docsEditable true |
15483 factory ParamElement() => document.$dom_createElement("param"); | 16685 factory ParamElement() => document.$dom_createElement("param"); |
15484 | 16686 |
15485 /// @domName HTMLParamElement.name; @docsEditable true | 16687 /// @docsEditable true |
| 16688 @DomName("HTMLParamElement.name") |
15486 String name; | 16689 String name; |
15487 | 16690 |
15488 /// @domName HTMLParamElement.value; @docsEditable true | 16691 /// @docsEditable true |
| 16692 @DomName("HTMLParamElement.value") |
15489 String value; | 16693 String value; |
15490 } | 16694 } |
15491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15492 // for details. All rights reserved. Use of this source code is governed by a | 16696 // for details. All rights reserved. Use of this source code is governed by a |
15493 // BSD-style license that can be found in the LICENSE file. | 16697 // BSD-style license that can be found in the LICENSE file. |
15494 | 16698 |
15495 | 16699 |
15496 /// @domName Performance; @docsEditable true | 16700 /// @docsEditable true |
| 16701 @DomName("Performance") |
15497 @SupportedBrowser(SupportedBrowser.CHROME) | 16702 @SupportedBrowser(SupportedBrowser.CHROME) |
15498 @SupportedBrowser(SupportedBrowser.FIREFOX) | 16703 @SupportedBrowser(SupportedBrowser.FIREFOX) |
15499 @SupportedBrowser(SupportedBrowser.IE) | 16704 @SupportedBrowser(SupportedBrowser.IE) |
15500 class Performance extends EventTarget native "*Performance" { | 16705 class Performance extends EventTarget native "*Performance" { |
15501 | 16706 |
15502 /// Checks if this type is supported on the current platform. | 16707 /// Checks if this type is supported on the current platform. |
15503 static bool get supported => JS('bool', '!!(window.performance)'); | 16708 static bool get supported => JS('bool', '!!(window.performance)'); |
15504 | 16709 |
15505 /// @domName Performance.memory; @docsEditable true | 16710 /// @docsEditable true |
| 16711 @DomName("Performance.memory") |
15506 final MemoryInfo memory; | 16712 final MemoryInfo memory; |
15507 | 16713 |
15508 /// @domName Performance.navigation; @docsEditable true | 16714 /// @docsEditable true |
| 16715 @DomName("Performance.navigation") |
15509 final PerformanceNavigation navigation; | 16716 final PerformanceNavigation navigation; |
15510 | 16717 |
15511 /// @domName Performance.timing; @docsEditable true | 16718 /// @docsEditable true |
| 16719 @DomName("Performance.timing") |
15512 final PerformanceTiming timing; | 16720 final PerformanceTiming timing; |
15513 | 16721 |
15514 /// @domName Performance.now; @docsEditable true | 16722 /// @docsEditable true |
| 16723 @DomName("Performance.now") |
15515 num now() native; | 16724 num now() native; |
15516 } | 16725 } |
15517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15518 // for details. All rights reserved. Use of this source code is governed by a | 16727 // for details. All rights reserved. Use of this source code is governed by a |
15519 // BSD-style license that can be found in the LICENSE file. | 16728 // BSD-style license that can be found in the LICENSE file. |
15520 | 16729 |
15521 | 16730 |
15522 /// @domName PerformanceNavigation; @docsEditable true | 16731 /// @docsEditable true |
| 16732 @DomName("PerformanceNavigation") |
15523 class PerformanceNavigation native "*PerformanceNavigation" { | 16733 class PerformanceNavigation native "*PerformanceNavigation" { |
15524 | 16734 |
15525 static const int TYPE_BACK_FORWARD = 2; | 16735 static const int TYPE_BACK_FORWARD = 2; |
15526 | 16736 |
15527 static const int TYPE_NAVIGATE = 0; | 16737 static const int TYPE_NAVIGATE = 0; |
15528 | 16738 |
15529 static const int TYPE_RELOAD = 1; | 16739 static const int TYPE_RELOAD = 1; |
15530 | 16740 |
15531 static const int TYPE_RESERVED = 255; | 16741 static const int TYPE_RESERVED = 255; |
15532 | 16742 |
15533 /// @domName PerformanceNavigation.redirectCount; @docsEditable true | 16743 /// @docsEditable true |
| 16744 @DomName("PerformanceNavigation.redirectCount") |
15534 final int redirectCount; | 16745 final int redirectCount; |
15535 | 16746 |
15536 /// @domName PerformanceNavigation.type; @docsEditable true | 16747 /// @docsEditable true |
| 16748 @DomName("PerformanceNavigation.type") |
15537 final int type; | 16749 final int type; |
15538 } | 16750 } |
15539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15540 // for details. All rights reserved. Use of this source code is governed by a | 16752 // for details. All rights reserved. Use of this source code is governed by a |
15541 // BSD-style license that can be found in the LICENSE file. | 16753 // BSD-style license that can be found in the LICENSE file. |
15542 | 16754 |
15543 | 16755 |
15544 /// @domName PerformanceTiming; @docsEditable true | 16756 /// @docsEditable true |
| 16757 @DomName("PerformanceTiming") |
15545 class PerformanceTiming native "*PerformanceTiming" { | 16758 class PerformanceTiming native "*PerformanceTiming" { |
15546 | 16759 |
15547 /// @domName PerformanceTiming.connectEnd; @docsEditable true | 16760 /// @docsEditable true |
| 16761 @DomName("PerformanceTiming.connectEnd") |
15548 final int connectEnd; | 16762 final int connectEnd; |
15549 | 16763 |
15550 /// @domName PerformanceTiming.connectStart; @docsEditable true | 16764 /// @docsEditable true |
| 16765 @DomName("PerformanceTiming.connectStart") |
15551 final int connectStart; | 16766 final int connectStart; |
15552 | 16767 |
15553 /// @domName PerformanceTiming.domComplete; @docsEditable true | 16768 /// @docsEditable true |
| 16769 @DomName("PerformanceTiming.domComplete") |
15554 final int domComplete; | 16770 final int domComplete; |
15555 | 16771 |
15556 /// @domName PerformanceTiming.domContentLoadedEventEnd; @docsEditable true | 16772 /// @docsEditable true |
| 16773 @DomName("PerformanceTiming.domContentLoadedEventEnd") |
15557 final int domContentLoadedEventEnd; | 16774 final int domContentLoadedEventEnd; |
15558 | 16775 |
15559 /// @domName PerformanceTiming.domContentLoadedEventStart; @docsEditable true | 16776 /// @docsEditable true |
| 16777 @DomName("PerformanceTiming.domContentLoadedEventStart") |
15560 final int domContentLoadedEventStart; | 16778 final int domContentLoadedEventStart; |
15561 | 16779 |
15562 /// @domName PerformanceTiming.domInteractive; @docsEditable true | 16780 /// @docsEditable true |
| 16781 @DomName("PerformanceTiming.domInteractive") |
15563 final int domInteractive; | 16782 final int domInteractive; |
15564 | 16783 |
15565 /// @domName PerformanceTiming.domLoading; @docsEditable true | 16784 /// @docsEditable true |
| 16785 @DomName("PerformanceTiming.domLoading") |
15566 final int domLoading; | 16786 final int domLoading; |
15567 | 16787 |
15568 /// @domName PerformanceTiming.domainLookupEnd; @docsEditable true | 16788 /// @docsEditable true |
| 16789 @DomName("PerformanceTiming.domainLookupEnd") |
15569 final int domainLookupEnd; | 16790 final int domainLookupEnd; |
15570 | 16791 |
15571 /// @domName PerformanceTiming.domainLookupStart; @docsEditable true | 16792 /// @docsEditable true |
| 16793 @DomName("PerformanceTiming.domainLookupStart") |
15572 final int domainLookupStart; | 16794 final int domainLookupStart; |
15573 | 16795 |
15574 /// @domName PerformanceTiming.fetchStart; @docsEditable true | 16796 /// @docsEditable true |
| 16797 @DomName("PerformanceTiming.fetchStart") |
15575 final int fetchStart; | 16798 final int fetchStart; |
15576 | 16799 |
15577 /// @domName PerformanceTiming.loadEventEnd; @docsEditable true | 16800 /// @docsEditable true |
| 16801 @DomName("PerformanceTiming.loadEventEnd") |
15578 final int loadEventEnd; | 16802 final int loadEventEnd; |
15579 | 16803 |
15580 /// @domName PerformanceTiming.loadEventStart; @docsEditable true | 16804 /// @docsEditable true |
| 16805 @DomName("PerformanceTiming.loadEventStart") |
15581 final int loadEventStart; | 16806 final int loadEventStart; |
15582 | 16807 |
15583 /// @domName PerformanceTiming.navigationStart; @docsEditable true | 16808 /// @docsEditable true |
| 16809 @DomName("PerformanceTiming.navigationStart") |
15584 final int navigationStart; | 16810 final int navigationStart; |
15585 | 16811 |
15586 /// @domName PerformanceTiming.redirectEnd; @docsEditable true | 16812 /// @docsEditable true |
| 16813 @DomName("PerformanceTiming.redirectEnd") |
15587 final int redirectEnd; | 16814 final int redirectEnd; |
15588 | 16815 |
15589 /// @domName PerformanceTiming.redirectStart; @docsEditable true | 16816 /// @docsEditable true |
| 16817 @DomName("PerformanceTiming.redirectStart") |
15590 final int redirectStart; | 16818 final int redirectStart; |
15591 | 16819 |
15592 /// @domName PerformanceTiming.requestStart; @docsEditable true | 16820 /// @docsEditable true |
| 16821 @DomName("PerformanceTiming.requestStart") |
15593 final int requestStart; | 16822 final int requestStart; |
15594 | 16823 |
15595 /// @domName PerformanceTiming.responseEnd; @docsEditable true | 16824 /// @docsEditable true |
| 16825 @DomName("PerformanceTiming.responseEnd") |
15596 final int responseEnd; | 16826 final int responseEnd; |
15597 | 16827 |
15598 /// @domName PerformanceTiming.responseStart; @docsEditable true | 16828 /// @docsEditable true |
| 16829 @DomName("PerformanceTiming.responseStart") |
15599 final int responseStart; | 16830 final int responseStart; |
15600 | 16831 |
15601 /// @domName PerformanceTiming.secureConnectionStart; @docsEditable true | 16832 /// @docsEditable true |
| 16833 @DomName("PerformanceTiming.secureConnectionStart") |
15602 final int secureConnectionStart; | 16834 final int secureConnectionStart; |
15603 | 16835 |
15604 /// @domName PerformanceTiming.unloadEventEnd; @docsEditable true | 16836 /// @docsEditable true |
| 16837 @DomName("PerformanceTiming.unloadEventEnd") |
15605 final int unloadEventEnd; | 16838 final int unloadEventEnd; |
15606 | 16839 |
15607 /// @domName PerformanceTiming.unloadEventStart; @docsEditable true | 16840 /// @docsEditable true |
| 16841 @DomName("PerformanceTiming.unloadEventStart") |
15608 final int unloadEventStart; | 16842 final int unloadEventStart; |
15609 } | 16843 } |
15610 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15611 // for details. All rights reserved. Use of this source code is governed by a | 16845 // for details. All rights reserved. Use of this source code is governed by a |
15612 // BSD-style license that can be found in the LICENSE file. | 16846 // BSD-style license that can be found in the LICENSE file. |
15613 | 16847 |
15614 | 16848 |
15615 /// @domName WebKitPoint; @docsEditable true | 16849 /// @docsEditable true |
| 16850 @DomName("WebKitPoint") |
15616 class Point native "*WebKitPoint" { | 16851 class Point native "*WebKitPoint" { |
15617 | 16852 |
15618 ///@docsEditable true | 16853 /// @docsEditable true |
15619 factory Point(num x, num y) => Point._create(x, y); | 16854 factory Point(num x, num y) => Point._create(x, y); |
15620 static Point _create(num x, num y) => JS('Point', 'new WebKitPoint(#,#)', x, y
); | 16855 static Point _create(num x, num y) => JS('Point', 'new WebKitPoint(#,#)', x, y
); |
15621 | 16856 |
15622 /// @domName WebKitPoint.x; @docsEditable true | 16857 /// @docsEditable true |
| 16858 @DomName("WebKitPoint.x") |
15623 num x; | 16859 num x; |
15624 | 16860 |
15625 /// @domName WebKitPoint.y; @docsEditable true | 16861 /// @docsEditable true |
| 16862 @DomName("WebKitPoint.y") |
15626 num y; | 16863 num y; |
15627 } | 16864 } |
15628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15629 // for details. All rights reserved. Use of this source code is governed by a | 16866 // for details. All rights reserved. Use of this source code is governed by a |
15630 // BSD-style license that can be found in the LICENSE file. | 16867 // BSD-style license that can be found in the LICENSE file. |
15631 | 16868 |
15632 | 16869 |
15633 /// @domName PopStateEvent; @docsEditable true | 16870 /// @docsEditable true |
| 16871 @DomName("PopStateEvent") |
15634 class PopStateEvent extends Event native "*PopStateEvent" { | 16872 class PopStateEvent extends Event native "*PopStateEvent" { |
15635 | 16873 |
15636 /// @domName PopStateEvent.state; @docsEditable true | 16874 /// @docsEditable true |
15637 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); | 16875 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); |
15638 @JSName('state') | 16876 @JSName('state') |
15639 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript
Value | 16877 @DomName("PopStateEvent.state") @annotation_Creates_SerializedScriptValue @ann
otation_Returns_SerializedScriptValue |
15640 final dynamic _state; | 16878 final dynamic _state; |
15641 } | 16879 } |
15642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15643 // for details. All rights reserved. Use of this source code is governed by a | 16881 // for details. All rights reserved. Use of this source code is governed by a |
15644 // BSD-style license that can be found in the LICENSE file. | 16882 // BSD-style license that can be found in the LICENSE file. |
15645 | 16883 |
15646 // WARNING: Do not edit - generated code. | 16884 // WARNING: Do not edit - generated code. |
15647 | 16885 |
15648 | 16886 |
15649 typedef void PositionCallback(Geoposition position); | 16887 typedef void PositionCallback(Geoposition position); |
15650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15651 // for details. All rights reserved. Use of this source code is governed by a | 16889 // for details. All rights reserved. Use of this source code is governed by a |
15652 // BSD-style license that can be found in the LICENSE file. | 16890 // BSD-style license that can be found in the LICENSE file. |
15653 | 16891 |
15654 | 16892 |
15655 /// @domName PositionError; @docsEditable true | 16893 /// @docsEditable true |
| 16894 @DomName("PositionError") |
15656 class PositionError native "*PositionError" { | 16895 class PositionError native "*PositionError" { |
15657 | 16896 |
15658 static const int PERMISSION_DENIED = 1; | 16897 static const int PERMISSION_DENIED = 1; |
15659 | 16898 |
15660 static const int POSITION_UNAVAILABLE = 2; | 16899 static const int POSITION_UNAVAILABLE = 2; |
15661 | 16900 |
15662 static const int TIMEOUT = 3; | 16901 static const int TIMEOUT = 3; |
15663 | 16902 |
15664 /// @domName PositionError.code; @docsEditable true | 16903 /// @docsEditable true |
| 16904 @DomName("PositionError.code") |
15665 final int code; | 16905 final int code; |
15666 | 16906 |
15667 /// @domName PositionError.message; @docsEditable true | 16907 /// @docsEditable true |
| 16908 @DomName("PositionError.message") |
15668 final String message; | 16909 final String message; |
15669 } | 16910 } |
15670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15671 // for details. All rights reserved. Use of this source code is governed by a | 16912 // for details. All rights reserved. Use of this source code is governed by a |
15672 // BSD-style license that can be found in the LICENSE file. | 16913 // BSD-style license that can be found in the LICENSE file. |
15673 | 16914 |
15674 // WARNING: Do not edit - generated code. | 16915 // WARNING: Do not edit - generated code. |
15675 | 16916 |
15676 | 16917 |
15677 typedef void PositionErrorCallback(PositionError error); | 16918 typedef void PositionErrorCallback(PositionError error); |
15678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15679 // for details. All rights reserved. Use of this source code is governed by a | 16920 // for details. All rights reserved. Use of this source code is governed by a |
15680 // BSD-style license that can be found in the LICENSE file. | 16921 // BSD-style license that can be found in the LICENSE file. |
15681 | 16922 |
15682 | 16923 |
15683 /// @domName HTMLPreElement; @docsEditable true | 16924 /// @docsEditable true |
| 16925 @DomName("HTMLPreElement") |
15684 class PreElement extends Element native "*HTMLPreElement" { | 16926 class PreElement extends Element native "*HTMLPreElement" { |
15685 | 16927 |
15686 ///@docsEditable true | 16928 /// @docsEditable true |
15687 factory PreElement() => document.$dom_createElement("pre"); | 16929 factory PreElement() => document.$dom_createElement("pre"); |
15688 | 16930 |
15689 /// @domName HTMLPreElement.wrap; @docsEditable true | 16931 /// @docsEditable true |
| 16932 @DomName("HTMLPreElement.wrap") |
15690 bool wrap; | 16933 bool wrap; |
15691 } | 16934 } |
15692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15693 // for details. All rights reserved. Use of this source code is governed by a | 16936 // for details. All rights reserved. Use of this source code is governed by a |
15694 // BSD-style license that can be found in the LICENSE file. | 16937 // BSD-style license that can be found in the LICENSE file. |
15695 | 16938 |
15696 | 16939 |
15697 /// @domName ProcessingInstruction; @docsEditable true | 16940 /// @docsEditable true |
| 16941 @DomName("ProcessingInstruction") |
15698 class ProcessingInstruction extends Node native "*ProcessingInstruction" { | 16942 class ProcessingInstruction extends Node native "*ProcessingInstruction" { |
15699 | 16943 |
15700 /// @domName ProcessingInstruction.data; @docsEditable true | 16944 /// @docsEditable true |
| 16945 @DomName("ProcessingInstruction.data") |
15701 String data; | 16946 String data; |
15702 | 16947 |
15703 /// @domName ProcessingInstruction.sheet; @docsEditable true | 16948 /// @docsEditable true |
| 16949 @DomName("ProcessingInstruction.sheet") |
15704 final StyleSheet sheet; | 16950 final StyleSheet sheet; |
15705 | 16951 |
15706 /// @domName ProcessingInstruction.target; @docsEditable true | 16952 /// @docsEditable true |
| 16953 @DomName("ProcessingInstruction.target") |
15707 final String target; | 16954 final String target; |
15708 } | 16955 } |
15709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15710 // for details. All rights reserved. Use of this source code is governed by a | 16957 // for details. All rights reserved. Use of this source code is governed by a |
15711 // BSD-style license that can be found in the LICENSE file. | 16958 // BSD-style license that can be found in the LICENSE file. |
15712 | 16959 |
15713 | 16960 |
15714 /// @domName HTMLProgressElement; @docsEditable true | 16961 /// @docsEditable true |
| 16962 @DomName("HTMLProgressElement") |
15715 @SupportedBrowser(SupportedBrowser.CHROME) | 16963 @SupportedBrowser(SupportedBrowser.CHROME) |
15716 @SupportedBrowser(SupportedBrowser.FIREFOX) | 16964 @SupportedBrowser(SupportedBrowser.FIREFOX) |
15717 @SupportedBrowser(SupportedBrowser.IE, '10') | 16965 @SupportedBrowser(SupportedBrowser.IE, '10') |
15718 @SupportedBrowser(SupportedBrowser.SAFARI) | 16966 @SupportedBrowser(SupportedBrowser.SAFARI) |
15719 class ProgressElement extends Element native "*HTMLProgressElement" { | 16967 class ProgressElement extends Element native "*HTMLProgressElement" { |
15720 | 16968 |
15721 ///@docsEditable true | 16969 /// @docsEditable true |
15722 factory ProgressElement() => document.$dom_createElement("progress"); | 16970 factory ProgressElement() => document.$dom_createElement("progress"); |
15723 | 16971 |
15724 /// Checks if this type is supported on the current platform. | 16972 /// Checks if this type is supported on the current platform. |
15725 static bool get supported => Element.isTagSupported('progress'); | 16973 static bool get supported => Element.isTagSupported('progress'); |
15726 | 16974 |
15727 /// @domName HTMLProgressElement.labels; @docsEditable true | 16975 /// @docsEditable true |
| 16976 @DomName("HTMLProgressElement.labels") |
15728 @Returns('NodeList') @Creates('NodeList') | 16977 @Returns('NodeList') @Creates('NodeList') |
15729 final List<Node> labels; | 16978 final List<Node> labels; |
15730 | 16979 |
15731 /// @domName HTMLProgressElement.max; @docsEditable true | 16980 /// @docsEditable true |
| 16981 @DomName("HTMLProgressElement.max") |
15732 num max; | 16982 num max; |
15733 | 16983 |
15734 /// @domName HTMLProgressElement.position; @docsEditable true | 16984 /// @docsEditable true |
| 16985 @DomName("HTMLProgressElement.position") |
15735 final num position; | 16986 final num position; |
15736 | 16987 |
15737 /// @domName HTMLProgressElement.value; @docsEditable true | 16988 /// @docsEditable true |
| 16989 @DomName("HTMLProgressElement.value") |
15738 num value; | 16990 num value; |
15739 } | 16991 } |
15740 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16992 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15741 // for details. All rights reserved. Use of this source code is governed by a | 16993 // for details. All rights reserved. Use of this source code is governed by a |
15742 // BSD-style license that can be found in the LICENSE file. | 16994 // BSD-style license that can be found in the LICENSE file. |
15743 | 16995 |
15744 | 16996 |
15745 /// @domName ProgressEvent; @docsEditable true | 16997 /// @docsEditable true |
| 16998 @DomName("ProgressEvent") |
15746 class ProgressEvent extends Event native "*ProgressEvent" { | 16999 class ProgressEvent extends Event native "*ProgressEvent" { |
15747 | 17000 |
15748 /// @domName ProgressEvent.lengthComputable; @docsEditable true | 17001 /// @docsEditable true |
| 17002 @DomName("ProgressEvent.lengthComputable") |
15749 final bool lengthComputable; | 17003 final bool lengthComputable; |
15750 | 17004 |
15751 /// @domName ProgressEvent.loaded; @docsEditable true | 17005 /// @docsEditable true |
| 17006 @DomName("ProgressEvent.loaded") |
15752 final int loaded; | 17007 final int loaded; |
15753 | 17008 |
15754 /// @domName ProgressEvent.total; @docsEditable true | 17009 /// @docsEditable true |
| 17010 @DomName("ProgressEvent.total") |
15755 final int total; | 17011 final int total; |
15756 } | 17012 } |
15757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15758 // for details. All rights reserved. Use of this source code is governed by a | 17014 // for details. All rights reserved. Use of this source code is governed by a |
15759 // BSD-style license that can be found in the LICENSE file. | 17015 // BSD-style license that can be found in the LICENSE file. |
15760 | 17016 |
15761 | 17017 |
15762 /// @domName HTMLQuoteElement; @docsEditable true | 17018 /// @docsEditable true |
| 17019 @DomName("HTMLQuoteElement") |
15763 class QuoteElement extends Element native "*HTMLQuoteElement" { | 17020 class QuoteElement extends Element native "*HTMLQuoteElement" { |
15764 | 17021 |
15765 /// @domName HTMLQuoteElement.cite; @docsEditable true | 17022 /// @docsEditable true |
| 17023 @DomName("HTMLQuoteElement.cite") |
15766 String cite; | 17024 String cite; |
15767 } | 17025 } |
15768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15769 // for details. All rights reserved. Use of this source code is governed by a | 17027 // for details. All rights reserved. Use of this source code is governed by a |
15770 // BSD-style license that can be found in the LICENSE file. | 17028 // BSD-style license that can be found in the LICENSE file. |
15771 | 17029 |
15772 // WARNING: Do not edit - generated code. | 17030 // WARNING: Do not edit - generated code. |
15773 | 17031 |
15774 | 17032 |
15775 typedef void RtcErrorCallback(String errorInformation); | 17033 typedef void RtcErrorCallback(String errorInformation); |
(...skipping 11 matching lines...) Expand all Loading... |
15787 | 17045 |
15788 // WARNING: Do not edit - generated code. | 17046 // WARNING: Do not edit - generated code. |
15789 | 17047 |
15790 | 17048 |
15791 typedef void RtcStatsCallback(RtcStatsResponse response); | 17049 typedef void RtcStatsCallback(RtcStatsResponse response); |
15792 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17050 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15793 // for details. All rights reserved. Use of this source code is governed by a | 17051 // for details. All rights reserved. Use of this source code is governed by a |
15794 // BSD-style license that can be found in the LICENSE file. | 17052 // BSD-style license that can be found in the LICENSE file. |
15795 | 17053 |
15796 | 17054 |
15797 /// @domName RadioNodeList; @docsEditable true | 17055 /// @docsEditable true |
| 17056 @DomName("RadioNodeList") |
15798 class RadioNodeList extends NodeList native "*RadioNodeList" { | 17057 class RadioNodeList extends NodeList native "*RadioNodeList" { |
15799 | 17058 |
15800 /// @domName RadioNodeList.value; @docsEditable true | 17059 /// @docsEditable true |
| 17060 @DomName("RadioNodeList.value") |
15801 String value; | 17061 String value; |
15802 } | 17062 } |
15803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15804 // for details. All rights reserved. Use of this source code is governed by a | 17064 // for details. All rights reserved. Use of this source code is governed by a |
15805 // BSD-style license that can be found in the LICENSE file. | 17065 // BSD-style license that can be found in the LICENSE file. |
15806 | 17066 |
15807 // WARNING: Do not edit - generated code. | 17067 // WARNING: Do not edit - generated code. |
15808 | 17068 |
15809 | 17069 |
15810 /// @domName Range | 17070 @DomName("Range") |
15811 class Range native "*Range" { | 17071 class Range native "*Range" { |
15812 factory Range() => document.$dom_createRange(); | 17072 factory Range() => document.$dom_createRange(); |
15813 | 17073 |
15814 | 17074 |
15815 static const int END_TO_END = 2; | 17075 static const int END_TO_END = 2; |
15816 | 17076 |
15817 static const int END_TO_START = 3; | 17077 static const int END_TO_START = 3; |
15818 | 17078 |
15819 static const int NODE_AFTER = 1; | 17079 static const int NODE_AFTER = 1; |
15820 | 17080 |
15821 static const int NODE_BEFORE = 0; | 17081 static const int NODE_BEFORE = 0; |
15822 | 17082 |
15823 static const int NODE_BEFORE_AND_AFTER = 2; | 17083 static const int NODE_BEFORE_AND_AFTER = 2; |
15824 | 17084 |
15825 static const int NODE_INSIDE = 3; | 17085 static const int NODE_INSIDE = 3; |
15826 | 17086 |
15827 static const int START_TO_END = 1; | 17087 static const int START_TO_END = 1; |
15828 | 17088 |
15829 static const int START_TO_START = 0; | 17089 static const int START_TO_START = 0; |
15830 | 17090 |
15831 /// @domName Range.collapsed; @docsEditable true | 17091 /// @docsEditable true |
| 17092 @DomName("Range.collapsed") |
15832 final bool collapsed; | 17093 final bool collapsed; |
15833 | 17094 |
15834 /// @domName Range.commonAncestorContainer; @docsEditable true | 17095 /// @docsEditable true |
| 17096 @DomName("Range.commonAncestorContainer") |
15835 final Node commonAncestorContainer; | 17097 final Node commonAncestorContainer; |
15836 | 17098 |
15837 /// @domName Range.endContainer; @docsEditable true | 17099 /// @docsEditable true |
| 17100 @DomName("Range.endContainer") |
15838 final Node endContainer; | 17101 final Node endContainer; |
15839 | 17102 |
15840 /// @domName Range.endOffset; @docsEditable true | 17103 /// @docsEditable true |
| 17104 @DomName("Range.endOffset") |
15841 final int endOffset; | 17105 final int endOffset; |
15842 | 17106 |
15843 /// @domName Range.startContainer; @docsEditable true | 17107 /// @docsEditable true |
| 17108 @DomName("Range.startContainer") |
15844 final Node startContainer; | 17109 final Node startContainer; |
15845 | 17110 |
15846 /// @domName Range.startOffset; @docsEditable true | 17111 /// @docsEditable true |
| 17112 @DomName("Range.startOffset") |
15847 final int startOffset; | 17113 final int startOffset; |
15848 | 17114 |
15849 /// @domName Range.cloneContents; @docsEditable true | 17115 /// @docsEditable true |
| 17116 @DomName("Range.cloneContents") |
15850 DocumentFragment cloneContents() native; | 17117 DocumentFragment cloneContents() native; |
15851 | 17118 |
15852 /// @domName Range.cloneRange; @docsEditable true | 17119 /// @docsEditable true |
| 17120 @DomName("Range.cloneRange") |
15853 Range cloneRange() native; | 17121 Range cloneRange() native; |
15854 | 17122 |
15855 /// @domName Range.collapse; @docsEditable true | 17123 /// @docsEditable true |
| 17124 @DomName("Range.collapse") |
15856 void collapse(bool toStart) native; | 17125 void collapse(bool toStart) native; |
15857 | 17126 |
15858 /// @domName Range.compareNode; @docsEditable true | 17127 /// @docsEditable true |
| 17128 @DomName("Range.compareNode") |
15859 int compareNode(Node refNode) native; | 17129 int compareNode(Node refNode) native; |
15860 | 17130 |
15861 /// @domName Range.comparePoint; @docsEditable true | 17131 /// @docsEditable true |
| 17132 @DomName("Range.comparePoint") |
15862 int comparePoint(Node refNode, int offset) native; | 17133 int comparePoint(Node refNode, int offset) native; |
15863 | 17134 |
15864 /// @domName Range.createContextualFragment; @docsEditable true | 17135 /// @docsEditable true |
| 17136 @DomName("Range.createContextualFragment") |
15865 DocumentFragment createContextualFragment(String html) native; | 17137 DocumentFragment createContextualFragment(String html) native; |
15866 | 17138 |
15867 /// @domName Range.deleteContents; @docsEditable true | 17139 /// @docsEditable true |
| 17140 @DomName("Range.deleteContents") |
15868 void deleteContents() native; | 17141 void deleteContents() native; |
15869 | 17142 |
15870 /// @domName Range.detach; @docsEditable true | 17143 /// @docsEditable true |
| 17144 @DomName("Range.detach") |
15871 void detach() native; | 17145 void detach() native; |
15872 | 17146 |
15873 /// @domName Range.expand; @docsEditable true | 17147 /// @docsEditable true |
| 17148 @DomName("Range.expand") |
15874 void expand(String unit) native; | 17149 void expand(String unit) native; |
15875 | 17150 |
15876 /// @domName Range.extractContents; @docsEditable true | 17151 /// @docsEditable true |
| 17152 @DomName("Range.extractContents") |
15877 DocumentFragment extractContents() native; | 17153 DocumentFragment extractContents() native; |
15878 | 17154 |
15879 /// @domName Range.getBoundingClientRect; @docsEditable true | 17155 /// @docsEditable true |
| 17156 @DomName("Range.getBoundingClientRect") |
15880 ClientRect getBoundingClientRect() native; | 17157 ClientRect getBoundingClientRect() native; |
15881 | 17158 |
15882 /// @domName Range.getClientRects; @docsEditable true | 17159 /// @docsEditable true |
| 17160 @DomName("Range.getClientRects") |
15883 @Returns('_ClientRectList') @Creates('_ClientRectList') | 17161 @Returns('_ClientRectList') @Creates('_ClientRectList') |
15884 List<ClientRect> getClientRects() native; | 17162 List<ClientRect> getClientRects() native; |
15885 | 17163 |
15886 /// @domName Range.insertNode; @docsEditable true | 17164 /// @docsEditable true |
| 17165 @DomName("Range.insertNode") |
15887 void insertNode(Node newNode) native; | 17166 void insertNode(Node newNode) native; |
15888 | 17167 |
15889 /// @domName Range.intersectsNode; @docsEditable true | 17168 /// @docsEditable true |
| 17169 @DomName("Range.intersectsNode") |
15890 bool intersectsNode(Node refNode) native; | 17170 bool intersectsNode(Node refNode) native; |
15891 | 17171 |
15892 /// @domName Range.isPointInRange; @docsEditable true | 17172 /// @docsEditable true |
| 17173 @DomName("Range.isPointInRange") |
15893 bool isPointInRange(Node refNode, int offset) native; | 17174 bool isPointInRange(Node refNode, int offset) native; |
15894 | 17175 |
15895 /// @domName Range.selectNode; @docsEditable true | 17176 /// @docsEditable true |
| 17177 @DomName("Range.selectNode") |
15896 void selectNode(Node refNode) native; | 17178 void selectNode(Node refNode) native; |
15897 | 17179 |
15898 /// @domName Range.selectNodeContents; @docsEditable true | 17180 /// @docsEditable true |
| 17181 @DomName("Range.selectNodeContents") |
15899 void selectNodeContents(Node refNode) native; | 17182 void selectNodeContents(Node refNode) native; |
15900 | 17183 |
15901 /// @domName Range.setEnd; @docsEditable true | 17184 /// @docsEditable true |
| 17185 @DomName("Range.setEnd") |
15902 void setEnd(Node refNode, int offset) native; | 17186 void setEnd(Node refNode, int offset) native; |
15903 | 17187 |
15904 /// @domName Range.setEndAfter; @docsEditable true | 17188 /// @docsEditable true |
| 17189 @DomName("Range.setEndAfter") |
15905 void setEndAfter(Node refNode) native; | 17190 void setEndAfter(Node refNode) native; |
15906 | 17191 |
15907 /// @domName Range.setEndBefore; @docsEditable true | 17192 /// @docsEditable true |
| 17193 @DomName("Range.setEndBefore") |
15908 void setEndBefore(Node refNode) native; | 17194 void setEndBefore(Node refNode) native; |
15909 | 17195 |
15910 /// @domName Range.setStart; @docsEditable true | 17196 /// @docsEditable true |
| 17197 @DomName("Range.setStart") |
15911 void setStart(Node refNode, int offset) native; | 17198 void setStart(Node refNode, int offset) native; |
15912 | 17199 |
15913 /// @domName Range.setStartAfter; @docsEditable true | 17200 /// @docsEditable true |
| 17201 @DomName("Range.setStartAfter") |
15914 void setStartAfter(Node refNode) native; | 17202 void setStartAfter(Node refNode) native; |
15915 | 17203 |
15916 /// @domName Range.setStartBefore; @docsEditable true | 17204 /// @docsEditable true |
| 17205 @DomName("Range.setStartBefore") |
15917 void setStartBefore(Node refNode) native; | 17206 void setStartBefore(Node refNode) native; |
15918 | 17207 |
15919 /// @domName Range.surroundContents; @docsEditable true | 17208 /// @docsEditable true |
| 17209 @DomName("Range.surroundContents") |
15920 void surroundContents(Node newParent) native; | 17210 void surroundContents(Node newParent) native; |
15921 | 17211 |
15922 /// @domName Range.toString; @docsEditable true | 17212 /// @docsEditable true |
| 17213 @DomName("Range.toString") |
15923 String toString() native; | 17214 String toString() native; |
15924 | 17215 |
15925 } | 17216 } |
15926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17217 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15927 // for details. All rights reserved. Use of this source code is governed by a | 17218 // for details. All rights reserved. Use of this source code is governed by a |
15928 // BSD-style license that can be found in the LICENSE file. | 17219 // BSD-style license that can be found in the LICENSE file. |
15929 | 17220 |
15930 | 17221 |
15931 /// @domName RangeException; @docsEditable true | 17222 /// @docsEditable true |
| 17223 @DomName("RangeException") |
15932 class RangeException native "*RangeException" { | 17224 class RangeException native "*RangeException" { |
15933 | 17225 |
15934 static const int BAD_BOUNDARYPOINTS_ERR = 1; | 17226 static const int BAD_BOUNDARYPOINTS_ERR = 1; |
15935 | 17227 |
15936 static const int INVALID_NODE_TYPE_ERR = 2; | 17228 static const int INVALID_NODE_TYPE_ERR = 2; |
15937 | 17229 |
15938 /// @domName RangeException.code; @docsEditable true | 17230 /// @docsEditable true |
| 17231 @DomName("RangeException.code") |
15939 final int code; | 17232 final int code; |
15940 | 17233 |
15941 /// @domName RangeException.message; @docsEditable true | 17234 /// @docsEditable true |
| 17235 @DomName("RangeException.message") |
15942 final String message; | 17236 final String message; |
15943 | 17237 |
15944 /// @domName RangeException.name; @docsEditable true | 17238 /// @docsEditable true |
| 17239 @DomName("RangeException.name") |
15945 final String name; | 17240 final String name; |
15946 | 17241 |
15947 /// @domName RangeException.toString; @docsEditable true | 17242 /// @docsEditable true |
| 17243 @DomName("RangeException.toString") |
15948 String toString() native; | 17244 String toString() native; |
15949 } | 17245 } |
15950 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15951 // for details. All rights reserved. Use of this source code is governed by a | 17247 // for details. All rights reserved. Use of this source code is governed by a |
15952 // BSD-style license that can be found in the LICENSE file. | 17248 // BSD-style license that can be found in the LICENSE file. |
15953 | 17249 |
15954 | 17250 |
15955 /// @domName Rect; @docsEditable true | 17251 /// @docsEditable true |
| 17252 @DomName("Rect") |
15956 class Rect native "*Rect" { | 17253 class Rect native "*Rect" { |
15957 | 17254 |
15958 /// @domName Rect.bottom; @docsEditable true | 17255 /// @docsEditable true |
| 17256 @DomName("Rect.bottom") |
15959 final CssPrimitiveValue bottom; | 17257 final CssPrimitiveValue bottom; |
15960 | 17258 |
15961 /// @domName Rect.left; @docsEditable true | 17259 /// @docsEditable true |
| 17260 @DomName("Rect.left") |
15962 final CssPrimitiveValue left; | 17261 final CssPrimitiveValue left; |
15963 | 17262 |
15964 /// @domName Rect.right; @docsEditable true | 17263 /// @docsEditable true |
| 17264 @DomName("Rect.right") |
15965 final CssPrimitiveValue right; | 17265 final CssPrimitiveValue right; |
15966 | 17266 |
15967 /// @domName Rect.top; @docsEditable true | 17267 /// @docsEditable true |
| 17268 @DomName("Rect.top") |
15968 final CssPrimitiveValue top; | 17269 final CssPrimitiveValue top; |
15969 } | 17270 } |
15970 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15971 // for details. All rights reserved. Use of this source code is governed by a | 17272 // for details. All rights reserved. Use of this source code is governed by a |
15972 // BSD-style license that can be found in the LICENSE file. | 17273 // BSD-style license that can be found in the LICENSE file. |
15973 | 17274 |
15974 // WARNING: Do not edit - generated code. | 17275 // WARNING: Do not edit - generated code. |
15975 | 17276 |
15976 | 17277 |
15977 typedef void RequestAnimationFrameCallback(num highResTime); | 17278 typedef void RequestAnimationFrameCallback(num highResTime); |
15978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15979 // for details. All rights reserved. Use of this source code is governed by a | 17280 // for details. All rights reserved. Use of this source code is governed by a |
15980 // BSD-style license that can be found in the LICENSE file. | 17281 // BSD-style license that can be found in the LICENSE file. |
15981 | 17282 |
15982 | 17283 |
15983 /// @domName RGBColor; @docsEditable true | 17284 /// @docsEditable true |
| 17285 @DomName("RGBColor") |
15984 class RgbColor native "*RGBColor" { | 17286 class RgbColor native "*RGBColor" { |
15985 | 17287 |
15986 /// @domName RGBColor.blue; @docsEditable true | 17288 /// @docsEditable true |
| 17289 @DomName("RGBColor.blue") |
15987 final CssPrimitiveValue blue; | 17290 final CssPrimitiveValue blue; |
15988 | 17291 |
15989 /// @domName RGBColor.green; @docsEditable true | 17292 /// @docsEditable true |
| 17293 @DomName("RGBColor.green") |
15990 final CssPrimitiveValue green; | 17294 final CssPrimitiveValue green; |
15991 | 17295 |
15992 /// @domName RGBColor.red; @docsEditable true | 17296 /// @docsEditable true |
| 17297 @DomName("RGBColor.red") |
15993 final CssPrimitiveValue red; | 17298 final CssPrimitiveValue red; |
15994 } | 17299 } |
15995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15996 // for details. All rights reserved. Use of this source code is governed by a | 17301 // for details. All rights reserved. Use of this source code is governed by a |
15997 // BSD-style license that can be found in the LICENSE file. | 17302 // BSD-style license that can be found in the LICENSE file. |
15998 | 17303 |
15999 | 17304 |
16000 /// @domName RTCDataChannel; @docsEditable true | 17305 /// @docsEditable true |
| 17306 @DomName("RTCDataChannel") |
16001 class RtcDataChannel extends EventTarget native "*RTCDataChannel" { | 17307 class RtcDataChannel extends EventTarget native "*RTCDataChannel" { |
16002 | 17308 |
16003 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 17309 /// @docsEditable true |
| 17310 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
16004 RtcDataChannelEvents get on => | 17311 RtcDataChannelEvents get on => |
16005 new RtcDataChannelEvents(this); | 17312 new RtcDataChannelEvents(this); |
16006 | 17313 |
16007 /// @domName RTCDataChannel.binaryType; @docsEditable true | 17314 /// @docsEditable true |
| 17315 @DomName("RTCDataChannel.binaryType") |
16008 String binaryType; | 17316 String binaryType; |
16009 | 17317 |
16010 /// @domName RTCDataChannel.bufferedAmount; @docsEditable true | 17318 /// @docsEditable true |
| 17319 @DomName("RTCDataChannel.bufferedAmount") |
16011 final int bufferedAmount; | 17320 final int bufferedAmount; |
16012 | 17321 |
16013 /// @domName RTCDataChannel.label; @docsEditable true | 17322 /// @docsEditable true |
| 17323 @DomName("RTCDataChannel.label") |
16014 final String label; | 17324 final String label; |
16015 | 17325 |
16016 /// @domName RTCDataChannel.readyState; @docsEditable true | 17326 /// @docsEditable true |
| 17327 @DomName("RTCDataChannel.readyState") |
16017 final String readyState; | 17328 final String readyState; |
16018 | 17329 |
16019 /// @domName RTCDataChannel.reliable; @docsEditable true | 17330 /// @docsEditable true |
| 17331 @DomName("RTCDataChannel.reliable") |
16020 final bool reliable; | 17332 final bool reliable; |
16021 | 17333 |
16022 /// @domName RTCDataChannel.addEventListener; @docsEditable true | 17334 /// @docsEditable true |
16023 @JSName('addEventListener') | 17335 @JSName('addEventListener') |
| 17336 @DomName("RTCDataChannel.addEventListener") |
16024 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 17337 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
16025 | 17338 |
16026 /// @domName RTCDataChannel.close; @docsEditable true | 17339 /// @docsEditable true |
| 17340 @DomName("RTCDataChannel.close") |
16027 void close() native; | 17341 void close() native; |
16028 | 17342 |
16029 /// @domName RTCDataChannel.dispatchEvent; @docsEditable true | 17343 /// @docsEditable true |
16030 @JSName('dispatchEvent') | 17344 @JSName('dispatchEvent') |
| 17345 @DomName("RTCDataChannel.dispatchEvent") |
16031 bool $dom_dispatchEvent(Event event) native; | 17346 bool $dom_dispatchEvent(Event event) native; |
16032 | 17347 |
16033 /// @domName RTCDataChannel.removeEventListener; @docsEditable true | 17348 /// @docsEditable true |
16034 @JSName('removeEventListener') | 17349 @JSName('removeEventListener') |
| 17350 @DomName("RTCDataChannel.removeEventListener") |
16035 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 17351 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
16036 | 17352 |
16037 /// @domName RTCDataChannel.send; @docsEditable true | 17353 /// @docsEditable true |
| 17354 @DomName("RTCDataChannel.send") |
16038 void send(data) native; | 17355 void send(data) native; |
16039 } | 17356 } |
16040 | 17357 |
16041 /// @docsEditable true | 17358 /// @docsEditable true |
16042 class RtcDataChannelEvents extends Events { | 17359 class RtcDataChannelEvents extends Events { |
16043 /// @docsEditable true | 17360 /// @docsEditable true |
16044 RtcDataChannelEvents(EventTarget _ptr) : super(_ptr); | 17361 RtcDataChannelEvents(EventTarget _ptr) : super(_ptr); |
16045 | 17362 |
16046 /// @docsEditable true | 17363 /// @docsEditable true |
16047 EventListenerList get close => this['close']; | 17364 EventListenerList get close => this['close']; |
16048 | 17365 |
16049 /// @docsEditable true | 17366 /// @docsEditable true |
16050 EventListenerList get error => this['error']; | 17367 EventListenerList get error => this['error']; |
16051 | 17368 |
16052 /// @docsEditable true | 17369 /// @docsEditable true |
16053 EventListenerList get message => this['message']; | 17370 EventListenerList get message => this['message']; |
16054 | 17371 |
16055 /// @docsEditable true | 17372 /// @docsEditable true |
16056 EventListenerList get open => this['open']; | 17373 EventListenerList get open => this['open']; |
16057 } | 17374 } |
16058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16059 // for details. All rights reserved. Use of this source code is governed by a | 17376 // for details. All rights reserved. Use of this source code is governed by a |
16060 // BSD-style license that can be found in the LICENSE file. | 17377 // BSD-style license that can be found in the LICENSE file. |
16061 | 17378 |
16062 | 17379 |
16063 /// @domName RTCDataChannelEvent; @docsEditable true | 17380 /// @docsEditable true |
| 17381 @DomName("RTCDataChannelEvent") |
16064 class RtcDataChannelEvent extends Event native "*RTCDataChannelEvent" { | 17382 class RtcDataChannelEvent extends Event native "*RTCDataChannelEvent" { |
16065 | 17383 |
16066 /// @domName RTCDataChannelEvent.channel; @docsEditable true | 17384 /// @docsEditable true |
| 17385 @DomName("RTCDataChannelEvent.channel") |
16067 final RtcDataChannel channel; | 17386 final RtcDataChannel channel; |
16068 } | 17387 } |
16069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16070 // for details. All rights reserved. Use of this source code is governed by a | 17389 // for details. All rights reserved. Use of this source code is governed by a |
16071 // BSD-style license that can be found in the LICENSE file. | 17390 // BSD-style license that can be found in the LICENSE file. |
16072 | 17391 |
16073 | 17392 |
16074 /// @domName RTCIceCandidate; @docsEditable true | 17393 /// @docsEditable true |
| 17394 @DomName("RTCIceCandidate") |
16075 class RtcIceCandidate native "*RTCIceCandidate" { | 17395 class RtcIceCandidate native "*RTCIceCandidate" { |
16076 | 17396 |
16077 ///@docsEditable true | 17397 /// @docsEditable true |
16078 factory RtcIceCandidate(Map dictionary) => RtcIceCandidate._create(dictionary)
; | 17398 factory RtcIceCandidate(Map dictionary) => RtcIceCandidate._create(dictionary)
; |
16079 static RtcIceCandidate _create(Map dictionary) => JS('RtcIceCandidate', 'new R
TCIceCandidate(#)', dictionary); | 17399 static RtcIceCandidate _create(Map dictionary) => JS('RtcIceCandidate', 'new R
TCIceCandidate(#)', dictionary); |
16080 | 17400 |
16081 /// @domName RTCIceCandidate.candidate; @docsEditable true | 17401 /// @docsEditable true |
| 17402 @DomName("RTCIceCandidate.candidate") |
16082 final String candidate; | 17403 final String candidate; |
16083 | 17404 |
16084 /// @domName RTCIceCandidate.sdpMLineIndex; @docsEditable true | 17405 /// @docsEditable true |
| 17406 @DomName("RTCIceCandidate.sdpMLineIndex") |
16085 final int sdpMLineIndex; | 17407 final int sdpMLineIndex; |
16086 | 17408 |
16087 /// @domName RTCIceCandidate.sdpMid; @docsEditable true | 17409 /// @docsEditable true |
| 17410 @DomName("RTCIceCandidate.sdpMid") |
16088 final String sdpMid; | 17411 final String sdpMid; |
16089 } | 17412 } |
16090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17413 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16091 // for details. All rights reserved. Use of this source code is governed by a | 17414 // for details. All rights reserved. Use of this source code is governed by a |
16092 // BSD-style license that can be found in the LICENSE file. | 17415 // BSD-style license that can be found in the LICENSE file. |
16093 | 17416 |
16094 | 17417 |
16095 /// @domName RTCIceCandidateEvent; @docsEditable true | 17418 /// @docsEditable true |
| 17419 @DomName("RTCIceCandidateEvent") |
16096 class RtcIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { | 17420 class RtcIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { |
16097 | 17421 |
16098 /// @domName RTCIceCandidateEvent.candidate; @docsEditable true | 17422 /// @docsEditable true |
| 17423 @DomName("RTCIceCandidateEvent.candidate") |
16099 final RtcIceCandidate candidate; | 17424 final RtcIceCandidate candidate; |
16100 } | 17425 } |
16101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16102 // for details. All rights reserved. Use of this source code is governed by a | 17427 // for details. All rights reserved. Use of this source code is governed by a |
16103 // BSD-style license that can be found in the LICENSE file. | 17428 // BSD-style license that can be found in the LICENSE file. |
16104 | 17429 |
16105 | 17430 |
16106 /// @domName RTCPeerConnection; @docsEditable true | 17431 /// @docsEditable true |
| 17432 @DomName("RTCPeerConnection") |
16107 class RtcPeerConnection extends EventTarget native "*RTCPeerConnection" { | 17433 class RtcPeerConnection extends EventTarget native "*RTCPeerConnection" { |
16108 | 17434 |
16109 ///@docsEditable true | 17435 /// @docsEditable true |
16110 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { | 17436 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { |
16111 if (!?mediaConstraints) { | 17437 if (!?mediaConstraints) { |
16112 return RtcPeerConnection._create(rtcIceServers); | 17438 return RtcPeerConnection._create(rtcIceServers); |
16113 } | 17439 } |
16114 return RtcPeerConnection._create(rtcIceServers, mediaConstraints); | 17440 return RtcPeerConnection._create(rtcIceServers, mediaConstraints); |
16115 } | 17441 } |
16116 static RtcPeerConnection _create(Map rtcIceServers, [Map mediaConstraints]) { | 17442 static RtcPeerConnection _create(Map rtcIceServers, [Map mediaConstraints]) { |
16117 if (!?mediaConstraints) { | 17443 if (!?mediaConstraints) { |
16118 return JS('RtcPeerConnection', 'new RTCPeerConnection(#)', rtcIceServers); | 17444 return JS('RtcPeerConnection', 'new RTCPeerConnection(#)', rtcIceServers); |
16119 } | 17445 } |
16120 return JS('RtcPeerConnection', 'new RTCPeerConnection(#,#)', rtcIceServers,
mediaConstraints); | 17446 return JS('RtcPeerConnection', 'new RTCPeerConnection(#,#)', rtcIceServers,
mediaConstraints); |
16121 } | 17447 } |
16122 | 17448 |
16123 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 17449 /// @docsEditable true |
| 17450 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
16124 RtcPeerConnectionEvents get on => | 17451 RtcPeerConnectionEvents get on => |
16125 new RtcPeerConnectionEvents(this); | 17452 new RtcPeerConnectionEvents(this); |
16126 | 17453 |
16127 /// @domName RTCPeerConnection.iceGatheringState; @docsEditable true | 17454 /// @docsEditable true |
| 17455 @DomName("RTCPeerConnection.iceGatheringState") |
16128 final String iceGatheringState; | 17456 final String iceGatheringState; |
16129 | 17457 |
16130 /// @domName RTCPeerConnection.iceState; @docsEditable true | 17458 /// @docsEditable true |
| 17459 @DomName("RTCPeerConnection.iceState") |
16131 final String iceState; | 17460 final String iceState; |
16132 | 17461 |
16133 /// @domName RTCPeerConnection.localDescription; @docsEditable true | 17462 /// @docsEditable true |
| 17463 @DomName("RTCPeerConnection.localDescription") |
16134 final RtcSessionDescription localDescription; | 17464 final RtcSessionDescription localDescription; |
16135 | 17465 |
16136 /// @domName RTCPeerConnection.localStreams; @docsEditable true | 17466 /// @docsEditable true |
| 17467 @DomName("RTCPeerConnection.localStreams") |
16137 @Returns('_MediaStreamList') @Creates('_MediaStreamList') | 17468 @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
16138 final List<MediaStream> localStreams; | 17469 final List<MediaStream> localStreams; |
16139 | 17470 |
16140 /// @domName RTCPeerConnection.readyState; @docsEditable true | 17471 /// @docsEditable true |
| 17472 @DomName("RTCPeerConnection.readyState") |
16141 final String readyState; | 17473 final String readyState; |
16142 | 17474 |
16143 /// @domName RTCPeerConnection.remoteDescription; @docsEditable true | 17475 /// @docsEditable true |
| 17476 @DomName("RTCPeerConnection.remoteDescription") |
16144 final RtcSessionDescription remoteDescription; | 17477 final RtcSessionDescription remoteDescription; |
16145 | 17478 |
16146 /// @domName RTCPeerConnection.remoteStreams; @docsEditable true | 17479 /// @docsEditable true |
| 17480 @DomName("RTCPeerConnection.remoteStreams") |
16147 @Returns('_MediaStreamList') @Creates('_MediaStreamList') | 17481 @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
16148 final List<MediaStream> remoteStreams; | 17482 final List<MediaStream> remoteStreams; |
16149 | 17483 |
16150 /// @domName RTCPeerConnection.addEventListener; @docsEditable true | 17484 /// @docsEditable true |
16151 @JSName('addEventListener') | 17485 @JSName('addEventListener') |
| 17486 @DomName("RTCPeerConnection.addEventListener") |
16152 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 17487 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
16153 | 17488 |
16154 /// @domName RTCPeerConnection.addIceCandidate; @docsEditable true | 17489 /// @docsEditable true |
| 17490 @DomName("RTCPeerConnection.addIceCandidate") |
16155 void addIceCandidate(RtcIceCandidate candidate) native; | 17491 void addIceCandidate(RtcIceCandidate candidate) native; |
16156 | 17492 |
16157 /// @domName RTCPeerConnection.addStream; @docsEditable true | 17493 /// @docsEditable true |
16158 void addStream(MediaStream stream, [Map mediaConstraints]) { | 17494 void addStream(MediaStream stream, [Map mediaConstraints]) { |
16159 if (?mediaConstraints) { | 17495 if (?mediaConstraints) { |
16160 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 17496 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
16161 _addStream_1(stream, mediaConstraints_1); | 17497 _addStream_1(stream, mediaConstraints_1); |
16162 return; | 17498 return; |
16163 } | 17499 } |
16164 _addStream_2(stream); | 17500 _addStream_2(stream); |
16165 return; | 17501 return; |
16166 } | 17502 } |
16167 @JSName('addStream') | 17503 @JSName('addStream') |
| 17504 @DomName("RTCPeerConnection.addStream") |
16168 void _addStream_1(MediaStream stream, mediaConstraints) native; | 17505 void _addStream_1(MediaStream stream, mediaConstraints) native; |
16169 @JSName('addStream') | 17506 @JSName('addStream') |
| 17507 @DomName("RTCPeerConnection.addStream") |
16170 void _addStream_2(MediaStream stream) native; | 17508 void _addStream_2(MediaStream stream) native; |
16171 | 17509 |
16172 /// @domName RTCPeerConnection.close; @docsEditable true | 17510 /// @docsEditable true |
| 17511 @DomName("RTCPeerConnection.close") |
16173 void close() native; | 17512 void close() native; |
16174 | 17513 |
16175 /// @domName RTCPeerConnection.createAnswer; @docsEditable true | 17514 /// @docsEditable true |
16176 void createAnswer(RtcSessionDescriptionCallback successCallback, [RtcErrorCall
back failureCallback, Map mediaConstraints]) { | 17515 void createAnswer(RtcSessionDescriptionCallback successCallback, [RtcErrorCall
back failureCallback, Map mediaConstraints]) { |
16177 if (?mediaConstraints) { | 17516 if (?mediaConstraints) { |
16178 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 17517 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
16179 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 17518 _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
16180 return; | 17519 return; |
16181 } | 17520 } |
16182 _createAnswer_2(successCallback, failureCallback); | 17521 _createAnswer_2(successCallback, failureCallback); |
16183 return; | 17522 return; |
16184 } | 17523 } |
16185 @JSName('createAnswer') | 17524 @JSName('createAnswer') |
| 17525 @DomName("RTCPeerConnection.createAnswer") |
16186 void _createAnswer_1(RtcSessionDescriptionCallback successCallback, RtcErrorCa
llback failureCallback, mediaConstraints) native; | 17526 void _createAnswer_1(RtcSessionDescriptionCallback successCallback, RtcErrorCa
llback failureCallback, mediaConstraints) native; |
16187 @JSName('createAnswer') | 17527 @JSName('createAnswer') |
| 17528 @DomName("RTCPeerConnection.createAnswer") |
16188 void _createAnswer_2(RtcSessionDescriptionCallback successCallback, RtcErrorCa
llback failureCallback) native; | 17529 void _createAnswer_2(RtcSessionDescriptionCallback successCallback, RtcErrorCa
llback failureCallback) native; |
16189 | 17530 |
16190 /// @domName RTCPeerConnection.createDataChannel; @docsEditable true | 17531 /// @docsEditable true |
16191 RtcDataChannel createDataChannel(String label, [Map options]) { | 17532 RtcDataChannel createDataChannel(String label, [Map options]) { |
16192 if (?options) { | 17533 if (?options) { |
16193 var options_1 = convertDartToNative_Dictionary(options); | 17534 var options_1 = convertDartToNative_Dictionary(options); |
16194 return _createDataChannel_1(label, options_1); | 17535 return _createDataChannel_1(label, options_1); |
16195 } | 17536 } |
16196 return _createDataChannel_2(label); | 17537 return _createDataChannel_2(label); |
16197 } | 17538 } |
16198 @JSName('createDataChannel') | 17539 @JSName('createDataChannel') |
| 17540 @DomName("RTCPeerConnection.createDataChannel") |
16199 RtcDataChannel _createDataChannel_1(label, options) native; | 17541 RtcDataChannel _createDataChannel_1(label, options) native; |
16200 @JSName('createDataChannel') | 17542 @JSName('createDataChannel') |
| 17543 @DomName("RTCPeerConnection.createDataChannel") |
16201 RtcDataChannel _createDataChannel_2(label) native; | 17544 RtcDataChannel _createDataChannel_2(label) native; |
16202 | 17545 |
16203 /// @domName RTCPeerConnection.createOffer; @docsEditable true | 17546 /// @docsEditable true |
16204 void createOffer(RtcSessionDescriptionCallback successCallback, [RtcErrorCallb
ack failureCallback, Map mediaConstraints]) { | 17547 void createOffer(RtcSessionDescriptionCallback successCallback, [RtcErrorCallb
ack failureCallback, Map mediaConstraints]) { |
16205 if (?mediaConstraints) { | 17548 if (?mediaConstraints) { |
16206 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 17549 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
16207 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 17550 _createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
16208 return; | 17551 return; |
16209 } | 17552 } |
16210 _createOffer_2(successCallback, failureCallback); | 17553 _createOffer_2(successCallback, failureCallback); |
16211 return; | 17554 return; |
16212 } | 17555 } |
16213 @JSName('createOffer') | 17556 @JSName('createOffer') |
| 17557 @DomName("RTCPeerConnection.createOffer") |
16214 void _createOffer_1(RtcSessionDescriptionCallback successCallback, RtcErrorCal
lback failureCallback, mediaConstraints) native; | 17558 void _createOffer_1(RtcSessionDescriptionCallback successCallback, RtcErrorCal
lback failureCallback, mediaConstraints) native; |
16215 @JSName('createOffer') | 17559 @JSName('createOffer') |
| 17560 @DomName("RTCPeerConnection.createOffer") |
16216 void _createOffer_2(RtcSessionDescriptionCallback successCallback, RtcErrorCal
lback failureCallback) native; | 17561 void _createOffer_2(RtcSessionDescriptionCallback successCallback, RtcErrorCal
lback failureCallback) native; |
16217 | 17562 |
16218 /// @domName RTCPeerConnection.dispatchEvent; @docsEditable true | 17563 /// @docsEditable true |
16219 @JSName('dispatchEvent') | 17564 @JSName('dispatchEvent') |
| 17565 @DomName("RTCPeerConnection.dispatchEvent") |
16220 bool $dom_dispatchEvent(Event event) native; | 17566 bool $dom_dispatchEvent(Event event) native; |
16221 | 17567 |
16222 /// @domName RTCPeerConnection.getStats; @docsEditable true | 17568 /// @docsEditable true |
| 17569 @DomName("RTCPeerConnection.getStats") |
16223 void getStats(RtcStatsCallback successCallback, MediaStreamTrack selector) nat
ive; | 17570 void getStats(RtcStatsCallback successCallback, MediaStreamTrack selector) nat
ive; |
16224 | 17571 |
16225 /// @domName RTCPeerConnection.removeEventListener; @docsEditable true | 17572 /// @docsEditable true |
16226 @JSName('removeEventListener') | 17573 @JSName('removeEventListener') |
| 17574 @DomName("RTCPeerConnection.removeEventListener") |
16227 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 17575 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
16228 | 17576 |
16229 /// @domName RTCPeerConnection.removeStream; @docsEditable true | 17577 /// @docsEditable true |
| 17578 @DomName("RTCPeerConnection.removeStream") |
16230 void removeStream(MediaStream stream) native; | 17579 void removeStream(MediaStream stream) native; |
16231 | 17580 |
16232 /// @domName RTCPeerConnection.setLocalDescription; @docsEditable true | 17581 /// @docsEditable true |
| 17582 @DomName("RTCPeerConnection.setLocalDescription") |
16233 void setLocalDescription(RtcSessionDescription description, [VoidCallback succ
essCallback, RtcErrorCallback failureCallback]) native; | 17583 void setLocalDescription(RtcSessionDescription description, [VoidCallback succ
essCallback, RtcErrorCallback failureCallback]) native; |
16234 | 17584 |
16235 /// @domName RTCPeerConnection.setRemoteDescription; @docsEditable true | 17585 /// @docsEditable true |
| 17586 @DomName("RTCPeerConnection.setRemoteDescription") |
16236 void setRemoteDescription(RtcSessionDescription description, [VoidCallback suc
cessCallback, RtcErrorCallback failureCallback]) native; | 17587 void setRemoteDescription(RtcSessionDescription description, [VoidCallback suc
cessCallback, RtcErrorCallback failureCallback]) native; |
16237 | 17588 |
16238 /// @domName RTCPeerConnection.updateIce; @docsEditable true | 17589 /// @docsEditable true |
16239 void updateIce([Map configuration, Map mediaConstraints]) { | 17590 void updateIce([Map configuration, Map mediaConstraints]) { |
16240 if (?mediaConstraints) { | 17591 if (?mediaConstraints) { |
16241 var configuration_1 = convertDartToNative_Dictionary(configuration); | 17592 var configuration_1 = convertDartToNative_Dictionary(configuration); |
16242 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints); | 17593 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints); |
16243 _updateIce_1(configuration_1, mediaConstraints_2); | 17594 _updateIce_1(configuration_1, mediaConstraints_2); |
16244 return; | 17595 return; |
16245 } | 17596 } |
16246 if (?configuration) { | 17597 if (?configuration) { |
16247 var configuration_3 = convertDartToNative_Dictionary(configuration); | 17598 var configuration_3 = convertDartToNative_Dictionary(configuration); |
16248 _updateIce_2(configuration_3); | 17599 _updateIce_2(configuration_3); |
16249 return; | 17600 return; |
16250 } | 17601 } |
16251 _updateIce_3(); | 17602 _updateIce_3(); |
16252 return; | 17603 return; |
16253 } | 17604 } |
16254 @JSName('updateIce') | 17605 @JSName('updateIce') |
| 17606 @DomName("RTCPeerConnection.updateIce") |
16255 void _updateIce_1(configuration, mediaConstraints) native; | 17607 void _updateIce_1(configuration, mediaConstraints) native; |
16256 @JSName('updateIce') | 17608 @JSName('updateIce') |
| 17609 @DomName("RTCPeerConnection.updateIce") |
16257 void _updateIce_2(configuration) native; | 17610 void _updateIce_2(configuration) native; |
16258 @JSName('updateIce') | 17611 @JSName('updateIce') |
| 17612 @DomName("RTCPeerConnection.updateIce") |
16259 void _updateIce_3() native; | 17613 void _updateIce_3() native; |
16260 } | 17614 } |
16261 | 17615 |
16262 /// @docsEditable true | 17616 /// @docsEditable true |
16263 class RtcPeerConnectionEvents extends Events { | 17617 class RtcPeerConnectionEvents extends Events { |
16264 /// @docsEditable true | 17618 /// @docsEditable true |
16265 RtcPeerConnectionEvents(EventTarget _ptr) : super(_ptr); | 17619 RtcPeerConnectionEvents(EventTarget _ptr) : super(_ptr); |
16266 | 17620 |
16267 /// @docsEditable true | 17621 /// @docsEditable true |
16268 EventListenerList get addStream => this['addstream']; | 17622 EventListenerList get addStream => this['addstream']; |
(...skipping 14 matching lines...) Expand all Loading... |
16283 EventListenerList get removeStream => this['removestream']; | 17637 EventListenerList get removeStream => this['removestream']; |
16284 | 17638 |
16285 /// @docsEditable true | 17639 /// @docsEditable true |
16286 EventListenerList get stateChange => this['statechange']; | 17640 EventListenerList get stateChange => this['statechange']; |
16287 } | 17641 } |
16288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16289 // for details. All rights reserved. Use of this source code is governed by a | 17643 // for details. All rights reserved. Use of this source code is governed by a |
16290 // BSD-style license that can be found in the LICENSE file. | 17644 // BSD-style license that can be found in the LICENSE file. |
16291 | 17645 |
16292 | 17646 |
16293 /// @domName RTCSessionDescription; @docsEditable true | 17647 /// @docsEditable true |
| 17648 @DomName("RTCSessionDescription") |
16294 class RtcSessionDescription native "*RTCSessionDescription" { | 17649 class RtcSessionDescription native "*RTCSessionDescription" { |
16295 | 17650 |
16296 ///@docsEditable true | 17651 /// @docsEditable true |
16297 factory RtcSessionDescription(Map dictionary) => RtcSessionDescription._create
(dictionary); | 17652 factory RtcSessionDescription(Map dictionary) => RtcSessionDescription._create
(dictionary); |
16298 static RtcSessionDescription _create(Map dictionary) => JS('RtcSessionDescript
ion', 'new RTCSessionDescription(#)', dictionary); | 17653 static RtcSessionDescription _create(Map dictionary) => JS('RtcSessionDescript
ion', 'new RTCSessionDescription(#)', dictionary); |
16299 | 17654 |
16300 /// @domName RTCSessionDescription.sdp; @docsEditable true | 17655 /// @docsEditable true |
| 17656 @DomName("RTCSessionDescription.sdp") |
16301 String sdp; | 17657 String sdp; |
16302 | 17658 |
16303 /// @domName RTCSessionDescription.type; @docsEditable true | 17659 /// @docsEditable true |
| 17660 @DomName("RTCSessionDescription.type") |
16304 String type; | 17661 String type; |
16305 } | 17662 } |
16306 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16307 // for details. All rights reserved. Use of this source code is governed by a | 17664 // for details. All rights reserved. Use of this source code is governed by a |
16308 // BSD-style license that can be found in the LICENSE file. | 17665 // BSD-style license that can be found in the LICENSE file. |
16309 | 17666 |
16310 | 17667 |
16311 /// @domName RTCStatsElement; @docsEditable true | 17668 /// @docsEditable true |
| 17669 @DomName("RTCStatsElement") |
16312 class RtcStatsElement native "*RTCStatsElement" { | 17670 class RtcStatsElement native "*RTCStatsElement" { |
16313 | 17671 |
16314 /// @domName RTCStatsElement.timestamp; @docsEditable true | 17672 /// @docsEditable true |
| 17673 @DomName("RTCStatsElement.timestamp") |
16315 final Date timestamp; | 17674 final Date timestamp; |
16316 | 17675 |
16317 /// @domName RTCStatsElement.names; @docsEditable true | 17676 /// @docsEditable true |
| 17677 @DomName("RTCStatsElement.names") |
16318 List<String> names() native; | 17678 List<String> names() native; |
16319 | 17679 |
16320 /// @domName RTCStatsElement.stat; @docsEditable true | 17680 /// @docsEditable true |
| 17681 @DomName("RTCStatsElement.stat") |
16321 String stat(String name) native; | 17682 String stat(String name) native; |
16322 } | 17683 } |
16323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16324 // for details. All rights reserved. Use of this source code is governed by a | 17685 // for details. All rights reserved. Use of this source code is governed by a |
16325 // BSD-style license that can be found in the LICENSE file. | 17686 // BSD-style license that can be found in the LICENSE file. |
16326 | 17687 |
16327 | 17688 |
16328 /// @domName RTCStatsReport; @docsEditable true | 17689 /// @docsEditable true |
| 17690 @DomName("RTCStatsReport") |
16329 class RtcStatsReport native "*RTCStatsReport" { | 17691 class RtcStatsReport native "*RTCStatsReport" { |
16330 | 17692 |
16331 /// @domName RTCStatsReport.local; @docsEditable true | 17693 /// @docsEditable true |
| 17694 @DomName("RTCStatsReport.local") |
16332 final RtcStatsElement local; | 17695 final RtcStatsElement local; |
16333 | 17696 |
16334 /// @domName RTCStatsReport.remote; @docsEditable true | 17697 /// @docsEditable true |
| 17698 @DomName("RTCStatsReport.remote") |
16335 final RtcStatsElement remote; | 17699 final RtcStatsElement remote; |
16336 } | 17700 } |
16337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16338 // for details. All rights reserved. Use of this source code is governed by a | 17702 // for details. All rights reserved. Use of this source code is governed by a |
16339 // BSD-style license that can be found in the LICENSE file. | 17703 // BSD-style license that can be found in the LICENSE file. |
16340 | 17704 |
16341 | 17705 |
16342 /// @domName RTCStatsResponse; @docsEditable true | 17706 /// @docsEditable true |
| 17707 @DomName("RTCStatsResponse") |
16343 class RtcStatsResponse native "*RTCStatsResponse" { | 17708 class RtcStatsResponse native "*RTCStatsResponse" { |
16344 | 17709 |
16345 /// @domName RTCStatsResponse.result; @docsEditable true | 17710 /// @docsEditable true |
| 17711 @DomName("RTCStatsResponse.result") |
16346 List<RtcStatsReport> result() native; | 17712 List<RtcStatsReport> result() native; |
16347 } | 17713 } |
16348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16349 // for details. All rights reserved. Use of this source code is governed by a | 17715 // for details. All rights reserved. Use of this source code is governed by a |
16350 // BSD-style license that can be found in the LICENSE file. | 17716 // BSD-style license that can be found in the LICENSE file. |
16351 | 17717 |
16352 // WARNING: Do not edit - generated code. | 17718 // WARNING: Do not edit - generated code. |
16353 | 17719 |
16354 | 17720 |
16355 typedef void SqlStatementCallback(SqlTransaction transaction, SqlResultSet resul
tSet); | 17721 typedef void SqlStatementCallback(SqlTransaction transaction, SqlResultSet resul
tSet); |
(...skipping 27 matching lines...) Expand all Loading... |
16383 | 17749 |
16384 // WARNING: Do not edit - generated code. | 17750 // WARNING: Do not edit - generated code. |
16385 | 17751 |
16386 | 17752 |
16387 typedef void SqlTransactionSyncCallback(SqlTransactionSync transaction); | 17753 typedef void SqlTransactionSyncCallback(SqlTransactionSync transaction); |
16388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16389 // for details. All rights reserved. Use of this source code is governed by a | 17755 // for details. All rights reserved. Use of this source code is governed by a |
16390 // BSD-style license that can be found in the LICENSE file. | 17756 // BSD-style license that can be found in the LICENSE file. |
16391 | 17757 |
16392 | 17758 |
16393 /// @domName Screen; @docsEditable true | 17759 /// @docsEditable true |
| 17760 @DomName("Screen") |
16394 class Screen native "*Screen" { | 17761 class Screen native "*Screen" { |
16395 | 17762 |
16396 /// @domName Screen.availHeight; @docsEditable true | 17763 /// @docsEditable true |
| 17764 @DomName("Screen.availHeight") |
16397 final int availHeight; | 17765 final int availHeight; |
16398 | 17766 |
16399 /// @domName Screen.availLeft; @docsEditable true | 17767 /// @docsEditable true |
| 17768 @DomName("Screen.availLeft") |
16400 final int availLeft; | 17769 final int availLeft; |
16401 | 17770 |
16402 /// @domName Screen.availTop; @docsEditable true | 17771 /// @docsEditable true |
| 17772 @DomName("Screen.availTop") |
16403 final int availTop; | 17773 final int availTop; |
16404 | 17774 |
16405 /// @domName Screen.availWidth; @docsEditable true | 17775 /// @docsEditable true |
| 17776 @DomName("Screen.availWidth") |
16406 final int availWidth; | 17777 final int availWidth; |
16407 | 17778 |
16408 /// @domName Screen.colorDepth; @docsEditable true | 17779 /// @docsEditable true |
| 17780 @DomName("Screen.colorDepth") |
16409 final int colorDepth; | 17781 final int colorDepth; |
16410 | 17782 |
16411 /// @domName Screen.height; @docsEditable true | 17783 /// @docsEditable true |
| 17784 @DomName("Screen.height") |
16412 final int height; | 17785 final int height; |
16413 | 17786 |
16414 /// @domName Screen.pixelDepth; @docsEditable true | 17787 /// @docsEditable true |
| 17788 @DomName("Screen.pixelDepth") |
16415 final int pixelDepth; | 17789 final int pixelDepth; |
16416 | 17790 |
16417 /// @domName Screen.width; @docsEditable true | 17791 /// @docsEditable true |
| 17792 @DomName("Screen.width") |
16418 final int width; | 17793 final int width; |
16419 } | 17794 } |
16420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16421 // for details. All rights reserved. Use of this source code is governed by a | 17796 // for details. All rights reserved. Use of this source code is governed by a |
16422 // BSD-style license that can be found in the LICENSE file. | 17797 // BSD-style license that can be found in the LICENSE file. |
16423 | 17798 |
16424 | 17799 |
16425 /// @domName HTMLScriptElement; @docsEditable true | 17800 /// @docsEditable true |
| 17801 @DomName("HTMLScriptElement") |
16426 class ScriptElement extends Element native "*HTMLScriptElement" { | 17802 class ScriptElement extends Element native "*HTMLScriptElement" { |
16427 | 17803 |
16428 ///@docsEditable true | 17804 /// @docsEditable true |
16429 factory ScriptElement() => document.$dom_createElement("script"); | 17805 factory ScriptElement() => document.$dom_createElement("script"); |
16430 | 17806 |
16431 /// @domName HTMLScriptElement.async; @docsEditable true | 17807 /// @docsEditable true |
| 17808 @DomName("HTMLScriptElement.async") |
16432 bool async; | 17809 bool async; |
16433 | 17810 |
16434 /// @domName HTMLScriptElement.charset; @docsEditable true | 17811 /// @docsEditable true |
| 17812 @DomName("HTMLScriptElement.charset") |
16435 String charset; | 17813 String charset; |
16436 | 17814 |
16437 /// @domName HTMLScriptElement.crossOrigin; @docsEditable true | 17815 /// @docsEditable true |
| 17816 @DomName("HTMLScriptElement.crossOrigin") |
16438 String crossOrigin; | 17817 String crossOrigin; |
16439 | 17818 |
16440 /// @domName HTMLScriptElement.defer; @docsEditable true | 17819 /// @docsEditable true |
| 17820 @DomName("HTMLScriptElement.defer") |
16441 bool defer; | 17821 bool defer; |
16442 | 17822 |
16443 /// @domName HTMLScriptElement.event; @docsEditable true | 17823 /// @docsEditable true |
| 17824 @DomName("HTMLScriptElement.event") |
16444 String event; | 17825 String event; |
16445 | 17826 |
16446 /// @domName HTMLScriptElement.htmlFor; @docsEditable true | 17827 /// @docsEditable true |
| 17828 @DomName("HTMLScriptElement.htmlFor") |
16447 String htmlFor; | 17829 String htmlFor; |
16448 | 17830 |
16449 /// @domName HTMLScriptElement.src; @docsEditable true | 17831 /// @docsEditable true |
| 17832 @DomName("HTMLScriptElement.src") |
16450 String src; | 17833 String src; |
16451 | 17834 |
16452 /// @domName HTMLScriptElement.type; @docsEditable true | 17835 /// @docsEditable true |
| 17836 @DomName("HTMLScriptElement.type") |
16453 String type; | 17837 String type; |
16454 } | 17838 } |
16455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17839 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16456 // for details. All rights reserved. Use of this source code is governed by a | 17840 // for details. All rights reserved. Use of this source code is governed by a |
16457 // BSD-style license that can be found in the LICENSE file. | 17841 // BSD-style license that can be found in the LICENSE file. |
16458 | 17842 |
16459 | 17843 |
16460 /// @domName ScriptProfile; @docsEditable true | 17844 /// @docsEditable true |
| 17845 @DomName("ScriptProfile") |
16461 class ScriptProfile native "*ScriptProfile" { | 17846 class ScriptProfile native "*ScriptProfile" { |
16462 | 17847 |
16463 /// @domName ScriptProfile.head; @docsEditable true | 17848 /// @docsEditable true |
| 17849 @DomName("ScriptProfile.head") |
16464 final ScriptProfileNode head; | 17850 final ScriptProfileNode head; |
16465 | 17851 |
16466 /// @domName ScriptProfile.title; @docsEditable true | 17852 /// @docsEditable true |
| 17853 @DomName("ScriptProfile.title") |
16467 final String title; | 17854 final String title; |
16468 | 17855 |
16469 /// @domName ScriptProfile.uid; @docsEditable true | 17856 /// @docsEditable true |
| 17857 @DomName("ScriptProfile.uid") |
16470 final int uid; | 17858 final int uid; |
16471 } | 17859 } |
16472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16473 // for details. All rights reserved. Use of this source code is governed by a | 17861 // for details. All rights reserved. Use of this source code is governed by a |
16474 // BSD-style license that can be found in the LICENSE file. | 17862 // BSD-style license that can be found in the LICENSE file. |
16475 | 17863 |
16476 | 17864 |
16477 /// @domName ScriptProfileNode; @docsEditable true | 17865 /// @docsEditable true |
| 17866 @DomName("ScriptProfileNode") |
16478 class ScriptProfileNode native "*ScriptProfileNode" { | 17867 class ScriptProfileNode native "*ScriptProfileNode" { |
16479 | 17868 |
16480 /// @domName ScriptProfileNode.callUID; @docsEditable true | 17869 /// @docsEditable true |
16481 @JSName('callUID') | 17870 @JSName('callUID') |
| 17871 @DomName("ScriptProfileNode.callUID") |
16482 final int callUid; | 17872 final int callUid; |
16483 | 17873 |
16484 /// @domName ScriptProfileNode.functionName; @docsEditable true | 17874 /// @docsEditable true |
| 17875 @DomName("ScriptProfileNode.functionName") |
16485 final String functionName; | 17876 final String functionName; |
16486 | 17877 |
16487 /// @domName ScriptProfileNode.lineNumber; @docsEditable true | 17878 /// @docsEditable true |
| 17879 @DomName("ScriptProfileNode.lineNumber") |
16488 final int lineNumber; | 17880 final int lineNumber; |
16489 | 17881 |
16490 /// @domName ScriptProfileNode.numberOfCalls; @docsEditable true | 17882 /// @docsEditable true |
| 17883 @DomName("ScriptProfileNode.numberOfCalls") |
16491 final int numberOfCalls; | 17884 final int numberOfCalls; |
16492 | 17885 |
16493 /// @domName ScriptProfileNode.selfTime; @docsEditable true | 17886 /// @docsEditable true |
| 17887 @DomName("ScriptProfileNode.selfTime") |
16494 final num selfTime; | 17888 final num selfTime; |
16495 | 17889 |
16496 /// @domName ScriptProfileNode.totalTime; @docsEditable true | 17890 /// @docsEditable true |
| 17891 @DomName("ScriptProfileNode.totalTime") |
16497 final num totalTime; | 17892 final num totalTime; |
16498 | 17893 |
16499 /// @domName ScriptProfileNode.url; @docsEditable true | 17894 /// @docsEditable true |
| 17895 @DomName("ScriptProfileNode.url") |
16500 final String url; | 17896 final String url; |
16501 | 17897 |
16502 /// @domName ScriptProfileNode.visible; @docsEditable true | 17898 /// @docsEditable true |
| 17899 @DomName("ScriptProfileNode.visible") |
16503 final bool visible; | 17900 final bool visible; |
16504 | 17901 |
16505 /// @domName ScriptProfileNode.children; @docsEditable true | 17902 /// @docsEditable true |
| 17903 @DomName("ScriptProfileNode.children") |
16506 List<ScriptProfileNode> children() native; | 17904 List<ScriptProfileNode> children() native; |
16507 } | 17905 } |
16508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16509 // for details. All rights reserved. Use of this source code is governed by a | 17907 // for details. All rights reserved. Use of this source code is governed by a |
16510 // BSD-style license that can be found in the LICENSE file. | 17908 // BSD-style license that can be found in the LICENSE file. |
16511 | 17909 |
16512 | 17910 |
16513 /// @domName HTMLSelectElement | 17911 @DomName("HTMLSelectElement") |
16514 class SelectElement extends Element native "*HTMLSelectElement" { | 17912 class SelectElement extends Element native "*HTMLSelectElement" { |
16515 | 17913 |
16516 ///@docsEditable true | 17914 /// @docsEditable true |
16517 factory SelectElement() => document.$dom_createElement("select"); | 17915 factory SelectElement() => document.$dom_createElement("select"); |
16518 | 17916 |
16519 /// @domName HTMLSelectElement.autofocus; @docsEditable true | 17917 /// @docsEditable true |
| 17918 @DomName("HTMLSelectElement.autofocus") |
16520 bool autofocus; | 17919 bool autofocus; |
16521 | 17920 |
16522 /// @domName HTMLSelectElement.disabled; @docsEditable true | 17921 /// @docsEditable true |
| 17922 @DomName("HTMLSelectElement.disabled") |
16523 bool disabled; | 17923 bool disabled; |
16524 | 17924 |
16525 /// @domName HTMLSelectElement.form; @docsEditable true | 17925 /// @docsEditable true |
| 17926 @DomName("HTMLSelectElement.form") |
16526 final FormElement form; | 17927 final FormElement form; |
16527 | 17928 |
16528 /// @domName HTMLSelectElement.labels; @docsEditable true | 17929 /// @docsEditable true |
| 17930 @DomName("HTMLSelectElement.labels") |
16529 @Returns('NodeList') @Creates('NodeList') | 17931 @Returns('NodeList') @Creates('NodeList') |
16530 final List<Node> labels; | 17932 final List<Node> labels; |
16531 | 17933 |
16532 /// @domName HTMLSelectElement.length; @docsEditable true | 17934 /// @docsEditable true |
| 17935 @DomName("HTMLSelectElement.length") |
16533 int length; | 17936 int length; |
16534 | 17937 |
16535 /// @domName HTMLSelectElement.multiple; @docsEditable true | 17938 /// @docsEditable true |
| 17939 @DomName("HTMLSelectElement.multiple") |
16536 bool multiple; | 17940 bool multiple; |
16537 | 17941 |
16538 /// @domName HTMLSelectElement.name; @docsEditable true | 17942 /// @docsEditable true |
| 17943 @DomName("HTMLSelectElement.name") |
16539 String name; | 17944 String name; |
16540 | 17945 |
16541 /// @domName HTMLSelectElement.required; @docsEditable true | 17946 /// @docsEditable true |
| 17947 @DomName("HTMLSelectElement.required") |
16542 bool required; | 17948 bool required; |
16543 | 17949 |
16544 /// @domName HTMLSelectElement.selectedIndex; @docsEditable true | 17950 /// @docsEditable true |
| 17951 @DomName("HTMLSelectElement.selectedIndex") |
16545 int selectedIndex; | 17952 int selectedIndex; |
16546 | 17953 |
16547 /// @domName HTMLSelectElement.size; @docsEditable true | 17954 /// @docsEditable true |
| 17955 @DomName("HTMLSelectElement.size") |
16548 int size; | 17956 int size; |
16549 | 17957 |
16550 /// @domName HTMLSelectElement.type; @docsEditable true | 17958 /// @docsEditable true |
| 17959 @DomName("HTMLSelectElement.type") |
16551 final String type; | 17960 final String type; |
16552 | 17961 |
16553 /// @domName HTMLSelectElement.validationMessage; @docsEditable true | 17962 /// @docsEditable true |
| 17963 @DomName("HTMLSelectElement.validationMessage") |
16554 final String validationMessage; | 17964 final String validationMessage; |
16555 | 17965 |
16556 /// @domName HTMLSelectElement.validity; @docsEditable true | 17966 /// @docsEditable true |
| 17967 @DomName("HTMLSelectElement.validity") |
16557 final ValidityState validity; | 17968 final ValidityState validity; |
16558 | 17969 |
16559 /// @domName HTMLSelectElement.value; @docsEditable true | 17970 /// @docsEditable true |
| 17971 @DomName("HTMLSelectElement.value") |
16560 String value; | 17972 String value; |
16561 | 17973 |
16562 /// @domName HTMLSelectElement.willValidate; @docsEditable true | 17974 /// @docsEditable true |
| 17975 @DomName("HTMLSelectElement.willValidate") |
16563 final bool willValidate; | 17976 final bool willValidate; |
16564 | 17977 |
16565 /// @domName HTMLSelectElement.checkValidity; @docsEditable true | 17978 /// @docsEditable true |
| 17979 @DomName("HTMLSelectElement.checkValidity") |
16566 bool checkValidity() native; | 17980 bool checkValidity() native; |
16567 | 17981 |
16568 /// @domName HTMLSelectElement.item; @docsEditable true | 17982 /// @docsEditable true |
| 17983 @DomName("HTMLSelectElement.item") |
16569 Node item(int index) native; | 17984 Node item(int index) native; |
16570 | 17985 |
16571 /// @domName HTMLSelectElement.namedItem; @docsEditable true | 17986 /// @docsEditable true |
| 17987 @DomName("HTMLSelectElement.namedItem") |
16572 Node namedItem(String name) native; | 17988 Node namedItem(String name) native; |
16573 | 17989 |
16574 /// @domName HTMLSelectElement.setCustomValidity; @docsEditable true | 17990 /// @docsEditable true |
| 17991 @DomName("HTMLSelectElement.setCustomValidity") |
16575 void setCustomValidity(String error) native; | 17992 void setCustomValidity(String error) native; |
16576 | 17993 |
16577 | 17994 |
16578 // Override default options, since IE returns SelectElement itself and it | 17995 // Override default options, since IE returns SelectElement itself and it |
16579 // does not operate as a List. | 17996 // does not operate as a List. |
16580 List<OptionElement> get options { | 17997 List<OptionElement> get options { |
16581 var options = this.children.where((e) => e is OptionElement).toList(); | 17998 var options = this.children.where((e) => e is OptionElement).toList(); |
16582 return new ListView(options, 0, options.length); | 17999 return new ListView(options, 0, options.length); |
16583 } | 18000 } |
16584 | 18001 |
16585 List<OptionElement> get selectedOptions { | 18002 List<OptionElement> get selectedOptions { |
16586 // IE does not change the selected flag for single-selection items. | 18003 // IE does not change the selected flag for single-selection items. |
16587 if (this.multiple) { | 18004 if (this.multiple) { |
16588 var options = this.options.where((o) => o.selected).toList(); | 18005 var options = this.options.where((o) => o.selected).toList(); |
16589 return new ListView(options, 0, options.length); | 18006 return new ListView(options, 0, options.length); |
16590 } else { | 18007 } else { |
16591 return [this.options[this.selectedIndex]]; | 18008 return [this.options[this.selectedIndex]]; |
16592 } | 18009 } |
16593 } | 18010 } |
16594 } | 18011 } |
16595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18012 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16596 // for details. All rights reserved. Use of this source code is governed by a | 18013 // for details. All rights reserved. Use of this source code is governed by a |
16597 // BSD-style license that can be found in the LICENSE file. | 18014 // BSD-style license that can be found in the LICENSE file. |
16598 | 18015 |
16599 | 18016 |
16600 /// @domName HTMLShadowElement; @docsEditable true | 18017 /// @docsEditable true |
| 18018 @DomName("HTMLShadowElement") |
16601 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 18019 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
16602 @Experimental() | 18020 @Experimental() |
16603 class ShadowElement extends Element native "*HTMLShadowElement" { | 18021 class ShadowElement extends Element native "*HTMLShadowElement" { |
16604 | 18022 |
16605 /// Checks if this type is supported on the current platform. | 18023 /// Checks if this type is supported on the current platform. |
16606 static bool get supported => Element.isTagSupported('shadow'); | 18024 static bool get supported => Element.isTagSupported('shadow'); |
16607 | 18025 |
16608 /// @domName HTMLShadowElement.olderShadowRoot; @docsEditable true | 18026 /// @docsEditable true |
| 18027 @DomName("HTMLShadowElement.olderShadowRoot") |
16609 final ShadowRoot olderShadowRoot; | 18028 final ShadowRoot olderShadowRoot; |
16610 | 18029 |
16611 /// @domName HTMLShadowElement.resetStyleInheritance; @docsEditable true | 18030 /// @docsEditable true |
| 18031 @DomName("HTMLShadowElement.resetStyleInheritance") |
16612 bool resetStyleInheritance; | 18032 bool resetStyleInheritance; |
16613 } | 18033 } |
16614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16615 // for details. All rights reserved. Use of this source code is governed by a | 18035 // for details. All rights reserved. Use of this source code is governed by a |
16616 // BSD-style license that can be found in the LICENSE file. | 18036 // BSD-style license that can be found in the LICENSE file. |
16617 | 18037 |
16618 // WARNING: Do not edit - generated code. | 18038 // WARNING: Do not edit - generated code. |
16619 | 18039 |
16620 | 18040 |
16621 /// @domName ShadowRoot | 18041 @DomName("ShadowRoot") |
16622 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 18042 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
16623 @Experimental() | 18043 @Experimental() |
16624 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { | 18044 class ShadowRoot extends DocumentFragment native "*ShadowRoot" { |
16625 | 18045 |
16626 /// @domName ShadowRoot.activeElement; @docsEditable true | 18046 /// @docsEditable true |
| 18047 @DomName("ShadowRoot.activeElement") |
16627 final Element activeElement; | 18048 final Element activeElement; |
16628 | 18049 |
16629 /// @domName ShadowRoot.applyAuthorStyles; @docsEditable true | 18050 /// @docsEditable true |
| 18051 @DomName("ShadowRoot.applyAuthorStyles") |
16630 bool applyAuthorStyles; | 18052 bool applyAuthorStyles; |
16631 | 18053 |
16632 /// @domName ShadowRoot.innerHTML; @docsEditable true | 18054 /// @docsEditable true |
16633 @JSName('innerHTML') | 18055 @JSName('innerHTML') |
| 18056 @DomName("ShadowRoot.innerHTML") |
16634 String innerHtml; | 18057 String innerHtml; |
16635 | 18058 |
16636 /// @domName ShadowRoot.resetStyleInheritance; @docsEditable true | 18059 /// @docsEditable true |
| 18060 @DomName("ShadowRoot.resetStyleInheritance") |
16637 bool resetStyleInheritance; | 18061 bool resetStyleInheritance; |
16638 | 18062 |
16639 /// @domName ShadowRoot.cloneNode; @docsEditable true | 18063 /// @docsEditable true |
16640 @JSName('cloneNode') | 18064 @JSName('cloneNode') |
| 18065 @DomName("ShadowRoot.cloneNode") |
16641 Node clone(bool deep) native; | 18066 Node clone(bool deep) native; |
16642 | 18067 |
16643 /// @domName ShadowRoot.getElementById; @docsEditable true | 18068 /// @docsEditable true |
16644 @JSName('getElementById') | 18069 @JSName('getElementById') |
| 18070 @DomName("ShadowRoot.getElementById") |
16645 Element $dom_getElementById(String elementId) native; | 18071 Element $dom_getElementById(String elementId) native; |
16646 | 18072 |
16647 /// @domName ShadowRoot.getElementsByClassName; @docsEditable true | 18073 /// @docsEditable true |
16648 @JSName('getElementsByClassName') | 18074 @JSName('getElementsByClassName') |
| 18075 @DomName("ShadowRoot.getElementsByClassName") |
16649 @Returns('NodeList') @Creates('NodeList') | 18076 @Returns('NodeList') @Creates('NodeList') |
16650 List<Node> $dom_getElementsByClassName(String className) native; | 18077 List<Node> $dom_getElementsByClassName(String className) native; |
16651 | 18078 |
16652 /// @domName ShadowRoot.getElementsByTagName; @docsEditable true | 18079 /// @docsEditable true |
16653 @JSName('getElementsByTagName') | 18080 @JSName('getElementsByTagName') |
| 18081 @DomName("ShadowRoot.getElementsByTagName") |
16654 @Returns('NodeList') @Creates('NodeList') | 18082 @Returns('NodeList') @Creates('NodeList') |
16655 List<Node> $dom_getElementsByTagName(String tagName) native; | 18083 List<Node> $dom_getElementsByTagName(String tagName) native; |
16656 | 18084 |
16657 /// @domName ShadowRoot.getSelection; @docsEditable true | 18085 /// @docsEditable true |
| 18086 @DomName("ShadowRoot.getSelection") |
16658 DomSelection getSelection() native; | 18087 DomSelection getSelection() native; |
16659 | 18088 |
16660 static bool get supported => | 18089 static bool get supported => |
16661 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); | 18090 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); |
16662 } | 18091 } |
16663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16664 // for details. All rights reserved. Use of this source code is governed by a | 18093 // for details. All rights reserved. Use of this source code is governed by a |
16665 // BSD-style license that can be found in the LICENSE file. | 18094 // BSD-style license that can be found in the LICENSE file. |
16666 | 18095 |
16667 | 18096 |
16668 /// @domName SharedWorker; @docsEditable true | 18097 /// @docsEditable true |
| 18098 @DomName("SharedWorker") |
16669 class SharedWorker extends AbstractWorker native "*SharedWorker" { | 18099 class SharedWorker extends AbstractWorker native "*SharedWorker" { |
16670 | 18100 |
16671 ///@docsEditable true | 18101 /// @docsEditable true |
16672 factory SharedWorker(String scriptURL, [String name]) { | 18102 factory SharedWorker(String scriptURL, [String name]) { |
16673 if (!?name) { | 18103 if (!?name) { |
16674 return SharedWorker._create(scriptURL); | 18104 return SharedWorker._create(scriptURL); |
16675 } | 18105 } |
16676 return SharedWorker._create(scriptURL, name); | 18106 return SharedWorker._create(scriptURL, name); |
16677 } | 18107 } |
16678 static SharedWorker _create(String scriptURL, [String name]) { | 18108 static SharedWorker _create(String scriptURL, [String name]) { |
16679 if (!?name) { | 18109 if (!?name) { |
16680 return JS('SharedWorker', 'new SharedWorker(#)', scriptURL); | 18110 return JS('SharedWorker', 'new SharedWorker(#)', scriptURL); |
16681 } | 18111 } |
16682 return JS('SharedWorker', 'new SharedWorker(#,#)', scriptURL, name); | 18112 return JS('SharedWorker', 'new SharedWorker(#,#)', scriptURL, name); |
16683 } | 18113 } |
16684 | 18114 |
16685 /// @domName SharedWorker.port; @docsEditable true | 18115 /// @docsEditable true |
| 18116 @DomName("SharedWorker.port") |
16686 final MessagePort port; | 18117 final MessagePort port; |
16687 } | 18118 } |
16688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16689 // for details. All rights reserved. Use of this source code is governed by a | 18120 // for details. All rights reserved. Use of this source code is governed by a |
16690 // BSD-style license that can be found in the LICENSE file. | 18121 // BSD-style license that can be found in the LICENSE file. |
16691 | 18122 |
16692 | 18123 |
16693 /// @domName SharedWorkerContext; @docsEditable true | 18124 /// @docsEditable true |
| 18125 @DomName("SharedWorkerContext") |
16694 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" { | 18126 class SharedWorkerContext extends WorkerContext native "*SharedWorkerContext" { |
16695 | 18127 |
16696 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 18128 /// @docsEditable true |
| 18129 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
16697 SharedWorkerContextEvents get on => | 18130 SharedWorkerContextEvents get on => |
16698 new SharedWorkerContextEvents(this); | 18131 new SharedWorkerContextEvents(this); |
16699 | 18132 |
16700 /// @domName SharedWorkerContext.name; @docsEditable true | 18133 /// @docsEditable true |
| 18134 @DomName("SharedWorkerContext.name") |
16701 final String name; | 18135 final String name; |
16702 } | 18136 } |
16703 | 18137 |
16704 /// @docsEditable true | 18138 /// @docsEditable true |
16705 class SharedWorkerContextEvents extends WorkerContextEvents { | 18139 class SharedWorkerContextEvents extends WorkerContextEvents { |
16706 /// @docsEditable true | 18140 /// @docsEditable true |
16707 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr); | 18141 SharedWorkerContextEvents(EventTarget _ptr) : super(_ptr); |
16708 | 18142 |
16709 /// @docsEditable true | 18143 /// @docsEditable true |
16710 EventListenerList get connect => this['connect']; | 18144 EventListenerList get connect => this['connect']; |
16711 } | 18145 } |
16712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16713 // for details. All rights reserved. Use of this source code is governed by a | 18147 // for details. All rights reserved. Use of this source code is governed by a |
16714 // BSD-style license that can be found in the LICENSE file. | 18148 // BSD-style license that can be found in the LICENSE file. |
16715 | 18149 |
16716 | 18150 |
16717 /// @domName SourceBuffer; @docsEditable true | 18151 /// @docsEditable true |
| 18152 @DomName("SourceBuffer") |
16718 class SourceBuffer native "*SourceBuffer" { | 18153 class SourceBuffer native "*SourceBuffer" { |
16719 | 18154 |
16720 /// @domName SourceBuffer.buffered; @docsEditable true | 18155 /// @docsEditable true |
| 18156 @DomName("SourceBuffer.buffered") |
16721 final TimeRanges buffered; | 18157 final TimeRanges buffered; |
16722 | 18158 |
16723 /// @domName SourceBuffer.timestampOffset; @docsEditable true | 18159 /// @docsEditable true |
| 18160 @DomName("SourceBuffer.timestampOffset") |
16724 num timestampOffset; | 18161 num timestampOffset; |
16725 | 18162 |
16726 /// @domName SourceBuffer.abort; @docsEditable true | 18163 /// @docsEditable true |
| 18164 @DomName("SourceBuffer.abort") |
16727 void abort() native; | 18165 void abort() native; |
16728 | 18166 |
16729 /// @domName SourceBuffer.append; @docsEditable true | 18167 /// @docsEditable true |
| 18168 @DomName("SourceBuffer.append") |
16730 void append(Uint8Array data) native; | 18169 void append(Uint8Array data) native; |
16731 } | 18170 } |
16732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16733 // for details. All rights reserved. Use of this source code is governed by a | 18172 // for details. All rights reserved. Use of this source code is governed by a |
16734 // BSD-style license that can be found in the LICENSE file. | 18173 // BSD-style license that can be found in the LICENSE file. |
16735 | 18174 |
16736 | 18175 |
16737 /// @domName SourceBufferList; @docsEditable true | 18176 /// @docsEditable true |
| 18177 @DomName("SourceBufferList") |
16738 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
, List<SourceBuffer> native "*SourceBufferList" { | 18178 class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior
, List<SourceBuffer> native "*SourceBufferList" { |
16739 | 18179 |
16740 /// @domName SourceBufferList.length; @docsEditable true | 18180 /// @docsEditable true |
| 18181 @DomName("SourceBufferList.length") |
16741 int get length => JS("int", "#.length", this); | 18182 int get length => JS("int", "#.length", this); |
16742 | 18183 |
16743 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); | 18184 SourceBuffer operator[](int index) => JS("SourceBuffer", "#[#]", this, index); |
16744 | 18185 |
16745 void operator[]=(int index, SourceBuffer value) { | 18186 void operator[]=(int index, SourceBuffer value) { |
16746 throw new UnsupportedError("Cannot assign element of immutable List."); | 18187 throw new UnsupportedError("Cannot assign element of immutable List."); |
16747 } | 18188 } |
16748 // -- start List<SourceBuffer> mixins. | 18189 // -- start List<SourceBuffer> mixins. |
16749 // SourceBuffer is the element type. | 18190 // SourceBuffer is the element type. |
16750 | 18191 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16878 | 18319 |
16879 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) { | 18320 void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) { |
16880 throw new UnsupportedError("Cannot insertRange on immutable List."); | 18321 throw new UnsupportedError("Cannot insertRange on immutable List."); |
16881 } | 18322 } |
16882 | 18323 |
16883 List<SourceBuffer> getRange(int start, int rangeLength) => | 18324 List<SourceBuffer> getRange(int start, int rangeLength) => |
16884 Lists.getRange(this, start, rangeLength, <SourceBuffer>[]); | 18325 Lists.getRange(this, start, rangeLength, <SourceBuffer>[]); |
16885 | 18326 |
16886 // -- end List<SourceBuffer> mixins. | 18327 // -- end List<SourceBuffer> mixins. |
16887 | 18328 |
16888 /// @domName SourceBufferList.addEventListener; @docsEditable true | 18329 /// @docsEditable true |
16889 @JSName('addEventListener') | 18330 @JSName('addEventListener') |
| 18331 @DomName("SourceBufferList.addEventListener") |
16890 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 18332 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
16891 | 18333 |
16892 /// @domName SourceBufferList.dispatchEvent; @docsEditable true | 18334 /// @docsEditable true |
16893 @JSName('dispatchEvent') | 18335 @JSName('dispatchEvent') |
| 18336 @DomName("SourceBufferList.dispatchEvent") |
16894 bool $dom_dispatchEvent(Event event) native; | 18337 bool $dom_dispatchEvent(Event event) native; |
16895 | 18338 |
16896 /// @domName SourceBufferList.item; @docsEditable true | 18339 /// @docsEditable true |
| 18340 @DomName("SourceBufferList.item") |
16897 SourceBuffer item(int index) native; | 18341 SourceBuffer item(int index) native; |
16898 | 18342 |
16899 /// @domName SourceBufferList.removeEventListener; @docsEditable true | 18343 /// @docsEditable true |
16900 @JSName('removeEventListener') | 18344 @JSName('removeEventListener') |
| 18345 @DomName("SourceBufferList.removeEventListener") |
16901 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 18346 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
16902 } | 18347 } |
16903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16904 // for details. All rights reserved. Use of this source code is governed by a | 18349 // for details. All rights reserved. Use of this source code is governed by a |
16905 // BSD-style license that can be found in the LICENSE file. | 18350 // BSD-style license that can be found in the LICENSE file. |
16906 | 18351 |
16907 | 18352 |
16908 /// @domName HTMLSourceElement; @docsEditable true | 18353 /// @docsEditable true |
| 18354 @DomName("HTMLSourceElement") |
16909 class SourceElement extends Element native "*HTMLSourceElement" { | 18355 class SourceElement extends Element native "*HTMLSourceElement" { |
16910 | 18356 |
16911 ///@docsEditable true | 18357 /// @docsEditable true |
16912 factory SourceElement() => document.$dom_createElement("source"); | 18358 factory SourceElement() => document.$dom_createElement("source"); |
16913 | 18359 |
16914 /// @domName HTMLSourceElement.media; @docsEditable true | 18360 /// @docsEditable true |
| 18361 @DomName("HTMLSourceElement.media") |
16915 String media; | 18362 String media; |
16916 | 18363 |
16917 /// @domName HTMLSourceElement.src; @docsEditable true | 18364 /// @docsEditable true |
| 18365 @DomName("HTMLSourceElement.src") |
16918 String src; | 18366 String src; |
16919 | 18367 |
16920 /// @domName HTMLSourceElement.type; @docsEditable true | 18368 /// @docsEditable true |
| 18369 @DomName("HTMLSourceElement.type") |
16921 String type; | 18370 String type; |
16922 } | 18371 } |
16923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16924 // for details. All rights reserved. Use of this source code is governed by a | 18373 // for details. All rights reserved. Use of this source code is governed by a |
16925 // BSD-style license that can be found in the LICENSE file. | 18374 // BSD-style license that can be found in the LICENSE file. |
16926 | 18375 |
16927 | 18376 |
16928 /// @domName HTMLSpanElement; @docsEditable true | 18377 /// @docsEditable true |
| 18378 @DomName("HTMLSpanElement") |
16929 class SpanElement extends Element native "*HTMLSpanElement" { | 18379 class SpanElement extends Element native "*HTMLSpanElement" { |
16930 | 18380 |
16931 ///@docsEditable true | 18381 /// @docsEditable true |
16932 factory SpanElement() => document.$dom_createElement("span"); | 18382 factory SpanElement() => document.$dom_createElement("span"); |
16933 } | 18383 } |
16934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18384 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16935 // for details. All rights reserved. Use of this source code is governed by a | 18385 // for details. All rights reserved. Use of this source code is governed by a |
16936 // BSD-style license that can be found in the LICENSE file. | 18386 // BSD-style license that can be found in the LICENSE file. |
16937 | 18387 |
16938 | 18388 |
16939 /// @domName SpeechGrammar; @docsEditable true | 18389 /// @docsEditable true |
| 18390 @DomName("SpeechGrammar") |
16940 class SpeechGrammar native "*SpeechGrammar" { | 18391 class SpeechGrammar native "*SpeechGrammar" { |
16941 | 18392 |
16942 ///@docsEditable true | 18393 /// @docsEditable true |
16943 factory SpeechGrammar() => SpeechGrammar._create(); | 18394 factory SpeechGrammar() => SpeechGrammar._create(); |
16944 static SpeechGrammar _create() => JS('SpeechGrammar', 'new SpeechGrammar()'); | 18395 static SpeechGrammar _create() => JS('SpeechGrammar', 'new SpeechGrammar()'); |
16945 | 18396 |
16946 /// @domName SpeechGrammar.src; @docsEditable true | 18397 /// @docsEditable true |
| 18398 @DomName("SpeechGrammar.src") |
16947 String src; | 18399 String src; |
16948 | 18400 |
16949 /// @domName SpeechGrammar.weight; @docsEditable true | 18401 /// @docsEditable true |
| 18402 @DomName("SpeechGrammar.weight") |
16950 num weight; | 18403 num weight; |
16951 } | 18404 } |
16952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16953 // for details. All rights reserved. Use of this source code is governed by a | 18406 // for details. All rights reserved. Use of this source code is governed by a |
16954 // BSD-style license that can be found in the LICENSE file. | 18407 // BSD-style license that can be found in the LICENSE file. |
16955 | 18408 |
16956 | 18409 |
16957 /// @domName SpeechGrammarList; @docsEditable true | 18410 /// @docsEditable true |
| 18411 @DomName("SpeechGrammarList") |
16958 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
r> native "*SpeechGrammarList" { | 18412 class SpeechGrammarList implements JavaScriptIndexingBehavior, List<SpeechGramma
r> native "*SpeechGrammarList" { |
16959 | 18413 |
16960 ///@docsEditable true | 18414 /// @docsEditable true |
16961 factory SpeechGrammarList() => SpeechGrammarList._create(); | 18415 factory SpeechGrammarList() => SpeechGrammarList._create(); |
16962 static SpeechGrammarList _create() => JS('SpeechGrammarList', 'new SpeechGramm
arList()'); | 18416 static SpeechGrammarList _create() => JS('SpeechGrammarList', 'new SpeechGramm
arList()'); |
16963 | 18417 |
16964 /// @domName SpeechGrammarList.length; @docsEditable true | 18418 /// @docsEditable true |
| 18419 @DomName("SpeechGrammarList.length") |
16965 int get length => JS("int", "#.length", this); | 18420 int get length => JS("int", "#.length", this); |
16966 | 18421 |
16967 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index
); | 18422 SpeechGrammar operator[](int index) => JS("SpeechGrammar", "#[#]", this, index
); |
16968 | 18423 |
16969 void operator[]=(int index, SpeechGrammar value) { | 18424 void operator[]=(int index, SpeechGrammar value) { |
16970 throw new UnsupportedError("Cannot assign element of immutable List."); | 18425 throw new UnsupportedError("Cannot assign element of immutable List."); |
16971 } | 18426 } |
16972 // -- start List<SpeechGrammar> mixins. | 18427 // -- start List<SpeechGrammar> mixins. |
16973 // SpeechGrammar is the element type. | 18428 // SpeechGrammar is the element type. |
16974 | 18429 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17102 | 18557 |
17103 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) { | 18558 void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) { |
17104 throw new UnsupportedError("Cannot insertRange on immutable List."); | 18559 throw new UnsupportedError("Cannot insertRange on immutable List."); |
17105 } | 18560 } |
17106 | 18561 |
17107 List<SpeechGrammar> getRange(int start, int rangeLength) => | 18562 List<SpeechGrammar> getRange(int start, int rangeLength) => |
17108 Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]); | 18563 Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]); |
17109 | 18564 |
17110 // -- end List<SpeechGrammar> mixins. | 18565 // -- end List<SpeechGrammar> mixins. |
17111 | 18566 |
17112 /// @domName SpeechGrammarList.addFromString; @docsEditable true | 18567 /// @docsEditable true |
| 18568 @DomName("SpeechGrammarList.addFromString") |
17113 void addFromString(String string, [num weight]) native; | 18569 void addFromString(String string, [num weight]) native; |
17114 | 18570 |
17115 /// @domName SpeechGrammarList.addFromUri; @docsEditable true | 18571 /// @docsEditable true |
| 18572 @DomName("SpeechGrammarList.addFromUri") |
17116 void addFromUri(String src, [num weight]) native; | 18573 void addFromUri(String src, [num weight]) native; |
17117 | 18574 |
17118 /// @domName SpeechGrammarList.item; @docsEditable true | 18575 /// @docsEditable true |
| 18576 @DomName("SpeechGrammarList.item") |
17119 SpeechGrammar item(int index) native; | 18577 SpeechGrammar item(int index) native; |
17120 } | 18578 } |
17121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17122 // for details. All rights reserved. Use of this source code is governed by a | 18580 // for details. All rights reserved. Use of this source code is governed by a |
17123 // BSD-style license that can be found in the LICENSE file. | 18581 // BSD-style license that can be found in the LICENSE file. |
17124 | 18582 |
17125 | 18583 |
17126 /// @domName SpeechInputEvent; @docsEditable true | 18584 /// @docsEditable true |
| 18585 @DomName("SpeechInputEvent") |
17127 class SpeechInputEvent extends Event native "*SpeechInputEvent" { | 18586 class SpeechInputEvent extends Event native "*SpeechInputEvent" { |
17128 | 18587 |
17129 /// @domName SpeechInputEvent.results; @docsEditable true | 18588 /// @docsEditable true |
| 18589 @DomName("SpeechInputEvent.results") |
17130 @Returns('_SpeechInputResultList') @Creates('_SpeechInputResultList') | 18590 @Returns('_SpeechInputResultList') @Creates('_SpeechInputResultList') |
17131 final List<SpeechInputResult> results; | 18591 final List<SpeechInputResult> results; |
17132 } | 18592 } |
17133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17134 // for details. All rights reserved. Use of this source code is governed by a | 18594 // for details. All rights reserved. Use of this source code is governed by a |
17135 // BSD-style license that can be found in the LICENSE file. | 18595 // BSD-style license that can be found in the LICENSE file. |
17136 | 18596 |
17137 | 18597 |
17138 /// @domName SpeechInputResult; @docsEditable true | 18598 /// @docsEditable true |
| 18599 @DomName("SpeechInputResult") |
17139 class SpeechInputResult native "*SpeechInputResult" { | 18600 class SpeechInputResult native "*SpeechInputResult" { |
17140 | 18601 |
17141 /// @domName SpeechInputResult.confidence; @docsEditable true | 18602 /// @docsEditable true |
| 18603 @DomName("SpeechInputResult.confidence") |
17142 final num confidence; | 18604 final num confidence; |
17143 | 18605 |
17144 /// @domName SpeechInputResult.utterance; @docsEditable true | 18606 /// @docsEditable true |
| 18607 @DomName("SpeechInputResult.utterance") |
17145 final String utterance; | 18608 final String utterance; |
17146 } | 18609 } |
17147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18610 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17148 // for details. All rights reserved. Use of this source code is governed by a | 18611 // for details. All rights reserved. Use of this source code is governed by a |
17149 // BSD-style license that can be found in the LICENSE file. | 18612 // BSD-style license that can be found in the LICENSE file. |
17150 | 18613 |
17151 | 18614 |
17152 /// @domName SpeechRecognition; @docsEditable true | 18615 /// @docsEditable true |
| 18616 @DomName("SpeechRecognition") |
17153 class SpeechRecognition extends EventTarget native "*SpeechRecognition" { | 18617 class SpeechRecognition extends EventTarget native "*SpeechRecognition" { |
17154 | 18618 |
17155 ///@docsEditable true | 18619 /// @docsEditable true |
17156 factory SpeechRecognition() => SpeechRecognition._create(); | 18620 factory SpeechRecognition() => SpeechRecognition._create(); |
17157 static SpeechRecognition _create() => JS('SpeechRecognition', 'new SpeechRecog
nition()'); | 18621 static SpeechRecognition _create() => JS('SpeechRecognition', 'new SpeechRecog
nition()'); |
17158 | 18622 |
17159 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 18623 /// @docsEditable true |
| 18624 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
17160 SpeechRecognitionEvents get on => | 18625 SpeechRecognitionEvents get on => |
17161 new SpeechRecognitionEvents(this); | 18626 new SpeechRecognitionEvents(this); |
17162 | 18627 |
17163 /// @domName SpeechRecognition.continuous; @docsEditable true | 18628 /// @docsEditable true |
| 18629 @DomName("SpeechRecognition.continuous") |
17164 bool continuous; | 18630 bool continuous; |
17165 | 18631 |
17166 /// @domName SpeechRecognition.grammars; @docsEditable true | 18632 /// @docsEditable true |
| 18633 @DomName("SpeechRecognition.grammars") |
17167 SpeechGrammarList grammars; | 18634 SpeechGrammarList grammars; |
17168 | 18635 |
17169 /// @domName SpeechRecognition.interimResults; @docsEditable true | 18636 /// @docsEditable true |
| 18637 @DomName("SpeechRecognition.interimResults") |
17170 bool interimResults; | 18638 bool interimResults; |
17171 | 18639 |
17172 /// @domName SpeechRecognition.lang; @docsEditable true | 18640 /// @docsEditable true |
| 18641 @DomName("SpeechRecognition.lang") |
17173 String lang; | 18642 String lang; |
17174 | 18643 |
17175 /// @domName SpeechRecognition.maxAlternatives; @docsEditable true | 18644 /// @docsEditable true |
| 18645 @DomName("SpeechRecognition.maxAlternatives") |
17176 int maxAlternatives; | 18646 int maxAlternatives; |
17177 | 18647 |
17178 /// @domName SpeechRecognition.abort; @docsEditable true | 18648 /// @docsEditable true |
| 18649 @DomName("SpeechRecognition.abort") |
17179 void abort() native; | 18650 void abort() native; |
17180 | 18651 |
17181 /// @domName SpeechRecognition.addEventListener; @docsEditable true | 18652 /// @docsEditable true |
17182 @JSName('addEventListener') | 18653 @JSName('addEventListener') |
| 18654 @DomName("SpeechRecognition.addEventListener") |
17183 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 18655 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
17184 | 18656 |
17185 /// @domName SpeechRecognition.dispatchEvent; @docsEditable true | 18657 /// @docsEditable true |
17186 @JSName('dispatchEvent') | 18658 @JSName('dispatchEvent') |
| 18659 @DomName("SpeechRecognition.dispatchEvent") |
17187 bool $dom_dispatchEvent(Event evt) native; | 18660 bool $dom_dispatchEvent(Event evt) native; |
17188 | 18661 |
17189 /// @domName SpeechRecognition.removeEventListener; @docsEditable true | 18662 /// @docsEditable true |
17190 @JSName('removeEventListener') | 18663 @JSName('removeEventListener') |
| 18664 @DomName("SpeechRecognition.removeEventListener") |
17191 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 18665 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
17192 | 18666 |
17193 /// @domName SpeechRecognition.start; @docsEditable true | 18667 /// @docsEditable true |
| 18668 @DomName("SpeechRecognition.start") |
17194 void start() native; | 18669 void start() native; |
17195 | 18670 |
17196 /// @domName SpeechRecognition.stop; @docsEditable true | 18671 /// @docsEditable true |
| 18672 @DomName("SpeechRecognition.stop") |
17197 void stop() native; | 18673 void stop() native; |
17198 } | 18674 } |
17199 | 18675 |
17200 /// @docsEditable true | 18676 /// @docsEditable true |
17201 class SpeechRecognitionEvents extends Events { | 18677 class SpeechRecognitionEvents extends Events { |
17202 /// @docsEditable true | 18678 /// @docsEditable true |
17203 SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr); | 18679 SpeechRecognitionEvents(EventTarget _ptr) : super(_ptr); |
17204 | 18680 |
17205 /// @docsEditable true | 18681 /// @docsEditable true |
17206 EventListenerList get audioEnd => this['audioend']; | 18682 EventListenerList get audioEnd => this['audioend']; |
(...skipping 26 matching lines...) Expand all Loading... |
17233 EventListenerList get speechStart => this['speechstart']; | 18709 EventListenerList get speechStart => this['speechstart']; |
17234 | 18710 |
17235 /// @docsEditable true | 18711 /// @docsEditable true |
17236 EventListenerList get start => this['start']; | 18712 EventListenerList get start => this['start']; |
17237 } | 18713 } |
17238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17239 // for details. All rights reserved. Use of this source code is governed by a | 18715 // for details. All rights reserved. Use of this source code is governed by a |
17240 // BSD-style license that can be found in the LICENSE file. | 18716 // BSD-style license that can be found in the LICENSE file. |
17241 | 18717 |
17242 | 18718 |
17243 /// @domName SpeechRecognitionAlternative; @docsEditable true | 18719 /// @docsEditable true |
| 18720 @DomName("SpeechRecognitionAlternative") |
17244 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { | 18721 class SpeechRecognitionAlternative native "*SpeechRecognitionAlternative" { |
17245 | 18722 |
17246 /// @domName SpeechRecognitionAlternative.confidence; @docsEditable true | 18723 /// @docsEditable true |
| 18724 @DomName("SpeechRecognitionAlternative.confidence") |
17247 final num confidence; | 18725 final num confidence; |
17248 | 18726 |
17249 /// @domName SpeechRecognitionAlternative.transcript; @docsEditable true | 18727 /// @docsEditable true |
| 18728 @DomName("SpeechRecognitionAlternative.transcript") |
17250 final String transcript; | 18729 final String transcript; |
17251 } | 18730 } |
17252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17253 // for details. All rights reserved. Use of this source code is governed by a | 18732 // for details. All rights reserved. Use of this source code is governed by a |
17254 // BSD-style license that can be found in the LICENSE file. | 18733 // BSD-style license that can be found in the LICENSE file. |
17255 | 18734 |
17256 | 18735 |
17257 /// @domName SpeechRecognitionError; @docsEditable true | 18736 /// @docsEditable true |
| 18737 @DomName("SpeechRecognitionError") |
17258 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { | 18738 class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { |
17259 | 18739 |
17260 /// @domName SpeechRecognitionError.error; @docsEditable true | 18740 /// @docsEditable true |
| 18741 @DomName("SpeechRecognitionError.error") |
17261 final String error; | 18742 final String error; |
17262 | 18743 |
17263 /// @domName SpeechRecognitionError.message; @docsEditable true | 18744 /// @docsEditable true |
| 18745 @DomName("SpeechRecognitionError.message") |
17264 final String message; | 18746 final String message; |
17265 } | 18747 } |
17266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17267 // for details. All rights reserved. Use of this source code is governed by a | 18749 // for details. All rights reserved. Use of this source code is governed by a |
17268 // BSD-style license that can be found in the LICENSE file. | 18750 // BSD-style license that can be found in the LICENSE file. |
17269 | 18751 |
17270 | 18752 |
17271 /// @domName SpeechRecognitionEvent; @docsEditable true | 18753 /// @docsEditable true |
| 18754 @DomName("SpeechRecognitionEvent") |
17272 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { | 18755 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { |
17273 | 18756 |
17274 /// @domName SpeechRecognitionEvent.result; @docsEditable true | 18757 /// @docsEditable true |
| 18758 @DomName("SpeechRecognitionEvent.result") |
17275 final SpeechRecognitionResult result; | 18759 final SpeechRecognitionResult result; |
17276 | 18760 |
17277 /// @domName SpeechRecognitionEvent.resultHistory; @docsEditable true | 18761 /// @docsEditable true |
| 18762 @DomName("SpeechRecognitionEvent.resultHistory") |
17278 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis
t') | 18763 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis
t') |
17279 final List<SpeechRecognitionResult> resultHistory; | 18764 final List<SpeechRecognitionResult> resultHistory; |
17280 | 18765 |
17281 /// @domName SpeechRecognitionEvent.resultIndex; @docsEditable true | 18766 /// @docsEditable true |
| 18767 @DomName("SpeechRecognitionEvent.resultIndex") |
17282 final int resultIndex; | 18768 final int resultIndex; |
17283 | 18769 |
17284 /// @domName SpeechRecognitionEvent.results; @docsEditable true | 18770 /// @docsEditable true |
| 18771 @DomName("SpeechRecognitionEvent.results") |
17285 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis
t') | 18772 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis
t') |
17286 final List<SpeechRecognitionResult> results; | 18773 final List<SpeechRecognitionResult> results; |
17287 } | 18774 } |
17288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18775 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17289 // for details. All rights reserved. Use of this source code is governed by a | 18776 // for details. All rights reserved. Use of this source code is governed by a |
17290 // BSD-style license that can be found in the LICENSE file. | 18777 // BSD-style license that can be found in the LICENSE file. |
17291 | 18778 |
17292 | 18779 |
17293 /// @domName SpeechRecognitionResult; @docsEditable true | 18780 /// @docsEditable true |
| 18781 @DomName("SpeechRecognitionResult") |
17294 class SpeechRecognitionResult native "*SpeechRecognitionResult" { | 18782 class SpeechRecognitionResult native "*SpeechRecognitionResult" { |
17295 | 18783 |
17296 /// @domName SpeechRecognitionResult.isFinal; @docsEditable true | 18784 /// @docsEditable true |
| 18785 @DomName("SpeechRecognitionResult.isFinal") |
17297 final bool isFinal; | 18786 final bool isFinal; |
17298 | 18787 |
17299 /// @domName SpeechRecognitionResult.length; @docsEditable true | 18788 /// @docsEditable true |
| 18789 @DomName("SpeechRecognitionResult.length") |
17300 final int length; | 18790 final int length; |
17301 | 18791 |
17302 /// @domName SpeechRecognitionResult.item; @docsEditable true | 18792 /// @docsEditable true |
| 18793 @DomName("SpeechRecognitionResult.item") |
17303 SpeechRecognitionAlternative item(int index) native; | 18794 SpeechRecognitionAlternative item(int index) native; |
17304 } | 18795 } |
17305 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17306 // for details. All rights reserved. Use of this source code is governed by a | 18797 // for details. All rights reserved. Use of this source code is governed by a |
17307 // BSD-style license that can be found in the LICENSE file. | 18798 // BSD-style license that can be found in the LICENSE file. |
17308 | 18799 |
17309 | 18800 |
17310 /// @domName SQLError; @docsEditable true | 18801 /// @docsEditable true |
| 18802 @DomName("SQLError") |
17311 class SqlError native "*SQLError" { | 18803 class SqlError native "*SQLError" { |
17312 | 18804 |
17313 static const int CONSTRAINT_ERR = 6; | 18805 static const int CONSTRAINT_ERR = 6; |
17314 | 18806 |
17315 static const int DATABASE_ERR = 1; | 18807 static const int DATABASE_ERR = 1; |
17316 | 18808 |
17317 static const int QUOTA_ERR = 4; | 18809 static const int QUOTA_ERR = 4; |
17318 | 18810 |
17319 static const int SYNTAX_ERR = 5; | 18811 static const int SYNTAX_ERR = 5; |
17320 | 18812 |
17321 static const int TIMEOUT_ERR = 7; | 18813 static const int TIMEOUT_ERR = 7; |
17322 | 18814 |
17323 static const int TOO_LARGE_ERR = 3; | 18815 static const int TOO_LARGE_ERR = 3; |
17324 | 18816 |
17325 static const int UNKNOWN_ERR = 0; | 18817 static const int UNKNOWN_ERR = 0; |
17326 | 18818 |
17327 static const int VERSION_ERR = 2; | 18819 static const int VERSION_ERR = 2; |
17328 | 18820 |
17329 /// @domName SQLError.code; @docsEditable true | 18821 /// @docsEditable true |
| 18822 @DomName("SQLError.code") |
17330 final int code; | 18823 final int code; |
17331 | 18824 |
17332 /// @domName SQLError.message; @docsEditable true | 18825 /// @docsEditable true |
| 18826 @DomName("SQLError.message") |
17333 final String message; | 18827 final String message; |
17334 } | 18828 } |
17335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17336 // for details. All rights reserved. Use of this source code is governed by a | 18830 // for details. All rights reserved. Use of this source code is governed by a |
17337 // BSD-style license that can be found in the LICENSE file. | 18831 // BSD-style license that can be found in the LICENSE file. |
17338 | 18832 |
17339 | 18833 |
17340 /// @domName SQLException; @docsEditable true | 18834 /// @docsEditable true |
| 18835 @DomName("SQLException") |
17341 class SqlException native "*SQLException" { | 18836 class SqlException native "*SQLException" { |
17342 | 18837 |
17343 static const int CONSTRAINT_ERR = 6; | 18838 static const int CONSTRAINT_ERR = 6; |
17344 | 18839 |
17345 static const int DATABASE_ERR = 1; | 18840 static const int DATABASE_ERR = 1; |
17346 | 18841 |
17347 static const int QUOTA_ERR = 4; | 18842 static const int QUOTA_ERR = 4; |
17348 | 18843 |
17349 static const int SYNTAX_ERR = 5; | 18844 static const int SYNTAX_ERR = 5; |
17350 | 18845 |
17351 static const int TIMEOUT_ERR = 7; | 18846 static const int TIMEOUT_ERR = 7; |
17352 | 18847 |
17353 static const int TOO_LARGE_ERR = 3; | 18848 static const int TOO_LARGE_ERR = 3; |
17354 | 18849 |
17355 static const int UNKNOWN_ERR = 0; | 18850 static const int UNKNOWN_ERR = 0; |
17356 | 18851 |
17357 static const int VERSION_ERR = 2; | 18852 static const int VERSION_ERR = 2; |
17358 | 18853 |
17359 /// @domName SQLException.code; @docsEditable true | 18854 /// @docsEditable true |
| 18855 @DomName("SQLException.code") |
17360 final int code; | 18856 final int code; |
17361 | 18857 |
17362 /// @domName SQLException.message; @docsEditable true | 18858 /// @docsEditable true |
| 18859 @DomName("SQLException.message") |
17363 final String message; | 18860 final String message; |
17364 } | 18861 } |
17365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17366 // for details. All rights reserved. Use of this source code is governed by a | 18863 // for details. All rights reserved. Use of this source code is governed by a |
17367 // BSD-style license that can be found in the LICENSE file. | 18864 // BSD-style license that can be found in the LICENSE file. |
17368 | 18865 |
17369 | 18866 |
17370 /// @domName SQLResultSet; @docsEditable true | 18867 /// @docsEditable true |
| 18868 @DomName("SQLResultSet") |
17371 class SqlResultSet native "*SQLResultSet" { | 18869 class SqlResultSet native "*SQLResultSet" { |
17372 | 18870 |
17373 /// @domName SQLResultSet.insertId; @docsEditable true | 18871 /// @docsEditable true |
| 18872 @DomName("SQLResultSet.insertId") |
17374 final int insertId; | 18873 final int insertId; |
17375 | 18874 |
17376 /// @domName SQLResultSet.rows; @docsEditable true | 18875 /// @docsEditable true |
| 18876 @DomName("SQLResultSet.rows") |
17377 final SqlResultSetRowList rows; | 18877 final SqlResultSetRowList rows; |
17378 | 18878 |
17379 /// @domName SQLResultSet.rowsAffected; @docsEditable true | 18879 /// @docsEditable true |
| 18880 @DomName("SQLResultSet.rowsAffected") |
17380 final int rowsAffected; | 18881 final int rowsAffected; |
17381 } | 18882 } |
17382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17383 // for details. All rights reserved. Use of this source code is governed by a | 18884 // for details. All rights reserved. Use of this source code is governed by a |
17384 // BSD-style license that can be found in the LICENSE file. | 18885 // BSD-style license that can be found in the LICENSE file. |
17385 | 18886 |
17386 | 18887 |
17387 /// @domName SQLResultSetRowList; @docsEditable true | 18888 /// @docsEditable true |
| 18889 @DomName("SQLResultSetRowList") |
17388 class SqlResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ
e "*SQLResultSetRowList" { | 18890 class SqlResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ
e "*SQLResultSetRowList" { |
17389 | 18891 |
17390 /// @domName SQLResultSetRowList.length; @docsEditable true | 18892 /// @docsEditable true |
| 18893 @DomName("SQLResultSetRowList.length") |
17391 int get length => JS("int", "#.length", this); | 18894 int get length => JS("int", "#.length", this); |
17392 | 18895 |
17393 Map operator[](int index) => JS("Map", "#[#]", this, index); | 18896 Map operator[](int index) => JS("Map", "#[#]", this, index); |
17394 | 18897 |
17395 void operator[]=(int index, Map value) { | 18898 void operator[]=(int index, Map value) { |
17396 throw new UnsupportedError("Cannot assign element of immutable List."); | 18899 throw new UnsupportedError("Cannot assign element of immutable List."); |
17397 } | 18900 } |
17398 // -- start List<Map> mixins. | 18901 // -- start List<Map> mixins. |
17399 // Map is the element type. | 18902 // Map is the element type. |
17400 | 18903 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17528 | 19031 |
17529 void insertRange(int start, int rangeLength, [Map initialValue]) { | 19032 void insertRange(int start, int rangeLength, [Map initialValue]) { |
17530 throw new UnsupportedError("Cannot insertRange on immutable List."); | 19033 throw new UnsupportedError("Cannot insertRange on immutable List."); |
17531 } | 19034 } |
17532 | 19035 |
17533 List<Map> getRange(int start, int rangeLength) => | 19036 List<Map> getRange(int start, int rangeLength) => |
17534 Lists.getRange(this, start, rangeLength, <Map>[]); | 19037 Lists.getRange(this, start, rangeLength, <Map>[]); |
17535 | 19038 |
17536 // -- end List<Map> mixins. | 19039 // -- end List<Map> mixins. |
17537 | 19040 |
17538 /// @domName SQLResultSetRowList.item; @docsEditable true | 19041 /// @docsEditable true |
17539 Map item(int index) { | 19042 Map item(int index) { |
17540 return convertNativeToDart_Dictionary(_item_1(index)); | 19043 return convertNativeToDart_Dictionary(_item_1(index)); |
17541 } | 19044 } |
17542 @JSName('item') | 19045 @JSName('item') |
17543 @Creates('=Object') | 19046 @DomName("SQLResultSetRowList.item") @Creates('=Object') |
17544 _item_1(index) native; | 19047 _item_1(index) native; |
17545 } | 19048 } |
17546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17547 // for details. All rights reserved. Use of this source code is governed by a | 19050 // for details. All rights reserved. Use of this source code is governed by a |
17548 // BSD-style license that can be found in the LICENSE file. | 19051 // BSD-style license that can be found in the LICENSE file. |
17549 | 19052 |
17550 | 19053 |
17551 /// @domName SQLTransaction; @docsEditable true | 19054 /// @docsEditable true |
| 19055 @DomName("SQLTransaction") |
17552 class SqlTransaction native "*SQLTransaction" { | 19056 class SqlTransaction native "*SQLTransaction" { |
17553 | 19057 |
17554 /// @domName SQLTransaction.executeSql; @docsEditable true | 19058 /// @docsEditable true |
| 19059 @DomName("SQLTransaction.executeSql") |
17555 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native; | 19060 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native; |
17556 } | 19061 } |
17557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17558 // for details. All rights reserved. Use of this source code is governed by a | 19063 // for details. All rights reserved. Use of this source code is governed by a |
17559 // BSD-style license that can be found in the LICENSE file. | 19064 // BSD-style license that can be found in the LICENSE file. |
17560 | 19065 |
17561 | 19066 |
17562 /// @domName SQLTransactionSync; @docsEditable true | 19067 /// @docsEditable true |
| 19068 @DomName("SQLTransactionSync") |
17563 class SqlTransactionSync native "*SQLTransactionSync" { | 19069 class SqlTransactionSync native "*SQLTransactionSync" { |
17564 | 19070 |
17565 /// @domName SQLTransactionSync.executeSql; @docsEditable true | 19071 /// @docsEditable true |
| 19072 @DomName("SQLTransactionSync.executeSql") |
17566 SqlResultSet executeSql(String sqlStatement, List arguments) native; | 19073 SqlResultSet executeSql(String sqlStatement, List arguments) native; |
17567 } | 19074 } |
17568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19075 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17569 // for details. All rights reserved. Use of this source code is governed by a | 19076 // for details. All rights reserved. Use of this source code is governed by a |
17570 // BSD-style license that can be found in the LICENSE file. | 19077 // BSD-style license that can be found in the LICENSE file. |
17571 | 19078 |
17572 | 19079 |
17573 /// @domName Storage | 19080 @DomName("Storage") |
17574 class Storage implements Map<String, String> native "*Storage" { | 19081 class Storage implements Map<String, String> native "*Storage" { |
17575 | 19082 |
17576 // TODO(nweiz): update this when maps support lazy iteration | 19083 // TODO(nweiz): update this when maps support lazy iteration |
17577 bool containsValue(String value) => values.any((e) => e == value); | 19084 bool containsValue(String value) => values.any((e) => e == value); |
17578 | 19085 |
17579 bool containsKey(String key) => $dom_getItem(key) != null; | 19086 bool containsKey(String key) => $dom_getItem(key) != null; |
17580 | 19087 |
17581 String operator [](String key) => $dom_getItem(key); | 19088 String operator [](String key) => $dom_getItem(key); |
17582 | 19089 |
17583 void operator []=(String key, String value) { $dom_setItem(key, value); } | 19090 void operator []=(String key, String value) { $dom_setItem(key, value); } |
(...skipping 29 matching lines...) Expand all Loading... |
17613 Collection<String> get values { | 19120 Collection<String> get values { |
17614 final values = []; | 19121 final values = []; |
17615 forEach((k, v) => values.add(v)); | 19122 forEach((k, v) => values.add(v)); |
17616 return values; | 19123 return values; |
17617 } | 19124 } |
17618 | 19125 |
17619 int get length => $dom_length; | 19126 int get length => $dom_length; |
17620 | 19127 |
17621 bool get isEmpty => $dom_key(0) == null; | 19128 bool get isEmpty => $dom_key(0) == null; |
17622 | 19129 |
17623 /// @domName Storage.length; @docsEditable true | 19130 /// @docsEditable true |
17624 @JSName('length') | 19131 @JSName('length') |
| 19132 @DomName("Storage.length") |
17625 final int $dom_length; | 19133 final int $dom_length; |
17626 | 19134 |
17627 /// @domName Storage.clear; @docsEditable true | 19135 /// @docsEditable true |
17628 @JSName('clear') | 19136 @JSName('clear') |
| 19137 @DomName("Storage.clear") |
17629 void $dom_clear() native; | 19138 void $dom_clear() native; |
17630 | 19139 |
17631 /// @domName Storage.getItem; @docsEditable true | 19140 /// @docsEditable true |
17632 @JSName('getItem') | 19141 @JSName('getItem') |
| 19142 @DomName("Storage.getItem") |
17633 String $dom_getItem(String key) native; | 19143 String $dom_getItem(String key) native; |
17634 | 19144 |
17635 /// @domName Storage.key; @docsEditable true | 19145 /// @docsEditable true |
17636 @JSName('key') | 19146 @JSName('key') |
| 19147 @DomName("Storage.key") |
17637 String $dom_key(int index) native; | 19148 String $dom_key(int index) native; |
17638 | 19149 |
17639 /// @domName Storage.removeItem; @docsEditable true | 19150 /// @docsEditable true |
17640 @JSName('removeItem') | 19151 @JSName('removeItem') |
| 19152 @DomName("Storage.removeItem") |
17641 void $dom_removeItem(String key) native; | 19153 void $dom_removeItem(String key) native; |
17642 | 19154 |
17643 /// @domName Storage.setItem; @docsEditable true | 19155 /// @docsEditable true |
17644 @JSName('setItem') | 19156 @JSName('setItem') |
| 19157 @DomName("Storage.setItem") |
17645 void $dom_setItem(String key, String data) native; | 19158 void $dom_setItem(String key, String data) native; |
17646 | 19159 |
17647 } | 19160 } |
17648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17649 // for details. All rights reserved. Use of this source code is governed by a | 19162 // for details. All rights reserved. Use of this source code is governed by a |
17650 // BSD-style license that can be found in the LICENSE file. | 19163 // BSD-style license that can be found in the LICENSE file. |
17651 | 19164 |
17652 | 19165 |
17653 /// @domName StorageEvent; @docsEditable true | 19166 /// @docsEditable true |
| 19167 @DomName("StorageEvent") |
17654 class StorageEvent extends Event native "*StorageEvent" { | 19168 class StorageEvent extends Event native "*StorageEvent" { |
17655 | 19169 |
17656 /// @domName StorageEvent.key; @docsEditable true | 19170 /// @docsEditable true |
| 19171 @DomName("StorageEvent.key") |
17657 final String key; | 19172 final String key; |
17658 | 19173 |
17659 /// @domName StorageEvent.newValue; @docsEditable true | 19174 /// @docsEditable true |
| 19175 @DomName("StorageEvent.newValue") |
17660 final String newValue; | 19176 final String newValue; |
17661 | 19177 |
17662 /// @domName StorageEvent.oldValue; @docsEditable true | 19178 /// @docsEditable true |
| 19179 @DomName("StorageEvent.oldValue") |
17663 final String oldValue; | 19180 final String oldValue; |
17664 | 19181 |
17665 /// @domName StorageEvent.storageArea; @docsEditable true | 19182 /// @docsEditable true |
| 19183 @DomName("StorageEvent.storageArea") |
17666 final Storage storageArea; | 19184 final Storage storageArea; |
17667 | 19185 |
17668 /// @domName StorageEvent.url; @docsEditable true | 19186 /// @docsEditable true |
| 19187 @DomName("StorageEvent.url") |
17669 final String url; | 19188 final String url; |
17670 | 19189 |
17671 /// @domName StorageEvent.initStorageEvent; @docsEditable true | 19190 /// @docsEditable true |
| 19191 @DomName("StorageEvent.initStorageEvent") |
17672 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg) native; | 19192 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg) native; |
17673 } | 19193 } |
17674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17675 // for details. All rights reserved. Use of this source code is governed by a | 19195 // for details. All rights reserved. Use of this source code is governed by a |
17676 // BSD-style license that can be found in the LICENSE file. | 19196 // BSD-style license that can be found in the LICENSE file. |
17677 | 19197 |
17678 | 19198 |
17679 /// @domName StorageInfo; @docsEditable true | 19199 /// @docsEditable true |
| 19200 @DomName("StorageInfo") |
17680 class StorageInfo native "*StorageInfo" { | 19201 class StorageInfo native "*StorageInfo" { |
17681 | 19202 |
17682 static const int PERSISTENT = 1; | 19203 static const int PERSISTENT = 1; |
17683 | 19204 |
17684 static const int TEMPORARY = 0; | 19205 static const int TEMPORARY = 0; |
17685 | 19206 |
17686 /// @domName StorageInfo.queryUsageAndQuota; @docsEditable true | 19207 /// @docsEditable true |
| 19208 @DomName("StorageInfo.queryUsageAndQuota") |
17687 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]) native; | 19209 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]) native; |
17688 | 19210 |
17689 /// @domName StorageInfo.requestQuota; @docsEditable true | 19211 /// @docsEditable true |
| 19212 @DomName("StorageInfo.requestQuota") |
17690 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; | 19213 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; |
17691 } | 19214 } |
17692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17693 // for details. All rights reserved. Use of this source code is governed by a | 19216 // for details. All rights reserved. Use of this source code is governed by a |
17694 // BSD-style license that can be found in the LICENSE file. | 19217 // BSD-style license that can be found in the LICENSE file. |
17695 | 19218 |
17696 // WARNING: Do not edit - generated code. | 19219 // WARNING: Do not edit - generated code. |
17697 | 19220 |
17698 | 19221 |
17699 typedef void StorageInfoErrorCallback(DomException error); | 19222 typedef void StorageInfoErrorCallback(DomException error); |
(...skipping 19 matching lines...) Expand all Loading... |
17719 | 19242 |
17720 // WARNING: Do not edit - generated code. | 19243 // WARNING: Do not edit - generated code. |
17721 | 19244 |
17722 | 19245 |
17723 typedef void StringCallback(String data); | 19246 typedef void StringCallback(String data); |
17724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17725 // for details. All rights reserved. Use of this source code is governed by a | 19248 // for details. All rights reserved. Use of this source code is governed by a |
17726 // BSD-style license that can be found in the LICENSE file. | 19249 // BSD-style license that can be found in the LICENSE file. |
17727 | 19250 |
17728 | 19251 |
17729 /// @domName HTMLStyleElement; @docsEditable true | 19252 /// @docsEditable true |
| 19253 @DomName("HTMLStyleElement") |
17730 class StyleElement extends Element native "*HTMLStyleElement" { | 19254 class StyleElement extends Element native "*HTMLStyleElement" { |
17731 | 19255 |
17732 ///@docsEditable true | 19256 /// @docsEditable true |
17733 factory StyleElement() => document.$dom_createElement("style"); | 19257 factory StyleElement() => document.$dom_createElement("style"); |
17734 | 19258 |
17735 /// @domName HTMLStyleElement.disabled; @docsEditable true | 19259 /// @docsEditable true |
| 19260 @DomName("HTMLStyleElement.disabled") |
17736 bool disabled; | 19261 bool disabled; |
17737 | 19262 |
17738 /// @domName HTMLStyleElement.media; @docsEditable true | 19263 /// @docsEditable true |
| 19264 @DomName("HTMLStyleElement.media") |
17739 String media; | 19265 String media; |
17740 | 19266 |
17741 /// @domName HTMLStyleElement.scoped; @docsEditable true | 19267 /// @docsEditable true |
| 19268 @DomName("HTMLStyleElement.scoped") |
17742 bool scoped; | 19269 bool scoped; |
17743 | 19270 |
17744 /// @domName HTMLStyleElement.sheet; @docsEditable true | 19271 /// @docsEditable true |
| 19272 @DomName("HTMLStyleElement.sheet") |
17745 final StyleSheet sheet; | 19273 final StyleSheet sheet; |
17746 | 19274 |
17747 /// @domName HTMLStyleElement.type; @docsEditable true | 19275 /// @docsEditable true |
| 19276 @DomName("HTMLStyleElement.type") |
17748 String type; | 19277 String type; |
17749 } | 19278 } |
17750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17751 // for details. All rights reserved. Use of this source code is governed by a | 19280 // for details. All rights reserved. Use of this source code is governed by a |
17752 // BSD-style license that can be found in the LICENSE file. | 19281 // BSD-style license that can be found in the LICENSE file. |
17753 | 19282 |
17754 | 19283 |
17755 /// @domName StyleMedia; @docsEditable true | 19284 /// @docsEditable true |
| 19285 @DomName("StyleMedia") |
17756 class StyleMedia native "*StyleMedia" { | 19286 class StyleMedia native "*StyleMedia" { |
17757 | 19287 |
17758 /// @domName StyleMedia.type; @docsEditable true | 19288 /// @docsEditable true |
| 19289 @DomName("StyleMedia.type") |
17759 final String type; | 19290 final String type; |
17760 | 19291 |
17761 /// @domName StyleMedia.matchMedium; @docsEditable true | 19292 /// @docsEditable true |
| 19293 @DomName("StyleMedia.matchMedium") |
17762 bool matchMedium(String mediaquery) native; | 19294 bool matchMedium(String mediaquery) native; |
17763 } | 19295 } |
17764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19296 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17765 // for details. All rights reserved. Use of this source code is governed by a | 19297 // for details. All rights reserved. Use of this source code is governed by a |
17766 // BSD-style license that can be found in the LICENSE file. | 19298 // BSD-style license that can be found in the LICENSE file. |
17767 | 19299 |
17768 | 19300 |
17769 /// @domName StyleSheet; @docsEditable true | 19301 /// @docsEditable true |
| 19302 @DomName("StyleSheet") |
17770 class StyleSheet native "*StyleSheet" { | 19303 class StyleSheet native "*StyleSheet" { |
17771 | 19304 |
17772 /// @domName StyleSheet.disabled; @docsEditable true | 19305 /// @docsEditable true |
| 19306 @DomName("StyleSheet.disabled") |
17773 bool disabled; | 19307 bool disabled; |
17774 | 19308 |
17775 /// @domName StyleSheet.href; @docsEditable true | 19309 /// @docsEditable true |
| 19310 @DomName("StyleSheet.href") |
17776 final String href; | 19311 final String href; |
17777 | 19312 |
17778 /// @domName StyleSheet.media; @docsEditable true | 19313 /// @docsEditable true |
| 19314 @DomName("StyleSheet.media") |
17779 final MediaList media; | 19315 final MediaList media; |
17780 | 19316 |
17781 /// @domName StyleSheet.ownerNode; @docsEditable true | 19317 /// @docsEditable true |
| 19318 @DomName("StyleSheet.ownerNode") |
17782 final Node ownerNode; | 19319 final Node ownerNode; |
17783 | 19320 |
17784 /// @domName StyleSheet.parentStyleSheet; @docsEditable true | 19321 /// @docsEditable true |
| 19322 @DomName("StyleSheet.parentStyleSheet") |
17785 final StyleSheet parentStyleSheet; | 19323 final StyleSheet parentStyleSheet; |
17786 | 19324 |
17787 /// @domName StyleSheet.title; @docsEditable true | 19325 /// @docsEditable true |
| 19326 @DomName("StyleSheet.title") |
17788 final String title; | 19327 final String title; |
17789 | 19328 |
17790 /// @domName StyleSheet.type; @docsEditable true | 19329 /// @docsEditable true |
| 19330 @DomName("StyleSheet.type") |
17791 final String type; | 19331 final String type; |
17792 } | 19332 } |
17793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17794 // for details. All rights reserved. Use of this source code is governed by a | 19334 // for details. All rights reserved. Use of this source code is governed by a |
17795 // BSD-style license that can be found in the LICENSE file. | 19335 // BSD-style license that can be found in the LICENSE file. |
17796 | 19336 |
17797 | 19337 |
17798 /// @domName HTMLTableCaptionElement; @docsEditable true | 19338 /// @docsEditable true |
| 19339 @DomName("HTMLTableCaptionElement") |
17799 class TableCaptionElement extends Element native "*HTMLTableCaptionElement" { | 19340 class TableCaptionElement extends Element native "*HTMLTableCaptionElement" { |
17800 | 19341 |
17801 ///@docsEditable true | 19342 /// @docsEditable true |
17802 factory TableCaptionElement() => document.$dom_createElement("caption"); | 19343 factory TableCaptionElement() => document.$dom_createElement("caption"); |
17803 } | 19344 } |
17804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17805 // for details. All rights reserved. Use of this source code is governed by a | 19346 // for details. All rights reserved. Use of this source code is governed by a |
17806 // BSD-style license that can be found in the LICENSE file. | 19347 // BSD-style license that can be found in the LICENSE file. |
17807 | 19348 |
17808 | 19349 |
17809 /// @domName HTMLTableCellElement; @docsEditable true | 19350 /// @docsEditable true |
| 19351 @DomName("HTMLTableCellElement") |
17810 class TableCellElement extends Element native "*HTMLTableCellElement" { | 19352 class TableCellElement extends Element native "*HTMLTableCellElement" { |
17811 | 19353 |
17812 ///@docsEditable true | 19354 /// @docsEditable true |
17813 factory TableCellElement() => document.$dom_createElement("td"); | 19355 factory TableCellElement() => document.$dom_createElement("td"); |
17814 | 19356 |
17815 /// @domName HTMLTableCellElement.cellIndex; @docsEditable true | 19357 /// @docsEditable true |
| 19358 @DomName("HTMLTableCellElement.cellIndex") |
17816 final int cellIndex; | 19359 final int cellIndex; |
17817 | 19360 |
17818 /// @domName HTMLTableCellElement.colSpan; @docsEditable true | 19361 /// @docsEditable true |
| 19362 @DomName("HTMLTableCellElement.colSpan") |
17819 int colSpan; | 19363 int colSpan; |
17820 | 19364 |
17821 /// @domName HTMLTableCellElement.headers; @docsEditable true | 19365 /// @docsEditable true |
| 19366 @DomName("HTMLTableCellElement.headers") |
17822 String headers; | 19367 String headers; |
17823 | 19368 |
17824 /// @domName HTMLTableCellElement.rowSpan; @docsEditable true | 19369 /// @docsEditable true |
| 19370 @DomName("HTMLTableCellElement.rowSpan") |
17825 int rowSpan; | 19371 int rowSpan; |
17826 } | 19372 } |
17827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19373 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17828 // for details. All rights reserved. Use of this source code is governed by a | 19374 // for details. All rights reserved. Use of this source code is governed by a |
17829 // BSD-style license that can be found in the LICENSE file. | 19375 // BSD-style license that can be found in the LICENSE file. |
17830 | 19376 |
17831 | 19377 |
17832 /// @domName HTMLTableColElement; @docsEditable true | 19378 /// @docsEditable true |
| 19379 @DomName("HTMLTableColElement") |
17833 class TableColElement extends Element native "*HTMLTableColElement" { | 19380 class TableColElement extends Element native "*HTMLTableColElement" { |
17834 | 19381 |
17835 ///@docsEditable true | 19382 /// @docsEditable true |
17836 factory TableColElement() => document.$dom_createElement("col"); | 19383 factory TableColElement() => document.$dom_createElement("col"); |
17837 | 19384 |
17838 /// @domName HTMLTableColElement.span; @docsEditable true | 19385 /// @docsEditable true |
| 19386 @DomName("HTMLTableColElement.span") |
17839 int span; | 19387 int span; |
17840 } | 19388 } |
17841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19389 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17842 // for details. All rights reserved. Use of this source code is governed by a | 19390 // for details. All rights reserved. Use of this source code is governed by a |
17843 // BSD-style license that can be found in the LICENSE file. | 19391 // BSD-style license that can be found in the LICENSE file. |
17844 | 19392 |
17845 | 19393 |
17846 /// @domName HTMLTableElement | 19394 @DomName("HTMLTableElement") |
17847 class TableElement extends Element native "*HTMLTableElement" { | 19395 class TableElement extends Element native "*HTMLTableElement" { |
17848 | 19396 |
17849 ///@docsEditable true | 19397 /// @docsEditable true |
17850 factory TableElement() => document.$dom_createElement("table"); | 19398 factory TableElement() => document.$dom_createElement("table"); |
17851 | 19399 |
17852 /// @domName HTMLTableElement.border; @docsEditable true | 19400 /// @docsEditable true |
| 19401 @DomName("HTMLTableElement.border") |
17853 String border; | 19402 String border; |
17854 | 19403 |
17855 /// @domName HTMLTableElement.caption; @docsEditable true | 19404 /// @docsEditable true |
| 19405 @DomName("HTMLTableElement.caption") |
17856 TableCaptionElement caption; | 19406 TableCaptionElement caption; |
17857 | 19407 |
17858 /// @domName HTMLTableElement.rows; @docsEditable true | 19408 /// @docsEditable true |
| 19409 @DomName("HTMLTableElement.rows") |
17859 final HtmlCollection rows; | 19410 final HtmlCollection rows; |
17860 | 19411 |
17861 /// @domName HTMLTableElement.tBodies; @docsEditable true | 19412 /// @docsEditable true |
| 19413 @DomName("HTMLTableElement.tBodies") |
17862 final HtmlCollection tBodies; | 19414 final HtmlCollection tBodies; |
17863 | 19415 |
17864 /// @domName HTMLTableElement.tFoot; @docsEditable true | 19416 /// @docsEditable true |
| 19417 @DomName("HTMLTableElement.tFoot") |
17865 TableSectionElement tFoot; | 19418 TableSectionElement tFoot; |
17866 | 19419 |
17867 /// @domName HTMLTableElement.tHead; @docsEditable true | 19420 /// @docsEditable true |
| 19421 @DomName("HTMLTableElement.tHead") |
17868 TableSectionElement tHead; | 19422 TableSectionElement tHead; |
17869 | 19423 |
17870 /// @domName HTMLTableElement.createCaption; @docsEditable true | 19424 /// @docsEditable true |
| 19425 @DomName("HTMLTableElement.createCaption") |
17871 Element createCaption() native; | 19426 Element createCaption() native; |
17872 | 19427 |
17873 /// @domName HTMLTableElement.createTFoot; @docsEditable true | 19428 /// @docsEditable true |
| 19429 @DomName("HTMLTableElement.createTFoot") |
17874 Element createTFoot() native; | 19430 Element createTFoot() native; |
17875 | 19431 |
17876 /// @domName HTMLTableElement.createTHead; @docsEditable true | 19432 /// @docsEditable true |
| 19433 @DomName("HTMLTableElement.createTHead") |
17877 Element createTHead() native; | 19434 Element createTHead() native; |
17878 | 19435 |
17879 /// @domName HTMLTableElement.deleteCaption; @docsEditable true | 19436 /// @docsEditable true |
| 19437 @DomName("HTMLTableElement.deleteCaption") |
17880 void deleteCaption() native; | 19438 void deleteCaption() native; |
17881 | 19439 |
17882 /// @domName HTMLTableElement.deleteRow; @docsEditable true | 19440 /// @docsEditable true |
| 19441 @DomName("HTMLTableElement.deleteRow") |
17883 void deleteRow(int index) native; | 19442 void deleteRow(int index) native; |
17884 | 19443 |
17885 /// @domName HTMLTableElement.deleteTFoot; @docsEditable true | 19444 /// @docsEditable true |
| 19445 @DomName("HTMLTableElement.deleteTFoot") |
17886 void deleteTFoot() native; | 19446 void deleteTFoot() native; |
17887 | 19447 |
17888 /// @domName HTMLTableElement.deleteTHead; @docsEditable true | 19448 /// @docsEditable true |
| 19449 @DomName("HTMLTableElement.deleteTHead") |
17889 void deleteTHead() native; | 19450 void deleteTHead() native; |
17890 | 19451 |
17891 /// @domName HTMLTableElement.insertRow; @docsEditable true | 19452 /// @docsEditable true |
| 19453 @DomName("HTMLTableElement.insertRow") |
17892 Element insertRow(int index) native; | 19454 Element insertRow(int index) native; |
17893 | 19455 |
17894 | 19456 |
17895 Element createTBody() { | 19457 Element createTBody() { |
17896 if (JS('bool', '!!#.createTBody', this)) { | 19458 if (JS('bool', '!!#.createTBody', this)) { |
17897 return this._createTBody(); | 19459 return this._createTBody(); |
17898 } | 19460 } |
17899 var tbody = new Element.tag('tbody'); | 19461 var tbody = new Element.tag('tbody'); |
17900 this.elements.add(tbody); | 19462 this.elements.add(tbody); |
17901 return tbody; | 19463 return tbody; |
17902 } | 19464 } |
17903 | 19465 |
17904 @JSName('createTBody') | 19466 @JSName('createTBody') |
17905 Element _createTBody() native; | 19467 Element _createTBody() native; |
17906 } | 19468 } |
17907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17908 // for details. All rights reserved. Use of this source code is governed by a | 19470 // for details. All rights reserved. Use of this source code is governed by a |
17909 // BSD-style license that can be found in the LICENSE file. | 19471 // BSD-style license that can be found in the LICENSE file. |
17910 | 19472 |
17911 | 19473 |
17912 /// @domName HTMLTableRowElement; @docsEditable true | 19474 /// @docsEditable true |
| 19475 @DomName("HTMLTableRowElement") |
17913 class TableRowElement extends Element native "*HTMLTableRowElement" { | 19476 class TableRowElement extends Element native "*HTMLTableRowElement" { |
17914 | 19477 |
17915 ///@docsEditable true | 19478 /// @docsEditable true |
17916 factory TableRowElement() => document.$dom_createElement("tr"); | 19479 factory TableRowElement() => document.$dom_createElement("tr"); |
17917 | 19480 |
17918 /// @domName HTMLTableRowElement.cells; @docsEditable true | 19481 /// @docsEditable true |
| 19482 @DomName("HTMLTableRowElement.cells") |
17919 final HtmlCollection cells; | 19483 final HtmlCollection cells; |
17920 | 19484 |
17921 /// @domName HTMLTableRowElement.rowIndex; @docsEditable true | 19485 /// @docsEditable true |
| 19486 @DomName("HTMLTableRowElement.rowIndex") |
17922 final int rowIndex; | 19487 final int rowIndex; |
17923 | 19488 |
17924 /// @domName HTMLTableRowElement.sectionRowIndex; @docsEditable true | 19489 /// @docsEditable true |
| 19490 @DomName("HTMLTableRowElement.sectionRowIndex") |
17925 final int sectionRowIndex; | 19491 final int sectionRowIndex; |
17926 | 19492 |
17927 /// @domName HTMLTableRowElement.deleteCell; @docsEditable true | 19493 /// @docsEditable true |
| 19494 @DomName("HTMLTableRowElement.deleteCell") |
17928 void deleteCell(int index) native; | 19495 void deleteCell(int index) native; |
17929 | 19496 |
17930 /// @domName HTMLTableRowElement.insertCell; @docsEditable true | 19497 /// @docsEditable true |
| 19498 @DomName("HTMLTableRowElement.insertCell") |
17931 Element insertCell(int index) native; | 19499 Element insertCell(int index) native; |
17932 } | 19500 } |
17933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17934 // for details. All rights reserved. Use of this source code is governed by a | 19502 // for details. All rights reserved. Use of this source code is governed by a |
17935 // BSD-style license that can be found in the LICENSE file. | 19503 // BSD-style license that can be found in the LICENSE file. |
17936 | 19504 |
17937 | 19505 |
17938 /// @domName HTMLTableSectionElement; @docsEditable true | 19506 /// @docsEditable true |
| 19507 @DomName("HTMLTableSectionElement") |
17939 class TableSectionElement extends Element native "*HTMLTableSectionElement" { | 19508 class TableSectionElement extends Element native "*HTMLTableSectionElement" { |
17940 | 19509 |
17941 /// @domName HTMLTableSectionElement.chOff; @docsEditable true | 19510 /// @docsEditable true |
| 19511 @DomName("HTMLTableSectionElement.chOff") |
17942 String chOff; | 19512 String chOff; |
17943 | 19513 |
17944 /// @domName HTMLTableSectionElement.rows; @docsEditable true | 19514 /// @docsEditable true |
| 19515 @DomName("HTMLTableSectionElement.rows") |
17945 final HtmlCollection rows; | 19516 final HtmlCollection rows; |
17946 | 19517 |
17947 /// @domName HTMLTableSectionElement.deleteRow; @docsEditable true | 19518 /// @docsEditable true |
| 19519 @DomName("HTMLTableSectionElement.deleteRow") |
17948 void deleteRow(int index) native; | 19520 void deleteRow(int index) native; |
17949 | 19521 |
17950 /// @domName HTMLTableSectionElement.insertRow; @docsEditable true | 19522 /// @docsEditable true |
| 19523 @DomName("HTMLTableSectionElement.insertRow") |
17951 Element insertRow(int index) native; | 19524 Element insertRow(int index) native; |
17952 } | 19525 } |
17953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17954 // for details. All rights reserved. Use of this source code is governed by a | 19527 // for details. All rights reserved. Use of this source code is governed by a |
17955 // BSD-style license that can be found in the LICENSE file. | 19528 // BSD-style license that can be found in the LICENSE file. |
17956 | 19529 |
17957 // WARNING: Do not edit - generated code. | 19530 // WARNING: Do not edit - generated code. |
17958 | 19531 |
17959 | 19532 |
17960 /// @domName Text | 19533 @DomName("Text") |
17961 class Text extends CharacterData native "*Text" { | 19534 class Text extends CharacterData native "*Text" { |
17962 factory Text(String data) => _TextFactoryProvider.createText(data); | 19535 factory Text(String data) => _TextFactoryProvider.createText(data); |
17963 | 19536 |
17964 /// @domName Text.wholeText; @docsEditable true | 19537 /// @docsEditable true |
| 19538 @DomName("Text.wholeText") |
17965 final String wholeText; | 19539 final String wholeText; |
17966 | 19540 |
17967 /// @domName Text.replaceWholeText; @docsEditable true | 19541 /// @docsEditable true |
| 19542 @DomName("Text.replaceWholeText") |
17968 Text replaceWholeText(String content) native; | 19543 Text replaceWholeText(String content) native; |
17969 | 19544 |
17970 /// @domName Text.splitText; @docsEditable true | 19545 /// @docsEditable true |
| 19546 @DomName("Text.splitText") |
17971 Text splitText(int offset) native; | 19547 Text splitText(int offset) native; |
17972 | 19548 |
17973 } | 19549 } |
17974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17975 // for details. All rights reserved. Use of this source code is governed by a | 19551 // for details. All rights reserved. Use of this source code is governed by a |
17976 // BSD-style license that can be found in the LICENSE file. | 19552 // BSD-style license that can be found in the LICENSE file. |
17977 | 19553 |
17978 | 19554 |
17979 /// @domName HTMLTextAreaElement; @docsEditable true | 19555 /// @docsEditable true |
| 19556 @DomName("HTMLTextAreaElement") |
17980 class TextAreaElement extends Element native "*HTMLTextAreaElement" { | 19557 class TextAreaElement extends Element native "*HTMLTextAreaElement" { |
17981 | 19558 |
17982 ///@docsEditable true | 19559 /// @docsEditable true |
17983 factory TextAreaElement() => document.$dom_createElement("textarea"); | 19560 factory TextAreaElement() => document.$dom_createElement("textarea"); |
17984 | 19561 |
17985 /// @domName HTMLTextAreaElement.autofocus; @docsEditable true | 19562 /// @docsEditable true |
| 19563 @DomName("HTMLTextAreaElement.autofocus") |
17986 bool autofocus; | 19564 bool autofocus; |
17987 | 19565 |
17988 /// @domName HTMLTextAreaElement.cols; @docsEditable true | 19566 /// @docsEditable true |
| 19567 @DomName("HTMLTextAreaElement.cols") |
17989 int cols; | 19568 int cols; |
17990 | 19569 |
17991 /// @domName HTMLTextAreaElement.defaultValue; @docsEditable true | 19570 /// @docsEditable true |
| 19571 @DomName("HTMLTextAreaElement.defaultValue") |
17992 String defaultValue; | 19572 String defaultValue; |
17993 | 19573 |
17994 /// @domName HTMLTextAreaElement.dirName; @docsEditable true | 19574 /// @docsEditable true |
| 19575 @DomName("HTMLTextAreaElement.dirName") |
17995 String dirName; | 19576 String dirName; |
17996 | 19577 |
17997 /// @domName HTMLTextAreaElement.disabled; @docsEditable true | 19578 /// @docsEditable true |
| 19579 @DomName("HTMLTextAreaElement.disabled") |
17998 bool disabled; | 19580 bool disabled; |
17999 | 19581 |
18000 /// @domName HTMLTextAreaElement.form; @docsEditable true | 19582 /// @docsEditable true |
| 19583 @DomName("HTMLTextAreaElement.form") |
18001 final FormElement form; | 19584 final FormElement form; |
18002 | 19585 |
18003 /// @domName HTMLTextAreaElement.labels; @docsEditable true | 19586 /// @docsEditable true |
| 19587 @DomName("HTMLTextAreaElement.labels") |
18004 @Returns('NodeList') @Creates('NodeList') | 19588 @Returns('NodeList') @Creates('NodeList') |
18005 final List<Node> labels; | 19589 final List<Node> labels; |
18006 | 19590 |
18007 /// @domName HTMLTextAreaElement.maxLength; @docsEditable true | 19591 /// @docsEditable true |
| 19592 @DomName("HTMLTextAreaElement.maxLength") |
18008 int maxLength; | 19593 int maxLength; |
18009 | 19594 |
18010 /// @domName HTMLTextAreaElement.name; @docsEditable true | 19595 /// @docsEditable true |
| 19596 @DomName("HTMLTextAreaElement.name") |
18011 String name; | 19597 String name; |
18012 | 19598 |
18013 /// @domName HTMLTextAreaElement.placeholder; @docsEditable true | 19599 /// @docsEditable true |
| 19600 @DomName("HTMLTextAreaElement.placeholder") |
18014 String placeholder; | 19601 String placeholder; |
18015 | 19602 |
18016 /// @domName HTMLTextAreaElement.readOnly; @docsEditable true | 19603 /// @docsEditable true |
| 19604 @DomName("HTMLTextAreaElement.readOnly") |
18017 bool readOnly; | 19605 bool readOnly; |
18018 | 19606 |
18019 /// @domName HTMLTextAreaElement.required; @docsEditable true | 19607 /// @docsEditable true |
| 19608 @DomName("HTMLTextAreaElement.required") |
18020 bool required; | 19609 bool required; |
18021 | 19610 |
18022 /// @domName HTMLTextAreaElement.rows; @docsEditable true | 19611 /// @docsEditable true |
| 19612 @DomName("HTMLTextAreaElement.rows") |
18023 int rows; | 19613 int rows; |
18024 | 19614 |
18025 /// @domName HTMLTextAreaElement.selectionDirection; @docsEditable true | 19615 /// @docsEditable true |
| 19616 @DomName("HTMLTextAreaElement.selectionDirection") |
18026 String selectionDirection; | 19617 String selectionDirection; |
18027 | 19618 |
18028 /// @domName HTMLTextAreaElement.selectionEnd; @docsEditable true | 19619 /// @docsEditable true |
| 19620 @DomName("HTMLTextAreaElement.selectionEnd") |
18029 int selectionEnd; | 19621 int selectionEnd; |
18030 | 19622 |
18031 /// @domName HTMLTextAreaElement.selectionStart; @docsEditable true | 19623 /// @docsEditable true |
| 19624 @DomName("HTMLTextAreaElement.selectionStart") |
18032 int selectionStart; | 19625 int selectionStart; |
18033 | 19626 |
18034 /// @domName HTMLTextAreaElement.textLength; @docsEditable true | 19627 /// @docsEditable true |
| 19628 @DomName("HTMLTextAreaElement.textLength") |
18035 final int textLength; | 19629 final int textLength; |
18036 | 19630 |
18037 /// @domName HTMLTextAreaElement.type; @docsEditable true | 19631 /// @docsEditable true |
| 19632 @DomName("HTMLTextAreaElement.type") |
18038 final String type; | 19633 final String type; |
18039 | 19634 |
18040 /// @domName HTMLTextAreaElement.validationMessage; @docsEditable true | 19635 /// @docsEditable true |
| 19636 @DomName("HTMLTextAreaElement.validationMessage") |
18041 final String validationMessage; | 19637 final String validationMessage; |
18042 | 19638 |
18043 /// @domName HTMLTextAreaElement.validity; @docsEditable true | 19639 /// @docsEditable true |
| 19640 @DomName("HTMLTextAreaElement.validity") |
18044 final ValidityState validity; | 19641 final ValidityState validity; |
18045 | 19642 |
18046 /// @domName HTMLTextAreaElement.value; @docsEditable true | 19643 /// @docsEditable true |
| 19644 @DomName("HTMLTextAreaElement.value") |
18047 String value; | 19645 String value; |
18048 | 19646 |
18049 /// @domName HTMLTextAreaElement.willValidate; @docsEditable true | 19647 /// @docsEditable true |
| 19648 @DomName("HTMLTextAreaElement.willValidate") |
18050 final bool willValidate; | 19649 final bool willValidate; |
18051 | 19650 |
18052 /// @domName HTMLTextAreaElement.wrap; @docsEditable true | 19651 /// @docsEditable true |
| 19652 @DomName("HTMLTextAreaElement.wrap") |
18053 String wrap; | 19653 String wrap; |
18054 | 19654 |
18055 /// @domName HTMLTextAreaElement.checkValidity; @docsEditable true | 19655 /// @docsEditable true |
| 19656 @DomName("HTMLTextAreaElement.checkValidity") |
18056 bool checkValidity() native; | 19657 bool checkValidity() native; |
18057 | 19658 |
18058 /// @domName HTMLTextAreaElement.select; @docsEditable true | 19659 /// @docsEditable true |
| 19660 @DomName("HTMLTextAreaElement.select") |
18059 void select() native; | 19661 void select() native; |
18060 | 19662 |
18061 /// @domName HTMLTextAreaElement.setCustomValidity; @docsEditable true | 19663 /// @docsEditable true |
| 19664 @DomName("HTMLTextAreaElement.setCustomValidity") |
18062 void setCustomValidity(String error) native; | 19665 void setCustomValidity(String error) native; |
18063 | 19666 |
18064 /// @domName HTMLTextAreaElement.setRangeText; @docsEditable true | 19667 /// @docsEditable true |
| 19668 @DomName("HTMLTextAreaElement.setRangeText") |
18065 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; | 19669 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; |
18066 | 19670 |
18067 /// @domName HTMLTextAreaElement.setSelectionRange; @docsEditable true | 19671 /// @docsEditable true |
| 19672 @DomName("HTMLTextAreaElement.setSelectionRange") |
18068 void setSelectionRange(int start, int end, [String direction]) native; | 19673 void setSelectionRange(int start, int end, [String direction]) native; |
18069 } | 19674 } |
18070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18071 // for details. All rights reserved. Use of this source code is governed by a | 19676 // for details. All rights reserved. Use of this source code is governed by a |
18072 // BSD-style license that can be found in the LICENSE file. | 19677 // BSD-style license that can be found in the LICENSE file. |
18073 | 19678 |
18074 | 19679 |
18075 /// @domName TextEvent; @docsEditable true | 19680 /// @docsEditable true |
| 19681 @DomName("TextEvent") |
18076 class TextEvent extends UIEvent native "*TextEvent" { | 19682 class TextEvent extends UIEvent native "*TextEvent" { |
18077 | 19683 |
18078 /// @domName TextEvent.data; @docsEditable true | 19684 /// @docsEditable true |
| 19685 @DomName("TextEvent.data") |
18079 final String data; | 19686 final String data; |
18080 | 19687 |
18081 /// @domName TextEvent.initTextEvent; @docsEditable true | 19688 /// @docsEditable true |
| 19689 @DomName("TextEvent.initTextEvent") |
18082 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Wind
ow viewArg, String dataArg) native; | 19690 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Wind
ow viewArg, String dataArg) native; |
18083 } | 19691 } |
18084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18085 // for details. All rights reserved. Use of this source code is governed by a | 19693 // for details. All rights reserved. Use of this source code is governed by a |
18086 // BSD-style license that can be found in the LICENSE file. | 19694 // BSD-style license that can be found in the LICENSE file. |
18087 | 19695 |
18088 | 19696 |
18089 /// @domName TextMetrics; @docsEditable true | 19697 /// @docsEditable true |
| 19698 @DomName("TextMetrics") |
18090 class TextMetrics native "*TextMetrics" { | 19699 class TextMetrics native "*TextMetrics" { |
18091 | 19700 |
18092 /// @domName TextMetrics.width; @docsEditable true | 19701 /// @docsEditable true |
| 19702 @DomName("TextMetrics.width") |
18093 final num width; | 19703 final num width; |
18094 } | 19704 } |
18095 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18096 // for details. All rights reserved. Use of this source code is governed by a | 19706 // for details. All rights reserved. Use of this source code is governed by a |
18097 // BSD-style license that can be found in the LICENSE file. | 19707 // BSD-style license that can be found in the LICENSE file. |
18098 | 19708 |
18099 | 19709 |
18100 /// @domName TextTrack; @docsEditable true | 19710 /// @docsEditable true |
| 19711 @DomName("TextTrack") |
18101 class TextTrack extends EventTarget native "*TextTrack" { | 19712 class TextTrack extends EventTarget native "*TextTrack" { |
18102 | 19713 |
18103 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 19714 /// @docsEditable true |
| 19715 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
18104 TextTrackEvents get on => | 19716 TextTrackEvents get on => |
18105 new TextTrackEvents(this); | 19717 new TextTrackEvents(this); |
18106 | 19718 |
18107 /// @domName TextTrack.activeCues; @docsEditable true | 19719 /// @docsEditable true |
| 19720 @DomName("TextTrack.activeCues") |
18108 final TextTrackCueList activeCues; | 19721 final TextTrackCueList activeCues; |
18109 | 19722 |
18110 /// @domName TextTrack.cues; @docsEditable true | 19723 /// @docsEditable true |
| 19724 @DomName("TextTrack.cues") |
18111 final TextTrackCueList cues; | 19725 final TextTrackCueList cues; |
18112 | 19726 |
18113 /// @domName TextTrack.kind; @docsEditable true | 19727 /// @docsEditable true |
| 19728 @DomName("TextTrack.kind") |
18114 final String kind; | 19729 final String kind; |
18115 | 19730 |
18116 /// @domName TextTrack.label; @docsEditable true | 19731 /// @docsEditable true |
| 19732 @DomName("TextTrack.label") |
18117 final String label; | 19733 final String label; |
18118 | 19734 |
18119 /// @domName TextTrack.language; @docsEditable true | 19735 /// @docsEditable true |
| 19736 @DomName("TextTrack.language") |
18120 final String language; | 19737 final String language; |
18121 | 19738 |
18122 /// @domName TextTrack.mode; @docsEditable true | 19739 /// @docsEditable true |
| 19740 @DomName("TextTrack.mode") |
18123 String mode; | 19741 String mode; |
18124 | 19742 |
18125 /// @domName TextTrack.addCue; @docsEditable true | 19743 /// @docsEditable true |
| 19744 @DomName("TextTrack.addCue") |
18126 void addCue(TextTrackCue cue) native; | 19745 void addCue(TextTrackCue cue) native; |
18127 | 19746 |
18128 /// @domName TextTrack.addEventListener; @docsEditable true | 19747 /// @docsEditable true |
18129 @JSName('addEventListener') | 19748 @JSName('addEventListener') |
| 19749 @DomName("TextTrack.addEventListener") |
18130 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 19750 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
18131 | 19751 |
18132 /// @domName TextTrack.dispatchEvent; @docsEditable true | 19752 /// @docsEditable true |
18133 @JSName('dispatchEvent') | 19753 @JSName('dispatchEvent') |
| 19754 @DomName("TextTrack.dispatchEvent") |
18134 bool $dom_dispatchEvent(Event evt) native; | 19755 bool $dom_dispatchEvent(Event evt) native; |
18135 | 19756 |
18136 /// @domName TextTrack.removeCue; @docsEditable true | 19757 /// @docsEditable true |
| 19758 @DomName("TextTrack.removeCue") |
18137 void removeCue(TextTrackCue cue) native; | 19759 void removeCue(TextTrackCue cue) native; |
18138 | 19760 |
18139 /// @domName TextTrack.removeEventListener; @docsEditable true | 19761 /// @docsEditable true |
18140 @JSName('removeEventListener') | 19762 @JSName('removeEventListener') |
| 19763 @DomName("TextTrack.removeEventListener") |
18141 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 19764 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
18142 } | 19765 } |
18143 | 19766 |
18144 /// @docsEditable true | 19767 /// @docsEditable true |
18145 class TextTrackEvents extends Events { | 19768 class TextTrackEvents extends Events { |
18146 /// @docsEditable true | 19769 /// @docsEditable true |
18147 TextTrackEvents(EventTarget _ptr) : super(_ptr); | 19770 TextTrackEvents(EventTarget _ptr) : super(_ptr); |
18148 | 19771 |
18149 /// @docsEditable true | 19772 /// @docsEditable true |
18150 EventListenerList get cueChange => this['cuechange']; | 19773 EventListenerList get cueChange => this['cuechange']; |
18151 } | 19774 } |
18152 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19775 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18153 // for details. All rights reserved. Use of this source code is governed by a | 19776 // for details. All rights reserved. Use of this source code is governed by a |
18154 // BSD-style license that can be found in the LICENSE file. | 19777 // BSD-style license that can be found in the LICENSE file. |
18155 | 19778 |
18156 | 19779 |
18157 /// @domName TextTrackCue; @docsEditable true | 19780 /// @docsEditable true |
| 19781 @DomName("TextTrackCue") |
18158 class TextTrackCue extends EventTarget native "*TextTrackCue" { | 19782 class TextTrackCue extends EventTarget native "*TextTrackCue" { |
18159 | 19783 |
18160 ///@docsEditable true | 19784 /// @docsEditable true |
18161 factory TextTrackCue(num startTime, num endTime, String text) => TextTrackCue.
_create(startTime, endTime, text); | 19785 factory TextTrackCue(num startTime, num endTime, String text) => TextTrackCue.
_create(startTime, endTime, text); |
18162 static TextTrackCue _create(num startTime, num endTime, String text) => JS('Te
xtTrackCue', 'new TextTrackCue(#,#,#)', startTime, endTime, text); | 19786 static TextTrackCue _create(num startTime, num endTime, String text) => JS('Te
xtTrackCue', 'new TextTrackCue(#,#,#)', startTime, endTime, text); |
18163 | 19787 |
18164 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 19788 /// @docsEditable true |
| 19789 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
18165 TextTrackCueEvents get on => | 19790 TextTrackCueEvents get on => |
18166 new TextTrackCueEvents(this); | 19791 new TextTrackCueEvents(this); |
18167 | 19792 |
18168 /// @domName TextTrackCue.align; @docsEditable true | 19793 /// @docsEditable true |
| 19794 @DomName("TextTrackCue.align") |
18169 String align; | 19795 String align; |
18170 | 19796 |
18171 /// @domName TextTrackCue.endTime; @docsEditable true | 19797 /// @docsEditable true |
| 19798 @DomName("TextTrackCue.endTime") |
18172 num endTime; | 19799 num endTime; |
18173 | 19800 |
18174 /// @domName TextTrackCue.id; @docsEditable true | 19801 /// @docsEditable true |
| 19802 @DomName("TextTrackCue.id") |
18175 String id; | 19803 String id; |
18176 | 19804 |
18177 /// @domName TextTrackCue.line; @docsEditable true | 19805 /// @docsEditable true |
| 19806 @DomName("TextTrackCue.line") |
18178 int line; | 19807 int line; |
18179 | 19808 |
18180 /// @domName TextTrackCue.pauseOnExit; @docsEditable true | 19809 /// @docsEditable true |
| 19810 @DomName("TextTrackCue.pauseOnExit") |
18181 bool pauseOnExit; | 19811 bool pauseOnExit; |
18182 | 19812 |
18183 /// @domName TextTrackCue.position; @docsEditable true | 19813 /// @docsEditable true |
| 19814 @DomName("TextTrackCue.position") |
18184 int position; | 19815 int position; |
18185 | 19816 |
18186 /// @domName TextTrackCue.size; @docsEditable true | 19817 /// @docsEditable true |
| 19818 @DomName("TextTrackCue.size") |
18187 int size; | 19819 int size; |
18188 | 19820 |
18189 /// @domName TextTrackCue.snapToLines; @docsEditable true | 19821 /// @docsEditable true |
| 19822 @DomName("TextTrackCue.snapToLines") |
18190 bool snapToLines; | 19823 bool snapToLines; |
18191 | 19824 |
18192 /// @domName TextTrackCue.startTime; @docsEditable true | 19825 /// @docsEditable true |
| 19826 @DomName("TextTrackCue.startTime") |
18193 num startTime; | 19827 num startTime; |
18194 | 19828 |
18195 /// @domName TextTrackCue.text; @docsEditable true | 19829 /// @docsEditable true |
| 19830 @DomName("TextTrackCue.text") |
18196 String text; | 19831 String text; |
18197 | 19832 |
18198 /// @domName TextTrackCue.track; @docsEditable true | 19833 /// @docsEditable true |
| 19834 @DomName("TextTrackCue.track") |
18199 final TextTrack track; | 19835 final TextTrack track; |
18200 | 19836 |
18201 /// @domName TextTrackCue.vertical; @docsEditable true | 19837 /// @docsEditable true |
| 19838 @DomName("TextTrackCue.vertical") |
18202 String vertical; | 19839 String vertical; |
18203 | 19840 |
18204 /// @domName TextTrackCue.addEventListener; @docsEditable true | 19841 /// @docsEditable true |
18205 @JSName('addEventListener') | 19842 @JSName('addEventListener') |
| 19843 @DomName("TextTrackCue.addEventListener") |
18206 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 19844 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
18207 | 19845 |
18208 /// @domName TextTrackCue.dispatchEvent; @docsEditable true | 19846 /// @docsEditable true |
18209 @JSName('dispatchEvent') | 19847 @JSName('dispatchEvent') |
| 19848 @DomName("TextTrackCue.dispatchEvent") |
18210 bool $dom_dispatchEvent(Event evt) native; | 19849 bool $dom_dispatchEvent(Event evt) native; |
18211 | 19850 |
18212 /// @domName TextTrackCue.getCueAsHTML; @docsEditable true | 19851 /// @docsEditable true |
18213 @JSName('getCueAsHTML') | 19852 @JSName('getCueAsHTML') |
| 19853 @DomName("TextTrackCue.getCueAsHTML") |
18214 DocumentFragment getCueAsHtml() native; | 19854 DocumentFragment getCueAsHtml() native; |
18215 | 19855 |
18216 /// @domName TextTrackCue.removeEventListener; @docsEditable true | 19856 /// @docsEditable true |
18217 @JSName('removeEventListener') | 19857 @JSName('removeEventListener') |
| 19858 @DomName("TextTrackCue.removeEventListener") |
18218 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 19859 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
18219 } | 19860 } |
18220 | 19861 |
18221 /// @docsEditable true | 19862 /// @docsEditable true |
18222 class TextTrackCueEvents extends Events { | 19863 class TextTrackCueEvents extends Events { |
18223 /// @docsEditable true | 19864 /// @docsEditable true |
18224 TextTrackCueEvents(EventTarget _ptr) : super(_ptr); | 19865 TextTrackCueEvents(EventTarget _ptr) : super(_ptr); |
18225 | 19866 |
18226 /// @docsEditable true | 19867 /// @docsEditable true |
18227 EventListenerList get enter => this['enter']; | 19868 EventListenerList get enter => this['enter']; |
18228 | 19869 |
18229 /// @docsEditable true | 19870 /// @docsEditable true |
18230 EventListenerList get exit => this['exit']; | 19871 EventListenerList get exit => this['exit']; |
18231 } | 19872 } |
18232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18233 // for details. All rights reserved. Use of this source code is governed by a | 19874 // for details. All rights reserved. Use of this source code is governed by a |
18234 // BSD-style license that can be found in the LICENSE file. | 19875 // BSD-style license that can be found in the LICENSE file. |
18235 | 19876 |
18236 | 19877 |
18237 /// @domName TextTrackCueList; @docsEditable true | 19878 /// @docsEditable true |
| 19879 @DomName("TextTrackCueList") |
18238 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
native "*TextTrackCueList" { | 19880 class TextTrackCueList implements List<TextTrackCue>, JavaScriptIndexingBehavior
native "*TextTrackCueList" { |
18239 | 19881 |
18240 /// @domName TextTrackCueList.length; @docsEditable true | 19882 /// @docsEditable true |
| 19883 @DomName("TextTrackCueList.length") |
18241 int get length => JS("int", "#.length", this); | 19884 int get length => JS("int", "#.length", this); |
18242 | 19885 |
18243 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); | 19886 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); |
18244 | 19887 |
18245 void operator[]=(int index, TextTrackCue value) { | 19888 void operator[]=(int index, TextTrackCue value) { |
18246 throw new UnsupportedError("Cannot assign element of immutable List."); | 19889 throw new UnsupportedError("Cannot assign element of immutable List."); |
18247 } | 19890 } |
18248 // -- start List<TextTrackCue> mixins. | 19891 // -- start List<TextTrackCue> mixins. |
18249 // TextTrackCue is the element type. | 19892 // TextTrackCue is the element type. |
18250 | 19893 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18378 | 20021 |
18379 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) { | 20022 void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) { |
18380 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20023 throw new UnsupportedError("Cannot insertRange on immutable List."); |
18381 } | 20024 } |
18382 | 20025 |
18383 List<TextTrackCue> getRange(int start, int rangeLength) => | 20026 List<TextTrackCue> getRange(int start, int rangeLength) => |
18384 Lists.getRange(this, start, rangeLength, <TextTrackCue>[]); | 20027 Lists.getRange(this, start, rangeLength, <TextTrackCue>[]); |
18385 | 20028 |
18386 // -- end List<TextTrackCue> mixins. | 20029 // -- end List<TextTrackCue> mixins. |
18387 | 20030 |
18388 /// @domName TextTrackCueList.getCueById; @docsEditable true | 20031 /// @docsEditable true |
| 20032 @DomName("TextTrackCueList.getCueById") |
18389 TextTrackCue getCueById(String id) native; | 20033 TextTrackCue getCueById(String id) native; |
18390 | 20034 |
18391 /// @domName TextTrackCueList.item; @docsEditable true | 20035 /// @docsEditable true |
| 20036 @DomName("TextTrackCueList.item") |
18392 TextTrackCue item(int index) native; | 20037 TextTrackCue item(int index) native; |
18393 } | 20038 } |
18394 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18395 // for details. All rights reserved. Use of this source code is governed by a | 20040 // for details. All rights reserved. Use of this source code is governed by a |
18396 // BSD-style license that can be found in the LICENSE file. | 20041 // BSD-style license that can be found in the LICENSE file. |
18397 | 20042 |
18398 | 20043 |
18399 /// @domName TextTrackList; @docsEditable true | 20044 /// @docsEditable true |
| 20045 @DomName("TextTrackList") |
18400 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
ist<TextTrack> native "*TextTrackList" { | 20046 class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L
ist<TextTrack> native "*TextTrackList" { |
18401 | 20047 |
18402 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 20048 /// @docsEditable true |
| 20049 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
18403 TextTrackListEvents get on => | 20050 TextTrackListEvents get on => |
18404 new TextTrackListEvents(this); | 20051 new TextTrackListEvents(this); |
18405 | 20052 |
18406 /// @domName TextTrackList.length; @docsEditable true | 20053 /// @docsEditable true |
| 20054 @DomName("TextTrackList.length") |
18407 int get length => JS("int", "#.length", this); | 20055 int get length => JS("int", "#.length", this); |
18408 | 20056 |
18409 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); | 20057 TextTrack operator[](int index) => JS("TextTrack", "#[#]", this, index); |
18410 | 20058 |
18411 void operator[]=(int index, TextTrack value) { | 20059 void operator[]=(int index, TextTrack value) { |
18412 throw new UnsupportedError("Cannot assign element of immutable List."); | 20060 throw new UnsupportedError("Cannot assign element of immutable List."); |
18413 } | 20061 } |
18414 // -- start List<TextTrack> mixins. | 20062 // -- start List<TextTrack> mixins. |
18415 // TextTrack is the element type. | 20063 // TextTrack is the element type. |
18416 | 20064 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18544 | 20192 |
18545 void insertRange(int start, int rangeLength, [TextTrack initialValue]) { | 20193 void insertRange(int start, int rangeLength, [TextTrack initialValue]) { |
18546 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20194 throw new UnsupportedError("Cannot insertRange on immutable List."); |
18547 } | 20195 } |
18548 | 20196 |
18549 List<TextTrack> getRange(int start, int rangeLength) => | 20197 List<TextTrack> getRange(int start, int rangeLength) => |
18550 Lists.getRange(this, start, rangeLength, <TextTrack>[]); | 20198 Lists.getRange(this, start, rangeLength, <TextTrack>[]); |
18551 | 20199 |
18552 // -- end List<TextTrack> mixins. | 20200 // -- end List<TextTrack> mixins. |
18553 | 20201 |
18554 /// @domName TextTrackList.addEventListener; @docsEditable true | 20202 /// @docsEditable true |
18555 @JSName('addEventListener') | 20203 @JSName('addEventListener') |
| 20204 @DomName("TextTrackList.addEventListener") |
18556 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 20205 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
18557 | 20206 |
18558 /// @domName TextTrackList.dispatchEvent; @docsEditable true | 20207 /// @docsEditable true |
18559 @JSName('dispatchEvent') | 20208 @JSName('dispatchEvent') |
| 20209 @DomName("TextTrackList.dispatchEvent") |
18560 bool $dom_dispatchEvent(Event evt) native; | 20210 bool $dom_dispatchEvent(Event evt) native; |
18561 | 20211 |
18562 /// @domName TextTrackList.item; @docsEditable true | 20212 /// @docsEditable true |
| 20213 @DomName("TextTrackList.item") |
18563 TextTrack item(int index) native; | 20214 TextTrack item(int index) native; |
18564 | 20215 |
18565 /// @domName TextTrackList.removeEventListener; @docsEditable true | 20216 /// @docsEditable true |
18566 @JSName('removeEventListener') | 20217 @JSName('removeEventListener') |
| 20218 @DomName("TextTrackList.removeEventListener") |
18567 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 20219 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
18568 } | 20220 } |
18569 | 20221 |
18570 /// @docsEditable true | 20222 /// @docsEditable true |
18571 class TextTrackListEvents extends Events { | 20223 class TextTrackListEvents extends Events { |
18572 /// @docsEditable true | 20224 /// @docsEditable true |
18573 TextTrackListEvents(EventTarget _ptr) : super(_ptr); | 20225 TextTrackListEvents(EventTarget _ptr) : super(_ptr); |
18574 | 20226 |
18575 /// @docsEditable true | 20227 /// @docsEditable true |
18576 EventListenerList get addTrack => this['addtrack']; | 20228 EventListenerList get addTrack => this['addtrack']; |
18577 } | 20229 } |
18578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18579 // for details. All rights reserved. Use of this source code is governed by a | 20231 // for details. All rights reserved. Use of this source code is governed by a |
18580 // BSD-style license that can be found in the LICENSE file. | 20232 // BSD-style license that can be found in the LICENSE file. |
18581 | 20233 |
18582 | 20234 |
18583 /// @domName TimeRanges; @docsEditable true | 20235 /// @docsEditable true |
| 20236 @DomName("TimeRanges") |
18584 class TimeRanges native "*TimeRanges" { | 20237 class TimeRanges native "*TimeRanges" { |
18585 | 20238 |
18586 /// @domName TimeRanges.length; @docsEditable true | 20239 /// @docsEditable true |
| 20240 @DomName("TimeRanges.length") |
18587 final int length; | 20241 final int length; |
18588 | 20242 |
18589 /// @domName TimeRanges.end; @docsEditable true | 20243 /// @docsEditable true |
| 20244 @DomName("TimeRanges.end") |
18590 num end(int index) native; | 20245 num end(int index) native; |
18591 | 20246 |
18592 /// @domName TimeRanges.start; @docsEditable true | 20247 /// @docsEditable true |
| 20248 @DomName("TimeRanges.start") |
18593 num start(int index) native; | 20249 num start(int index) native; |
18594 } | 20250 } |
18595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18596 // for details. All rights reserved. Use of this source code is governed by a | 20252 // for details. All rights reserved. Use of this source code is governed by a |
18597 // BSD-style license that can be found in the LICENSE file. | 20253 // BSD-style license that can be found in the LICENSE file. |
18598 | 20254 |
18599 // WARNING: Do not edit - generated code. | 20255 // WARNING: Do not edit - generated code. |
18600 | 20256 |
18601 | 20257 |
18602 typedef void TimeoutHandler(); | 20258 typedef void TimeoutHandler(); |
18603 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20259 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18604 // for details. All rights reserved. Use of this source code is governed by a | 20260 // for details. All rights reserved. Use of this source code is governed by a |
18605 // BSD-style license that can be found in the LICENSE file. | 20261 // BSD-style license that can be found in the LICENSE file. |
18606 | 20262 |
18607 | 20263 |
18608 /// @domName HTMLTitleElement; @docsEditable true | 20264 /// @docsEditable true |
| 20265 @DomName("HTMLTitleElement") |
18609 class TitleElement extends Element native "*HTMLTitleElement" { | 20266 class TitleElement extends Element native "*HTMLTitleElement" { |
18610 | 20267 |
18611 ///@docsEditable true | 20268 /// @docsEditable true |
18612 factory TitleElement() => document.$dom_createElement("title"); | 20269 factory TitleElement() => document.$dom_createElement("title"); |
18613 } | 20270 } |
18614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18615 // for details. All rights reserved. Use of this source code is governed by a | 20272 // for details. All rights reserved. Use of this source code is governed by a |
18616 // BSD-style license that can be found in the LICENSE file. | 20273 // BSD-style license that can be found in the LICENSE file. |
18617 | 20274 |
18618 | 20275 |
18619 /// @domName Touch; @docsEditable true | 20276 /// @docsEditable true |
| 20277 @DomName("Touch") |
18620 class Touch native "*Touch" { | 20278 class Touch native "*Touch" { |
18621 | 20279 |
18622 /// @domName Touch.clientX; @docsEditable true | 20280 /// @docsEditable true |
| 20281 @DomName("Touch.clientX") |
18623 final int clientX; | 20282 final int clientX; |
18624 | 20283 |
18625 /// @domName Touch.clientY; @docsEditable true | 20284 /// @docsEditable true |
| 20285 @DomName("Touch.clientY") |
18626 final int clientY; | 20286 final int clientY; |
18627 | 20287 |
18628 /// @domName Touch.identifier; @docsEditable true | 20288 /// @docsEditable true |
| 20289 @DomName("Touch.identifier") |
18629 final int identifier; | 20290 final int identifier; |
18630 | 20291 |
18631 /// @domName Touch.pageX; @docsEditable true | 20292 /// @docsEditable true |
| 20293 @DomName("Touch.pageX") |
18632 final int pageX; | 20294 final int pageX; |
18633 | 20295 |
18634 /// @domName Touch.pageY; @docsEditable true | 20296 /// @docsEditable true |
| 20297 @DomName("Touch.pageY") |
18635 final int pageY; | 20298 final int pageY; |
18636 | 20299 |
18637 /// @domName Touch.screenX; @docsEditable true | 20300 /// @docsEditable true |
| 20301 @DomName("Touch.screenX") |
18638 final int screenX; | 20302 final int screenX; |
18639 | 20303 |
18640 /// @domName Touch.screenY; @docsEditable true | 20304 /// @docsEditable true |
| 20305 @DomName("Touch.screenY") |
18641 final int screenY; | 20306 final int screenY; |
18642 | 20307 |
18643 /// @domName Touch.target; @docsEditable true | 20308 /// @docsEditable true |
18644 EventTarget get target => _convertNativeToDart_EventTarget(this._target); | 20309 EventTarget get target => _convertNativeToDart_EventTarget(this._target); |
18645 @JSName('target') | 20310 @JSName('target') |
18646 @Creates('Element|Document') @Returns('Element|Document') | 20311 @DomName("Touch.target") @Creates('Element|Document') @Returns('Element|Docume
nt') |
18647 final dynamic _target; | 20312 final dynamic _target; |
18648 | 20313 |
18649 /// @domName Touch.webkitForce; @docsEditable true | 20314 /// @docsEditable true |
| 20315 @DomName("Touch.webkitForce") |
18650 final num webkitForce; | 20316 final num webkitForce; |
18651 | 20317 |
18652 /// @domName Touch.webkitRadiusX; @docsEditable true | 20318 /// @docsEditable true |
| 20319 @DomName("Touch.webkitRadiusX") |
18653 final int webkitRadiusX; | 20320 final int webkitRadiusX; |
18654 | 20321 |
18655 /// @domName Touch.webkitRadiusY; @docsEditable true | 20322 /// @docsEditable true |
| 20323 @DomName("Touch.webkitRadiusY") |
18656 final int webkitRadiusY; | 20324 final int webkitRadiusY; |
18657 | 20325 |
18658 /// @domName Touch.webkitRotationAngle; @docsEditable true | 20326 /// @docsEditable true |
| 20327 @DomName("Touch.webkitRotationAngle") |
18659 final num webkitRotationAngle; | 20328 final num webkitRotationAngle; |
18660 } | 20329 } |
18661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18662 // for details. All rights reserved. Use of this source code is governed by a | 20331 // for details. All rights reserved. Use of this source code is governed by a |
18663 // BSD-style license that can be found in the LICENSE file. | 20332 // BSD-style license that can be found in the LICENSE file. |
18664 | 20333 |
18665 | 20334 |
18666 /// @domName TouchEvent; @docsEditable true | 20335 /// @docsEditable true |
| 20336 @DomName("TouchEvent") |
18667 class TouchEvent extends UIEvent native "*TouchEvent" { | 20337 class TouchEvent extends UIEvent native "*TouchEvent" { |
18668 | 20338 |
18669 /// @domName TouchEvent.altKey; @docsEditable true | 20339 /// @docsEditable true |
| 20340 @DomName("TouchEvent.altKey") |
18670 final bool altKey; | 20341 final bool altKey; |
18671 | 20342 |
18672 /// @domName TouchEvent.changedTouches; @docsEditable true | 20343 /// @docsEditable true |
| 20344 @DomName("TouchEvent.changedTouches") |
18673 final TouchList changedTouches; | 20345 final TouchList changedTouches; |
18674 | 20346 |
18675 /// @domName TouchEvent.ctrlKey; @docsEditable true | 20347 /// @docsEditable true |
| 20348 @DomName("TouchEvent.ctrlKey") |
18676 final bool ctrlKey; | 20349 final bool ctrlKey; |
18677 | 20350 |
18678 /// @domName TouchEvent.metaKey; @docsEditable true | 20351 /// @docsEditable true |
| 20352 @DomName("TouchEvent.metaKey") |
18679 final bool metaKey; | 20353 final bool metaKey; |
18680 | 20354 |
18681 /// @domName TouchEvent.shiftKey; @docsEditable true | 20355 /// @docsEditable true |
| 20356 @DomName("TouchEvent.shiftKey") |
18682 final bool shiftKey; | 20357 final bool shiftKey; |
18683 | 20358 |
18684 /// @domName TouchEvent.targetTouches; @docsEditable true | 20359 /// @docsEditable true |
| 20360 @DomName("TouchEvent.targetTouches") |
18685 final TouchList targetTouches; | 20361 final TouchList targetTouches; |
18686 | 20362 |
18687 /// @domName TouchEvent.touches; @docsEditable true | 20363 /// @docsEditable true |
| 20364 @DomName("TouchEvent.touches") |
18688 final TouchList touches; | 20365 final TouchList touches; |
18689 | 20366 |
18690 /// @domName TouchEvent.initTouchEvent; @docsEditable true | 20367 /// @docsEditable true |
| 20368 @DomName("TouchEvent.initTouchEvent") |
18691 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan
gedTouches, String type, Window view, int screenX, int screenY, int clientX, int
clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; | 20369 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan
gedTouches, String type, Window view, int screenX, int screenY, int clientX, int
clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; |
18692 } | 20370 } |
18693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20371 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18694 // for details. All rights reserved. Use of this source code is governed by a | 20372 // for details. All rights reserved. Use of this source code is governed by a |
18695 // BSD-style license that can be found in the LICENSE file. | 20373 // BSD-style license that can be found in the LICENSE file. |
18696 | 20374 |
18697 | 20375 |
18698 /// @domName TouchList; @docsEditable true | 20376 /// @docsEditable true |
| 20377 @DomName("TouchList") |
18699 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
hList" { | 20378 class TouchList implements JavaScriptIndexingBehavior, List<Touch> native "*Touc
hList" { |
18700 | 20379 |
18701 /// @domName TouchList.length; @docsEditable true | 20380 /// @docsEditable true |
| 20381 @DomName("TouchList.length") |
18702 int get length => JS("int", "#.length", this); | 20382 int get length => JS("int", "#.length", this); |
18703 | 20383 |
18704 Touch operator[](int index) => JS("Touch", "#[#]", this, index); | 20384 Touch operator[](int index) => JS("Touch", "#[#]", this, index); |
18705 | 20385 |
18706 void operator[]=(int index, Touch value) { | 20386 void operator[]=(int index, Touch value) { |
18707 throw new UnsupportedError("Cannot assign element of immutable List."); | 20387 throw new UnsupportedError("Cannot assign element of immutable List."); |
18708 } | 20388 } |
18709 // -- start List<Touch> mixins. | 20389 // -- start List<Touch> mixins. |
18710 // Touch is the element type. | 20390 // Touch is the element type. |
18711 | 20391 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18839 | 20519 |
18840 void insertRange(int start, int rangeLength, [Touch initialValue]) { | 20520 void insertRange(int start, int rangeLength, [Touch initialValue]) { |
18841 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20521 throw new UnsupportedError("Cannot insertRange on immutable List."); |
18842 } | 20522 } |
18843 | 20523 |
18844 List<Touch> getRange(int start, int rangeLength) => | 20524 List<Touch> getRange(int start, int rangeLength) => |
18845 Lists.getRange(this, start, rangeLength, <Touch>[]); | 20525 Lists.getRange(this, start, rangeLength, <Touch>[]); |
18846 | 20526 |
18847 // -- end List<Touch> mixins. | 20527 // -- end List<Touch> mixins. |
18848 | 20528 |
18849 /// @domName TouchList.item; @docsEditable true | 20529 /// @docsEditable true |
| 20530 @DomName("TouchList.item") |
18850 Touch item(int index) native; | 20531 Touch item(int index) native; |
18851 } | 20532 } |
18852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18853 // for details. All rights reserved. Use of this source code is governed by a | 20534 // for details. All rights reserved. Use of this source code is governed by a |
18854 // BSD-style license that can be found in the LICENSE file. | 20535 // BSD-style license that can be found in the LICENSE file. |
18855 | 20536 |
18856 | 20537 |
18857 /// @domName HTMLTrackElement; @docsEditable true | 20538 /// @docsEditable true |
| 20539 @DomName("HTMLTrackElement") |
18858 @SupportedBrowser(SupportedBrowser.CHROME) | 20540 @SupportedBrowser(SupportedBrowser.CHROME) |
18859 @SupportedBrowser(SupportedBrowser.IE, '10') | 20541 @SupportedBrowser(SupportedBrowser.IE, '10') |
18860 @SupportedBrowser(SupportedBrowser.SAFARI) | 20542 @SupportedBrowser(SupportedBrowser.SAFARI) |
18861 class TrackElement extends Element native "*HTMLTrackElement" { | 20543 class TrackElement extends Element native "*HTMLTrackElement" { |
18862 | 20544 |
18863 ///@docsEditable true | 20545 /// @docsEditable true |
18864 factory TrackElement() => document.$dom_createElement("track"); | 20546 factory TrackElement() => document.$dom_createElement("track"); |
18865 | 20547 |
18866 /// Checks if this type is supported on the current platform. | 20548 /// Checks if this type is supported on the current platform. |
18867 static bool get supported => Element.isTagSupported('track'); | 20549 static bool get supported => Element.isTagSupported('track'); |
18868 | 20550 |
18869 static const int ERROR = 3; | 20551 static const int ERROR = 3; |
18870 | 20552 |
18871 static const int LOADED = 2; | 20553 static const int LOADED = 2; |
18872 | 20554 |
18873 static const int LOADING = 1; | 20555 static const int LOADING = 1; |
18874 | 20556 |
18875 static const int NONE = 0; | 20557 static const int NONE = 0; |
18876 | 20558 |
18877 /// @domName HTMLTrackElement.defaultValue; @docsEditable true | 20559 /// @docsEditable true |
18878 @JSName('default') | 20560 @JSName('default') |
| 20561 @DomName("HTMLTrackElement.default") |
18879 bool defaultValue; | 20562 bool defaultValue; |
18880 | 20563 |
18881 /// @domName HTMLTrackElement.kind; @docsEditable true | 20564 /// @docsEditable true |
| 20565 @DomName("HTMLTrackElement.kind") |
18882 String kind; | 20566 String kind; |
18883 | 20567 |
18884 /// @domName HTMLTrackElement.label; @docsEditable true | 20568 /// @docsEditable true |
| 20569 @DomName("HTMLTrackElement.label") |
18885 String label; | 20570 String label; |
18886 | 20571 |
18887 /// @domName HTMLTrackElement.readyState; @docsEditable true | 20572 /// @docsEditable true |
| 20573 @DomName("HTMLTrackElement.readyState") |
18888 final int readyState; | 20574 final int readyState; |
18889 | 20575 |
18890 /// @domName HTMLTrackElement.src; @docsEditable true | 20576 /// @docsEditable true |
| 20577 @DomName("HTMLTrackElement.src") |
18891 String src; | 20578 String src; |
18892 | 20579 |
18893 /// @domName HTMLTrackElement.srclang; @docsEditable true | 20580 /// @docsEditable true |
| 20581 @DomName("HTMLTrackElement.srclang") |
18894 String srclang; | 20582 String srclang; |
18895 | 20583 |
18896 /// @domName HTMLTrackElement.track; @docsEditable true | 20584 /// @docsEditable true |
| 20585 @DomName("HTMLTrackElement.track") |
18897 final TextTrack track; | 20586 final TextTrack track; |
18898 } | 20587 } |
18899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20588 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18900 // for details. All rights reserved. Use of this source code is governed by a | 20589 // for details. All rights reserved. Use of this source code is governed by a |
18901 // BSD-style license that can be found in the LICENSE file. | 20590 // BSD-style license that can be found in the LICENSE file. |
18902 | 20591 |
18903 | 20592 |
18904 /// @domName TrackEvent; @docsEditable true | 20593 /// @docsEditable true |
| 20594 @DomName("TrackEvent") |
18905 class TrackEvent extends Event native "*TrackEvent" { | 20595 class TrackEvent extends Event native "*TrackEvent" { |
18906 | 20596 |
18907 /// @domName TrackEvent.track; @docsEditable true | 20597 /// @docsEditable true |
| 20598 @DomName("TrackEvent.track") |
18908 final Object track; | 20599 final Object track; |
18909 } | 20600 } |
18910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18911 // for details. All rights reserved. Use of this source code is governed by a | 20602 // for details. All rights reserved. Use of this source code is governed by a |
18912 // BSD-style license that can be found in the LICENSE file. | 20603 // BSD-style license that can be found in the LICENSE file. |
18913 | 20604 |
18914 | 20605 |
18915 /// @domName WebKitTransitionEvent; @docsEditable true | 20606 /// @docsEditable true |
| 20607 @DomName("WebKitTransitionEvent") |
18916 class TransitionEvent extends Event native "*WebKitTransitionEvent" { | 20608 class TransitionEvent extends Event native "*WebKitTransitionEvent" { |
18917 | 20609 |
18918 /// @domName WebKitTransitionEvent.elapsedTime; @docsEditable true | 20610 /// @docsEditable true |
| 20611 @DomName("WebKitTransitionEvent.elapsedTime") |
18919 final num elapsedTime; | 20612 final num elapsedTime; |
18920 | 20613 |
18921 /// @domName WebKitTransitionEvent.propertyName; @docsEditable true | 20614 /// @docsEditable true |
| 20615 @DomName("WebKitTransitionEvent.propertyName") |
18922 final String propertyName; | 20616 final String propertyName; |
18923 } | 20617 } |
18924 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18925 // for details. All rights reserved. Use of this source code is governed by a | 20619 // for details. All rights reserved. Use of this source code is governed by a |
18926 // BSD-style license that can be found in the LICENSE file. | 20620 // BSD-style license that can be found in the LICENSE file. |
18927 | 20621 |
18928 | 20622 |
18929 /// @domName TreeWalker; @docsEditable true | 20623 /// @docsEditable true |
| 20624 @DomName("TreeWalker") |
18930 class TreeWalker native "*TreeWalker" { | 20625 class TreeWalker native "*TreeWalker" { |
18931 | 20626 |
18932 /// @domName TreeWalker.currentNode; @docsEditable true | 20627 /// @docsEditable true |
| 20628 @DomName("TreeWalker.currentNode") |
18933 Node currentNode; | 20629 Node currentNode; |
18934 | 20630 |
18935 /// @domName TreeWalker.expandEntityReferences; @docsEditable true | 20631 /// @docsEditable true |
| 20632 @DomName("TreeWalker.expandEntityReferences") |
18936 final bool expandEntityReferences; | 20633 final bool expandEntityReferences; |
18937 | 20634 |
18938 /// @domName TreeWalker.filter; @docsEditable true | 20635 /// @docsEditable true |
| 20636 @DomName("TreeWalker.filter") |
18939 final NodeFilter filter; | 20637 final NodeFilter filter; |
18940 | 20638 |
18941 /// @domName TreeWalker.root; @docsEditable true | 20639 /// @docsEditable true |
| 20640 @DomName("TreeWalker.root") |
18942 final Node root; | 20641 final Node root; |
18943 | 20642 |
18944 /// @domName TreeWalker.whatToShow; @docsEditable true | 20643 /// @docsEditable true |
| 20644 @DomName("TreeWalker.whatToShow") |
18945 final int whatToShow; | 20645 final int whatToShow; |
18946 | 20646 |
18947 /// @domName TreeWalker.firstChild; @docsEditable true | 20647 /// @docsEditable true |
| 20648 @DomName("TreeWalker.firstChild") |
18948 Node firstChild() native; | 20649 Node firstChild() native; |
18949 | 20650 |
18950 /// @domName TreeWalker.lastChild; @docsEditable true | 20651 /// @docsEditable true |
| 20652 @DomName("TreeWalker.lastChild") |
18951 Node lastChild() native; | 20653 Node lastChild() native; |
18952 | 20654 |
18953 /// @domName TreeWalker.nextNode; @docsEditable true | 20655 /// @docsEditable true |
| 20656 @DomName("TreeWalker.nextNode") |
18954 Node nextNode() native; | 20657 Node nextNode() native; |
18955 | 20658 |
18956 /// @domName TreeWalker.nextSibling; @docsEditable true | 20659 /// @docsEditable true |
| 20660 @DomName("TreeWalker.nextSibling") |
18957 Node nextSibling() native; | 20661 Node nextSibling() native; |
18958 | 20662 |
18959 /// @domName TreeWalker.parentNode; @docsEditable true | 20663 /// @docsEditable true |
| 20664 @DomName("TreeWalker.parentNode") |
18960 Node parentNode() native; | 20665 Node parentNode() native; |
18961 | 20666 |
18962 /// @domName TreeWalker.previousNode; @docsEditable true | 20667 /// @docsEditable true |
| 20668 @DomName("TreeWalker.previousNode") |
18963 Node previousNode() native; | 20669 Node previousNode() native; |
18964 | 20670 |
18965 /// @domName TreeWalker.previousSibling; @docsEditable true | 20671 /// @docsEditable true |
| 20672 @DomName("TreeWalker.previousSibling") |
18966 Node previousSibling() native; | 20673 Node previousSibling() native; |
18967 } | 20674 } |
18968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
18969 // for details. All rights reserved. Use of this source code is governed by a | 20676 // for details. All rights reserved. Use of this source code is governed by a |
18970 // BSD-style license that can be found in the LICENSE file. | 20677 // BSD-style license that can be found in the LICENSE file. |
18971 | 20678 |
18972 // WARNING: Do not edit - generated code. | 20679 // WARNING: Do not edit - generated code. |
18973 | 20680 |
18974 | 20681 |
18975 /// @domName UIEvent; @docsEditable true | 20682 @DomName("UIEvent") |
18976 class UIEvent extends Event native "*UIEvent" { | 20683 class UIEvent extends Event native "*UIEvent" { |
18977 // In JS, canBubble and cancelable are technically required parameters to | 20684 // In JS, canBubble and cancelable are technically required parameters to |
18978 // init*Event. In practice, though, if they aren't provided they simply | 20685 // init*Event. In practice, though, if they aren't provided they simply |
18979 // default to false (since that's Boolean(undefined)). | 20686 // default to false (since that's Boolean(undefined)). |
18980 // | 20687 // |
18981 // Contrary to JS, we default canBubble and cancelable to true, since that's | 20688 // Contrary to JS, we default canBubble and cancelable to true, since that's |
18982 // what people want most of the time anyway. | 20689 // what people want most of the time anyway. |
18983 factory UIEvent(String type, Window view, int detail, | 20690 factory UIEvent(String type, Window view, int detail, |
18984 [bool canBubble = true, bool cancelable = true]) { | 20691 [bool canBubble = true, bool cancelable = true]) { |
18985 final e = document.$dom_createEvent("UIEvent"); | 20692 final e = document.$dom_createEvent("UIEvent"); |
18986 e.$dom_initUIEvent(type, canBubble, cancelable, view, detail); | 20693 e.$dom_initUIEvent(type, canBubble, cancelable, view, detail); |
18987 return e; | 20694 return e; |
18988 } | 20695 } |
18989 | 20696 |
18990 /// @domName UIEvent.charCode; @docsEditable true | 20697 /// @docsEditable true |
18991 @JSName('charCode') | 20698 @JSName('charCode') |
| 20699 @DomName("UIEvent.charCode") |
18992 final int $dom_charCode; | 20700 final int $dom_charCode; |
18993 | 20701 |
18994 /// @domName UIEvent.detail; @docsEditable true | 20702 /// @docsEditable true |
| 20703 @DomName("UIEvent.detail") |
18995 final int detail; | 20704 final int detail; |
18996 | 20705 |
18997 /// @domName UIEvent.keyCode; @docsEditable true | 20706 /// @docsEditable true |
18998 @JSName('keyCode') | 20707 @JSName('keyCode') |
| 20708 @DomName("UIEvent.keyCode") |
18999 final int $dom_keyCode; | 20709 final int $dom_keyCode; |
19000 | 20710 |
19001 /// @domName UIEvent.layerX; @docsEditable true | 20711 /// @docsEditable true |
| 20712 @DomName("UIEvent.layerX") |
19002 final int layerX; | 20713 final int layerX; |
19003 | 20714 |
19004 /// @domName UIEvent.layerY; @docsEditable true | 20715 /// @docsEditable true |
| 20716 @DomName("UIEvent.layerY") |
19005 final int layerY; | 20717 final int layerY; |
19006 | 20718 |
19007 /// @domName UIEvent.pageX; @docsEditable true | 20719 /// @docsEditable true |
| 20720 @DomName("UIEvent.pageX") |
19008 final int pageX; | 20721 final int pageX; |
19009 | 20722 |
19010 /// @domName UIEvent.pageY; @docsEditable true | 20723 /// @docsEditable true |
| 20724 @DomName("UIEvent.pageY") |
19011 final int pageY; | 20725 final int pageY; |
19012 | 20726 |
19013 /// @domName UIEvent.view; @docsEditable true | 20727 /// @docsEditable true |
19014 WindowBase get view => _convertNativeToDart_Window(this._view); | 20728 WindowBase get view => _convertNativeToDart_Window(this._view); |
19015 @JSName('view') | 20729 @JSName('view') |
19016 @Creates('Window|=Object') @Returns('Window|=Object') | 20730 @DomName("UIEvent.view") @Creates('Window|=Object') @Returns('Window|=Object') |
19017 final dynamic _view; | 20731 final dynamic _view; |
19018 | 20732 |
19019 /// @domName UIEvent.which; @docsEditable true | 20733 /// @docsEditable true |
| 20734 @DomName("UIEvent.which") |
19020 final int which; | 20735 final int which; |
19021 | 20736 |
19022 /// @domName UIEvent.initUIEvent; @docsEditable true | 20737 /// @docsEditable true |
19023 @JSName('initUIEvent') | 20738 @JSName('initUIEvent') |
| 20739 @DomName("UIEvent.initUIEvent") |
19024 void $dom_initUIEvent(String type, bool canBubble, bool cancelable, Window vie
w, int detail) native; | 20740 void $dom_initUIEvent(String type, bool canBubble, bool cancelable, Window vie
w, int detail) native; |
19025 | 20741 |
19026 } | 20742 } |
19027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19028 // for details. All rights reserved. Use of this source code is governed by a | 20744 // for details. All rights reserved. Use of this source code is governed by a |
19029 // BSD-style license that can be found in the LICENSE file. | 20745 // BSD-style license that can be found in the LICENSE file. |
19030 | 20746 |
19031 | 20747 |
19032 /// @domName HTMLUListElement; @docsEditable true | 20748 /// @docsEditable true |
| 20749 @DomName("HTMLUListElement") |
19033 class UListElement extends Element native "*HTMLUListElement" { | 20750 class UListElement extends Element native "*HTMLUListElement" { |
19034 | 20751 |
19035 ///@docsEditable true | 20752 /// @docsEditable true |
19036 factory UListElement() => document.$dom_createElement("ul"); | 20753 factory UListElement() => document.$dom_createElement("ul"); |
19037 } | 20754 } |
19038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19039 // for details. All rights reserved. Use of this source code is governed by a | 20756 // for details. All rights reserved. Use of this source code is governed by a |
19040 // BSD-style license that can be found in the LICENSE file. | 20757 // BSD-style license that can be found in the LICENSE file. |
19041 | 20758 |
19042 | 20759 |
19043 /// @domName Uint16Array; @docsEditable true | 20760 /// @docsEditable true |
| 20761 @DomName("Uint16Array") |
19044 class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint16Array" { | 20762 class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint16Array" { |
19045 | 20763 |
19046 factory Uint16Array(int length) => | 20764 factory Uint16Array(int length) => |
19047 _TypedArrayFactoryProvider.createUint16Array(length); | 20765 _TypedArrayFactoryProvider.createUint16Array(length); |
19048 | 20766 |
19049 factory Uint16Array.fromList(List<int> list) => | 20767 factory Uint16Array.fromList(List<int> list) => |
19050 _TypedArrayFactoryProvider.createUint16Array_fromList(list); | 20768 _TypedArrayFactoryProvider.createUint16Array_fromList(list); |
19051 | 20769 |
19052 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length
]) => | 20770 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length
]) => |
19053 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset,
length); | 20771 _TypedArrayFactoryProvider.createUint16Array_fromBuffer(buffer, byteOffset,
length); |
19054 | 20772 |
19055 static const int BYTES_PER_ELEMENT = 2; | 20773 static const int BYTES_PER_ELEMENT = 2; |
19056 | 20774 |
19057 /// @domName Uint16Array.length; @docsEditable true | 20775 /// @docsEditable true |
| 20776 @DomName("Uint16Array.length") |
19058 int get length => JS("int", "#.length", this); | 20777 int get length => JS("int", "#.length", this); |
19059 | 20778 |
19060 int operator[](int index) => JS("int", "#[#]", this, index); | 20779 int operator[](int index) => JS("int", "#[#]", this, index); |
19061 | 20780 |
19062 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 20781 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
19063 // int is the element type. | 20782 // int is the element type. |
19064 | 20783 |
19065 // From Iterable<int>: | 20784 // From Iterable<int>: |
19066 | 20785 |
19067 Iterator<int> get iterator { | 20786 Iterator<int> get iterator { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19192 | 20911 |
19193 void insertRange(int start, int rangeLength, [int initialValue]) { | 20912 void insertRange(int start, int rangeLength, [int initialValue]) { |
19194 throw new UnsupportedError("Cannot insertRange on immutable List."); | 20913 throw new UnsupportedError("Cannot insertRange on immutable List."); |
19195 } | 20914 } |
19196 | 20915 |
19197 List<int> getRange(int start, int rangeLength) => | 20916 List<int> getRange(int start, int rangeLength) => |
19198 Lists.getRange(this, start, rangeLength, <int>[]); | 20917 Lists.getRange(this, start, rangeLength, <int>[]); |
19199 | 20918 |
19200 // -- end List<int> mixins. | 20919 // -- end List<int> mixins. |
19201 | 20920 |
19202 /// @domName Uint16Array.setElements; @docsEditable true | 20921 /// @docsEditable true |
19203 @JSName('set') | 20922 @JSName('set') |
| 20923 @DomName("Uint16Array.set") |
19204 void setElements(Object array, [int offset]) native; | 20924 void setElements(Object array, [int offset]) native; |
19205 | 20925 |
19206 /// @domName Uint16Array.subarray; @docsEditable true | 20926 /// @docsEditable true |
| 20927 @DomName("Uint16Array.subarray") |
19207 Uint16Array subarray(int start, [int end]) native; | 20928 Uint16Array subarray(int start, [int end]) native; |
19208 } | 20929 } |
19209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19210 // for details. All rights reserved. Use of this source code is governed by a | 20931 // for details. All rights reserved. Use of this source code is governed by a |
19211 // BSD-style license that can be found in the LICENSE file. | 20932 // BSD-style license that can be found in the LICENSE file. |
19212 | 20933 |
19213 | 20934 |
19214 /// @domName Uint32Array; @docsEditable true | 20935 /// @docsEditable true |
| 20936 @DomName("Uint32Array") |
19215 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint32Array" { | 20937 class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint32Array" { |
19216 | 20938 |
19217 factory Uint32Array(int length) => | 20939 factory Uint32Array(int length) => |
19218 _TypedArrayFactoryProvider.createUint32Array(length); | 20940 _TypedArrayFactoryProvider.createUint32Array(length); |
19219 | 20941 |
19220 factory Uint32Array.fromList(List<int> list) => | 20942 factory Uint32Array.fromList(List<int> list) => |
19221 _TypedArrayFactoryProvider.createUint32Array_fromList(list); | 20943 _TypedArrayFactoryProvider.createUint32Array_fromList(list); |
19222 | 20944 |
19223 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length
]) => | 20945 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length
]) => |
19224 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset,
length); | 20946 _TypedArrayFactoryProvider.createUint32Array_fromBuffer(buffer, byteOffset,
length); |
19225 | 20947 |
19226 static const int BYTES_PER_ELEMENT = 4; | 20948 static const int BYTES_PER_ELEMENT = 4; |
19227 | 20949 |
19228 /// @domName Uint32Array.length; @docsEditable true | 20950 /// @docsEditable true |
| 20951 @DomName("Uint32Array.length") |
19229 int get length => JS("int", "#.length", this); | 20952 int get length => JS("int", "#.length", this); |
19230 | 20953 |
19231 int operator[](int index) => JS("int", "#[#]", this, index); | 20954 int operator[](int index) => JS("int", "#[#]", this, index); |
19232 | 20955 |
19233 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 20956 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
19234 // int is the element type. | 20957 // int is the element type. |
19235 | 20958 |
19236 // From Iterable<int>: | 20959 // From Iterable<int>: |
19237 | 20960 |
19238 Iterator<int> get iterator { | 20961 Iterator<int> get iterator { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19363 | 21086 |
19364 void insertRange(int start, int rangeLength, [int initialValue]) { | 21087 void insertRange(int start, int rangeLength, [int initialValue]) { |
19365 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21088 throw new UnsupportedError("Cannot insertRange on immutable List."); |
19366 } | 21089 } |
19367 | 21090 |
19368 List<int> getRange(int start, int rangeLength) => | 21091 List<int> getRange(int start, int rangeLength) => |
19369 Lists.getRange(this, start, rangeLength, <int>[]); | 21092 Lists.getRange(this, start, rangeLength, <int>[]); |
19370 | 21093 |
19371 // -- end List<int> mixins. | 21094 // -- end List<int> mixins. |
19372 | 21095 |
19373 /// @domName Uint32Array.setElements; @docsEditable true | 21096 /// @docsEditable true |
19374 @JSName('set') | 21097 @JSName('set') |
| 21098 @DomName("Uint32Array.set") |
19375 void setElements(Object array, [int offset]) native; | 21099 void setElements(Object array, [int offset]) native; |
19376 | 21100 |
19377 /// @domName Uint32Array.subarray; @docsEditable true | 21101 /// @docsEditable true |
| 21102 @DomName("Uint32Array.subarray") |
19378 Uint32Array subarray(int start, [int end]) native; | 21103 Uint32Array subarray(int start, [int end]) native; |
19379 } | 21104 } |
19380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19381 // for details. All rights reserved. Use of this source code is governed by a | 21106 // for details. All rights reserved. Use of this source code is governed by a |
19382 // BSD-style license that can be found in the LICENSE file. | 21107 // BSD-style license that can be found in the LICENSE file. |
19383 | 21108 |
19384 | 21109 |
19385 /// @domName Uint8Array; @docsEditable true | 21110 /// @docsEditable true |
| 21111 @DomName("Uint8Array") |
19386 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint8Array" { | 21112 class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior,
List<int> native "*Uint8Array" { |
19387 | 21113 |
19388 factory Uint8Array(int length) => | 21114 factory Uint8Array(int length) => |
19389 _TypedArrayFactoryProvider.createUint8Array(length); | 21115 _TypedArrayFactoryProvider.createUint8Array(length); |
19390 | 21116 |
19391 factory Uint8Array.fromList(List<int> list) => | 21117 factory Uint8Array.fromList(List<int> list) => |
19392 _TypedArrayFactoryProvider.createUint8Array_fromList(list); | 21118 _TypedArrayFactoryProvider.createUint8Array_fromList(list); |
19393 | 21119 |
19394 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => | 21120 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]
) => |
19395 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l
ength); | 21121 _TypedArrayFactoryProvider.createUint8Array_fromBuffer(buffer, byteOffset, l
ength); |
19396 | 21122 |
19397 static const int BYTES_PER_ELEMENT = 1; | 21123 static const int BYTES_PER_ELEMENT = 1; |
19398 | 21124 |
19399 /// @domName Uint8Array.length; @docsEditable true | 21125 /// @docsEditable true |
| 21126 @DomName("Uint8Array.length") |
19400 int get length => JS("int", "#.length", this); | 21127 int get length => JS("int", "#.length", this); |
19401 | 21128 |
19402 int operator[](int index) => JS("int", "#[#]", this, index); | 21129 int operator[](int index) => JS("int", "#[#]", this, index); |
19403 | 21130 |
19404 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. | 21131 void operator[]=(int index, int value) { JS("void", "#[#] = #", this, index, v
alue); } // -- start List<int> mixins. |
19405 // int is the element type. | 21132 // int is the element type. |
19406 | 21133 |
19407 // From Iterable<int>: | 21134 // From Iterable<int>: |
19408 | 21135 |
19409 Iterator<int> get iterator { | 21136 Iterator<int> get iterator { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19534 | 21261 |
19535 void insertRange(int start, int rangeLength, [int initialValue]) { | 21262 void insertRange(int start, int rangeLength, [int initialValue]) { |
19536 throw new UnsupportedError("Cannot insertRange on immutable List."); | 21263 throw new UnsupportedError("Cannot insertRange on immutable List."); |
19537 } | 21264 } |
19538 | 21265 |
19539 List<int> getRange(int start, int rangeLength) => | 21266 List<int> getRange(int start, int rangeLength) => |
19540 Lists.getRange(this, start, rangeLength, <int>[]); | 21267 Lists.getRange(this, start, rangeLength, <int>[]); |
19541 | 21268 |
19542 // -- end List<int> mixins. | 21269 // -- end List<int> mixins. |
19543 | 21270 |
19544 /// @domName Uint8Array.setElements; @docsEditable true | 21271 /// @docsEditable true |
19545 @JSName('set') | 21272 @JSName('set') |
| 21273 @DomName("Uint8Array.set") |
19546 void setElements(Object array, [int offset]) native; | 21274 void setElements(Object array, [int offset]) native; |
19547 | 21275 |
19548 /// @domName Uint8Array.subarray; @docsEditable true | 21276 /// @docsEditable true |
| 21277 @DomName("Uint8Array.subarray") |
19549 Uint8Array subarray(int start, [int end]) native; | 21278 Uint8Array subarray(int start, [int end]) native; |
19550 } | 21279 } |
19551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19552 // for details. All rights reserved. Use of this source code is governed by a | 21281 // for details. All rights reserved. Use of this source code is governed by a |
19553 // BSD-style license that can be found in the LICENSE file. | 21282 // BSD-style license that can be found in the LICENSE file. |
19554 | 21283 |
19555 | 21284 |
19556 /// @domName Uint8ClampedArray; @docsEditable true | 21285 /// @docsEditable true |
| 21286 @DomName("Uint8ClampedArray") |
19557 class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" { | 21287 class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" { |
19558 | 21288 |
19559 factory Uint8ClampedArray(int length) => | 21289 factory Uint8ClampedArray(int length) => |
19560 _TypedArrayFactoryProvider.createUint8ClampedArray(length); | 21290 _TypedArrayFactoryProvider.createUint8ClampedArray(length); |
19561 | 21291 |
19562 factory Uint8ClampedArray.fromList(List<int> list) => | 21292 factory Uint8ClampedArray.fromList(List<int> list) => |
19563 _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list); | 21293 _TypedArrayFactoryProvider.createUint8ClampedArray_fromList(list); |
19564 | 21294 |
19565 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int
length]) => | 21295 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int
length]) => |
19566 _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOf
fset, length); | 21296 _TypedArrayFactoryProvider.createUint8ClampedArray_fromBuffer(buffer, byteOf
fset, length); |
19567 | 21297 |
19568 // Use implementation from Uint8Array. | 21298 // Use implementation from Uint8Array. |
19569 // final int length; | 21299 // final int length; |
19570 | 21300 |
19571 /// @domName Uint8ClampedArray.setElements; @docsEditable true | 21301 /// @docsEditable true |
19572 @JSName('set') | 21302 @JSName('set') |
| 21303 @DomName("Uint8ClampedArray.set") |
19573 void setElements(Object array, [int offset]) native; | 21304 void setElements(Object array, [int offset]) native; |
19574 | 21305 |
19575 /// @domName Uint8ClampedArray.subarray; @docsEditable true | 21306 /// @docsEditable true |
| 21307 @DomName("Uint8ClampedArray.subarray") |
19576 Uint8ClampedArray subarray(int start, [int end]) native; | 21308 Uint8ClampedArray subarray(int start, [int end]) native; |
19577 } | 21309 } |
19578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21310 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19579 // for details. All rights reserved. Use of this source code is governed by a | 21311 // for details. All rights reserved. Use of this source code is governed by a |
19580 // BSD-style license that can be found in the LICENSE file. | 21312 // BSD-style license that can be found in the LICENSE file. |
19581 | 21313 |
19582 | 21314 |
19583 /// @domName HTMLUnknownElement; @docsEditable true | 21315 /// @docsEditable true |
| 21316 @DomName("HTMLUnknownElement") |
19584 class UnknownElement extends Element native "*HTMLUnknownElement" { | 21317 class UnknownElement extends Element native "*HTMLUnknownElement" { |
19585 } | 21318 } |
19586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19587 // for details. All rights reserved. Use of this source code is governed by a | 21320 // for details. All rights reserved. Use of this source code is governed by a |
19588 // BSD-style license that can be found in the LICENSE file. | 21321 // BSD-style license that can be found in the LICENSE file. |
19589 | 21322 |
19590 | 21323 |
19591 /// @domName URL | 21324 @DomName("URL") |
19592 class Url native "*URL" { | 21325 class Url native "*URL" { |
19593 | 21326 |
19594 static String createObjectUrl(blob_OR_source_OR_stream) => | 21327 static String createObjectUrl(blob_OR_source_OR_stream) => |
19595 JS('String', | 21328 JS('String', |
19596 '(window.URL || window.webkitURL).createObjectURL(#)', | 21329 '(window.URL || window.webkitURL).createObjectURL(#)', |
19597 blob_OR_source_OR_stream); | 21330 blob_OR_source_OR_stream); |
19598 | 21331 |
19599 static void revokeObjectUrl(String objectUrl) => | 21332 static void revokeObjectUrl(String objectUrl) => |
19600 JS('void', | 21333 JS('void', |
19601 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); | 21334 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); |
19602 | 21335 |
19603 } | 21336 } |
19604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19605 // for details. All rights reserved. Use of this source code is governed by a | 21338 // for details. All rights reserved. Use of this source code is governed by a |
19606 // BSD-style license that can be found in the LICENSE file. | 21339 // BSD-style license that can be found in the LICENSE file. |
19607 | 21340 |
19608 | 21341 |
19609 /// @domName ValidityState; @docsEditable true | 21342 /// @docsEditable true |
| 21343 @DomName("ValidityState") |
19610 class ValidityState native "*ValidityState" { | 21344 class ValidityState native "*ValidityState" { |
19611 | 21345 |
19612 /// @domName ValidityState.badInput; @docsEditable true | 21346 /// @docsEditable true |
| 21347 @DomName("ValidityState.badInput") |
19613 final bool badInput; | 21348 final bool badInput; |
19614 | 21349 |
19615 /// @domName ValidityState.customError; @docsEditable true | 21350 /// @docsEditable true |
| 21351 @DomName("ValidityState.customError") |
19616 final bool customError; | 21352 final bool customError; |
19617 | 21353 |
19618 /// @domName ValidityState.patternMismatch; @docsEditable true | 21354 /// @docsEditable true |
| 21355 @DomName("ValidityState.patternMismatch") |
19619 final bool patternMismatch; | 21356 final bool patternMismatch; |
19620 | 21357 |
19621 /// @domName ValidityState.rangeOverflow; @docsEditable true | 21358 /// @docsEditable true |
| 21359 @DomName("ValidityState.rangeOverflow") |
19622 final bool rangeOverflow; | 21360 final bool rangeOverflow; |
19623 | 21361 |
19624 /// @domName ValidityState.rangeUnderflow; @docsEditable true | 21362 /// @docsEditable true |
| 21363 @DomName("ValidityState.rangeUnderflow") |
19625 final bool rangeUnderflow; | 21364 final bool rangeUnderflow; |
19626 | 21365 |
19627 /// @domName ValidityState.stepMismatch; @docsEditable true | 21366 /// @docsEditable true |
| 21367 @DomName("ValidityState.stepMismatch") |
19628 final bool stepMismatch; | 21368 final bool stepMismatch; |
19629 | 21369 |
19630 /// @domName ValidityState.tooLong; @docsEditable true | 21370 /// @docsEditable true |
| 21371 @DomName("ValidityState.tooLong") |
19631 final bool tooLong; | 21372 final bool tooLong; |
19632 | 21373 |
19633 /// @domName ValidityState.typeMismatch; @docsEditable true | 21374 /// @docsEditable true |
| 21375 @DomName("ValidityState.typeMismatch") |
19634 final bool typeMismatch; | 21376 final bool typeMismatch; |
19635 | 21377 |
19636 /// @domName ValidityState.valid; @docsEditable true | 21378 /// @docsEditable true |
| 21379 @DomName("ValidityState.valid") |
19637 final bool valid; | 21380 final bool valid; |
19638 | 21381 |
19639 /// @domName ValidityState.valueMissing; @docsEditable true | 21382 /// @docsEditable true |
| 21383 @DomName("ValidityState.valueMissing") |
19640 final bool valueMissing; | 21384 final bool valueMissing; |
19641 } | 21385 } |
19642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19643 // for details. All rights reserved. Use of this source code is governed by a | 21387 // for details. All rights reserved. Use of this source code is governed by a |
19644 // BSD-style license that can be found in the LICENSE file. | 21388 // BSD-style license that can be found in the LICENSE file. |
19645 | 21389 |
19646 | 21390 |
19647 /// @domName HTMLVideoElement; @docsEditable true | 21391 /// @docsEditable true |
| 21392 @DomName("HTMLVideoElement") |
19648 class VideoElement extends MediaElement native "*HTMLVideoElement" { | 21393 class VideoElement extends MediaElement native "*HTMLVideoElement" { |
19649 | 21394 |
19650 ///@docsEditable true | 21395 /// @docsEditable true |
19651 factory VideoElement() => document.$dom_createElement("video"); | 21396 factory VideoElement() => document.$dom_createElement("video"); |
19652 | 21397 |
19653 /// @domName HTMLVideoElement.height; @docsEditable true | 21398 /// @docsEditable true |
| 21399 @DomName("HTMLVideoElement.height") |
19654 int height; | 21400 int height; |
19655 | 21401 |
19656 /// @domName HTMLVideoElement.poster; @docsEditable true | 21402 /// @docsEditable true |
| 21403 @DomName("HTMLVideoElement.poster") |
19657 String poster; | 21404 String poster; |
19658 | 21405 |
19659 /// @domName HTMLVideoElement.videoHeight; @docsEditable true | 21406 /// @docsEditable true |
| 21407 @DomName("HTMLVideoElement.videoHeight") |
19660 final int videoHeight; | 21408 final int videoHeight; |
19661 | 21409 |
19662 /// @domName HTMLVideoElement.videoWidth; @docsEditable true | 21410 /// @docsEditable true |
| 21411 @DomName("HTMLVideoElement.videoWidth") |
19663 final int videoWidth; | 21412 final int videoWidth; |
19664 | 21413 |
19665 /// @domName HTMLVideoElement.webkitDecodedFrameCount; @docsEditable true | 21414 /// @docsEditable true |
| 21415 @DomName("HTMLVideoElement.webkitDecodedFrameCount") |
19666 final int webkitDecodedFrameCount; | 21416 final int webkitDecodedFrameCount; |
19667 | 21417 |
19668 /// @domName HTMLVideoElement.webkitDisplayingFullscreen; @docsEditable true | 21418 /// @docsEditable true |
| 21419 @DomName("HTMLVideoElement.webkitDisplayingFullscreen") |
19669 final bool webkitDisplayingFullscreen; | 21420 final bool webkitDisplayingFullscreen; |
19670 | 21421 |
19671 /// @domName HTMLVideoElement.webkitDroppedFrameCount; @docsEditable true | 21422 /// @docsEditable true |
| 21423 @DomName("HTMLVideoElement.webkitDroppedFrameCount") |
19672 final int webkitDroppedFrameCount; | 21424 final int webkitDroppedFrameCount; |
19673 | 21425 |
19674 /// @domName HTMLVideoElement.webkitSupportsFullscreen; @docsEditable true | 21426 /// @docsEditable true |
| 21427 @DomName("HTMLVideoElement.webkitSupportsFullscreen") |
19675 final bool webkitSupportsFullscreen; | 21428 final bool webkitSupportsFullscreen; |
19676 | 21429 |
19677 /// @domName HTMLVideoElement.width; @docsEditable true | 21430 /// @docsEditable true |
| 21431 @DomName("HTMLVideoElement.width") |
19678 int width; | 21432 int width; |
19679 | 21433 |
19680 /// @domName HTMLVideoElement.webkitEnterFullScreen; @docsEditable true | 21434 /// @docsEditable true |
| 21435 @DomName("HTMLVideoElement.webkitEnterFullScreen") |
19681 void webkitEnterFullScreen() native; | 21436 void webkitEnterFullScreen() native; |
19682 | 21437 |
19683 /// @domName HTMLVideoElement.webkitEnterFullscreen; @docsEditable true | 21438 /// @docsEditable true |
| 21439 @DomName("HTMLVideoElement.webkitEnterFullscreen") |
19684 void webkitEnterFullscreen() native; | 21440 void webkitEnterFullscreen() native; |
19685 | 21441 |
19686 /// @domName HTMLVideoElement.webkitExitFullScreen; @docsEditable true | 21442 /// @docsEditable true |
| 21443 @DomName("HTMLVideoElement.webkitExitFullScreen") |
19687 void webkitExitFullScreen() native; | 21444 void webkitExitFullScreen() native; |
19688 | 21445 |
19689 /// @domName HTMLVideoElement.webkitExitFullscreen; @docsEditable true | 21446 /// @docsEditable true |
| 21447 @DomName("HTMLVideoElement.webkitExitFullscreen") |
19690 void webkitExitFullscreen() native; | 21448 void webkitExitFullscreen() native; |
19691 } | 21449 } |
19692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19693 // for details. All rights reserved. Use of this source code is governed by a | 21451 // for details. All rights reserved. Use of this source code is governed by a |
19694 // BSD-style license that can be found in the LICENSE file. | 21452 // BSD-style license that can be found in the LICENSE file. |
19695 | 21453 |
19696 // WARNING: Do not edit - generated code. | 21454 // WARNING: Do not edit - generated code. |
19697 | 21455 |
19698 | 21456 |
19699 typedef void VoidCallback(); | 21457 typedef void VoidCallback(); |
19700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21458 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19701 // for details. All rights reserved. Use of this source code is governed by a | 21459 // for details. All rights reserved. Use of this source code is governed by a |
19702 // BSD-style license that can be found in the LICENSE file. | 21460 // BSD-style license that can be found in the LICENSE file. |
19703 | 21461 |
19704 | 21462 |
19705 /// @domName WebGLActiveInfo; @docsEditable true | 21463 /// @docsEditable true |
| 21464 @DomName("WebGLActiveInfo") |
19706 class WebGLActiveInfo native "*WebGLActiveInfo" { | 21465 class WebGLActiveInfo native "*WebGLActiveInfo" { |
19707 | 21466 |
19708 /// @domName WebGLActiveInfo.name; @docsEditable true | 21467 /// @docsEditable true |
| 21468 @DomName("WebGLActiveInfo.name") |
19709 final String name; | 21469 final String name; |
19710 | 21470 |
19711 /// @domName WebGLActiveInfo.size; @docsEditable true | 21471 /// @docsEditable true |
| 21472 @DomName("WebGLActiveInfo.size") |
19712 final int size; | 21473 final int size; |
19713 | 21474 |
19714 /// @domName WebGLActiveInfo.type; @docsEditable true | 21475 /// @docsEditable true |
| 21476 @DomName("WebGLActiveInfo.type") |
19715 final int type; | 21477 final int type; |
19716 } | 21478 } |
19717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19718 // for details. All rights reserved. Use of this source code is governed by a | 21480 // for details. All rights reserved. Use of this source code is governed by a |
19719 // BSD-style license that can be found in the LICENSE file. | 21481 // BSD-style license that can be found in the LICENSE file. |
19720 | 21482 |
19721 | 21483 |
19722 /// @domName WebGLBuffer; @docsEditable true | 21484 /// @docsEditable true |
| 21485 @DomName("WebGLBuffer") |
19723 class WebGLBuffer native "*WebGLBuffer" { | 21486 class WebGLBuffer native "*WebGLBuffer" { |
19724 } | 21487 } |
19725 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19726 // for details. All rights reserved. Use of this source code is governed by a | 21489 // for details. All rights reserved. Use of this source code is governed by a |
19727 // BSD-style license that can be found in the LICENSE file. | 21490 // BSD-style license that can be found in the LICENSE file. |
19728 | 21491 |
19729 | 21492 |
19730 /// @domName WebGLCompressedTextureS3TC; @docsEditable true | 21493 /// @docsEditable true |
| 21494 @DomName("WebGLCompressedTextureS3TC") |
19731 class WebGLCompressedTextureS3TC native "*WebGLCompressedTextureS3TC" { | 21495 class WebGLCompressedTextureS3TC native "*WebGLCompressedTextureS3TC" { |
19732 | 21496 |
19733 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; | 21497 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; |
19734 | 21498 |
19735 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; | 21499 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; |
19736 | 21500 |
19737 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; | 21501 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; |
19738 | 21502 |
19739 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; | 21503 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; |
19740 } | 21504 } |
19741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19742 // for details. All rights reserved. Use of this source code is governed by a | 21506 // for details. All rights reserved. Use of this source code is governed by a |
19743 // BSD-style license that can be found in the LICENSE file. | 21507 // BSD-style license that can be found in the LICENSE file. |
19744 | 21508 |
19745 | 21509 |
19746 /// @domName WebGLContextAttributes; @docsEditable true | 21510 /// @docsEditable true |
| 21511 @DomName("WebGLContextAttributes") |
19747 class WebGLContextAttributes native "*WebGLContextAttributes" { | 21512 class WebGLContextAttributes native "*WebGLContextAttributes" { |
19748 | 21513 |
19749 /// @domName WebGLContextAttributes.alpha; @docsEditable true | 21514 /// @docsEditable true |
| 21515 @DomName("WebGLContextAttributes.alpha") |
19750 bool alpha; | 21516 bool alpha; |
19751 | 21517 |
19752 /// @domName WebGLContextAttributes.antialias; @docsEditable true | 21518 /// @docsEditable true |
| 21519 @DomName("WebGLContextAttributes.antialias") |
19753 bool antialias; | 21520 bool antialias; |
19754 | 21521 |
19755 /// @domName WebGLContextAttributes.depth; @docsEditable true | 21522 /// @docsEditable true |
| 21523 @DomName("WebGLContextAttributes.depth") |
19756 bool depth; | 21524 bool depth; |
19757 | 21525 |
19758 /// @domName WebGLContextAttributes.premultipliedAlpha; @docsEditable true | 21526 /// @docsEditable true |
| 21527 @DomName("WebGLContextAttributes.premultipliedAlpha") |
19759 bool premultipliedAlpha; | 21528 bool premultipliedAlpha; |
19760 | 21529 |
19761 /// @domName WebGLContextAttributes.preserveDrawingBuffer; @docsEditable true | 21530 /// @docsEditable true |
| 21531 @DomName("WebGLContextAttributes.preserveDrawingBuffer") |
19762 bool preserveDrawingBuffer; | 21532 bool preserveDrawingBuffer; |
19763 | 21533 |
19764 /// @domName WebGLContextAttributes.stencil; @docsEditable true | 21534 /// @docsEditable true |
| 21535 @DomName("WebGLContextAttributes.stencil") |
19765 bool stencil; | 21536 bool stencil; |
19766 } | 21537 } |
19767 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19768 // for details. All rights reserved. Use of this source code is governed by a | 21539 // for details. All rights reserved. Use of this source code is governed by a |
19769 // BSD-style license that can be found in the LICENSE file. | 21540 // BSD-style license that can be found in the LICENSE file. |
19770 | 21541 |
19771 | 21542 |
19772 /// @domName WebGLContextEvent; @docsEditable true | 21543 /// @docsEditable true |
| 21544 @DomName("WebGLContextEvent") |
19773 class WebGLContextEvent extends Event native "*WebGLContextEvent" { | 21545 class WebGLContextEvent extends Event native "*WebGLContextEvent" { |
19774 | 21546 |
19775 /// @domName WebGLContextEvent.statusMessage; @docsEditable true | 21547 /// @docsEditable true |
| 21548 @DomName("WebGLContextEvent.statusMessage") |
19776 final String statusMessage; | 21549 final String statusMessage; |
19777 } | 21550 } |
19778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19779 // for details. All rights reserved. Use of this source code is governed by a | 21552 // for details. All rights reserved. Use of this source code is governed by a |
19780 // BSD-style license that can be found in the LICENSE file. | 21553 // BSD-style license that can be found in the LICENSE file. |
19781 | 21554 |
19782 | 21555 |
19783 /// @domName WebGLDebugRendererInfo; @docsEditable true | 21556 /// @docsEditable true |
| 21557 @DomName("WebGLDebugRendererInfo") |
19784 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" { | 21558 class WebGLDebugRendererInfo native "*WebGLDebugRendererInfo" { |
19785 | 21559 |
19786 static const int UNMASKED_RENDERER_WEBGL = 0x9246; | 21560 static const int UNMASKED_RENDERER_WEBGL = 0x9246; |
19787 | 21561 |
19788 static const int UNMASKED_VENDOR_WEBGL = 0x9245; | 21562 static const int UNMASKED_VENDOR_WEBGL = 0x9245; |
19789 } | 21563 } |
19790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19791 // for details. All rights reserved. Use of this source code is governed by a | 21565 // for details. All rights reserved. Use of this source code is governed by a |
19792 // BSD-style license that can be found in the LICENSE file. | 21566 // BSD-style license that can be found in the LICENSE file. |
19793 | 21567 |
19794 | 21568 |
19795 /// @domName WebGLDebugShaders; @docsEditable true | 21569 /// @docsEditable true |
| 21570 @DomName("WebGLDebugShaders") |
19796 class WebGLDebugShaders native "*WebGLDebugShaders" { | 21571 class WebGLDebugShaders native "*WebGLDebugShaders" { |
19797 | 21572 |
19798 /// @domName WebGLDebugShaders.getTranslatedShaderSource; @docsEditable true | 21573 /// @docsEditable true |
| 21574 @DomName("WebGLDebugShaders.getTranslatedShaderSource") |
19799 String getTranslatedShaderSource(WebGLShader shader) native; | 21575 String getTranslatedShaderSource(WebGLShader shader) native; |
19800 } | 21576 } |
19801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19802 // for details. All rights reserved. Use of this source code is governed by a | 21578 // for details. All rights reserved. Use of this source code is governed by a |
19803 // BSD-style license that can be found in the LICENSE file. | 21579 // BSD-style license that can be found in the LICENSE file. |
19804 | 21580 |
19805 | 21581 |
19806 /// @domName WebGLDepthTexture; @docsEditable true | 21582 /// @docsEditable true |
| 21583 @DomName("WebGLDepthTexture") |
19807 class WebGLDepthTexture native "*WebGLDepthTexture" { | 21584 class WebGLDepthTexture native "*WebGLDepthTexture" { |
19808 | 21585 |
19809 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | 21586 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; |
19810 } | 21587 } |
19811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21588 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19812 // for details. All rights reserved. Use of this source code is governed by a | 21589 // for details. All rights reserved. Use of this source code is governed by a |
19813 // BSD-style license that can be found in the LICENSE file. | 21590 // BSD-style license that can be found in the LICENSE file. |
19814 | 21591 |
19815 | 21592 |
19816 /// @domName WebGLFramebuffer; @docsEditable true | 21593 /// @docsEditable true |
| 21594 @DomName("WebGLFramebuffer") |
19817 class WebGLFramebuffer native "*WebGLFramebuffer" { | 21595 class WebGLFramebuffer native "*WebGLFramebuffer" { |
19818 } | 21596 } |
19819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21597 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19820 // for details. All rights reserved. Use of this source code is governed by a | 21598 // for details. All rights reserved. Use of this source code is governed by a |
19821 // BSD-style license that can be found in the LICENSE file. | 21599 // BSD-style license that can be found in the LICENSE file. |
19822 | 21600 |
19823 | 21601 |
19824 /// @domName WebGLLoseContext; @docsEditable true | 21602 /// @docsEditable true |
| 21603 @DomName("WebGLLoseContext") |
19825 class WebGLLoseContext native "*WebGLLoseContext" { | 21604 class WebGLLoseContext native "*WebGLLoseContext" { |
19826 | 21605 |
19827 /// @domName WebGLLoseContext.loseContext; @docsEditable true | 21606 /// @docsEditable true |
| 21607 @DomName("WebGLLoseContext.loseContext") |
19828 void loseContext() native; | 21608 void loseContext() native; |
19829 | 21609 |
19830 /// @domName WebGLLoseContext.restoreContext; @docsEditable true | 21610 /// @docsEditable true |
| 21611 @DomName("WebGLLoseContext.restoreContext") |
19831 void restoreContext() native; | 21612 void restoreContext() native; |
19832 } | 21613 } |
19833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19834 // for details. All rights reserved. Use of this source code is governed by a | 21615 // for details. All rights reserved. Use of this source code is governed by a |
19835 // BSD-style license that can be found in the LICENSE file. | 21616 // BSD-style license that can be found in the LICENSE file. |
19836 | 21617 |
19837 | 21618 |
19838 /// @domName WebGLProgram; @docsEditable true | 21619 /// @docsEditable true |
| 21620 @DomName("WebGLProgram") |
19839 class WebGLProgram native "*WebGLProgram" { | 21621 class WebGLProgram native "*WebGLProgram" { |
19840 } | 21622 } |
19841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19842 // for details. All rights reserved. Use of this source code is governed by a | 21624 // for details. All rights reserved. Use of this source code is governed by a |
19843 // BSD-style license that can be found in the LICENSE file. | 21625 // BSD-style license that can be found in the LICENSE file. |
19844 | 21626 |
19845 | 21627 |
19846 /// @domName WebGLRenderbuffer; @docsEditable true | 21628 /// @docsEditable true |
| 21629 @DomName("WebGLRenderbuffer") |
19847 class WebGLRenderbuffer native "*WebGLRenderbuffer" { | 21630 class WebGLRenderbuffer native "*WebGLRenderbuffer" { |
19848 } | 21631 } |
19849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19850 // for details. All rights reserved. Use of this source code is governed by a | 21633 // for details. All rights reserved. Use of this source code is governed by a |
19851 // BSD-style license that can be found in the LICENSE file. | 21634 // BSD-style license that can be found in the LICENSE file. |
19852 | 21635 |
19853 | 21636 |
19854 /// @domName WebGLRenderingContext; @docsEditable true | 21637 /// @docsEditable true |
| 21638 @DomName("WebGLRenderingContext") |
19855 class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi
ngContext" { | 21639 class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi
ngContext" { |
19856 | 21640 |
19857 static const int ACTIVE_ATTRIBUTES = 0x8B89; | 21641 static const int ACTIVE_ATTRIBUTES = 0x8B89; |
19858 | 21642 |
19859 static const int ACTIVE_TEXTURE = 0x84E0; | 21643 static const int ACTIVE_TEXTURE = 0x84E0; |
19860 | 21644 |
19861 static const int ACTIVE_UNIFORMS = 0x8B86; | 21645 static const int ACTIVE_UNIFORMS = 0x8B86; |
19862 | 21646 |
19863 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; | 21647 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; |
19864 | 21648 |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20437 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | 22221 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; |
20438 | 22222 |
20439 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | 22223 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; |
20440 | 22224 |
20441 static const int VERTEX_SHADER = 0x8B31; | 22225 static const int VERTEX_SHADER = 0x8B31; |
20442 | 22226 |
20443 static const int VIEWPORT = 0x0BA2; | 22227 static const int VIEWPORT = 0x0BA2; |
20444 | 22228 |
20445 static const int ZERO = 0; | 22229 static const int ZERO = 0; |
20446 | 22230 |
20447 /// @domName WebGLRenderingContext.drawingBufferHeight; @docsEditable true | 22231 /// @docsEditable true |
| 22232 @DomName("WebGLRenderingContext.drawingBufferHeight") |
20448 final int drawingBufferHeight; | 22233 final int drawingBufferHeight; |
20449 | 22234 |
20450 /// @domName WebGLRenderingContext.drawingBufferWidth; @docsEditable true | 22235 /// @docsEditable true |
| 22236 @DomName("WebGLRenderingContext.drawingBufferWidth") |
20451 final int drawingBufferWidth; | 22237 final int drawingBufferWidth; |
20452 | 22238 |
20453 /// @domName WebGLRenderingContext.activeTexture; @docsEditable true | 22239 /// @docsEditable true |
| 22240 @DomName("WebGLRenderingContext.activeTexture") |
20454 void activeTexture(int texture) native; | 22241 void activeTexture(int texture) native; |
20455 | 22242 |
20456 /// @domName WebGLRenderingContext.attachShader; @docsEditable true | 22243 /// @docsEditable true |
| 22244 @DomName("WebGLRenderingContext.attachShader") |
20457 void attachShader(WebGLProgram program, WebGLShader shader) native; | 22245 void attachShader(WebGLProgram program, WebGLShader shader) native; |
20458 | 22246 |
20459 /// @domName WebGLRenderingContext.bindAttribLocation; @docsEditable true | 22247 /// @docsEditable true |
| 22248 @DomName("WebGLRenderingContext.bindAttribLocation") |
20460 void bindAttribLocation(WebGLProgram program, int index, String name) native; | 22249 void bindAttribLocation(WebGLProgram program, int index, String name) native; |
20461 | 22250 |
20462 /// @domName WebGLRenderingContext.bindBuffer; @docsEditable true | 22251 /// @docsEditable true |
| 22252 @DomName("WebGLRenderingContext.bindBuffer") |
20463 void bindBuffer(int target, WebGLBuffer buffer) native; | 22253 void bindBuffer(int target, WebGLBuffer buffer) native; |
20464 | 22254 |
20465 /// @domName WebGLRenderingContext.bindFramebuffer; @docsEditable true | 22255 /// @docsEditable true |
| 22256 @DomName("WebGLRenderingContext.bindFramebuffer") |
20466 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native; | 22257 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) native; |
20467 | 22258 |
20468 /// @domName WebGLRenderingContext.bindRenderbuffer; @docsEditable true | 22259 /// @docsEditable true |
| 22260 @DomName("WebGLRenderingContext.bindRenderbuffer") |
20469 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native; | 22261 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) native; |
20470 | 22262 |
20471 /// @domName WebGLRenderingContext.bindTexture; @docsEditable true | 22263 /// @docsEditable true |
| 22264 @DomName("WebGLRenderingContext.bindTexture") |
20472 void bindTexture(int target, WebGLTexture texture) native; | 22265 void bindTexture(int target, WebGLTexture texture) native; |
20473 | 22266 |
20474 /// @domName WebGLRenderingContext.blendColor; @docsEditable true | 22267 /// @docsEditable true |
| 22268 @DomName("WebGLRenderingContext.blendColor") |
20475 void blendColor(num red, num green, num blue, num alpha) native; | 22269 void blendColor(num red, num green, num blue, num alpha) native; |
20476 | 22270 |
20477 /// @domName WebGLRenderingContext.blendEquation; @docsEditable true | 22271 /// @docsEditable true |
| 22272 @DomName("WebGLRenderingContext.blendEquation") |
20478 void blendEquation(int mode) native; | 22273 void blendEquation(int mode) native; |
20479 | 22274 |
20480 /// @domName WebGLRenderingContext.blendEquationSeparate; @docsEditable true | 22275 /// @docsEditable true |
| 22276 @DomName("WebGLRenderingContext.blendEquationSeparate") |
20481 void blendEquationSeparate(int modeRGB, int modeAlpha) native; | 22277 void blendEquationSeparate(int modeRGB, int modeAlpha) native; |
20482 | 22278 |
20483 /// @domName WebGLRenderingContext.blendFunc; @docsEditable true | 22279 /// @docsEditable true |
| 22280 @DomName("WebGLRenderingContext.blendFunc") |
20484 void blendFunc(int sfactor, int dfactor) native; | 22281 void blendFunc(int sfactor, int dfactor) native; |
20485 | 22282 |
20486 /// @domName WebGLRenderingContext.blendFuncSeparate; @docsEditable true | 22283 /// @docsEditable true |
| 22284 @DomName("WebGLRenderingContext.blendFuncSeparate") |
20487 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; | 22285 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; |
20488 | 22286 |
20489 /// @domName WebGLRenderingContext.bufferData; @docsEditable true | 22287 /// @docsEditable true |
| 22288 @DomName("WebGLRenderingContext.bufferData") |
20490 void bufferData(int target, data_OR_size, int usage) native; | 22289 void bufferData(int target, data_OR_size, int usage) native; |
20491 | 22290 |
20492 /// @domName WebGLRenderingContext.bufferSubData; @docsEditable true | 22291 /// @docsEditable true |
| 22292 @DomName("WebGLRenderingContext.bufferSubData") |
20493 void bufferSubData(int target, int offset, data) native; | 22293 void bufferSubData(int target, int offset, data) native; |
20494 | 22294 |
20495 /// @domName WebGLRenderingContext.checkFramebufferStatus; @docsEditable true | 22295 /// @docsEditable true |
| 22296 @DomName("WebGLRenderingContext.checkFramebufferStatus") |
20496 int checkFramebufferStatus(int target) native; | 22297 int checkFramebufferStatus(int target) native; |
20497 | 22298 |
20498 /// @domName WebGLRenderingContext.clear; @docsEditable true | 22299 /// @docsEditable true |
| 22300 @DomName("WebGLRenderingContext.clear") |
20499 void clear(int mask) native; | 22301 void clear(int mask) native; |
20500 | 22302 |
20501 /// @domName WebGLRenderingContext.clearColor; @docsEditable true | 22303 /// @docsEditable true |
| 22304 @DomName("WebGLRenderingContext.clearColor") |
20502 void clearColor(num red, num green, num blue, num alpha) native; | 22305 void clearColor(num red, num green, num blue, num alpha) native; |
20503 | 22306 |
20504 /// @domName WebGLRenderingContext.clearDepth; @docsEditable true | 22307 /// @docsEditable true |
| 22308 @DomName("WebGLRenderingContext.clearDepth") |
20505 void clearDepth(num depth) native; | 22309 void clearDepth(num depth) native; |
20506 | 22310 |
20507 /// @domName WebGLRenderingContext.clearStencil; @docsEditable true | 22311 /// @docsEditable true |
| 22312 @DomName("WebGLRenderingContext.clearStencil") |
20508 void clearStencil(int s) native; | 22313 void clearStencil(int s) native; |
20509 | 22314 |
20510 /// @domName WebGLRenderingContext.colorMask; @docsEditable true | 22315 /// @docsEditable true |
| 22316 @DomName("WebGLRenderingContext.colorMask") |
20511 void colorMask(bool red, bool green, bool blue, bool alpha) native; | 22317 void colorMask(bool red, bool green, bool blue, bool alpha) native; |
20512 | 22318 |
20513 /// @domName WebGLRenderingContext.compileShader; @docsEditable true | 22319 /// @docsEditable true |
| 22320 @DomName("WebGLRenderingContext.compileShader") |
20514 void compileShader(WebGLShader shader) native; | 22321 void compileShader(WebGLShader shader) native; |
20515 | 22322 |
20516 /// @domName WebGLRenderingContext.compressedTexImage2D; @docsEditable true | 22323 /// @docsEditable true |
| 22324 @DomName("WebGLRenderingContext.compressedTexImage2D") |
20517 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, ArrayBufferView data) native; | 22325 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, ArrayBufferView data) native; |
20518 | 22326 |
20519 /// @domName WebGLRenderingContext.compressedTexSubImage2D; @docsEditable true | 22327 /// @docsEditable true |
| 22328 @DomName("WebGLRenderingContext.compressedTexSubImage2D") |
20520 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, ArrayBufferView data) native; | 22329 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, ArrayBufferView data) native; |
20521 | 22330 |
20522 /// @domName WebGLRenderingContext.copyTexImage2D; @docsEditable true | 22331 /// @docsEditable true |
| 22332 @DomName("WebGLRenderingContext.copyTexImage2D") |
20523 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; | 22333 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; |
20524 | 22334 |
20525 /// @domName WebGLRenderingContext.copyTexSubImage2D; @docsEditable true | 22335 /// @docsEditable true |
| 22336 @DomName("WebGLRenderingContext.copyTexSubImage2D") |
20526 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; | 22337 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; |
20527 | 22338 |
20528 /// @domName WebGLRenderingContext.createBuffer; @docsEditable true | 22339 /// @docsEditable true |
| 22340 @DomName("WebGLRenderingContext.createBuffer") |
20529 WebGLBuffer createBuffer() native; | 22341 WebGLBuffer createBuffer() native; |
20530 | 22342 |
20531 /// @domName WebGLRenderingContext.createFramebuffer; @docsEditable true | 22343 /// @docsEditable true |
| 22344 @DomName("WebGLRenderingContext.createFramebuffer") |
20532 WebGLFramebuffer createFramebuffer() native; | 22345 WebGLFramebuffer createFramebuffer() native; |
20533 | 22346 |
20534 /// @domName WebGLRenderingContext.createProgram; @docsEditable true | 22347 /// @docsEditable true |
| 22348 @DomName("WebGLRenderingContext.createProgram") |
20535 WebGLProgram createProgram() native; | 22349 WebGLProgram createProgram() native; |
20536 | 22350 |
20537 /// @domName WebGLRenderingContext.createRenderbuffer; @docsEditable true | 22351 /// @docsEditable true |
| 22352 @DomName("WebGLRenderingContext.createRenderbuffer") |
20538 WebGLRenderbuffer createRenderbuffer() native; | 22353 WebGLRenderbuffer createRenderbuffer() native; |
20539 | 22354 |
20540 /// @domName WebGLRenderingContext.createShader; @docsEditable true | 22355 /// @docsEditable true |
| 22356 @DomName("WebGLRenderingContext.createShader") |
20541 WebGLShader createShader(int type) native; | 22357 WebGLShader createShader(int type) native; |
20542 | 22358 |
20543 /// @domName WebGLRenderingContext.createTexture; @docsEditable true | 22359 /// @docsEditable true |
| 22360 @DomName("WebGLRenderingContext.createTexture") |
20544 WebGLTexture createTexture() native; | 22361 WebGLTexture createTexture() native; |
20545 | 22362 |
20546 /// @domName WebGLRenderingContext.cullFace; @docsEditable true | 22363 /// @docsEditable true |
| 22364 @DomName("WebGLRenderingContext.cullFace") |
20547 void cullFace(int mode) native; | 22365 void cullFace(int mode) native; |
20548 | 22366 |
20549 /// @domName WebGLRenderingContext.deleteBuffer; @docsEditable true | 22367 /// @docsEditable true |
| 22368 @DomName("WebGLRenderingContext.deleteBuffer") |
20550 void deleteBuffer(WebGLBuffer buffer) native; | 22369 void deleteBuffer(WebGLBuffer buffer) native; |
20551 | 22370 |
20552 /// @domName WebGLRenderingContext.deleteFramebuffer; @docsEditable true | 22371 /// @docsEditable true |
| 22372 @DomName("WebGLRenderingContext.deleteFramebuffer") |
20553 void deleteFramebuffer(WebGLFramebuffer framebuffer) native; | 22373 void deleteFramebuffer(WebGLFramebuffer framebuffer) native; |
20554 | 22374 |
20555 /// @domName WebGLRenderingContext.deleteProgram; @docsEditable true | 22375 /// @docsEditable true |
| 22376 @DomName("WebGLRenderingContext.deleteProgram") |
20556 void deleteProgram(WebGLProgram program) native; | 22377 void deleteProgram(WebGLProgram program) native; |
20557 | 22378 |
20558 /// @domName WebGLRenderingContext.deleteRenderbuffer; @docsEditable true | 22379 /// @docsEditable true |
| 22380 @DomName("WebGLRenderingContext.deleteRenderbuffer") |
20559 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native; | 22381 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) native; |
20560 | 22382 |
20561 /// @domName WebGLRenderingContext.deleteShader; @docsEditable true | 22383 /// @docsEditable true |
| 22384 @DomName("WebGLRenderingContext.deleteShader") |
20562 void deleteShader(WebGLShader shader) native; | 22385 void deleteShader(WebGLShader shader) native; |
20563 | 22386 |
20564 /// @domName WebGLRenderingContext.deleteTexture; @docsEditable true | 22387 /// @docsEditable true |
| 22388 @DomName("WebGLRenderingContext.deleteTexture") |
20565 void deleteTexture(WebGLTexture texture) native; | 22389 void deleteTexture(WebGLTexture texture) native; |
20566 | 22390 |
20567 /// @domName WebGLRenderingContext.depthFunc; @docsEditable true | 22391 /// @docsEditable true |
| 22392 @DomName("WebGLRenderingContext.depthFunc") |
20568 void depthFunc(int func) native; | 22393 void depthFunc(int func) native; |
20569 | 22394 |
20570 /// @domName WebGLRenderingContext.depthMask; @docsEditable true | 22395 /// @docsEditable true |
| 22396 @DomName("WebGLRenderingContext.depthMask") |
20571 void depthMask(bool flag) native; | 22397 void depthMask(bool flag) native; |
20572 | 22398 |
20573 /// @domName WebGLRenderingContext.depthRange; @docsEditable true | 22399 /// @docsEditable true |
| 22400 @DomName("WebGLRenderingContext.depthRange") |
20574 void depthRange(num zNear, num zFar) native; | 22401 void depthRange(num zNear, num zFar) native; |
20575 | 22402 |
20576 /// @domName WebGLRenderingContext.detachShader; @docsEditable true | 22403 /// @docsEditable true |
| 22404 @DomName("WebGLRenderingContext.detachShader") |
20577 void detachShader(WebGLProgram program, WebGLShader shader) native; | 22405 void detachShader(WebGLProgram program, WebGLShader shader) native; |
20578 | 22406 |
20579 /// @domName WebGLRenderingContext.disable; @docsEditable true | 22407 /// @docsEditable true |
| 22408 @DomName("WebGLRenderingContext.disable") |
20580 void disable(int cap) native; | 22409 void disable(int cap) native; |
20581 | 22410 |
20582 /// @domName WebGLRenderingContext.disableVertexAttribArray; @docsEditable tru
e | 22411 /// @docsEditable true |
| 22412 @DomName("WebGLRenderingContext.disableVertexAttribArray") |
20583 void disableVertexAttribArray(int index) native; | 22413 void disableVertexAttribArray(int index) native; |
20584 | 22414 |
20585 /// @domName WebGLRenderingContext.drawArrays; @docsEditable true | 22415 /// @docsEditable true |
| 22416 @DomName("WebGLRenderingContext.drawArrays") |
20586 void drawArrays(int mode, int first, int count) native; | 22417 void drawArrays(int mode, int first, int count) native; |
20587 | 22418 |
20588 /// @domName WebGLRenderingContext.drawElements; @docsEditable true | 22419 /// @docsEditable true |
| 22420 @DomName("WebGLRenderingContext.drawElements") |
20589 void drawElements(int mode, int count, int type, int offset) native; | 22421 void drawElements(int mode, int count, int type, int offset) native; |
20590 | 22422 |
20591 /// @domName WebGLRenderingContext.enable; @docsEditable true | 22423 /// @docsEditable true |
| 22424 @DomName("WebGLRenderingContext.enable") |
20592 void enable(int cap) native; | 22425 void enable(int cap) native; |
20593 | 22426 |
20594 /// @domName WebGLRenderingContext.enableVertexAttribArray; @docsEditable true | 22427 /// @docsEditable true |
| 22428 @DomName("WebGLRenderingContext.enableVertexAttribArray") |
20595 void enableVertexAttribArray(int index) native; | 22429 void enableVertexAttribArray(int index) native; |
20596 | 22430 |
20597 /// @domName WebGLRenderingContext.finish; @docsEditable true | 22431 /// @docsEditable true |
| 22432 @DomName("WebGLRenderingContext.finish") |
20598 void finish() native; | 22433 void finish() native; |
20599 | 22434 |
20600 /// @domName WebGLRenderingContext.flush; @docsEditable true | 22435 /// @docsEditable true |
| 22436 @DomName("WebGLRenderingContext.flush") |
20601 void flush() native; | 22437 void flush() native; |
20602 | 22438 |
20603 /// @domName WebGLRenderingContext.framebufferRenderbuffer; @docsEditable true | 22439 /// @docsEditable true |
| 22440 @DomName("WebGLRenderingContext.framebufferRenderbuffer") |
20604 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer) native; | 22441 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer) native; |
20605 | 22442 |
20606 /// @domName WebGLRenderingContext.framebufferTexture2D; @docsEditable true | 22443 /// @docsEditable true |
| 22444 @DomName("WebGLRenderingContext.framebufferTexture2D") |
20607 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level) native; | 22445 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level) native; |
20608 | 22446 |
20609 /// @domName WebGLRenderingContext.frontFace; @docsEditable true | 22447 /// @docsEditable true |
| 22448 @DomName("WebGLRenderingContext.frontFace") |
20610 void frontFace(int mode) native; | 22449 void frontFace(int mode) native; |
20611 | 22450 |
20612 /// @domName WebGLRenderingContext.generateMipmap; @docsEditable true | 22451 /// @docsEditable true |
| 22452 @DomName("WebGLRenderingContext.generateMipmap") |
20613 void generateMipmap(int target) native; | 22453 void generateMipmap(int target) native; |
20614 | 22454 |
20615 /// @domName WebGLRenderingContext.getActiveAttrib; @docsEditable true | 22455 /// @docsEditable true |
| 22456 @DomName("WebGLRenderingContext.getActiveAttrib") |
20616 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; | 22457 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) native; |
20617 | 22458 |
20618 /// @domName WebGLRenderingContext.getActiveUniform; @docsEditable true | 22459 /// @docsEditable true |
| 22460 @DomName("WebGLRenderingContext.getActiveUniform") |
20619 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; | 22461 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) native; |
20620 | 22462 |
20621 /// @domName WebGLRenderingContext.getAttachedShaders; @docsEditable true | 22463 /// @docsEditable true |
| 22464 @DomName("WebGLRenderingContext.getAttachedShaders") |
20622 void getAttachedShaders(WebGLProgram program) native; | 22465 void getAttachedShaders(WebGLProgram program) native; |
20623 | 22466 |
20624 /// @domName WebGLRenderingContext.getAttribLocation; @docsEditable true | 22467 /// @docsEditable true |
| 22468 @DomName("WebGLRenderingContext.getAttribLocation") |
20625 int getAttribLocation(WebGLProgram program, String name) native; | 22469 int getAttribLocation(WebGLProgram program, String name) native; |
20626 | 22470 |
20627 /// @domName WebGLRenderingContext.getBufferParameter; @docsEditable true | 22471 /// @docsEditable true |
| 22472 @DomName("WebGLRenderingContext.getBufferParameter") |
20628 Object getBufferParameter(int target, int pname) native; | 22473 Object getBufferParameter(int target, int pname) native; |
20629 | 22474 |
20630 /// @domName WebGLRenderingContext.getContextAttributes; @docsEditable true | 22475 /// @docsEditable true |
| 22476 @DomName("WebGLRenderingContext.getContextAttributes") |
20631 WebGLContextAttributes getContextAttributes() native; | 22477 WebGLContextAttributes getContextAttributes() native; |
20632 | 22478 |
20633 /// @domName WebGLRenderingContext.getError; @docsEditable true | 22479 /// @docsEditable true |
| 22480 @DomName("WebGLRenderingContext.getError") |
20634 int getError() native; | 22481 int getError() native; |
20635 | 22482 |
20636 /// @domName WebGLRenderingContext.getExtension; @docsEditable true | 22483 /// @docsEditable true |
| 22484 @DomName("WebGLRenderingContext.getExtension") |
20637 Object getExtension(String name) native; | 22485 Object getExtension(String name) native; |
20638 | 22486 |
20639 /// @domName WebGLRenderingContext.getFramebufferAttachmentParameter; @docsEdi
table true | 22487 /// @docsEditable true |
| 22488 @DomName("WebGLRenderingContext.getFramebufferAttachmentParameter") |
20640 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; | 22489 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; |
20641 | 22490 |
20642 /// @domName WebGLRenderingContext.getParameter; @docsEditable true | 22491 /// @docsEditable true |
| 22492 @DomName("WebGLRenderingContext.getParameter") |
20643 Object getParameter(int pname) native; | 22493 Object getParameter(int pname) native; |
20644 | 22494 |
20645 /// @domName WebGLRenderingContext.getProgramInfoLog; @docsEditable true | 22495 /// @docsEditable true |
| 22496 @DomName("WebGLRenderingContext.getProgramInfoLog") |
20646 String getProgramInfoLog(WebGLProgram program) native; | 22497 String getProgramInfoLog(WebGLProgram program) native; |
20647 | 22498 |
20648 /// @domName WebGLRenderingContext.getProgramParameter; @docsEditable true | 22499 /// @docsEditable true |
| 22500 @DomName("WebGLRenderingContext.getProgramParameter") |
20649 Object getProgramParameter(WebGLProgram program, int pname) native; | 22501 Object getProgramParameter(WebGLProgram program, int pname) native; |
20650 | 22502 |
20651 /// @domName WebGLRenderingContext.getRenderbufferParameter; @docsEditable tru
e | 22503 /// @docsEditable true |
| 22504 @DomName("WebGLRenderingContext.getRenderbufferParameter") |
20652 Object getRenderbufferParameter(int target, int pname) native; | 22505 Object getRenderbufferParameter(int target, int pname) native; |
20653 | 22506 |
20654 /// @domName WebGLRenderingContext.getShaderInfoLog; @docsEditable true | 22507 /// @docsEditable true |
| 22508 @DomName("WebGLRenderingContext.getShaderInfoLog") |
20655 String getShaderInfoLog(WebGLShader shader) native; | 22509 String getShaderInfoLog(WebGLShader shader) native; |
20656 | 22510 |
20657 /// @domName WebGLRenderingContext.getShaderParameter; @docsEditable true | 22511 /// @docsEditable true |
| 22512 @DomName("WebGLRenderingContext.getShaderParameter") |
20658 Object getShaderParameter(WebGLShader shader, int pname) native; | 22513 Object getShaderParameter(WebGLShader shader, int pname) native; |
20659 | 22514 |
20660 /// @domName WebGLRenderingContext.getShaderPrecisionFormat; @docsEditable tru
e | 22515 /// @docsEditable true |
| 22516 @DomName("WebGLRenderingContext.getShaderPrecisionFormat") |
20661 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis
iontype) native; | 22517 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis
iontype) native; |
20662 | 22518 |
20663 /// @domName WebGLRenderingContext.getShaderSource; @docsEditable true | 22519 /// @docsEditable true |
| 22520 @DomName("WebGLRenderingContext.getShaderSource") |
20664 String getShaderSource(WebGLShader shader) native; | 22521 String getShaderSource(WebGLShader shader) native; |
20665 | 22522 |
20666 /// @domName WebGLRenderingContext.getSupportedExtensions; @docsEditable true | 22523 /// @docsEditable true |
| 22524 @DomName("WebGLRenderingContext.getSupportedExtensions") |
20667 List<String> getSupportedExtensions() native; | 22525 List<String> getSupportedExtensions() native; |
20668 | 22526 |
20669 /// @domName WebGLRenderingContext.getTexParameter; @docsEditable true | 22527 /// @docsEditable true |
| 22528 @DomName("WebGLRenderingContext.getTexParameter") |
20670 Object getTexParameter(int target, int pname) native; | 22529 Object getTexParameter(int target, int pname) native; |
20671 | 22530 |
20672 /// @domName WebGLRenderingContext.getUniform; @docsEditable true | 22531 /// @docsEditable true |
| 22532 @DomName("WebGLRenderingContext.getUniform") |
20673 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native; | 22533 Object getUniform(WebGLProgram program, WebGLUniformLocation location) native; |
20674 | 22534 |
20675 /// @domName WebGLRenderingContext.getUniformLocation; @docsEditable true | 22535 /// @docsEditable true |
| 22536 @DomName("WebGLRenderingContext.getUniformLocation") |
20676 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat
ive; | 22537 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) nat
ive; |
20677 | 22538 |
20678 /// @domName WebGLRenderingContext.getVertexAttrib; @docsEditable true | 22539 /// @docsEditable true |
| 22540 @DomName("WebGLRenderingContext.getVertexAttrib") |
20679 Object getVertexAttrib(int index, int pname) native; | 22541 Object getVertexAttrib(int index, int pname) native; |
20680 | 22542 |
20681 /// @domName WebGLRenderingContext.getVertexAttribOffset; @docsEditable true | 22543 /// @docsEditable true |
| 22544 @DomName("WebGLRenderingContext.getVertexAttribOffset") |
20682 int getVertexAttribOffset(int index, int pname) native; | 22545 int getVertexAttribOffset(int index, int pname) native; |
20683 | 22546 |
20684 /// @domName WebGLRenderingContext.hint; @docsEditable true | 22547 /// @docsEditable true |
| 22548 @DomName("WebGLRenderingContext.hint") |
20685 void hint(int target, int mode) native; | 22549 void hint(int target, int mode) native; |
20686 | 22550 |
20687 /// @domName WebGLRenderingContext.isBuffer; @docsEditable true | 22551 /// @docsEditable true |
| 22552 @DomName("WebGLRenderingContext.isBuffer") |
20688 bool isBuffer(WebGLBuffer buffer) native; | 22553 bool isBuffer(WebGLBuffer buffer) native; |
20689 | 22554 |
20690 /// @domName WebGLRenderingContext.isContextLost; @docsEditable true | 22555 /// @docsEditable true |
| 22556 @DomName("WebGLRenderingContext.isContextLost") |
20691 bool isContextLost() native; | 22557 bool isContextLost() native; |
20692 | 22558 |
20693 /// @domName WebGLRenderingContext.isEnabled; @docsEditable true | 22559 /// @docsEditable true |
| 22560 @DomName("WebGLRenderingContext.isEnabled") |
20694 bool isEnabled(int cap) native; | 22561 bool isEnabled(int cap) native; |
20695 | 22562 |
20696 /// @domName WebGLRenderingContext.isFramebuffer; @docsEditable true | 22563 /// @docsEditable true |
| 22564 @DomName("WebGLRenderingContext.isFramebuffer") |
20697 bool isFramebuffer(WebGLFramebuffer framebuffer) native; | 22565 bool isFramebuffer(WebGLFramebuffer framebuffer) native; |
20698 | 22566 |
20699 /// @domName WebGLRenderingContext.isProgram; @docsEditable true | 22567 /// @docsEditable true |
| 22568 @DomName("WebGLRenderingContext.isProgram") |
20700 bool isProgram(WebGLProgram program) native; | 22569 bool isProgram(WebGLProgram program) native; |
20701 | 22570 |
20702 /// @domName WebGLRenderingContext.isRenderbuffer; @docsEditable true | 22571 /// @docsEditable true |
| 22572 @DomName("WebGLRenderingContext.isRenderbuffer") |
20703 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native; | 22573 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) native; |
20704 | 22574 |
20705 /// @domName WebGLRenderingContext.isShader; @docsEditable true | 22575 /// @docsEditable true |
| 22576 @DomName("WebGLRenderingContext.isShader") |
20706 bool isShader(WebGLShader shader) native; | 22577 bool isShader(WebGLShader shader) native; |
20707 | 22578 |
20708 /// @domName WebGLRenderingContext.isTexture; @docsEditable true | 22579 /// @docsEditable true |
| 22580 @DomName("WebGLRenderingContext.isTexture") |
20709 bool isTexture(WebGLTexture texture) native; | 22581 bool isTexture(WebGLTexture texture) native; |
20710 | 22582 |
20711 /// @domName WebGLRenderingContext.lineWidth; @docsEditable true | 22583 /// @docsEditable true |
| 22584 @DomName("WebGLRenderingContext.lineWidth") |
20712 void lineWidth(num width) native; | 22585 void lineWidth(num width) native; |
20713 | 22586 |
20714 /// @domName WebGLRenderingContext.linkProgram; @docsEditable true | 22587 /// @docsEditable true |
| 22588 @DomName("WebGLRenderingContext.linkProgram") |
20715 void linkProgram(WebGLProgram program) native; | 22589 void linkProgram(WebGLProgram program) native; |
20716 | 22590 |
20717 /// @domName WebGLRenderingContext.pixelStorei; @docsEditable true | 22591 /// @docsEditable true |
| 22592 @DomName("WebGLRenderingContext.pixelStorei") |
20718 void pixelStorei(int pname, int param) native; | 22593 void pixelStorei(int pname, int param) native; |
20719 | 22594 |
20720 /// @domName WebGLRenderingContext.polygonOffset; @docsEditable true | 22595 /// @docsEditable true |
| 22596 @DomName("WebGLRenderingContext.polygonOffset") |
20721 void polygonOffset(num factor, num units) native; | 22597 void polygonOffset(num factor, num units) native; |
20722 | 22598 |
20723 /// @domName WebGLRenderingContext.readPixels; @docsEditable true | 22599 /// @docsEditable true |
| 22600 @DomName("WebGLRenderingContext.readPixels") |
20724 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels) native; | 22601 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels) native; |
20725 | 22602 |
20726 /// @domName WebGLRenderingContext.releaseShaderCompiler; @docsEditable true | 22603 /// @docsEditable true |
| 22604 @DomName("WebGLRenderingContext.releaseShaderCompiler") |
20727 void releaseShaderCompiler() native; | 22605 void releaseShaderCompiler() native; |
20728 | 22606 |
20729 /// @domName WebGLRenderingContext.renderbufferStorage; @docsEditable true | 22607 /// @docsEditable true |
| 22608 @DomName("WebGLRenderingContext.renderbufferStorage") |
20730 void renderbufferStorage(int target, int internalformat, int width, int height
) native; | 22609 void renderbufferStorage(int target, int internalformat, int width, int height
) native; |
20731 | 22610 |
20732 /// @domName WebGLRenderingContext.sampleCoverage; @docsEditable true | 22611 /// @docsEditable true |
| 22612 @DomName("WebGLRenderingContext.sampleCoverage") |
20733 void sampleCoverage(num value, bool invert) native; | 22613 void sampleCoverage(num value, bool invert) native; |
20734 | 22614 |
20735 /// @domName WebGLRenderingContext.scissor; @docsEditable true | 22615 /// @docsEditable true |
| 22616 @DomName("WebGLRenderingContext.scissor") |
20736 void scissor(int x, int y, int width, int height) native; | 22617 void scissor(int x, int y, int width, int height) native; |
20737 | 22618 |
20738 /// @domName WebGLRenderingContext.shaderSource; @docsEditable true | 22619 /// @docsEditable true |
| 22620 @DomName("WebGLRenderingContext.shaderSource") |
20739 void shaderSource(WebGLShader shader, String string) native; | 22621 void shaderSource(WebGLShader shader, String string) native; |
20740 | 22622 |
20741 /// @domName WebGLRenderingContext.stencilFunc; @docsEditable true | 22623 /// @docsEditable true |
| 22624 @DomName("WebGLRenderingContext.stencilFunc") |
20742 void stencilFunc(int func, int ref, int mask) native; | 22625 void stencilFunc(int func, int ref, int mask) native; |
20743 | 22626 |
20744 /// @domName WebGLRenderingContext.stencilFuncSeparate; @docsEditable true | 22627 /// @docsEditable true |
| 22628 @DomName("WebGLRenderingContext.stencilFuncSeparate") |
20745 void stencilFuncSeparate(int face, int func, int ref, int mask) native; | 22629 void stencilFuncSeparate(int face, int func, int ref, int mask) native; |
20746 | 22630 |
20747 /// @domName WebGLRenderingContext.stencilMask; @docsEditable true | 22631 /// @docsEditable true |
| 22632 @DomName("WebGLRenderingContext.stencilMask") |
20748 void stencilMask(int mask) native; | 22633 void stencilMask(int mask) native; |
20749 | 22634 |
20750 /// @domName WebGLRenderingContext.stencilMaskSeparate; @docsEditable true | 22635 /// @docsEditable true |
| 22636 @DomName("WebGLRenderingContext.stencilMaskSeparate") |
20751 void stencilMaskSeparate(int face, int mask) native; | 22637 void stencilMaskSeparate(int face, int mask) native; |
20752 | 22638 |
20753 /// @domName WebGLRenderingContext.stencilOp; @docsEditable true | 22639 /// @docsEditable true |
| 22640 @DomName("WebGLRenderingContext.stencilOp") |
20754 void stencilOp(int fail, int zfail, int zpass) native; | 22641 void stencilOp(int fail, int zfail, int zpass) native; |
20755 | 22642 |
20756 /// @domName WebGLRenderingContext.stencilOpSeparate; @docsEditable true | 22643 /// @docsEditable true |
| 22644 @DomName("WebGLRenderingContext.stencilOpSeparate") |
20757 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 22645 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
20758 | 22646 |
20759 /// @domName WebGLRenderingContext.texImage2D; @docsEditable true | 22647 /// @docsEditable true |
20760 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, ArrayBufferView pixels]) { | 22648 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, ArrayBufferView pixels]) { |
20761 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas
_OR_image_OR_pixels_OR_video == null)) { | 22649 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas
_OR_image_OR_pixels_OR_video == null)) { |
20762 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 22650 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
20763 return; | 22651 return; |
20764 } | 22652 } |
20765 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && | 22653 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && |
20766 !?format && | 22654 !?format && |
20767 !?type && | 22655 !?type && |
20768 !?pixels) { | 22656 !?pixels) { |
20769 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); | 22657 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); |
(...skipping 17 matching lines...) Expand all Loading... |
20787 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && | 22675 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && |
20788 !?format && | 22676 !?format && |
20789 !?type && | 22677 !?type && |
20790 !?pixels) { | 22678 !?pixels) { |
20791 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 22679 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
20792 return; | 22680 return; |
20793 } | 22681 } |
20794 throw new ArgumentError("Incorrect number or type of arguments"); | 22682 throw new ArgumentError("Incorrect number or type of arguments"); |
20795 } | 22683 } |
20796 @JSName('texImage2D') | 22684 @JSName('texImage2D') |
| 22685 @DomName("WebGLRenderingContext.texImage2D") |
20797 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, ArrayBufferView pixels) native; | 22686 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, ArrayBufferView pixels) native; |
20798 @JSName('texImage2D') | 22687 @JSName('texImage2D') |
| 22688 @DomName("WebGLRenderingContext.texImage2D") |
20799 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
; | 22689 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
; |
20800 @JSName('texImage2D') | 22690 @JSName('texImage2D') |
| 22691 @DomName("WebGLRenderingContext.texImage2D") |
20801 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native; | 22692 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native; |
20802 @JSName('texImage2D') | 22693 @JSName('texImage2D') |
| 22694 @DomName("WebGLRenderingContext.texImage2D") |
20803 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; | 22695 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; |
20804 @JSName('texImage2D') | 22696 @JSName('texImage2D') |
| 22697 @DomName("WebGLRenderingContext.texImage2D") |
20805 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; | 22698 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; |
20806 | 22699 |
20807 /// @domName WebGLRenderingContext.texParameterf; @docsEditable true | 22700 /// @docsEditable true |
| 22701 @DomName("WebGLRenderingContext.texParameterf") |
20808 void texParameterf(int target, int pname, num param) native; | 22702 void texParameterf(int target, int pname, num param) native; |
20809 | 22703 |
20810 /// @domName WebGLRenderingContext.texParameteri; @docsEditable true | 22704 /// @docsEditable true |
| 22705 @DomName("WebGLRenderingContext.texParameteri") |
20811 void texParameteri(int target, int pname, int param) native; | 22706 void texParameteri(int target, int pname, int param) native; |
20812 | 22707 |
20813 /// @domName WebGLRenderingContext.texSubImage2D; @docsEditable true | 22708 /// @docsEditable true |
20814 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, ArrayBufferView pixels]) { | 22709 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, ArrayBufferView pixels]) { |
20815 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format
_OR_image_OR_pixels_OR_video == null)) { | 22710 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format
_OR_image_OR_pixels_OR_video == null)) { |
20816 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 22711 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
20817 return; | 22712 return; |
20818 } | 22713 } |
20819 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && | 22714 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && |
20820 !?type && | 22715 !?type && |
20821 !?pixels) { | 22716 !?pixels) { |
20822 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); | 22717 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); |
20823 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 22718 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
(...skipping 13 matching lines...) Expand all Loading... |
20837 } | 22732 } |
20838 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && | 22733 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && |
20839 !?type && | 22734 !?type && |
20840 !?pixels) { | 22735 !?pixels) { |
20841 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 22736 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
20842 return; | 22737 return; |
20843 } | 22738 } |
20844 throw new ArgumentError("Incorrect number or type of arguments"); | 22739 throw new ArgumentError("Incorrect number or type of arguments"); |
20845 } | 22740 } |
20846 @JSName('texSubImage2D') | 22741 @JSName('texSubImage2D') |
| 22742 @DomName("WebGLRenderingContext.texSubImage2D") |
20847 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, ArrayBufferView pixels) native; | 22743 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, ArrayBufferView pixels) native; |
20848 @JSName('texSubImage2D') | 22744 @JSName('texSubImage2D') |
| 22745 @DomName("WebGLRenderingContext.texSubImage2D") |
20849 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n
ative; | 22746 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n
ative; |
20850 @JSName('texSubImage2D') | 22747 @JSName('texSubImage2D') |
| 22748 @DomName("WebGLRenderingContext.texSubImage2D") |
20851 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem
ent image) native; | 22749 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem
ent image) native; |
20852 @JSName('texSubImage2D') | 22750 @JSName('texSubImage2D') |
| 22751 @DomName("WebGLRenderingContext.texSubImage2D") |
20853 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle
ment canvas) native; | 22752 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle
ment canvas) native; |
20854 @JSName('texSubImage2D') | 22753 @JSName('texSubImage2D') |
| 22754 @DomName("WebGLRenderingContext.texSubImage2D") |
20855 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native; | 22755 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native; |
20856 | 22756 |
20857 /// @domName WebGLRenderingContext.uniform1f; @docsEditable true | 22757 /// @docsEditable true |
| 22758 @DomName("WebGLRenderingContext.uniform1f") |
20858 void uniform1f(WebGLUniformLocation location, num x) native; | 22759 void uniform1f(WebGLUniformLocation location, num x) native; |
20859 | 22760 |
20860 /// @domName WebGLRenderingContext.uniform1fv; @docsEditable true | 22761 /// @docsEditable true |
| 22762 @DomName("WebGLRenderingContext.uniform1fv") |
20861 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; | 22763 void uniform1fv(WebGLUniformLocation location, Float32Array v) native; |
20862 | 22764 |
20863 /// @domName WebGLRenderingContext.uniform1i; @docsEditable true | 22765 /// @docsEditable true |
| 22766 @DomName("WebGLRenderingContext.uniform1i") |
20864 void uniform1i(WebGLUniformLocation location, int x) native; | 22767 void uniform1i(WebGLUniformLocation location, int x) native; |
20865 | 22768 |
20866 /// @domName WebGLRenderingContext.uniform1iv; @docsEditable true | 22769 /// @docsEditable true |
| 22770 @DomName("WebGLRenderingContext.uniform1iv") |
20867 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; | 22771 void uniform1iv(WebGLUniformLocation location, Int32Array v) native; |
20868 | 22772 |
20869 /// @domName WebGLRenderingContext.uniform2f; @docsEditable true | 22773 /// @docsEditable true |
| 22774 @DomName("WebGLRenderingContext.uniform2f") |
20870 void uniform2f(WebGLUniformLocation location, num x, num y) native; | 22775 void uniform2f(WebGLUniformLocation location, num x, num y) native; |
20871 | 22776 |
20872 /// @domName WebGLRenderingContext.uniform2fv; @docsEditable true | 22777 /// @docsEditable true |
| 22778 @DomName("WebGLRenderingContext.uniform2fv") |
20873 void uniform2fv(WebGLUniformLocation location, Float32Array v) native; | 22779 void uniform2fv(WebGLUniformLocation location, Float32Array v) native; |
20874 | 22780 |
20875 /// @domName WebGLRenderingContext.uniform2i; @docsEditable true | 22781 /// @docsEditable true |
| 22782 @DomName("WebGLRenderingContext.uniform2i") |
20876 void uniform2i(WebGLUniformLocation location, int x, int y) native; | 22783 void uniform2i(WebGLUniformLocation location, int x, int y) native; |
20877 | 22784 |
20878 /// @domName WebGLRenderingContext.uniform2iv; @docsEditable true | 22785 /// @docsEditable true |
| 22786 @DomName("WebGLRenderingContext.uniform2iv") |
20879 void uniform2iv(WebGLUniformLocation location, Int32Array v) native; | 22787 void uniform2iv(WebGLUniformLocation location, Int32Array v) native; |
20880 | 22788 |
20881 /// @domName WebGLRenderingContext.uniform3f; @docsEditable true | 22789 /// @docsEditable true |
| 22790 @DomName("WebGLRenderingContext.uniform3f") |
20882 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native; | 22791 void uniform3f(WebGLUniformLocation location, num x, num y, num z) native; |
20883 | 22792 |
20884 /// @domName WebGLRenderingContext.uniform3fv; @docsEditable true | 22793 /// @docsEditable true |
| 22794 @DomName("WebGLRenderingContext.uniform3fv") |
20885 void uniform3fv(WebGLUniformLocation location, Float32Array v) native; | 22795 void uniform3fv(WebGLUniformLocation location, Float32Array v) native; |
20886 | 22796 |
20887 /// @domName WebGLRenderingContext.uniform3i; @docsEditable true | 22797 /// @docsEditable true |
| 22798 @DomName("WebGLRenderingContext.uniform3i") |
20888 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native; | 22799 void uniform3i(WebGLUniformLocation location, int x, int y, int z) native; |
20889 | 22800 |
20890 /// @domName WebGLRenderingContext.uniform3iv; @docsEditable true | 22801 /// @docsEditable true |
| 22802 @DomName("WebGLRenderingContext.uniform3iv") |
20891 void uniform3iv(WebGLUniformLocation location, Int32Array v) native; | 22803 void uniform3iv(WebGLUniformLocation location, Int32Array v) native; |
20892 | 22804 |
20893 /// @domName WebGLRenderingContext.uniform4f; @docsEditable true | 22805 /// @docsEditable true |
| 22806 @DomName("WebGLRenderingContext.uniform4f") |
20894 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati
ve; | 22807 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) nati
ve; |
20895 | 22808 |
20896 /// @domName WebGLRenderingContext.uniform4fv; @docsEditable true | 22809 /// @docsEditable true |
| 22810 @DomName("WebGLRenderingContext.uniform4fv") |
20897 void uniform4fv(WebGLUniformLocation location, Float32Array v) native; | 22811 void uniform4fv(WebGLUniformLocation location, Float32Array v) native; |
20898 | 22812 |
20899 /// @domName WebGLRenderingContext.uniform4i; @docsEditable true | 22813 /// @docsEditable true |
| 22814 @DomName("WebGLRenderingContext.uniform4i") |
20900 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati
ve; | 22815 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) nati
ve; |
20901 | 22816 |
20902 /// @domName WebGLRenderingContext.uniform4iv; @docsEditable true | 22817 /// @docsEditable true |
| 22818 @DomName("WebGLRenderingContext.uniform4iv") |
20903 void uniform4iv(WebGLUniformLocation location, Int32Array v) native; | 22819 void uniform4iv(WebGLUniformLocation location, Int32Array v) native; |
20904 | 22820 |
20905 /// @domName WebGLRenderingContext.uniformMatrix2fv; @docsEditable true | 22821 /// @docsEditable true |
| 22822 @DomName("WebGLRenderingContext.uniformMatrix2fv") |
20906 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; | 22823 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; |
20907 | 22824 |
20908 /// @domName WebGLRenderingContext.uniformMatrix3fv; @docsEditable true | 22825 /// @docsEditable true |
| 22826 @DomName("WebGLRenderingContext.uniformMatrix3fv") |
20909 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; | 22827 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; |
20910 | 22828 |
20911 /// @domName WebGLRenderingContext.uniformMatrix4fv; @docsEditable true | 22829 /// @docsEditable true |
| 22830 @DomName("WebGLRenderingContext.uniformMatrix4fv") |
20912 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; | 22831 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) native; |
20913 | 22832 |
20914 /// @domName WebGLRenderingContext.useProgram; @docsEditable true | 22833 /// @docsEditable true |
| 22834 @DomName("WebGLRenderingContext.useProgram") |
20915 void useProgram(WebGLProgram program) native; | 22835 void useProgram(WebGLProgram program) native; |
20916 | 22836 |
20917 /// @domName WebGLRenderingContext.validateProgram; @docsEditable true | 22837 /// @docsEditable true |
| 22838 @DomName("WebGLRenderingContext.validateProgram") |
20918 void validateProgram(WebGLProgram program) native; | 22839 void validateProgram(WebGLProgram program) native; |
20919 | 22840 |
20920 /// @domName WebGLRenderingContext.vertexAttrib1f; @docsEditable true | 22841 /// @docsEditable true |
| 22842 @DomName("WebGLRenderingContext.vertexAttrib1f") |
20921 void vertexAttrib1f(int indx, num x) native; | 22843 void vertexAttrib1f(int indx, num x) native; |
20922 | 22844 |
20923 /// @domName WebGLRenderingContext.vertexAttrib1fv; @docsEditable true | 22845 /// @docsEditable true |
| 22846 @DomName("WebGLRenderingContext.vertexAttrib1fv") |
20924 void vertexAttrib1fv(int indx, Float32Array values) native; | 22847 void vertexAttrib1fv(int indx, Float32Array values) native; |
20925 | 22848 |
20926 /// @domName WebGLRenderingContext.vertexAttrib2f; @docsEditable true | 22849 /// @docsEditable true |
| 22850 @DomName("WebGLRenderingContext.vertexAttrib2f") |
20927 void vertexAttrib2f(int indx, num x, num y) native; | 22851 void vertexAttrib2f(int indx, num x, num y) native; |
20928 | 22852 |
20929 /// @domName WebGLRenderingContext.vertexAttrib2fv; @docsEditable true | 22853 /// @docsEditable true |
| 22854 @DomName("WebGLRenderingContext.vertexAttrib2fv") |
20930 void vertexAttrib2fv(int indx, Float32Array values) native; | 22855 void vertexAttrib2fv(int indx, Float32Array values) native; |
20931 | 22856 |
20932 /// @domName WebGLRenderingContext.vertexAttrib3f; @docsEditable true | 22857 /// @docsEditable true |
| 22858 @DomName("WebGLRenderingContext.vertexAttrib3f") |
20933 void vertexAttrib3f(int indx, num x, num y, num z) native; | 22859 void vertexAttrib3f(int indx, num x, num y, num z) native; |
20934 | 22860 |
20935 /// @domName WebGLRenderingContext.vertexAttrib3fv; @docsEditable true | 22861 /// @docsEditable true |
| 22862 @DomName("WebGLRenderingContext.vertexAttrib3fv") |
20936 void vertexAttrib3fv(int indx, Float32Array values) native; | 22863 void vertexAttrib3fv(int indx, Float32Array values) native; |
20937 | 22864 |
20938 /// @domName WebGLRenderingContext.vertexAttrib4f; @docsEditable true | 22865 /// @docsEditable true |
| 22866 @DomName("WebGLRenderingContext.vertexAttrib4f") |
20939 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; | 22867 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; |
20940 | 22868 |
20941 /// @domName WebGLRenderingContext.vertexAttrib4fv; @docsEditable true | 22869 /// @docsEditable true |
| 22870 @DomName("WebGLRenderingContext.vertexAttrib4fv") |
20942 void vertexAttrib4fv(int indx, Float32Array values) native; | 22871 void vertexAttrib4fv(int indx, Float32Array values) native; |
20943 | 22872 |
20944 /// @domName WebGLRenderingContext.vertexAttribPointer; @docsEditable true | 22873 /// @docsEditable true |
| 22874 @DomName("WebGLRenderingContext.vertexAttribPointer") |
20945 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; | 22875 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; |
20946 | 22876 |
20947 /// @domName WebGLRenderingContext.viewport; @docsEditable true | 22877 /// @docsEditable true |
| 22878 @DomName("WebGLRenderingContext.viewport") |
20948 void viewport(int x, int y, int width, int height) native; | 22879 void viewport(int x, int y, int width, int height) native; |
20949 } | 22880 } |
20950 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20951 // for details. All rights reserved. Use of this source code is governed by a | 22882 // for details. All rights reserved. Use of this source code is governed by a |
20952 // BSD-style license that can be found in the LICENSE file. | 22883 // BSD-style license that can be found in the LICENSE file. |
20953 | 22884 |
20954 | 22885 |
20955 /// @domName WebGLShader; @docsEditable true | 22886 /// @docsEditable true |
| 22887 @DomName("WebGLShader") |
20956 class WebGLShader native "*WebGLShader" { | 22888 class WebGLShader native "*WebGLShader" { |
20957 } | 22889 } |
20958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22890 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20959 // for details. All rights reserved. Use of this source code is governed by a | 22891 // for details. All rights reserved. Use of this source code is governed by a |
20960 // BSD-style license that can be found in the LICENSE file. | 22892 // BSD-style license that can be found in the LICENSE file. |
20961 | 22893 |
20962 | 22894 |
20963 /// @domName WebGLShaderPrecisionFormat; @docsEditable true | 22895 /// @docsEditable true |
| 22896 @DomName("WebGLShaderPrecisionFormat") |
20964 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" { | 22897 class WebGLShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" { |
20965 | 22898 |
20966 /// @domName WebGLShaderPrecisionFormat.precision; @docsEditable true | 22899 /// @docsEditable true |
| 22900 @DomName("WebGLShaderPrecisionFormat.precision") |
20967 final int precision; | 22901 final int precision; |
20968 | 22902 |
20969 /// @domName WebGLShaderPrecisionFormat.rangeMax; @docsEditable true | 22903 /// @docsEditable true |
| 22904 @DomName("WebGLShaderPrecisionFormat.rangeMax") |
20970 final int rangeMax; | 22905 final int rangeMax; |
20971 | 22906 |
20972 /// @domName WebGLShaderPrecisionFormat.rangeMin; @docsEditable true | 22907 /// @docsEditable true |
| 22908 @DomName("WebGLShaderPrecisionFormat.rangeMin") |
20973 final int rangeMin; | 22909 final int rangeMin; |
20974 } | 22910 } |
20975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20976 // for details. All rights reserved. Use of this source code is governed by a | 22912 // for details. All rights reserved. Use of this source code is governed by a |
20977 // BSD-style license that can be found in the LICENSE file. | 22913 // BSD-style license that can be found in the LICENSE file. |
20978 | 22914 |
20979 | 22915 |
20980 /// @domName WebGLTexture; @docsEditable true | 22916 /// @docsEditable true |
| 22917 @DomName("WebGLTexture") |
20981 class WebGLTexture native "*WebGLTexture" { | 22918 class WebGLTexture native "*WebGLTexture" { |
20982 } | 22919 } |
20983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22920 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20984 // for details. All rights reserved. Use of this source code is governed by a | 22921 // for details. All rights reserved. Use of this source code is governed by a |
20985 // BSD-style license that can be found in the LICENSE file. | 22922 // BSD-style license that can be found in the LICENSE file. |
20986 | 22923 |
20987 | 22924 |
20988 /// @domName WebGLUniformLocation; @docsEditable true | 22925 /// @docsEditable true |
| 22926 @DomName("WebGLUniformLocation") |
20989 class WebGLUniformLocation native "*WebGLUniformLocation" { | 22927 class WebGLUniformLocation native "*WebGLUniformLocation" { |
20990 } | 22928 } |
20991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20992 // for details. All rights reserved. Use of this source code is governed by a | 22930 // for details. All rights reserved. Use of this source code is governed by a |
20993 // BSD-style license that can be found in the LICENSE file. | 22931 // BSD-style license that can be found in the LICENSE file. |
20994 | 22932 |
20995 | 22933 |
20996 /// @domName WebGLVertexArrayObjectOES; @docsEditable true | 22934 /// @docsEditable true |
| 22935 @DomName("WebGLVertexArrayObjectOES") |
20997 class WebGLVertexArrayObject native "*WebGLVertexArrayObjectOES" { | 22936 class WebGLVertexArrayObject native "*WebGLVertexArrayObjectOES" { |
20998 } | 22937 } |
20999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21000 // for details. All rights reserved. Use of this source code is governed by a | 22939 // for details. All rights reserved. Use of this source code is governed by a |
21001 // BSD-style license that can be found in the LICENSE file. | 22940 // BSD-style license that can be found in the LICENSE file. |
21002 | 22941 |
21003 | 22942 |
21004 /// @domName WebKitCSSFilterValue; @docsEditable true | 22943 /// @docsEditable true |
| 22944 @DomName("WebKitCSSFilterValue") |
21005 class WebKitCssFilterValue extends _CssValueList native "*WebKitCSSFilterValue"
{ | 22945 class WebKitCssFilterValue extends _CssValueList native "*WebKitCSSFilterValue"
{ |
21006 | 22946 |
21007 static const int CSS_FILTER_BLUR = 10; | 22947 static const int CSS_FILTER_BLUR = 10; |
21008 | 22948 |
21009 static const int CSS_FILTER_BRIGHTNESS = 8; | 22949 static const int CSS_FILTER_BRIGHTNESS = 8; |
21010 | 22950 |
21011 static const int CSS_FILTER_CONTRAST = 9; | 22951 static const int CSS_FILTER_CONTRAST = 9; |
21012 | 22952 |
21013 static const int CSS_FILTER_CUSTOM = 12; | 22953 static const int CSS_FILTER_CUSTOM = 12; |
21014 | 22954 |
21015 static const int CSS_FILTER_DROP_SHADOW = 11; | 22955 static const int CSS_FILTER_DROP_SHADOW = 11; |
21016 | 22956 |
21017 static const int CSS_FILTER_GRAYSCALE = 2; | 22957 static const int CSS_FILTER_GRAYSCALE = 2; |
21018 | 22958 |
21019 static const int CSS_FILTER_HUE_ROTATE = 5; | 22959 static const int CSS_FILTER_HUE_ROTATE = 5; |
21020 | 22960 |
21021 static const int CSS_FILTER_INVERT = 6; | 22961 static const int CSS_FILTER_INVERT = 6; |
21022 | 22962 |
21023 static const int CSS_FILTER_OPACITY = 7; | 22963 static const int CSS_FILTER_OPACITY = 7; |
21024 | 22964 |
21025 static const int CSS_FILTER_REFERENCE = 1; | 22965 static const int CSS_FILTER_REFERENCE = 1; |
21026 | 22966 |
21027 static const int CSS_FILTER_SATURATE = 4; | 22967 static const int CSS_FILTER_SATURATE = 4; |
21028 | 22968 |
21029 static const int CSS_FILTER_SEPIA = 3; | 22969 static const int CSS_FILTER_SEPIA = 3; |
21030 | 22970 |
21031 /// @domName WebKitCSSFilterValue.operationType; @docsEditable true | 22971 /// @docsEditable true |
| 22972 @DomName("WebKitCSSFilterValue.operationType") |
21032 final int operationType; | 22973 final int operationType; |
21033 } | 22974 } |
21034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21035 // for details. All rights reserved. Use of this source code is governed by a | 22976 // for details. All rights reserved. Use of this source code is governed by a |
21036 // BSD-style license that can be found in the LICENSE file. | 22977 // BSD-style license that can be found in the LICENSE file. |
21037 | 22978 |
21038 | 22979 |
21039 /// @domName WebKitCSSMixFunctionValue; @docsEditable true | 22980 /// @docsEditable true |
| 22981 @DomName("WebKitCSSMixFunctionValue") |
21040 class WebKitCssMixFunctionValue extends _CssValueList native "*WebKitCSSMixFunct
ionValue" { | 22982 class WebKitCssMixFunctionValue extends _CssValueList native "*WebKitCSSMixFunct
ionValue" { |
21041 } | 22983 } |
21042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21043 // for details. All rights reserved. Use of this source code is governed by a | 22985 // for details. All rights reserved. Use of this source code is governed by a |
21044 // BSD-style license that can be found in the LICENSE file. | 22986 // BSD-style license that can be found in the LICENSE file. |
21045 | 22987 |
21046 | 22988 |
21047 /// @domName WebKitNamedFlow; @docsEditable true | 22989 /// @docsEditable true |
| 22990 @DomName("WebKitNamedFlow") |
21048 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" { | 22991 class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" { |
21049 | 22992 |
21050 /// @domName WebKitNamedFlow.firstEmptyRegionIndex; @docsEditable true | 22993 /// @docsEditable true |
| 22994 @DomName("WebKitNamedFlow.firstEmptyRegionIndex") |
21051 final int firstEmptyRegionIndex; | 22995 final int firstEmptyRegionIndex; |
21052 | 22996 |
21053 /// @domName WebKitNamedFlow.name; @docsEditable true | 22997 /// @docsEditable true |
| 22998 @DomName("WebKitNamedFlow.name") |
21054 final String name; | 22999 final String name; |
21055 | 23000 |
21056 /// @domName WebKitNamedFlow.overset; @docsEditable true | 23001 /// @docsEditable true |
| 23002 @DomName("WebKitNamedFlow.overset") |
21057 final bool overset; | 23003 final bool overset; |
21058 | 23004 |
21059 /// @domName WebKitNamedFlow.addEventListener; @docsEditable true | 23005 /// @docsEditable true |
21060 @JSName('addEventListener') | 23006 @JSName('addEventListener') |
| 23007 @DomName("WebKitNamedFlow.addEventListener") |
21061 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 23008 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
21062 | 23009 |
21063 /// @domName WebKitNamedFlow.dispatchEvent; @docsEditable true | 23010 /// @docsEditable true |
21064 @JSName('dispatchEvent') | 23011 @JSName('dispatchEvent') |
| 23012 @DomName("WebKitNamedFlow.dispatchEvent") |
21065 bool $dom_dispatchEvent(Event event) native; | 23013 bool $dom_dispatchEvent(Event event) native; |
21066 | 23014 |
21067 /// @domName WebKitNamedFlow.getContent; @docsEditable true | 23015 /// @docsEditable true |
| 23016 @DomName("WebKitNamedFlow.getContent") |
21068 @Returns('NodeList') @Creates('NodeList') | 23017 @Returns('NodeList') @Creates('NodeList') |
21069 List<Node> getContent() native; | 23018 List<Node> getContent() native; |
21070 | 23019 |
21071 /// @domName WebKitNamedFlow.getRegions; @docsEditable true | 23020 /// @docsEditable true |
| 23021 @DomName("WebKitNamedFlow.getRegions") |
21072 @Returns('NodeList') @Creates('NodeList') | 23022 @Returns('NodeList') @Creates('NodeList') |
21073 List<Node> getRegions() native; | 23023 List<Node> getRegions() native; |
21074 | 23024 |
21075 /// @domName WebKitNamedFlow.getRegionsByContent; @docsEditable true | 23025 /// @docsEditable true |
| 23026 @DomName("WebKitNamedFlow.getRegionsByContent") |
21076 @Returns('NodeList') @Creates('NodeList') | 23027 @Returns('NodeList') @Creates('NodeList') |
21077 List<Node> getRegionsByContent(Node contentNode) native; | 23028 List<Node> getRegionsByContent(Node contentNode) native; |
21078 | 23029 |
21079 /// @domName WebKitNamedFlow.removeEventListener; @docsEditable true | 23030 /// @docsEditable true |
21080 @JSName('removeEventListener') | 23031 @JSName('removeEventListener') |
| 23032 @DomName("WebKitNamedFlow.removeEventListener") |
21081 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 23033 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
21082 } | 23034 } |
21083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21084 // for details. All rights reserved. Use of this source code is governed by a | 23036 // for details. All rights reserved. Use of this source code is governed by a |
21085 // BSD-style license that can be found in the LICENSE file. | 23037 // BSD-style license that can be found in the LICENSE file. |
21086 | 23038 |
21087 | 23039 |
21088 /// @domName WebSocket; @docsEditable true | 23040 /// @docsEditable true |
| 23041 @DomName("WebSocket") |
21089 @SupportedBrowser(SupportedBrowser.CHROME) | 23042 @SupportedBrowser(SupportedBrowser.CHROME) |
21090 @SupportedBrowser(SupportedBrowser.FIREFOX) | 23043 @SupportedBrowser(SupportedBrowser.FIREFOX) |
21091 @SupportedBrowser(SupportedBrowser.IE, '10') | 23044 @SupportedBrowser(SupportedBrowser.IE, '10') |
21092 @SupportedBrowser(SupportedBrowser.SAFARI) | 23045 @SupportedBrowser(SupportedBrowser.SAFARI) |
21093 class WebSocket extends EventTarget native "*WebSocket" { | 23046 class WebSocket extends EventTarget native "*WebSocket" { |
21094 | 23047 |
21095 ///@docsEditable true | 23048 /// @docsEditable true |
21096 factory WebSocket(String url) => WebSocket._create(url); | 23049 factory WebSocket(String url) => WebSocket._create(url); |
21097 static WebSocket _create(String url) => JS('WebSocket', 'new WebSocket(#)', ur
l); | 23050 static WebSocket _create(String url) => JS('WebSocket', 'new WebSocket(#)', ur
l); |
21098 | 23051 |
21099 /// Checks if this type is supported on the current platform. | 23052 /// Checks if this type is supported on the current platform. |
21100 static bool get supported => JS('bool', 'typeof window.WebSocket != "undefined
"'); | 23053 static bool get supported => JS('bool', 'typeof window.WebSocket != "undefined
"'); |
21101 | 23054 |
21102 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 23055 /// @docsEditable true |
| 23056 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
21103 WebSocketEvents get on => | 23057 WebSocketEvents get on => |
21104 new WebSocketEvents(this); | 23058 new WebSocketEvents(this); |
21105 | 23059 |
21106 static const int CLOSED = 3; | 23060 static const int CLOSED = 3; |
21107 | 23061 |
21108 static const int CLOSING = 2; | 23062 static const int CLOSING = 2; |
21109 | 23063 |
21110 static const int CONNECTING = 0; | 23064 static const int CONNECTING = 0; |
21111 | 23065 |
21112 static const int OPEN = 1; | 23066 static const int OPEN = 1; |
21113 | 23067 |
21114 /// @domName WebSocket.URL; @docsEditable true | 23068 /// @docsEditable true |
21115 @JSName('URL') | 23069 @JSName('URL') |
| 23070 @DomName("WebSocket.URL") |
21116 final String Url; | 23071 final String Url; |
21117 | 23072 |
21118 /// @domName WebSocket.binaryType; @docsEditable true | 23073 /// @docsEditable true |
| 23074 @DomName("WebSocket.binaryType") |
21119 String binaryType; | 23075 String binaryType; |
21120 | 23076 |
21121 /// @domName WebSocket.bufferedAmount; @docsEditable true | 23077 /// @docsEditable true |
| 23078 @DomName("WebSocket.bufferedAmount") |
21122 final int bufferedAmount; | 23079 final int bufferedAmount; |
21123 | 23080 |
21124 /// @domName WebSocket.extensions; @docsEditable true | 23081 /// @docsEditable true |
| 23082 @DomName("WebSocket.extensions") |
21125 final String extensions; | 23083 final String extensions; |
21126 | 23084 |
21127 /// @domName WebSocket.protocol; @docsEditable true | 23085 /// @docsEditable true |
| 23086 @DomName("WebSocket.protocol") |
21128 final String protocol; | 23087 final String protocol; |
21129 | 23088 |
21130 /// @domName WebSocket.readyState; @docsEditable true | 23089 /// @docsEditable true |
| 23090 @DomName("WebSocket.readyState") |
21131 final int readyState; | 23091 final int readyState; |
21132 | 23092 |
21133 /// @domName WebSocket.url; @docsEditable true | 23093 /// @docsEditable true |
| 23094 @DomName("WebSocket.url") |
21134 final String url; | 23095 final String url; |
21135 | 23096 |
21136 /// @domName WebSocket.addEventListener; @docsEditable true | 23097 /// @docsEditable true |
21137 @JSName('addEventListener') | 23098 @JSName('addEventListener') |
| 23099 @DomName("WebSocket.addEventListener") |
21138 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 23100 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
21139 | 23101 |
21140 /// @domName WebSocket.close; @docsEditable true | 23102 /// @docsEditable true |
| 23103 @DomName("WebSocket.close") |
21141 void close([int code, String reason]) native; | 23104 void close([int code, String reason]) native; |
21142 | 23105 |
21143 /// @domName WebSocket.dispatchEvent; @docsEditable true | 23106 /// @docsEditable true |
21144 @JSName('dispatchEvent') | 23107 @JSName('dispatchEvent') |
| 23108 @DomName("WebSocket.dispatchEvent") |
21145 bool $dom_dispatchEvent(Event evt) native; | 23109 bool $dom_dispatchEvent(Event evt) native; |
21146 | 23110 |
21147 /// @domName WebSocket.removeEventListener; @docsEditable true | 23111 /// @docsEditable true |
21148 @JSName('removeEventListener') | 23112 @JSName('removeEventListener') |
| 23113 @DomName("WebSocket.removeEventListener") |
21149 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 23114 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
21150 | 23115 |
21151 /// @domName WebSocket.send; @docsEditable true | 23116 /// @docsEditable true |
| 23117 @DomName("WebSocket.send") |
21152 void send(data) native; | 23118 void send(data) native; |
21153 } | 23119 } |
21154 | 23120 |
21155 /// @docsEditable true | 23121 /// @docsEditable true |
21156 class WebSocketEvents extends Events { | 23122 class WebSocketEvents extends Events { |
21157 /// @docsEditable true | 23123 /// @docsEditable true |
21158 WebSocketEvents(EventTarget _ptr) : super(_ptr); | 23124 WebSocketEvents(EventTarget _ptr) : super(_ptr); |
21159 | 23125 |
21160 /// @docsEditable true | 23126 /// @docsEditable true |
21161 EventListenerList get close => this['close']; | 23127 EventListenerList get close => this['close']; |
21162 | 23128 |
21163 /// @docsEditable true | 23129 /// @docsEditable true |
21164 EventListenerList get error => this['error']; | 23130 EventListenerList get error => this['error']; |
21165 | 23131 |
21166 /// @docsEditable true | 23132 /// @docsEditable true |
21167 EventListenerList get message => this['message']; | 23133 EventListenerList get message => this['message']; |
21168 | 23134 |
21169 /// @docsEditable true | 23135 /// @docsEditable true |
21170 EventListenerList get open => this['open']; | 23136 EventListenerList get open => this['open']; |
21171 } | 23137 } |
21172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21173 // for details. All rights reserved. Use of this source code is governed by a | 23139 // for details. All rights reserved. Use of this source code is governed by a |
21174 // BSD-style license that can be found in the LICENSE file. | 23140 // BSD-style license that can be found in the LICENSE file. |
21175 | 23141 |
21176 | 23142 |
21177 /// @domName WheelEvent | 23143 @DomName("WheelEvent") |
21178 class WheelEvent extends MouseEvent native "*WheelEvent" { | 23144 class WheelEvent extends MouseEvent native "*WheelEvent" { |
21179 | 23145 |
21180 /// @domName WheelEvent.webkitDirectionInvertedFromDevice; @docsEditable true | 23146 /// @docsEditable true |
| 23147 @DomName("WheelEvent.webkitDirectionInvertedFromDevice") |
21181 final bool webkitDirectionInvertedFromDevice; | 23148 final bool webkitDirectionInvertedFromDevice; |
21182 | 23149 |
21183 /// @domName WheelEvent.initWebKitWheelEvent; @docsEditable true | 23150 /// @docsEditable true |
| 23151 @DomName("WheelEvent.initWebKitWheelEvent") |
21184 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int s
creenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool s
hiftKey, bool metaKey) native; | 23152 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int s
creenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool s
hiftKey, bool metaKey) native; |
21185 | 23153 |
21186 | 23154 |
21187 /** @domName WheelEvent.deltaY */ | 23155 @DomName("WheelEvent.deltaY") |
21188 num get deltaY { | 23156 num get deltaY { |
21189 if (JS('bool', '#.deltaY !== undefined', this)) { | 23157 if (JS('bool', '#.deltaY !== undefined', this)) { |
21190 // W3C WheelEvent | 23158 // W3C WheelEvent |
21191 return this._deltaY; | 23159 return this._deltaY; |
21192 } else if (JS('bool', '#.wheelDelta !== undefined', this)) { | 23160 } else if (JS('bool', '#.wheelDelta !== undefined', this)) { |
21193 // Chrome and IE | 23161 // Chrome and IE |
21194 return this._wheelDelta; | 23162 return this._wheelDelta; |
21195 } else if (JS('bool', '#.detail !== undefined', this)) { | 23163 } else if (JS('bool', '#.detail !== undefined', this)) { |
21196 // Firefox | 23164 // Firefox |
21197 | 23165 |
21198 // Handle DOMMouseScroll case where it uses detail and the axis to | 23166 // Handle DOMMouseScroll case where it uses detail and the axis to |
21199 // differentiate. | 23167 // differentiate. |
21200 if (JS('bool', '#.axis == MouseScrollEvent.VERTICAL_AXIS', this)) { | 23168 if (JS('bool', '#.axis == MouseScrollEvent.VERTICAL_AXIS', this)) { |
21201 var detail = this._detail; | 23169 var detail = this._detail; |
21202 // Firefox is normally the number of lines to scale (normally 3) | 23170 // Firefox is normally the number of lines to scale (normally 3) |
21203 // so multiply it by 40 to get pixels to move, matching IE & WebKit. | 23171 // so multiply it by 40 to get pixels to move, matching IE & WebKit. |
21204 if (detail < 100) { | 23172 if (detail < 100) { |
21205 return detail * 40; | 23173 return detail * 40; |
21206 } | 23174 } |
21207 return detail; | 23175 return detail; |
21208 } | 23176 } |
21209 return 0; | 23177 return 0; |
21210 } | 23178 } |
21211 throw new UnsupportedError( | 23179 throw new UnsupportedError( |
21212 'deltaY is not supported'); | 23180 'deltaY is not supported'); |
21213 } | 23181 } |
21214 | 23182 |
21215 /** @domName WheelEvent.deltaX */ | 23183 @DomName("WheelEvent.deltaX") |
21216 num get deltaX { | 23184 num get deltaX { |
21217 if (JS('bool', '#.deltaX !== undefined', this)) { | 23185 if (JS('bool', '#.deltaX !== undefined', this)) { |
21218 // W3C WheelEvent | 23186 // W3C WheelEvent |
21219 return this._deltaX; | 23187 return this._deltaX; |
21220 } else if (JS('bool', '#.wheelDeltaX !== undefined', this)) { | 23188 } else if (JS('bool', '#.wheelDeltaX !== undefined', this)) { |
21221 // Chrome | 23189 // Chrome |
21222 return this._wheelDeltaX; | 23190 return this._wheelDeltaX; |
21223 } else if (JS('bool', '#.detail !== undefined', this)) { | 23191 } else if (JS('bool', '#.detail !== undefined', this)) { |
21224 // Firefox and IE. | 23192 // Firefox and IE. |
21225 // IE will have detail set but will not set axis. | 23193 // IE will have detail set but will not set axis. |
(...skipping 29 matching lines...) Expand all Loading... |
21255 num get _wheelDeltaX => JS('num', '#.wheelDeltaX', this); | 23223 num get _wheelDeltaX => JS('num', '#.wheelDeltaX', this); |
21256 num get _detail => JS('num', '#.detail', this); | 23224 num get _detail => JS('num', '#.detail', this); |
21257 int get _deltaMode => JS('int', '#.deltaMode', this); | 23225 int get _deltaMode => JS('int', '#.deltaMode', this); |
21258 | 23226 |
21259 } | 23227 } |
21260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23228 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21261 // for details. All rights reserved. Use of this source code is governed by a | 23229 // for details. All rights reserved. Use of this source code is governed by a |
21262 // BSD-style license that can be found in the LICENSE file. | 23230 // BSD-style license that can be found in the LICENSE file. |
21263 | 23231 |
21264 | 23232 |
21265 /// @domName Window | 23233 @DomName("Window") |
21266 class Window extends EventTarget implements WindowBase native "@*DOMWindow" { | 23234 class Window extends EventTarget implements WindowBase native "@*DOMWindow" { |
21267 | 23235 |
21268 Document get document => JS('Document', '#.document', this); | 23236 Document get document => JS('Document', '#.document', this); |
21269 | 23237 |
21270 WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); | 23238 WindowBase _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); |
21271 | 23239 |
21272 WindowBase _open3(url, name, options) => | 23240 WindowBase _open3(url, name, options) => |
21273 JS('Window', '#.open(#,#,#)', this, url, name, options); | 23241 JS('Window', '#.open(#,#,#)', this, url, name, options); |
21274 | 23242 |
21275 WindowBase open(String url, String name, [String options]) { | 23243 WindowBase open(String url, String name, [String options]) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21331 | 23299 |
21332 /** | 23300 /** |
21333 * Executes a [callback] after the next batch of browser layout measurements | 23301 * Executes a [callback] after the next batch of browser layout measurements |
21334 * has completed or would have completed if any browser layout measurements | 23302 * has completed or would have completed if any browser layout measurements |
21335 * had been scheduled. | 23303 * had been scheduled. |
21336 */ | 23304 */ |
21337 void requestLayoutFrame(TimeoutHandler callback) { | 23305 void requestLayoutFrame(TimeoutHandler callback) { |
21338 _addMeasurementFrameCallback(callback); | 23306 _addMeasurementFrameCallback(callback); |
21339 } | 23307 } |
21340 | 23308 |
21341 /** @domName DOMWindow.requestAnimationFrame */ | 23309 @DomName("DOMWindow.requestAnimationFrame") |
21342 int requestAnimationFrame(RequestAnimationFrameCallback callback) { | 23310 int requestAnimationFrame(RequestAnimationFrameCallback callback) { |
21343 _ensureRequestAnimationFrame(); | 23311 _ensureRequestAnimationFrame(); |
21344 return _requestAnimationFrame(callback); | 23312 return _requestAnimationFrame(callback); |
21345 } | 23313 } |
21346 | 23314 |
21347 void cancelAnimationFrame(id) { | 23315 void cancelAnimationFrame(id) { |
21348 _ensureRequestAnimationFrame(); | 23316 _ensureRequestAnimationFrame(); |
21349 _cancelAnimationFrame(id); | 23317 _cancelAnimationFrame(id); |
21350 } | 23318 } |
21351 | 23319 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21408 /** | 23376 /** |
21409 * Register a [port] on this window under the given [name]. This | 23377 * Register a [port] on this window under the given [name]. This |
21410 * port may be retrieved by any isolate (or JavaScript script) | 23378 * port may be retrieved by any isolate (or JavaScript script) |
21411 * running in this window. | 23379 * running in this window. |
21412 */ | 23380 */ |
21413 void registerPort(String name, var port) { | 23381 void registerPort(String name, var port) { |
21414 var serialized = _serialize(port); | 23382 var serialized = _serialize(port); |
21415 document.documentElement.attributes['dart-port:$name'] = json.stringify(seri
alized); | 23383 document.documentElement.attributes['dart-port:$name'] = json.stringify(seri
alized); |
21416 } | 23384 } |
21417 | 23385 |
21418 /// @domName Window.console; @docsEditable true | 23386 /// @docsEditable true |
| 23387 @DomName("Window.console") |
21419 Console get console => Console.safeConsole; | 23388 Console get console => Console.safeConsole; |
21420 | 23389 |
21421 | 23390 |
21422 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 23391 /// @docsEditable true |
| 23392 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
21423 WindowEvents get on => | 23393 WindowEvents get on => |
21424 new WindowEvents(this); | 23394 new WindowEvents(this); |
21425 | 23395 |
21426 static const int PERSISTENT = 1; | 23396 static const int PERSISTENT = 1; |
21427 | 23397 |
21428 static const int TEMPORARY = 0; | 23398 static const int TEMPORARY = 0; |
21429 | 23399 |
21430 /// @domName Window.applicationCache; @docsEditable true | 23400 /// @docsEditable true |
| 23401 @DomName("DOMWindow.applicationCache") |
21431 final ApplicationCache applicationCache; | 23402 final ApplicationCache applicationCache; |
21432 | 23403 |
21433 /// @domName Window.closed; @docsEditable true | 23404 /// @docsEditable true |
| 23405 @DomName("DOMWindow.closed") |
21434 final bool closed; | 23406 final bool closed; |
21435 | 23407 |
21436 /// @domName Window.crypto; @docsEditable true | 23408 /// @docsEditable true |
| 23409 @DomName("DOMWindow.crypto") |
21437 final Crypto crypto; | 23410 final Crypto crypto; |
21438 | 23411 |
21439 /// @domName Window.defaultStatus; @docsEditable true | 23412 /// @docsEditable true |
| 23413 @DomName("DOMWindow.defaultStatus") |
21440 String defaultStatus; | 23414 String defaultStatus; |
21441 | 23415 |
21442 /// @domName Window.defaultstatus; @docsEditable true | 23416 /// @docsEditable true |
| 23417 @DomName("DOMWindow.defaultstatus") |
21443 String defaultstatus; | 23418 String defaultstatus; |
21444 | 23419 |
21445 /// @domName Window.devicePixelRatio; @docsEditable true | 23420 /// @docsEditable true |
| 23421 @DomName("DOMWindow.devicePixelRatio") |
21446 final num devicePixelRatio; | 23422 final num devicePixelRatio; |
21447 | 23423 |
21448 /// @domName Window.event; @docsEditable true | 23424 /// @docsEditable true |
| 23425 @DomName("DOMWindow.event") |
21449 final Event event; | 23426 final Event event; |
21450 | 23427 |
21451 /// @domName Window.history; @docsEditable true | 23428 /// @docsEditable true |
| 23429 @DomName("DOMWindow.history") |
21452 final History history; | 23430 final History history; |
21453 | 23431 |
21454 /// @domName Window.innerHeight; @docsEditable true | 23432 /// @docsEditable true |
| 23433 @DomName("DOMWindow.innerHeight") |
21455 final int innerHeight; | 23434 final int innerHeight; |
21456 | 23435 |
21457 /// @domName Window.innerWidth; @docsEditable true | 23436 /// @docsEditable true |
| 23437 @DomName("DOMWindow.innerWidth") |
21458 final int innerWidth; | 23438 final int innerWidth; |
21459 | 23439 |
21460 /// @domName Window.localStorage; @docsEditable true | 23440 /// @docsEditable true |
| 23441 @DomName("DOMWindow.localStorage") |
21461 final Storage localStorage; | 23442 final Storage localStorage; |
21462 | 23443 |
21463 /// @domName Window.locationbar; @docsEditable true | 23444 /// @docsEditable true |
| 23445 @DomName("DOMWindow.locationbar") |
21464 final BarInfo locationbar; | 23446 final BarInfo locationbar; |
21465 | 23447 |
21466 /// @domName Window.menubar; @docsEditable true | 23448 /// @docsEditable true |
| 23449 @DomName("DOMWindow.menubar") |
21467 final BarInfo menubar; | 23450 final BarInfo menubar; |
21468 | 23451 |
21469 /// @domName Window.name; @docsEditable true | 23452 /// @docsEditable true |
| 23453 @DomName("DOMWindow.name") |
21470 String name; | 23454 String name; |
21471 | 23455 |
21472 /// @domName Window.navigator; @docsEditable true | 23456 /// @docsEditable true |
| 23457 @DomName("DOMWindow.navigator") |
21473 final Navigator navigator; | 23458 final Navigator navigator; |
21474 | 23459 |
21475 /// @domName Window.offscreenBuffering; @docsEditable true | 23460 /// @docsEditable true |
| 23461 @DomName("DOMWindow.offscreenBuffering") |
21476 final bool offscreenBuffering; | 23462 final bool offscreenBuffering; |
21477 | 23463 |
21478 /// @domName Window.opener; @docsEditable true | 23464 /// @docsEditable true |
21479 WindowBase get opener => _convertNativeToDart_Window(this._opener); | 23465 WindowBase get opener => _convertNativeToDart_Window(this._opener); |
21480 @JSName('opener') | 23466 @JSName('opener') |
21481 @Creates('Window|=Object') @Returns('Window|=Object') | 23467 @DomName("DOMWindow.opener") @Creates('Window|=Object') @Returns('Window|=Obje
ct') |
21482 final dynamic _opener; | 23468 final dynamic _opener; |
21483 | 23469 |
21484 /// @domName Window.outerHeight; @docsEditable true | 23470 /// @docsEditable true |
| 23471 @DomName("DOMWindow.outerHeight") |
21485 final int outerHeight; | 23472 final int outerHeight; |
21486 | 23473 |
21487 /// @domName Window.outerWidth; @docsEditable true | 23474 /// @docsEditable true |
| 23475 @DomName("DOMWindow.outerWidth") |
21488 final int outerWidth; | 23476 final int outerWidth; |
21489 | 23477 |
21490 /// @domName DOMWindow.pagePopupController; @docsEditable true | 23478 /// @docsEditable true |
| 23479 @DomName("DOMWindow.pagePopupController") |
21491 final PagePopupController pagePopupController; | 23480 final PagePopupController pagePopupController; |
21492 | 23481 |
21493 /// @domName Window.pageXOffset; @docsEditable true | 23482 /// @docsEditable true |
| 23483 @DomName("DOMWindow.pageXOffset") |
21494 final int pageXOffset; | 23484 final int pageXOffset; |
21495 | 23485 |
21496 /// @domName Window.pageYOffset; @docsEditable true | 23486 /// @docsEditable true |
| 23487 @DomName("DOMWindow.pageYOffset") |
21497 final int pageYOffset; | 23488 final int pageYOffset; |
21498 | 23489 |
21499 /// @domName Window.parent; @docsEditable true | 23490 /// @docsEditable true |
21500 WindowBase get parent => _convertNativeToDart_Window(this._parent); | 23491 WindowBase get parent => _convertNativeToDart_Window(this._parent); |
21501 @JSName('parent') | 23492 @JSName('parent') |
21502 @Creates('Window|=Object') @Returns('Window|=Object') | 23493 @DomName("DOMWindow.parent") @Creates('Window|=Object') @Returns('Window|=Obje
ct') |
21503 final dynamic _parent; | 23494 final dynamic _parent; |
21504 | 23495 |
21505 /// @domName Window.performance; @docsEditable true | 23496 /// @docsEditable true |
21506 @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.
FIREFOX) @SupportedBrowser(SupportedBrowser.IE) | 23497 @DomName("DOMWindow.performance") @SupportedBrowser(SupportedBrowser.CHROME) @
SupportedBrowser(SupportedBrowser.FIREFOX) @SupportedBrowser(SupportedBrowser.IE
) |
21507 final Performance performance; | 23498 final Performance performance; |
21508 | 23499 |
21509 /// @domName Window.personalbar; @docsEditable true | 23500 /// @docsEditable true |
| 23501 @DomName("DOMWindow.personalbar") |
21510 final BarInfo personalbar; | 23502 final BarInfo personalbar; |
21511 | 23503 |
21512 /// @domName Window.screen; @docsEditable true | 23504 /// @docsEditable true |
| 23505 @DomName("DOMWindow.screen") |
21513 final Screen screen; | 23506 final Screen screen; |
21514 | 23507 |
21515 /// @domName Window.screenLeft; @docsEditable true | 23508 /// @docsEditable true |
| 23509 @DomName("DOMWindow.screenLeft") |
21516 final int screenLeft; | 23510 final int screenLeft; |
21517 | 23511 |
21518 /// @domName Window.screenTop; @docsEditable true | 23512 /// @docsEditable true |
| 23513 @DomName("DOMWindow.screenTop") |
21519 final int screenTop; | 23514 final int screenTop; |
21520 | 23515 |
21521 /// @domName Window.screenX; @docsEditable true | 23516 /// @docsEditable true |
| 23517 @DomName("DOMWindow.screenX") |
21522 final int screenX; | 23518 final int screenX; |
21523 | 23519 |
21524 /// @domName Window.screenY; @docsEditable true | 23520 /// @docsEditable true |
| 23521 @DomName("DOMWindow.screenY") |
21525 final int screenY; | 23522 final int screenY; |
21526 | 23523 |
21527 /// @domName Window.scrollX; @docsEditable true | 23524 /// @docsEditable true |
| 23525 @DomName("DOMWindow.scrollX") |
21528 final int scrollX; | 23526 final int scrollX; |
21529 | 23527 |
21530 /// @domName Window.scrollY; @docsEditable true | 23528 /// @docsEditable true |
| 23529 @DomName("DOMWindow.scrollY") |
21531 final int scrollY; | 23530 final int scrollY; |
21532 | 23531 |
21533 /// @domName Window.scrollbars; @docsEditable true | 23532 /// @docsEditable true |
| 23533 @DomName("DOMWindow.scrollbars") |
21534 final BarInfo scrollbars; | 23534 final BarInfo scrollbars; |
21535 | 23535 |
21536 /// @domName Window.self; @docsEditable true | 23536 /// @docsEditable true |
21537 WindowBase get self => _convertNativeToDart_Window(this._self); | 23537 WindowBase get self => _convertNativeToDart_Window(this._self); |
21538 @JSName('self') | 23538 @JSName('self') |
21539 @Creates('Window|=Object') @Returns('Window|=Object') | 23539 @DomName("DOMWindow.self") @Creates('Window|=Object') @Returns('Window|=Object
') |
21540 final dynamic _self; | 23540 final dynamic _self; |
21541 | 23541 |
21542 /// @domName Window.sessionStorage; @docsEditable true | 23542 /// @docsEditable true |
| 23543 @DomName("DOMWindow.sessionStorage") |
21543 final Storage sessionStorage; | 23544 final Storage sessionStorage; |
21544 | 23545 |
21545 /// @domName Window.status; @docsEditable true | 23546 /// @docsEditable true |
| 23547 @DomName("DOMWindow.status") |
21546 String status; | 23548 String status; |
21547 | 23549 |
21548 /// @domName Window.statusbar; @docsEditable true | 23550 /// @docsEditable true |
| 23551 @DomName("DOMWindow.statusbar") |
21549 final BarInfo statusbar; | 23552 final BarInfo statusbar; |
21550 | 23553 |
21551 /// @domName Window.styleMedia; @docsEditable true | 23554 /// @docsEditable true |
| 23555 @DomName("DOMWindow.styleMedia") |
21552 final StyleMedia styleMedia; | 23556 final StyleMedia styleMedia; |
21553 | 23557 |
21554 /// @domName Window.toolbar; @docsEditable true | 23558 /// @docsEditable true |
| 23559 @DomName("DOMWindow.toolbar") |
21555 final BarInfo toolbar; | 23560 final BarInfo toolbar; |
21556 | 23561 |
21557 /// @domName Window.top; @docsEditable true | 23562 /// @docsEditable true |
21558 WindowBase get top => _convertNativeToDart_Window(this._top); | 23563 WindowBase get top => _convertNativeToDart_Window(this._top); |
21559 @JSName('top') | 23564 @JSName('top') |
21560 @Creates('Window|=Object') @Returns('Window|=Object') | 23565 @DomName("DOMWindow.top") @Creates('Window|=Object') @Returns('Window|=Object'
) |
21561 final dynamic _top; | 23566 final dynamic _top; |
21562 | 23567 |
21563 /// @domName DOMWindow.webkitNotifications; @docsEditable true | 23568 /// @docsEditable true |
| 23569 @DomName("DOMWindow.webkitNotifications") |
21564 final NotificationCenter webkitNotifications; | 23570 final NotificationCenter webkitNotifications; |
21565 | 23571 |
21566 /// @domName DOMWindow.webkitStorageInfo; @docsEditable true | 23572 /// @docsEditable true |
| 23573 @DomName("DOMWindow.webkitStorageInfo") |
21567 final StorageInfo webkitStorageInfo; | 23574 final StorageInfo webkitStorageInfo; |
21568 | 23575 |
21569 /// @domName Window.window; @docsEditable true | 23576 /// @docsEditable true |
21570 WindowBase get window => _convertNativeToDart_Window(this._window); | 23577 WindowBase get window => _convertNativeToDart_Window(this._window); |
21571 @JSName('window') | 23578 @JSName('window') |
21572 @Creates('Window|=Object') @Returns('Window|=Object') | 23579 @DomName("DOMWindow.window") @Creates('Window|=Object') @Returns('Window|=Obje
ct') |
21573 final dynamic _window; | 23580 final dynamic _window; |
21574 | 23581 |
21575 /// @domName Window.addEventListener; @docsEditable true | 23582 /// @docsEditable true |
21576 @JSName('addEventListener') | 23583 @JSName('addEventListener') |
| 23584 @DomName("DOMWindow.addEventListener") |
21577 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 23585 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
21578 | 23586 |
21579 /// @domName Window.alert; @docsEditable true | 23587 /// @docsEditable true |
| 23588 @DomName("DOMWindow.alert") |
21580 void alert(String message) native; | 23589 void alert(String message) native; |
21581 | 23590 |
21582 /// @domName Window.atob; @docsEditable true | 23591 /// @docsEditable true |
| 23592 @DomName("DOMWindow.atob") |
21583 String atob(String string) native; | 23593 String atob(String string) native; |
21584 | 23594 |
21585 /// @domName Window.btoa; @docsEditable true | 23595 /// @docsEditable true |
| 23596 @DomName("DOMWindow.btoa") |
21586 String btoa(String string) native; | 23597 String btoa(String string) native; |
21587 | 23598 |
21588 /// @domName Window.captureEvents; @docsEditable true | 23599 /// @docsEditable true |
| 23600 @DomName("DOMWindow.captureEvents") |
21589 void captureEvents() native; | 23601 void captureEvents() native; |
21590 | 23602 |
21591 /// @domName Window.clearInterval; @docsEditable true | 23603 /// @docsEditable true |
| 23604 @DomName("DOMWindow.clearInterval") |
21592 void clearInterval(int handle) native; | 23605 void clearInterval(int handle) native; |
21593 | 23606 |
21594 /// @domName Window.clearTimeout; @docsEditable true | 23607 /// @docsEditable true |
| 23608 @DomName("DOMWindow.clearTimeout") |
21595 void clearTimeout(int handle) native; | 23609 void clearTimeout(int handle) native; |
21596 | 23610 |
21597 /// @domName Window.close; @docsEditable true | 23611 /// @docsEditable true |
| 23612 @DomName("DOMWindow.close") |
21598 void close() native; | 23613 void close() native; |
21599 | 23614 |
21600 /// @domName Window.confirm; @docsEditable true | 23615 /// @docsEditable true |
| 23616 @DomName("DOMWindow.confirm") |
21601 bool confirm(String message) native; | 23617 bool confirm(String message) native; |
21602 | 23618 |
21603 /// @domName Window.dispatchEvent; @docsEditable true | 23619 /// @docsEditable true |
21604 @JSName('dispatchEvent') | 23620 @JSName('dispatchEvent') |
| 23621 @DomName("DOMWindow.dispatchEvent") |
21605 bool $dom_dispatchEvent(Event evt) native; | 23622 bool $dom_dispatchEvent(Event evt) native; |
21606 | 23623 |
21607 /// @domName Window.find; @docsEditable true | 23624 /// @docsEditable true |
| 23625 @DomName("DOMWindow.find") |
21608 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | 23626 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; |
21609 | 23627 |
21610 /// @domName Window.getComputedStyle; @docsEditable true | 23628 /// @docsEditable true |
21611 @JSName('getComputedStyle') | 23629 @JSName('getComputedStyle') |
| 23630 @DomName("DOMWindow.getComputedStyle") |
21612 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t) native; | 23631 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t) native; |
21613 | 23632 |
21614 /// @domName Window.getMatchedCSSRules; @docsEditable true | 23633 /// @docsEditable true |
21615 @JSName('getMatchedCSSRules') | 23634 @JSName('getMatchedCSSRules') |
| 23635 @DomName("DOMWindow.getMatchedCSSRules") |
21616 @Returns('_CssRuleList') @Creates('_CssRuleList') | 23636 @Returns('_CssRuleList') @Creates('_CssRuleList') |
21617 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native
; | 23637 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native
; |
21618 | 23638 |
21619 /// @domName Window.getSelection; @docsEditable true | 23639 /// @docsEditable true |
| 23640 @DomName("DOMWindow.getSelection") |
21620 DomSelection getSelection() native; | 23641 DomSelection getSelection() native; |
21621 | 23642 |
21622 /// @domName Window.matchMedia; @docsEditable true | 23643 /// @docsEditable true |
| 23644 @DomName("DOMWindow.matchMedia") |
21623 MediaQueryList matchMedia(String query) native; | 23645 MediaQueryList matchMedia(String query) native; |
21624 | 23646 |
21625 /// @domName Window.moveBy; @docsEditable true | 23647 /// @docsEditable true |
| 23648 @DomName("DOMWindow.moveBy") |
21626 void moveBy(num x, num y) native; | 23649 void moveBy(num x, num y) native; |
21627 | 23650 |
21628 /// @domName Window.moveTo; @docsEditable true | 23651 /// @docsEditable true |
| 23652 @DomName("DOMWindow.moveTo") |
21629 void moveTo(num x, num y) native; | 23653 void moveTo(num x, num y) native; |
21630 | 23654 |
21631 /// @domName DOMWindow.openDatabase; @docsEditable true | 23655 /// @docsEditable true |
21632 @Creates('Database') @Creates('DatabaseSync') | 23656 @DomName("DOMWindow.openDatabase") @Creates('Database') @Creates('DatabaseSync
') |
21633 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; | 23657 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; |
21634 | 23658 |
21635 /// @domName Window.postMessage; @docsEditable true | 23659 /// @docsEditable true |
21636 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) { | 23660 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) { |
21637 if (?message && | 23661 if (?message && |
21638 !?messagePorts) { | 23662 !?messagePorts) { |
21639 var message_1 = convertDartToNative_SerializedScriptValue(message); | 23663 var message_1 = convertDartToNative_SerializedScriptValue(message); |
21640 _postMessage_1(message_1, targetOrigin); | 23664 _postMessage_1(message_1, targetOrigin); |
21641 return; | 23665 return; |
21642 } | 23666 } |
21643 if (?message) { | 23667 if (?message) { |
21644 var message_2 = convertDartToNative_SerializedScriptValue(message); | 23668 var message_2 = convertDartToNative_SerializedScriptValue(message); |
21645 _postMessage_2(message_2, targetOrigin, messagePorts); | 23669 _postMessage_2(message_2, targetOrigin, messagePorts); |
21646 return; | 23670 return; |
21647 } | 23671 } |
21648 throw new ArgumentError("Incorrect number or type of arguments"); | 23672 throw new ArgumentError("Incorrect number or type of arguments"); |
21649 } | 23673 } |
21650 @JSName('postMessage') | 23674 @JSName('postMessage') |
| 23675 @DomName("DOMWindow.postMessage") |
21651 void _postMessage_1(message, targetOrigin) native; | 23676 void _postMessage_1(message, targetOrigin) native; |
21652 @JSName('postMessage') | 23677 @JSName('postMessage') |
| 23678 @DomName("DOMWindow.postMessage") |
21653 void _postMessage_2(message, targetOrigin, List messagePorts) native; | 23679 void _postMessage_2(message, targetOrigin, List messagePorts) native; |
21654 | 23680 |
21655 /// @domName Window.print; @docsEditable true | 23681 /// @docsEditable true |
| 23682 @DomName("DOMWindow.print") |
21656 void print() native; | 23683 void print() native; |
21657 | 23684 |
21658 /// @domName Window.releaseEvents; @docsEditable true | 23685 /// @docsEditable true |
| 23686 @DomName("DOMWindow.releaseEvents") |
21659 void releaseEvents() native; | 23687 void releaseEvents() native; |
21660 | 23688 |
21661 /// @domName Window.removeEventListener; @docsEditable true | 23689 /// @docsEditable true |
21662 @JSName('removeEventListener') | 23690 @JSName('removeEventListener') |
| 23691 @DomName("DOMWindow.removeEventListener") |
21663 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 23692 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
21664 | 23693 |
21665 /// @domName Window.resizeBy; @docsEditable true | 23694 /// @docsEditable true |
| 23695 @DomName("DOMWindow.resizeBy") |
21666 void resizeBy(num x, num y) native; | 23696 void resizeBy(num x, num y) native; |
21667 | 23697 |
21668 /// @domName Window.resizeTo; @docsEditable true | 23698 /// @docsEditable true |
| 23699 @DomName("DOMWindow.resizeTo") |
21669 void resizeTo(num width, num height) native; | 23700 void resizeTo(num width, num height) native; |
21670 | 23701 |
21671 /// @domName Window.scroll; @docsEditable true | 23702 /// @docsEditable true |
| 23703 @DomName("DOMWindow.scroll") |
21672 void scroll(int x, int y) native; | 23704 void scroll(int x, int y) native; |
21673 | 23705 |
21674 /// @domName Window.scrollBy; @docsEditable true | 23706 /// @docsEditable true |
| 23707 @DomName("DOMWindow.scrollBy") |
21675 void scrollBy(int x, int y) native; | 23708 void scrollBy(int x, int y) native; |
21676 | 23709 |
21677 /// @domName Window.scrollTo; @docsEditable true | 23710 /// @docsEditable true |
| 23711 @DomName("DOMWindow.scrollTo") |
21678 void scrollTo(int x, int y) native; | 23712 void scrollTo(int x, int y) native; |
21679 | 23713 |
21680 /// @domName Window.setInterval; @docsEditable true | 23714 /// @docsEditable true |
| 23715 @DomName("DOMWindow.setInterval") |
21681 int setInterval(TimeoutHandler handler, int timeout) native; | 23716 int setInterval(TimeoutHandler handler, int timeout) native; |
21682 | 23717 |
21683 /// @domName Window.setTimeout; @docsEditable true | 23718 /// @docsEditable true |
| 23719 @DomName("DOMWindow.setTimeout") |
21684 int setTimeout(TimeoutHandler handler, int timeout) native; | 23720 int setTimeout(TimeoutHandler handler, int timeout) native; |
21685 | 23721 |
21686 /// @domName Window.showModalDialog; @docsEditable true | 23722 /// @docsEditable true |
| 23723 @DomName("DOMWindow.showModalDialog") |
21687 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; | 23724 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; |
21688 | 23725 |
21689 /// @domName Window.stop; @docsEditable true | 23726 /// @docsEditable true |
| 23727 @DomName("DOMWindow.stop") |
21690 void stop() native; | 23728 void stop() native; |
21691 | 23729 |
21692 /// @domName Window.webkitConvertPointFromNodeToPage; @docsEditable true | 23730 /// @docsEditable true |
| 23731 @DomName("DOMWindow.webkitConvertPointFromNodeToPage") |
21693 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; | 23732 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; |
21694 | 23733 |
21695 /// @domName Window.webkitConvertPointFromPageToNode; @docsEditable true | 23734 /// @docsEditable true |
| 23735 @DomName("DOMWindow.webkitConvertPointFromPageToNode") |
21696 Point webkitConvertPointFromPageToNode(Node node, Point p) native; | 23736 Point webkitConvertPointFromPageToNode(Node node, Point p) native; |
21697 | 23737 |
21698 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true | 23738 /// @docsEditable true |
| 23739 @DomName("DOMWindow.webkitRequestFileSystem") |
21699 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; | 23740 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; |
21700 | 23741 |
21701 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true | 23742 /// @docsEditable true |
21702 @JSName('webkitResolveLocalFileSystemURL') | 23743 @JSName('webkitResolveLocalFileSystemURL') |
| 23744 @DomName("DOMWindow.webkitResolveLocalFileSystemURL") |
21703 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; | 23745 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; |
21704 | 23746 |
21705 } | 23747 } |
21706 | 23748 |
21707 /// @docsEditable true | 23749 /// @docsEditable true |
21708 class WindowEvents extends Events { | 23750 class WindowEvents extends Events { |
21709 /// @docsEditable true | 23751 /// @docsEditable true |
21710 WindowEvents(EventTarget _ptr) : super(_ptr); | 23752 WindowEvents(EventTarget _ptr) : super(_ptr); |
21711 | 23753 |
21712 /// @docsEditable true | 23754 /// @docsEditable true |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21929 EventListenerList get animationStart => this['webkitAnimationStart']; | 23971 EventListenerList get animationStart => this['webkitAnimationStart']; |
21930 | 23972 |
21931 /// @docsEditable true | 23973 /// @docsEditable true |
21932 EventListenerList get transitionEnd => this['webkitTransitionEnd']; | 23974 EventListenerList get transitionEnd => this['webkitTransitionEnd']; |
21933 } | 23975 } |
21934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21935 // for details. All rights reserved. Use of this source code is governed by a | 23977 // for details. All rights reserved. Use of this source code is governed by a |
21936 // BSD-style license that can be found in the LICENSE file. | 23978 // BSD-style license that can be found in the LICENSE file. |
21937 | 23979 |
21938 | 23980 |
21939 /// @domName Worker; @docsEditable true | 23981 /// @docsEditable true |
| 23982 @DomName("Worker") |
21940 class Worker extends AbstractWorker native "*Worker" { | 23983 class Worker extends AbstractWorker native "*Worker" { |
21941 | 23984 |
21942 ///@docsEditable true | 23985 /// @docsEditable true |
21943 factory Worker(String scriptUrl) => Worker._create(scriptUrl); | 23986 factory Worker(String scriptUrl) => Worker._create(scriptUrl); |
21944 static Worker _create(String scriptUrl) => JS('Worker', 'new Worker(#)', scrip
tUrl); | 23987 static Worker _create(String scriptUrl) => JS('Worker', 'new Worker(#)', scrip
tUrl); |
21945 | 23988 |
21946 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 23989 /// @docsEditable true |
| 23990 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
21947 WorkerEvents get on => | 23991 WorkerEvents get on => |
21948 new WorkerEvents(this); | 23992 new WorkerEvents(this); |
21949 | 23993 |
21950 /// @domName Worker.postMessage; @docsEditable true | 23994 /// @docsEditable true |
21951 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { | 23995 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) { |
21952 if (?messagePorts) { | 23996 if (?messagePorts) { |
21953 var message_1 = convertDartToNative_SerializedScriptValue(message); | 23997 var message_1 = convertDartToNative_SerializedScriptValue(message); |
21954 _postMessage_1(message_1, messagePorts); | 23998 _postMessage_1(message_1, messagePorts); |
21955 return; | 23999 return; |
21956 } | 24000 } |
21957 var message_2 = convertDartToNative_SerializedScriptValue(message); | 24001 var message_2 = convertDartToNative_SerializedScriptValue(message); |
21958 _postMessage_2(message_2); | 24002 _postMessage_2(message_2); |
21959 return; | 24003 return; |
21960 } | 24004 } |
21961 @JSName('postMessage') | 24005 @JSName('postMessage') |
| 24006 @DomName("Worker.postMessage") |
21962 void _postMessage_1(message, List messagePorts) native; | 24007 void _postMessage_1(message, List messagePorts) native; |
21963 @JSName('postMessage') | 24008 @JSName('postMessage') |
| 24009 @DomName("Worker.postMessage") |
21964 void _postMessage_2(message) native; | 24010 void _postMessage_2(message) native; |
21965 | 24011 |
21966 /// @domName Worker.terminate; @docsEditable true | 24012 /// @docsEditable true |
| 24013 @DomName("Worker.terminate") |
21967 void terminate() native; | 24014 void terminate() native; |
21968 } | 24015 } |
21969 | 24016 |
21970 /// @docsEditable true | 24017 /// @docsEditable true |
21971 class WorkerEvents extends AbstractWorkerEvents { | 24018 class WorkerEvents extends AbstractWorkerEvents { |
21972 /// @docsEditable true | 24019 /// @docsEditable true |
21973 WorkerEvents(EventTarget _ptr) : super(_ptr); | 24020 WorkerEvents(EventTarget _ptr) : super(_ptr); |
21974 | 24021 |
21975 /// @docsEditable true | 24022 /// @docsEditable true |
21976 EventListenerList get message => this['message']; | 24023 EventListenerList get message => this['message']; |
21977 } | 24024 } |
21978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24025 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21979 // for details. All rights reserved. Use of this source code is governed by a | 24026 // for details. All rights reserved. Use of this source code is governed by a |
21980 // BSD-style license that can be found in the LICENSE file. | 24027 // BSD-style license that can be found in the LICENSE file. |
21981 | 24028 |
21982 | 24029 |
21983 /// @domName WorkerContext | 24030 @DomName("WorkerContext") |
21984 class WorkerContext extends EventTarget native "*WorkerContext" { | 24031 class WorkerContext extends EventTarget native "*WorkerContext" { |
21985 | 24032 |
21986 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 24033 /// @docsEditable true |
| 24034 @DomName("EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent") |
21987 WorkerContextEvents get on => | 24035 WorkerContextEvents get on => |
21988 new WorkerContextEvents(this); | 24036 new WorkerContextEvents(this); |
21989 | 24037 |
21990 static const int PERSISTENT = 1; | 24038 static const int PERSISTENT = 1; |
21991 | 24039 |
21992 static const int TEMPORARY = 0; | 24040 static const int TEMPORARY = 0; |
21993 | 24041 |
21994 /// @domName WorkerContext.location; @docsEditable true | 24042 /// @docsEditable true |
| 24043 @DomName("WorkerContext.location") |
21995 final WorkerLocation location; | 24044 final WorkerLocation location; |
21996 | 24045 |
21997 /// @domName WorkerContext.navigator; @docsEditable true | 24046 /// @docsEditable true |
| 24047 @DomName("WorkerContext.navigator") |
21998 final WorkerNavigator navigator; | 24048 final WorkerNavigator navigator; |
21999 | 24049 |
22000 /// @domName WorkerContext.self; @docsEditable true | 24050 /// @docsEditable true |
| 24051 @DomName("WorkerContext.self") |
22001 final WorkerContext self; | 24052 final WorkerContext self; |
22002 | 24053 |
22003 /// @domName WorkerContext.webkitNotifications; @docsEditable true | 24054 /// @docsEditable true |
| 24055 @DomName("WorkerContext.webkitNotifications") |
22004 final NotificationCenter webkitNotifications; | 24056 final NotificationCenter webkitNotifications; |
22005 | 24057 |
22006 /// @domName WorkerContext.addEventListener; @docsEditable true | 24058 /// @docsEditable true |
22007 @JSName('addEventListener') | 24059 @JSName('addEventListener') |
| 24060 @DomName("WorkerContext.addEventListener") |
22008 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 24061 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
22009 | 24062 |
22010 /// @domName WorkerContext.clearInterval; @docsEditable true | 24063 /// @docsEditable true |
| 24064 @DomName("WorkerContext.clearInterval") |
22011 void clearInterval(int handle) native; | 24065 void clearInterval(int handle) native; |
22012 | 24066 |
22013 /// @domName WorkerContext.clearTimeout; @docsEditable true | 24067 /// @docsEditable true |
| 24068 @DomName("WorkerContext.clearTimeout") |
22014 void clearTimeout(int handle) native; | 24069 void clearTimeout(int handle) native; |
22015 | 24070 |
22016 /// @domName WorkerContext.close; @docsEditable true | 24071 /// @docsEditable true |
| 24072 @DomName("WorkerContext.close") |
22017 void close() native; | 24073 void close() native; |
22018 | 24074 |
22019 /// @domName WorkerContext.dispatchEvent; @docsEditable true | 24075 /// @docsEditable true |
22020 @JSName('dispatchEvent') | 24076 @JSName('dispatchEvent') |
| 24077 @DomName("WorkerContext.dispatchEvent") |
22021 bool $dom_dispatchEvent(Event evt) native; | 24078 bool $dom_dispatchEvent(Event evt) native; |
22022 | 24079 |
22023 /// @domName WorkerContext.importScripts; @docsEditable true | 24080 /// @docsEditable true |
| 24081 @DomName("WorkerContext.importScripts") |
22024 void importScripts() native; | 24082 void importScripts() native; |
22025 | 24083 |
22026 /// @domName WorkerContext.openDatabase; @docsEditable true | 24084 /// @docsEditable true |
| 24085 @DomName("WorkerContext.openDatabase") |
22027 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; | 24086 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]) native; |
22028 | 24087 |
22029 /// @domName WorkerContext.openDatabaseSync; @docsEditable true | 24088 /// @docsEditable true |
| 24089 @DomName("WorkerContext.openDatabaseSync") |
22030 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]) native; | 24090 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]) native; |
22031 | 24091 |
22032 /// @domName WorkerContext.removeEventListener; @docsEditable true | 24092 /// @docsEditable true |
22033 @JSName('removeEventListener') | 24093 @JSName('removeEventListener') |
| 24094 @DomName("WorkerContext.removeEventListener") |
22034 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 24095 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
22035 | 24096 |
22036 /// @domName WorkerContext.setInterval; @docsEditable true | 24097 /// @docsEditable true |
| 24098 @DomName("WorkerContext.setInterval") |
22037 int setInterval(TimeoutHandler handler, int timeout) native; | 24099 int setInterval(TimeoutHandler handler, int timeout) native; |
22038 | 24100 |
22039 /// @domName WorkerContext.setTimeout; @docsEditable true | 24101 /// @docsEditable true |
| 24102 @DomName("WorkerContext.setTimeout") |
22040 int setTimeout(TimeoutHandler handler, int timeout) native; | 24103 int setTimeout(TimeoutHandler handler, int timeout) native; |
22041 | 24104 |
22042 /// @domName WorkerContext.webkitRequestFileSystem; @docsEditable true | 24105 /// @docsEditable true |
| 24106 @DomName("WorkerContext.webkitRequestFileSystem") |
22043 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]) native; | 24107 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]) native; |
22044 | 24108 |
22045 /// @domName WorkerContext.webkitRequestFileSystemSync; @docsEditable true | 24109 /// @docsEditable true |
| 24110 @DomName("WorkerContext.webkitRequestFileSystemSync") |
22046 FileSystemSync webkitRequestFileSystemSync(int type, int size) native; | 24111 FileSystemSync webkitRequestFileSystemSync(int type, int size) native; |
22047 | 24112 |
22048 /// @domName WorkerContext.webkitResolveLocalFileSystemSyncURL; @docsEditable
true | 24113 /// @docsEditable true |
22049 @JSName('webkitResolveLocalFileSystemSyncURL') | 24114 @JSName('webkitResolveLocalFileSystemSyncURL') |
| 24115 @DomName("WorkerContext.webkitResolveLocalFileSystemSyncURL") |
22050 EntrySync webkitResolveLocalFileSystemSyncUrl(String url) native; | 24116 EntrySync webkitResolveLocalFileSystemSyncUrl(String url) native; |
22051 | 24117 |
22052 /// @domName WorkerContext.webkitResolveLocalFileSystemURL; @docsEditable true | 24118 /// @docsEditable true |
22053 @JSName('webkitResolveLocalFileSystemURL') | 24119 @JSName('webkitResolveLocalFileSystemURL') |
| 24120 @DomName("WorkerContext.webkitResolveLocalFileSystemURL") |
22054 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; | 24121 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; |
22055 | 24122 |
22056 | 24123 |
22057 /** | 24124 /** |
22058 * Gets an instance of the Indexed DB factory to being using Indexed DB. | 24125 * Gets an instance of the Indexed DB factory to being using Indexed DB. |
22059 * | 24126 * |
22060 * Use [IdbFactory.supported] to check if Indexed DB is supported on the | 24127 * Use [IdbFactory.supported] to check if Indexed DB is supported on the |
22061 * current platform. | 24128 * current platform. |
22062 */ | 24129 */ |
22063 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') | 24130 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') |
(...skipping 12 matching lines...) Expand all Loading... |
22076 WorkerContextEvents(EventTarget _ptr) : super(_ptr); | 24143 WorkerContextEvents(EventTarget _ptr) : super(_ptr); |
22077 | 24144 |
22078 /// @docsEditable true | 24145 /// @docsEditable true |
22079 EventListenerList get error => this['error']; | 24146 EventListenerList get error => this['error']; |
22080 } | 24147 } |
22081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24148 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22082 // for details. All rights reserved. Use of this source code is governed by a | 24149 // for details. All rights reserved. Use of this source code is governed by a |
22083 // BSD-style license that can be found in the LICENSE file. | 24150 // BSD-style license that can be found in the LICENSE file. |
22084 | 24151 |
22085 | 24152 |
22086 /// @domName WorkerLocation; @docsEditable true | 24153 /// @docsEditable true |
| 24154 @DomName("WorkerLocation") |
22087 class WorkerLocation native "*WorkerLocation" { | 24155 class WorkerLocation native "*WorkerLocation" { |
22088 | 24156 |
22089 /// @domName WorkerLocation.hash; @docsEditable true | 24157 /// @docsEditable true |
| 24158 @DomName("WorkerLocation.hash") |
22090 final String hash; | 24159 final String hash; |
22091 | 24160 |
22092 /// @domName WorkerLocation.host; @docsEditable true | 24161 /// @docsEditable true |
| 24162 @DomName("WorkerLocation.host") |
22093 final String host; | 24163 final String host; |
22094 | 24164 |
22095 /// @domName WorkerLocation.hostname; @docsEditable true | 24165 /// @docsEditable true |
| 24166 @DomName("WorkerLocation.hostname") |
22096 final String hostname; | 24167 final String hostname; |
22097 | 24168 |
22098 /// @domName WorkerLocation.href; @docsEditable true | 24169 /// @docsEditable true |
| 24170 @DomName("WorkerLocation.href") |
22099 final String href; | 24171 final String href; |
22100 | 24172 |
22101 /// @domName WorkerLocation.pathname; @docsEditable true | 24173 /// @docsEditable true |
| 24174 @DomName("WorkerLocation.pathname") |
22102 final String pathname; | 24175 final String pathname; |
22103 | 24176 |
22104 /// @domName WorkerLocation.port; @docsEditable true | 24177 /// @docsEditable true |
| 24178 @DomName("WorkerLocation.port") |
22105 final String port; | 24179 final String port; |
22106 | 24180 |
22107 /// @domName WorkerLocation.protocol; @docsEditable true | 24181 /// @docsEditable true |
| 24182 @DomName("WorkerLocation.protocol") |
22108 final String protocol; | 24183 final String protocol; |
22109 | 24184 |
22110 /// @domName WorkerLocation.search; @docsEditable true | 24185 /// @docsEditable true |
| 24186 @DomName("WorkerLocation.search") |
22111 final String search; | 24187 final String search; |
22112 | 24188 |
22113 /// @domName WorkerLocation.toString; @docsEditable true | 24189 /// @docsEditable true |
| 24190 @DomName("WorkerLocation.toString") |
22114 String toString() native; | 24191 String toString() native; |
22115 } | 24192 } |
22116 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22117 // for details. All rights reserved. Use of this source code is governed by a | 24194 // for details. All rights reserved. Use of this source code is governed by a |
22118 // BSD-style license that can be found in the LICENSE file. | 24195 // BSD-style license that can be found in the LICENSE file. |
22119 | 24196 |
22120 | 24197 |
22121 /// @domName WorkerNavigator; @docsEditable true | 24198 /// @docsEditable true |
| 24199 @DomName("WorkerNavigator") |
22122 class WorkerNavigator native "*WorkerNavigator" { | 24200 class WorkerNavigator native "*WorkerNavigator" { |
22123 | 24201 |
22124 /// @domName WorkerNavigator.appName; @docsEditable true | 24202 /// @docsEditable true |
| 24203 @DomName("WorkerNavigator.appName") |
22125 final String appName; | 24204 final String appName; |
22126 | 24205 |
22127 /// @domName WorkerNavigator.appVersion; @docsEditable true | 24206 /// @docsEditable true |
| 24207 @DomName("WorkerNavigator.appVersion") |
22128 final String appVersion; | 24208 final String appVersion; |
22129 | 24209 |
22130 /// @domName WorkerNavigator.onLine; @docsEditable true | 24210 /// @docsEditable true |
| 24211 @DomName("WorkerNavigator.onLine") |
22131 final bool onLine; | 24212 final bool onLine; |
22132 | 24213 |
22133 /// @domName WorkerNavigator.platform; @docsEditable true | 24214 /// @docsEditable true |
| 24215 @DomName("WorkerNavigator.platform") |
22134 final String platform; | 24216 final String platform; |
22135 | 24217 |
22136 /// @domName WorkerNavigator.userAgent; @docsEditable true | 24218 /// @docsEditable true |
| 24219 @DomName("WorkerNavigator.userAgent") |
22137 final String userAgent; | 24220 final String userAgent; |
22138 } | 24221 } |
22139 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22140 // for details. All rights reserved. Use of this source code is governed by a | 24223 // for details. All rights reserved. Use of this source code is governed by a |
22141 // BSD-style license that can be found in the LICENSE file. | 24224 // BSD-style license that can be found in the LICENSE file. |
22142 | 24225 |
22143 | 24226 |
22144 /// @domName XPathEvaluator; @docsEditable true | 24227 /// @docsEditable true |
| 24228 @DomName("XPathEvaluator") |
22145 class XPathEvaluator native "*XPathEvaluator" { | 24229 class XPathEvaluator native "*XPathEvaluator" { |
22146 | 24230 |
22147 ///@docsEditable true | 24231 /// @docsEditable true |
22148 factory XPathEvaluator() => XPathEvaluator._create(); | 24232 factory XPathEvaluator() => XPathEvaluator._create(); |
22149 static XPathEvaluator _create() => JS('XPathEvaluator', 'new XPathEvaluator()'
); | 24233 static XPathEvaluator _create() => JS('XPathEvaluator', 'new XPathEvaluator()'
); |
22150 | 24234 |
22151 /// @domName XPathEvaluator.createExpression; @docsEditable true | 24235 /// @docsEditable true |
| 24236 @DomName("XPathEvaluator.createExpression") |
22152 XPathExpression createExpression(String expression, XPathNSResolver resolver)
native; | 24237 XPathExpression createExpression(String expression, XPathNSResolver resolver)
native; |
22153 | 24238 |
22154 /// @domName XPathEvaluator.createNSResolver; @docsEditable true | 24239 /// @docsEditable true |
| 24240 @DomName("XPathEvaluator.createNSResolver") |
22155 XPathNSResolver createNSResolver(Node nodeResolver) native; | 24241 XPathNSResolver createNSResolver(Node nodeResolver) native; |
22156 | 24242 |
22157 /// @domName XPathEvaluator.evaluate; @docsEditable true | 24243 /// @docsEditable true |
| 24244 @DomName("XPathEvaluator.evaluate") |
22158 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult) native; | 24245 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult) native; |
22159 } | 24246 } |
22160 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22161 // for details. All rights reserved. Use of this source code is governed by a | 24248 // for details. All rights reserved. Use of this source code is governed by a |
22162 // BSD-style license that can be found in the LICENSE file. | 24249 // BSD-style license that can be found in the LICENSE file. |
22163 | 24250 |
22164 | 24251 |
22165 /// @domName XPathException; @docsEditable true | 24252 /// @docsEditable true |
| 24253 @DomName("XPathException") |
22166 class XPathException native "*XPathException" { | 24254 class XPathException native "*XPathException" { |
22167 | 24255 |
22168 static const int INVALID_EXPRESSION_ERR = 51; | 24256 static const int INVALID_EXPRESSION_ERR = 51; |
22169 | 24257 |
22170 static const int TYPE_ERR = 52; | 24258 static const int TYPE_ERR = 52; |
22171 | 24259 |
22172 /// @domName XPathException.code; @docsEditable true | 24260 /// @docsEditable true |
| 24261 @DomName("XPathException.code") |
22173 final int code; | 24262 final int code; |
22174 | 24263 |
22175 /// @domName XPathException.message; @docsEditable true | 24264 /// @docsEditable true |
| 24265 @DomName("XPathException.message") |
22176 final String message; | 24266 final String message; |
22177 | 24267 |
22178 /// @domName XPathException.name; @docsEditable true | 24268 /// @docsEditable true |
| 24269 @DomName("XPathException.name") |
22179 final String name; | 24270 final String name; |
22180 | 24271 |
22181 /// @domName XPathException.toString; @docsEditable true | 24272 /// @docsEditable true |
| 24273 @DomName("XPathException.toString") |
22182 String toString() native; | 24274 String toString() native; |
22183 } | 24275 } |
22184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22185 // for details. All rights reserved. Use of this source code is governed by a | 24277 // for details. All rights reserved. Use of this source code is governed by a |
22186 // BSD-style license that can be found in the LICENSE file. | 24278 // BSD-style license that can be found in the LICENSE file. |
22187 | 24279 |
22188 | 24280 |
22189 /// @domName XPathExpression; @docsEditable true | 24281 /// @docsEditable true |
| 24282 @DomName("XPathExpression") |
22190 class XPathExpression native "*XPathExpression" { | 24283 class XPathExpression native "*XPathExpression" { |
22191 | 24284 |
22192 /// @domName XPathExpression.evaluate; @docsEditable true | 24285 /// @docsEditable true |
| 24286 @DomName("XPathExpression.evaluate") |
22193 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; | 24287 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; |
22194 } | 24288 } |
22195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22196 // for details. All rights reserved. Use of this source code is governed by a | 24290 // for details. All rights reserved. Use of this source code is governed by a |
22197 // BSD-style license that can be found in the LICENSE file. | 24291 // BSD-style license that can be found in the LICENSE file. |
22198 | 24292 |
22199 | 24293 |
22200 /// @domName XPathNSResolver; @docsEditable true | 24294 /// @docsEditable true |
| 24295 @DomName("XPathNSResolver") |
22201 class XPathNSResolver native "*XPathNSResolver" { | 24296 class XPathNSResolver native "*XPathNSResolver" { |
22202 | 24297 |
22203 /// @domName XPathNSResolver.lookupNamespaceURI; @docsEditable true | 24298 /// @docsEditable true |
22204 @JSName('lookupNamespaceURI') | 24299 @JSName('lookupNamespaceURI') |
| 24300 @DomName("XPathNSResolver.lookupNamespaceURI") |
22205 String lookupNamespaceUri(String prefix) native; | 24301 String lookupNamespaceUri(String prefix) native; |
22206 } | 24302 } |
22207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22208 // for details. All rights reserved. Use of this source code is governed by a | 24304 // for details. All rights reserved. Use of this source code is governed by a |
22209 // BSD-style license that can be found in the LICENSE file. | 24305 // BSD-style license that can be found in the LICENSE file. |
22210 | 24306 |
22211 | 24307 |
22212 /// @domName XPathResult; @docsEditable true | 24308 /// @docsEditable true |
| 24309 @DomName("XPathResult") |
22213 class XPathResult native "*XPathResult" { | 24310 class XPathResult native "*XPathResult" { |
22214 | 24311 |
22215 static const int ANY_TYPE = 0; | 24312 static const int ANY_TYPE = 0; |
22216 | 24313 |
22217 static const int ANY_UNORDERED_NODE_TYPE = 8; | 24314 static const int ANY_UNORDERED_NODE_TYPE = 8; |
22218 | 24315 |
22219 static const int BOOLEAN_TYPE = 3; | 24316 static const int BOOLEAN_TYPE = 3; |
22220 | 24317 |
22221 static const int FIRST_ORDERED_NODE_TYPE = 9; | 24318 static const int FIRST_ORDERED_NODE_TYPE = 9; |
22222 | 24319 |
22223 static const int NUMBER_TYPE = 1; | 24320 static const int NUMBER_TYPE = 1; |
22224 | 24321 |
22225 static const int ORDERED_NODE_ITERATOR_TYPE = 5; | 24322 static const int ORDERED_NODE_ITERATOR_TYPE = 5; |
22226 | 24323 |
22227 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; | 24324 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; |
22228 | 24325 |
22229 static const int STRING_TYPE = 2; | 24326 static const int STRING_TYPE = 2; |
22230 | 24327 |
22231 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; | 24328 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; |
22232 | 24329 |
22233 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | 24330 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; |
22234 | 24331 |
22235 /// @domName XPathResult.booleanValue; @docsEditable true | 24332 /// @docsEditable true |
| 24333 @DomName("XPathResult.booleanValue") |
22236 final bool booleanValue; | 24334 final bool booleanValue; |
22237 | 24335 |
22238 /// @domName XPathResult.invalidIteratorState; @docsEditable true | 24336 /// @docsEditable true |
| 24337 @DomName("XPathResult.invalidIteratorState") |
22239 final bool invalidIteratorState; | 24338 final bool invalidIteratorState; |
22240 | 24339 |
22241 /// @domName XPathResult.numberValue; @docsEditable true | 24340 /// @docsEditable true |
| 24341 @DomName("XPathResult.numberValue") |
22242 final num numberValue; | 24342 final num numberValue; |
22243 | 24343 |
22244 /// @domName XPathResult.resultType; @docsEditable true | 24344 /// @docsEditable true |
| 24345 @DomName("XPathResult.resultType") |
22245 final int resultType; | 24346 final int resultType; |
22246 | 24347 |
22247 /// @domName XPathResult.singleNodeValue; @docsEditable true | 24348 /// @docsEditable true |
| 24349 @DomName("XPathResult.singleNodeValue") |
22248 final Node singleNodeValue; | 24350 final Node singleNodeValue; |
22249 | 24351 |
22250 /// @domName XPathResult.snapshotLength; @docsEditable true | 24352 /// @docsEditable true |
| 24353 @DomName("XPathResult.snapshotLength") |
22251 final int snapshotLength; | 24354 final int snapshotLength; |
22252 | 24355 |
22253 /// @domName XPathResult.stringValue; @docsEditable true | 24356 /// @docsEditable true |
| 24357 @DomName("XPathResult.stringValue") |
22254 final String stringValue; | 24358 final String stringValue; |
22255 | 24359 |
22256 /// @domName XPathResult.iterateNext; @docsEditable true | 24360 /// @docsEditable true |
| 24361 @DomName("XPathResult.iterateNext") |
22257 Node iterateNext() native; | 24362 Node iterateNext() native; |
22258 | 24363 |
22259 /// @domName XPathResult.snapshotItem; @docsEditable true | 24364 /// @docsEditable true |
| 24365 @DomName("XPathResult.snapshotItem") |
22260 Node snapshotItem(int index) native; | 24366 Node snapshotItem(int index) native; |
22261 } | 24367 } |
22262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22263 // for details. All rights reserved. Use of this source code is governed by a | 24369 // for details. All rights reserved. Use of this source code is governed by a |
22264 // BSD-style license that can be found in the LICENSE file. | 24370 // BSD-style license that can be found in the LICENSE file. |
22265 | 24371 |
22266 | 24372 |
22267 /// @domName XMLSerializer; @docsEditable true | 24373 /// @docsEditable true |
| 24374 @DomName("XMLSerializer") |
22268 class XmlSerializer native "*XMLSerializer" { | 24375 class XmlSerializer native "*XMLSerializer" { |
22269 | 24376 |
22270 ///@docsEditable true | 24377 /// @docsEditable true |
22271 factory XmlSerializer() => XmlSerializer._create(); | 24378 factory XmlSerializer() => XmlSerializer._create(); |
22272 static XmlSerializer _create() => JS('XmlSerializer', 'new XMLSerializer()'); | 24379 static XmlSerializer _create() => JS('XmlSerializer', 'new XMLSerializer()'); |
22273 | 24380 |
22274 /// @domName XMLSerializer.serializeToString; @docsEditable true | 24381 /// @docsEditable true |
| 24382 @DomName("XMLSerializer.serializeToString") |
22275 String serializeToString(Node node) native; | 24383 String serializeToString(Node node) native; |
22276 } | 24384 } |
22277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22278 // for details. All rights reserved. Use of this source code is governed by a | 24386 // for details. All rights reserved. Use of this source code is governed by a |
22279 // BSD-style license that can be found in the LICENSE file. | 24387 // BSD-style license that can be found in the LICENSE file. |
22280 | 24388 |
22281 | 24389 |
22282 /// @domName XSLTProcessor; @docsEditable true | 24390 /// @docsEditable true |
| 24391 @DomName("XSLTProcessor") |
22283 class XsltProcessor native "*XSLTProcessor" { | 24392 class XsltProcessor native "*XSLTProcessor" { |
22284 | 24393 |
22285 ///@docsEditable true | 24394 /// @docsEditable true |
22286 factory XsltProcessor() => XsltProcessor._create(); | 24395 factory XsltProcessor() => XsltProcessor._create(); |
22287 static XsltProcessor _create() => JS('XsltProcessor', 'new XSLTProcessor()'); | 24396 static XsltProcessor _create() => JS('XsltProcessor', 'new XSLTProcessor()'); |
22288 | 24397 |
22289 /// @domName XSLTProcessor.clearParameters; @docsEditable true | 24398 /// @docsEditable true |
| 24399 @DomName("XSLTProcessor.clearParameters") |
22290 void clearParameters() native; | 24400 void clearParameters() native; |
22291 | 24401 |
22292 /// @domName XSLTProcessor.getParameter; @docsEditable true | 24402 /// @docsEditable true |
| 24403 @DomName("XSLTProcessor.getParameter") |
22293 String getParameter(String namespaceURI, String localName) native; | 24404 String getParameter(String namespaceURI, String localName) native; |
22294 | 24405 |
22295 /// @domName XSLTProcessor.importStylesheet; @docsEditable true | 24406 /// @docsEditable true |
| 24407 @DomName("XSLTProcessor.importStylesheet") |
22296 void importStylesheet(Node stylesheet) native; | 24408 void importStylesheet(Node stylesheet) native; |
22297 | 24409 |
22298 /// @domName XSLTProcessor.removeParameter; @docsEditable true | 24410 /// @docsEditable true |
| 24411 @DomName("XSLTProcessor.removeParameter") |
22299 void removeParameter(String namespaceURI, String localName) native; | 24412 void removeParameter(String namespaceURI, String localName) native; |
22300 | 24413 |
22301 /// @domName XSLTProcessor.reset; @docsEditable true | 24414 /// @docsEditable true |
| 24415 @DomName("XSLTProcessor.reset") |
22302 void reset() native; | 24416 void reset() native; |
22303 | 24417 |
22304 /// @domName XSLTProcessor.setParameter; @docsEditable true | 24418 /// @docsEditable true |
| 24419 @DomName("XSLTProcessor.setParameter") |
22305 void setParameter(String namespaceURI, String localName, String value) native; | 24420 void setParameter(String namespaceURI, String localName, String value) native; |
22306 | 24421 |
22307 /// @domName XSLTProcessor.transformToDocument; @docsEditable true | 24422 /// @docsEditable true |
| 24423 @DomName("XSLTProcessor.transformToDocument") |
22308 Document transformToDocument(Node source) native; | 24424 Document transformToDocument(Node source) native; |
22309 | 24425 |
22310 /// @domName XSLTProcessor.transformToFragment; @docsEditable true | 24426 /// @docsEditable true |
| 24427 @DomName("XSLTProcessor.transformToFragment") |
22311 DocumentFragment transformToFragment(Node source, Document docVal) native; | 24428 DocumentFragment transformToFragment(Node source, Document docVal) native; |
22312 } | 24429 } |
22313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22314 // for details. All rights reserved. Use of this source code is governed by a | 24431 // for details. All rights reserved. Use of this source code is governed by a |
22315 // BSD-style license that can be found in the LICENSE file. | 24432 // BSD-style license that can be found in the LICENSE file. |
22316 | 24433 |
22317 | 24434 |
22318 /// @domName ClientRectList; @docsEditable true | 24435 /// @docsEditable true |
| 24436 @DomName("ClientRectList") |
22319 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na
tive "*ClientRectList" { | 24437 class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na
tive "*ClientRectList" { |
22320 | 24438 |
22321 /// @domName ClientRectList.length; @docsEditable true | 24439 /// @docsEditable true |
| 24440 @DomName("ClientRectList.length") |
22322 int get length => JS("int", "#.length", this); | 24441 int get length => JS("int", "#.length", this); |
22323 | 24442 |
22324 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); | 24443 ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); |
22325 | 24444 |
22326 void operator[]=(int index, ClientRect value) { | 24445 void operator[]=(int index, ClientRect value) { |
22327 throw new UnsupportedError("Cannot assign element of immutable List."); | 24446 throw new UnsupportedError("Cannot assign element of immutable List."); |
22328 } | 24447 } |
22329 // -- start List<ClientRect> mixins. | 24448 // -- start List<ClientRect> mixins. |
22330 // ClientRect is the element type. | 24449 // ClientRect is the element type. |
22331 | 24450 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22459 | 24578 |
22460 void insertRange(int start, int rangeLength, [ClientRect initialValue]) { | 24579 void insertRange(int start, int rangeLength, [ClientRect initialValue]) { |
22461 throw new UnsupportedError("Cannot insertRange on immutable List."); | 24580 throw new UnsupportedError("Cannot insertRange on immutable List."); |
22462 } | 24581 } |
22463 | 24582 |
22464 List<ClientRect> getRange(int start, int rangeLength) => | 24583 List<ClientRect> getRange(int start, int rangeLength) => |
22465 Lists.getRange(this, start, rangeLength, <ClientRect>[]); | 24584 Lists.getRange(this, start, rangeLength, <ClientRect>[]); |
22466 | 24585 |
22467 // -- end List<ClientRect> mixins. | 24586 // -- end List<ClientRect> mixins. |
22468 | 24587 |
22469 /// @domName ClientRectList.item; @docsEditable true | 24588 /// @docsEditable true |
| 24589 @DomName("ClientRectList.item") |
22470 ClientRect item(int index) native; | 24590 ClientRect item(int index) native; |
22471 } | 24591 } |
22472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22473 // for details. All rights reserved. Use of this source code is governed by a | 24593 // for details. All rights reserved. Use of this source code is governed by a |
22474 // BSD-style license that can be found in the LICENSE file. | 24594 // BSD-style license that can be found in the LICENSE file. |
22475 | 24595 |
22476 | 24596 |
22477 /// @domName CSSRuleList; @docsEditable true | 24597 /// @docsEditable true |
| 24598 @DomName("CSSRuleList") |
22478 class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
*CSSRuleList" { | 24599 class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "
*CSSRuleList" { |
22479 | 24600 |
22480 /// @domName CSSRuleList.length; @docsEditable true | 24601 /// @docsEditable true |
| 24602 @DomName("CSSRuleList.length") |
22481 int get length => JS("int", "#.length", this); | 24603 int get length => JS("int", "#.length", this); |
22482 | 24604 |
22483 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index); | 24605 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index); |
22484 | 24606 |
22485 void operator[]=(int index, CssRule value) { | 24607 void operator[]=(int index, CssRule value) { |
22486 throw new UnsupportedError("Cannot assign element of immutable List."); | 24608 throw new UnsupportedError("Cannot assign element of immutable List."); |
22487 } | 24609 } |
22488 // -- start List<CssRule> mixins. | 24610 // -- start List<CssRule> mixins. |
22489 // CssRule is the element type. | 24611 // CssRule is the element type. |
22490 | 24612 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22618 | 24740 |
22619 void insertRange(int start, int rangeLength, [CssRule initialValue]) { | 24741 void insertRange(int start, int rangeLength, [CssRule initialValue]) { |
22620 throw new UnsupportedError("Cannot insertRange on immutable List."); | 24742 throw new UnsupportedError("Cannot insertRange on immutable List."); |
22621 } | 24743 } |
22622 | 24744 |
22623 List<CssRule> getRange(int start, int rangeLength) => | 24745 List<CssRule> getRange(int start, int rangeLength) => |
22624 Lists.getRange(this, start, rangeLength, <CssRule>[]); | 24746 Lists.getRange(this, start, rangeLength, <CssRule>[]); |
22625 | 24747 |
22626 // -- end List<CssRule> mixins. | 24748 // -- end List<CssRule> mixins. |
22627 | 24749 |
22628 /// @domName CSSRuleList.item; @docsEditable true | 24750 /// @docsEditable true |
| 24751 @DomName("CSSRuleList.item") |
22629 CssRule item(int index) native; | 24752 CssRule item(int index) native; |
22630 } | 24753 } |
22631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22632 // for details. All rights reserved. Use of this source code is governed by a | 24755 // for details. All rights reserved. Use of this source code is governed by a |
22633 // BSD-style license that can be found in the LICENSE file. | 24756 // BSD-style license that can be found in the LICENSE file. |
22634 | 24757 |
22635 | 24758 |
22636 /// @domName CSSValueList; @docsEditable true | 24759 /// @docsEditable true |
| 24760 @DomName("CSSValueList") |
22637 class _CssValueList extends CssValue implements List<CssValue>, JavaScriptIndexi
ngBehavior native "*CSSValueList" { | 24761 class _CssValueList extends CssValue implements List<CssValue>, JavaScriptIndexi
ngBehavior native "*CSSValueList" { |
22638 | 24762 |
22639 /// @domName CSSValueList.length; @docsEditable true | 24763 /// @docsEditable true |
| 24764 @DomName("CSSValueList.length") |
22640 int get length => JS("int", "#.length", this); | 24765 int get length => JS("int", "#.length", this); |
22641 | 24766 |
22642 CssValue operator[](int index) => JS("CssValue", "#[#]", this, index); | 24767 CssValue operator[](int index) => JS("CssValue", "#[#]", this, index); |
22643 | 24768 |
22644 void operator[]=(int index, CssValue value) { | 24769 void operator[]=(int index, CssValue value) { |
22645 throw new UnsupportedError("Cannot assign element of immutable List."); | 24770 throw new UnsupportedError("Cannot assign element of immutable List."); |
22646 } | 24771 } |
22647 // -- start List<CssValue> mixins. | 24772 // -- start List<CssValue> mixins. |
22648 // CssValue is the element type. | 24773 // CssValue is the element type. |
22649 | 24774 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22777 | 24902 |
22778 void insertRange(int start, int rangeLength, [CssValue initialValue]) { | 24903 void insertRange(int start, int rangeLength, [CssValue initialValue]) { |
22779 throw new UnsupportedError("Cannot insertRange on immutable List."); | 24904 throw new UnsupportedError("Cannot insertRange on immutable List."); |
22780 } | 24905 } |
22781 | 24906 |
22782 List<CssValue> getRange(int start, int rangeLength) => | 24907 List<CssValue> getRange(int start, int rangeLength) => |
22783 Lists.getRange(this, start, rangeLength, <CssValue>[]); | 24908 Lists.getRange(this, start, rangeLength, <CssValue>[]); |
22784 | 24909 |
22785 // -- end List<CssValue> mixins. | 24910 // -- end List<CssValue> mixins. |
22786 | 24911 |
22787 /// @domName CSSValueList.item; @docsEditable true | 24912 /// @docsEditable true |
| 24913 @DomName("CSSValueList.item") |
22788 CssValue item(int index) native; | 24914 CssValue item(int index) native; |
22789 } | 24915 } |
22790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22791 // for details. All rights reserved. Use of this source code is governed by a | 24917 // for details. All rights reserved. Use of this source code is governed by a |
22792 // BSD-style license that can be found in the LICENSE file. | 24918 // BSD-style license that can be found in the LICENSE file. |
22793 | 24919 |
22794 | 24920 |
22795 /// @domName EntryArray; @docsEditable true | 24921 /// @docsEditable true |
| 24922 @DomName("EntryArray") |
22796 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
tryArray" { | 24923 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En
tryArray" { |
22797 | 24924 |
22798 /// @domName EntryArray.length; @docsEditable true | 24925 /// @docsEditable true |
| 24926 @DomName("EntryArray.length") |
22799 int get length => JS("int", "#.length", this); | 24927 int get length => JS("int", "#.length", this); |
22800 | 24928 |
22801 Entry operator[](int index) => JS("Entry", "#[#]", this, index); | 24929 Entry operator[](int index) => JS("Entry", "#[#]", this, index); |
22802 | 24930 |
22803 void operator[]=(int index, Entry value) { | 24931 void operator[]=(int index, Entry value) { |
22804 throw new UnsupportedError("Cannot assign element of immutable List."); | 24932 throw new UnsupportedError("Cannot assign element of immutable List."); |
22805 } | 24933 } |
22806 // -- start List<Entry> mixins. | 24934 // -- start List<Entry> mixins. |
22807 // Entry is the element type. | 24935 // Entry is the element type. |
22808 | 24936 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22936 | 25064 |
22937 void insertRange(int start, int rangeLength, [Entry initialValue]) { | 25065 void insertRange(int start, int rangeLength, [Entry initialValue]) { |
22938 throw new UnsupportedError("Cannot insertRange on immutable List."); | 25066 throw new UnsupportedError("Cannot insertRange on immutable List."); |
22939 } | 25067 } |
22940 | 25068 |
22941 List<Entry> getRange(int start, int rangeLength) => | 25069 List<Entry> getRange(int start, int rangeLength) => |
22942 Lists.getRange(this, start, rangeLength, <Entry>[]); | 25070 Lists.getRange(this, start, rangeLength, <Entry>[]); |
22943 | 25071 |
22944 // -- end List<Entry> mixins. | 25072 // -- end List<Entry> mixins. |
22945 | 25073 |
22946 /// @domName EntryArray.item; @docsEditable true | 25074 /// @docsEditable true |
| 25075 @DomName("EntryArray.item") |
22947 Entry item(int index) native; | 25076 Entry item(int index) native; |
22948 } | 25077 } |
22949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25078 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22950 // for details. All rights reserved. Use of this source code is governed by a | 25079 // for details. All rights reserved. Use of this source code is governed by a |
22951 // BSD-style license that can be found in the LICENSE file. | 25080 // BSD-style license that can be found in the LICENSE file. |
22952 | 25081 |
22953 | 25082 |
22954 /// @domName EntryArraySync; @docsEditable true | 25083 /// @docsEditable true |
| 25084 @DomName("EntryArraySync") |
22955 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat
ive "*EntryArraySync" { | 25085 class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat
ive "*EntryArraySync" { |
22956 | 25086 |
22957 /// @domName EntryArraySync.length; @docsEditable true | 25087 /// @docsEditable true |
| 25088 @DomName("EntryArraySync.length") |
22958 int get length => JS("int", "#.length", this); | 25089 int get length => JS("int", "#.length", this); |
22959 | 25090 |
22960 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index); | 25091 EntrySync operator[](int index) => JS("EntrySync", "#[#]", this, index); |
22961 | 25092 |
22962 void operator[]=(int index, EntrySync value) { | 25093 void operator[]=(int index, EntrySync value) { |
22963 throw new UnsupportedError("Cannot assign element of immutable List."); | 25094 throw new UnsupportedError("Cannot assign element of immutable List."); |
22964 } | 25095 } |
22965 // -- start List<EntrySync> mixins. | 25096 // -- start List<EntrySync> mixins. |
22966 // EntrySync is the element type. | 25097 // EntrySync is the element type. |
22967 | 25098 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23095 | 25226 |
23096 void insertRange(int start, int rangeLength, [EntrySync initialValue]) { | 25227 void insertRange(int start, int rangeLength, [EntrySync initialValue]) { |
23097 throw new UnsupportedError("Cannot insertRange on immutable List."); | 25228 throw new UnsupportedError("Cannot insertRange on immutable List."); |
23098 } | 25229 } |
23099 | 25230 |
23100 List<EntrySync> getRange(int start, int rangeLength) => | 25231 List<EntrySync> getRange(int start, int rangeLength) => |
23101 Lists.getRange(this, start, rangeLength, <EntrySync>[]); | 25232 Lists.getRange(this, start, rangeLength, <EntrySync>[]); |
23102 | 25233 |
23103 // -- end List<EntrySync> mixins. | 25234 // -- end List<EntrySync> mixins. |
23104 | 25235 |
23105 /// @domName EntryArraySync.item; @docsEditable true | 25236 /// @docsEditable true |
| 25237 @DomName("EntryArraySync.item") |
23106 EntrySync item(int index) native; | 25238 EntrySync item(int index) native; |
23107 } | 25239 } |
23108 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23109 // for details. All rights reserved. Use of this source code is governed by a | 25241 // for details. All rights reserved. Use of this source code is governed by a |
23110 // BSD-style license that can be found in the LICENSE file. | 25242 // BSD-style license that can be found in the LICENSE file. |
23111 | 25243 |
23112 | 25244 |
23113 /// @domName GamepadList; @docsEditable true | 25245 /// @docsEditable true |
| 25246 @DomName("GamepadList") |
23114 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
*GamepadList" { | 25247 class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "
*GamepadList" { |
23115 | 25248 |
23116 /// @domName GamepadList.length; @docsEditable true | 25249 /// @docsEditable true |
| 25250 @DomName("GamepadList.length") |
23117 int get length => JS("int", "#.length", this); | 25251 int get length => JS("int", "#.length", this); |
23118 | 25252 |
23119 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); | 25253 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); |
23120 | 25254 |
23121 void operator[]=(int index, Gamepad value) { | 25255 void operator[]=(int index, Gamepad value) { |
23122 throw new UnsupportedError("Cannot assign element of immutable List."); | 25256 throw new UnsupportedError("Cannot assign element of immutable List."); |
23123 } | 25257 } |
23124 // -- start List<Gamepad> mixins. | 25258 // -- start List<Gamepad> mixins. |
23125 // Gamepad is the element type. | 25259 // Gamepad is the element type. |
23126 | 25260 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23254 | 25388 |
23255 void insertRange(int start, int rangeLength, [Gamepad initialValue]) { | 25389 void insertRange(int start, int rangeLength, [Gamepad initialValue]) { |
23256 throw new UnsupportedError("Cannot insertRange on immutable List."); | 25390 throw new UnsupportedError("Cannot insertRange on immutable List."); |
23257 } | 25391 } |
23258 | 25392 |
23259 List<Gamepad> getRange(int start, int rangeLength) => | 25393 List<Gamepad> getRange(int start, int rangeLength) => |
23260 Lists.getRange(this, start, rangeLength, <Gamepad>[]); | 25394 Lists.getRange(this, start, rangeLength, <Gamepad>[]); |
23261 | 25395 |
23262 // -- end List<Gamepad> mixins. | 25396 // -- end List<Gamepad> mixins. |
23263 | 25397 |
23264 /// @domName GamepadList.item; @docsEditable true | 25398 /// @docsEditable true |
| 25399 @DomName("GamepadList.item") |
23265 Gamepad item(int index) native; | 25400 Gamepad item(int index) native; |
23266 } | 25401 } |
23267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23268 // for details. All rights reserved. Use of this source code is governed by a | 25403 // for details. All rights reserved. Use of this source code is governed by a |
23269 // BSD-style license that can be found in the LICENSE file. | 25404 // BSD-style license that can be found in the LICENSE file. |
23270 | 25405 |
23271 | 25406 |
23272 /// @domName MediaStreamList; @docsEditable true | 25407 /// @docsEditable true |
| 25408 @DomName("MediaStreamList") |
23273 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream>
native "*MediaStreamList" { | 25409 class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream>
native "*MediaStreamList" { |
23274 | 25410 |
23275 /// @domName MediaStreamList.length; @docsEditable true | 25411 /// @docsEditable true |
| 25412 @DomName("MediaStreamList.length") |
23276 int get length => JS("int", "#.length", this); | 25413 int get length => JS("int", "#.length", this); |
23277 | 25414 |
23278 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index); | 25415 MediaStream operator[](int index) => JS("MediaStream", "#[#]", this, index); |
23279 | 25416 |
23280 void operator[]=(int index, MediaStream value) { | 25417 void operator[]=(int index, MediaStream value) { |
23281 throw new UnsupportedError("Cannot assign element of immutable List."); | 25418 throw new UnsupportedError("Cannot assign element of immutable List."); |
23282 } | 25419 } |
23283 // -- start List<MediaStream> mixins. | 25420 // -- start List<MediaStream> mixins. |
23284 // MediaStream is the element type. | 25421 // MediaStream is the element type. |
23285 | 25422 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23413 | 25550 |
23414 void insertRange(int start, int rangeLength, [MediaStream initialValue]) { | 25551 void insertRange(int start, int rangeLength, [MediaStream initialValue]) { |
23415 throw new UnsupportedError("Cannot insertRange on immutable List."); | 25552 throw new UnsupportedError("Cannot insertRange on immutable List."); |
23416 } | 25553 } |
23417 | 25554 |
23418 List<MediaStream> getRange(int start, int rangeLength) => | 25555 List<MediaStream> getRange(int start, int rangeLength) => |
23419 Lists.getRange(this, start, rangeLength, <MediaStream>[]); | 25556 Lists.getRange(this, start, rangeLength, <MediaStream>[]); |
23420 | 25557 |
23421 // -- end List<MediaStream> mixins. | 25558 // -- end List<MediaStream> mixins. |
23422 | 25559 |
23423 /// @domName MediaStreamList.item; @docsEditable true | 25560 /// @docsEditable true |
| 25561 @DomName("MediaStreamList.item") |
23424 MediaStream item(int index) native; | 25562 MediaStream item(int index) native; |
23425 } | 25563 } |
23426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23427 // for details. All rights reserved. Use of this source code is governed by a | 25565 // for details. All rights reserved. Use of this source code is governed by a |
23428 // BSD-style license that can be found in the LICENSE file. | 25566 // BSD-style license that can be found in the LICENSE file. |
23429 | 25567 |
23430 | 25568 |
23431 /// @domName SpeechInputResultList; @docsEditable true | 25569 /// @docsEditable true |
| 25570 @DomName("SpeechInputResultList") |
23432 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
nputResult> native "*SpeechInputResultList" { | 25571 class _SpeechInputResultList implements JavaScriptIndexingBehavior, List<SpeechI
nputResult> native "*SpeechInputResultList" { |
23433 | 25572 |
23434 /// @domName SpeechInputResultList.length; @docsEditable true | 25573 /// @docsEditable true |
| 25574 @DomName("SpeechInputResultList.length") |
23435 int get length => JS("int", "#.length", this); | 25575 int get length => JS("int", "#.length", this); |
23436 | 25576 |
23437 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi
s, index); | 25577 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi
s, index); |
23438 | 25578 |
23439 void operator[]=(int index, SpeechInputResult value) { | 25579 void operator[]=(int index, SpeechInputResult value) { |
23440 throw new UnsupportedError("Cannot assign element of immutable List."); | 25580 throw new UnsupportedError("Cannot assign element of immutable List."); |
23441 } | 25581 } |
23442 // -- start List<SpeechInputResult> mixins. | 25582 // -- start List<SpeechInputResult> mixins. |
23443 // SpeechInputResult is the element type. | 25583 // SpeechInputResult is the element type. |
23444 | 25584 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23572 | 25712 |
23573 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue])
{ | 25713 void insertRange(int start, int rangeLength, [SpeechInputResult initialValue])
{ |
23574 throw new UnsupportedError("Cannot insertRange on immutable List."); | 25714 throw new UnsupportedError("Cannot insertRange on immutable List."); |
23575 } | 25715 } |
23576 | 25716 |
23577 List<SpeechInputResult> getRange(int start, int rangeLength) => | 25717 List<SpeechInputResult> getRange(int start, int rangeLength) => |
23578 Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]); | 25718 Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]); |
23579 | 25719 |
23580 // -- end List<SpeechInputResult> mixins. | 25720 // -- end List<SpeechInputResult> mixins. |
23581 | 25721 |
23582 /// @domName SpeechInputResultList.item; @docsEditable true | 25722 /// @docsEditable true |
| 25723 @DomName("SpeechInputResultList.item") |
23583 SpeechInputResult item(int index) native; | 25724 SpeechInputResult item(int index) native; |
23584 } | 25725 } |
23585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23586 // for details. All rights reserved. Use of this source code is governed by a | 25727 // for details. All rights reserved. Use of this source code is governed by a |
23587 // BSD-style license that can be found in the LICENSE file. | 25728 // BSD-style license that can be found in the LICENSE file. |
23588 | 25729 |
23589 | 25730 |
23590 /// @domName SpeechRecognitionResultList; @docsEditable true | 25731 /// @docsEditable true |
| 25732 @DomName("SpeechRecognitionResultList") |
23591 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
peechRecognitionResult> native "*SpeechRecognitionResultList" { | 25733 class _SpeechRecognitionResultList implements JavaScriptIndexingBehavior, List<S
peechRecognitionResult> native "*SpeechRecognitionResultList" { |
23592 | 25734 |
23593 /// @domName SpeechRecognitionResultList.length; @docsEditable true | 25735 /// @docsEditable true |
| 25736 @DomName("SpeechRecognitionResultList.length") |
23594 int get length => JS("int", "#.length", this); | 25737 int get length => JS("int", "#.length", this); |
23595 | 25738 |
23596 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult",
"#[#]", this, index); | 25739 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult",
"#[#]", this, index); |
23597 | 25740 |
23598 void operator[]=(int index, SpeechRecognitionResult value) { | 25741 void operator[]=(int index, SpeechRecognitionResult value) { |
23599 throw new UnsupportedError("Cannot assign element of immutable List."); | 25742 throw new UnsupportedError("Cannot assign element of immutable List."); |
23600 } | 25743 } |
23601 // -- start List<SpeechRecognitionResult> mixins. | 25744 // -- start List<SpeechRecognitionResult> mixins. |
23602 // SpeechRecognitionResult is the element type. | 25745 // SpeechRecognitionResult is the element type. |
23603 | 25746 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23731 | 25874 |
23732 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV
alue]) { | 25875 void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialV
alue]) { |
23733 throw new UnsupportedError("Cannot insertRange on immutable List."); | 25876 throw new UnsupportedError("Cannot insertRange on immutable List."); |
23734 } | 25877 } |
23735 | 25878 |
23736 List<SpeechRecognitionResult> getRange(int start, int rangeLength) => | 25879 List<SpeechRecognitionResult> getRange(int start, int rangeLength) => |
23737 Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]); | 25880 Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]); |
23738 | 25881 |
23739 // -- end List<SpeechRecognitionResult> mixins. | 25882 // -- end List<SpeechRecognitionResult> mixins. |
23740 | 25883 |
23741 /// @domName SpeechRecognitionResultList.item; @docsEditable true | 25884 /// @docsEditable true |
| 25885 @DomName("SpeechRecognitionResultList.item") |
23742 SpeechRecognitionResult item(int index) native; | 25886 SpeechRecognitionResult item(int index) native; |
23743 } | 25887 } |
23744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23745 // for details. All rights reserved. Use of this source code is governed by a | 25889 // for details. All rights reserved. Use of this source code is governed by a |
23746 // BSD-style license that can be found in the LICENSE file. | 25890 // BSD-style license that can be found in the LICENSE file. |
23747 | 25891 |
23748 | 25892 |
23749 /// @domName StyleSheetList; @docsEditable true | 25893 /// @docsEditable true |
| 25894 @DomName("StyleSheetList") |
23750 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
tive "*StyleSheetList" { | 25895 class _StyleSheetList implements JavaScriptIndexingBehavior, List<StyleSheet> na
tive "*StyleSheetList" { |
23751 | 25896 |
23752 /// @domName StyleSheetList.length; @docsEditable true | 25897 /// @docsEditable true |
| 25898 @DomName("StyleSheetList.length") |
23753 int get length => JS("int", "#.length", this); | 25899 int get length => JS("int", "#.length", this); |
23754 | 25900 |
23755 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); | 25901 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); |
23756 | 25902 |
23757 void operator[]=(int index, StyleSheet value) { | 25903 void operator[]=(int index, StyleSheet value) { |
23758 throw new UnsupportedError("Cannot assign element of immutable List."); | 25904 throw new UnsupportedError("Cannot assign element of immutable List."); |
23759 } | 25905 } |
23760 // -- start List<StyleSheet> mixins. | 25906 // -- start List<StyleSheet> mixins. |
23761 // StyleSheet is the element type. | 25907 // StyleSheet is the element type. |
23762 | 25908 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23890 | 26036 |
23891 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { | 26037 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { |
23892 throw new UnsupportedError("Cannot insertRange on immutable List."); | 26038 throw new UnsupportedError("Cannot insertRange on immutable List."); |
23893 } | 26039 } |
23894 | 26040 |
23895 List<StyleSheet> getRange(int start, int rangeLength) => | 26041 List<StyleSheet> getRange(int start, int rangeLength) => |
23896 Lists.getRange(this, start, rangeLength, <StyleSheet>[]); | 26042 Lists.getRange(this, start, rangeLength, <StyleSheet>[]); |
23897 | 26043 |
23898 // -- end List<StyleSheet> mixins. | 26044 // -- end List<StyleSheet> mixins. |
23899 | 26045 |
23900 /// @domName StyleSheetList.item; @docsEditable true | 26046 /// @docsEditable true |
| 26047 @DomName("StyleSheetList.item") |
23901 StyleSheet item(int index) native; | 26048 StyleSheet item(int index) native; |
23902 } | 26049 } |
23903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 26050 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23904 // for details. All rights reserved. Use of this source code is governed by a | 26051 // for details. All rights reserved. Use of this source code is governed by a |
23905 // BSD-style license that can be found in the LICENSE file. | 26052 // BSD-style license that can be found in the LICENSE file. |
23906 | 26053 |
23907 | 26054 |
23908 abstract class _AttributeMap implements Map<String, String> { | 26055 abstract class _AttributeMap implements Map<String, String> { |
23909 final Element _element; | 26056 final Element _element; |
23910 | 26057 |
(...skipping 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
26322 style.cssText = css; | 28469 style.cssText = css; |
26323 return style; | 28470 return style; |
26324 } | 28471 } |
26325 | 28472 |
26326 static CssStyleDeclaration createCssStyleDeclaration() { | 28473 static CssStyleDeclaration createCssStyleDeclaration() { |
26327 return new CssStyleDeclaration.css(''); | 28474 return new CssStyleDeclaration.css(''); |
26328 } | 28475 } |
26329 } | 28476 } |
26330 | 28477 |
26331 class _DocumentFragmentFactoryProvider { | 28478 class _DocumentFragmentFactoryProvider { |
26332 /** @domName Document.createDocumentFragment */ | 28479 @DomName("Document.createDocumentFragment") |
26333 static DocumentFragment createDocumentFragment() => | 28480 static DocumentFragment createDocumentFragment() => |
26334 document.createDocumentFragment(); | 28481 document.createDocumentFragment(); |
26335 | 28482 |
26336 static DocumentFragment createDocumentFragment_html(String html) { | 28483 static DocumentFragment createDocumentFragment_html(String html) { |
26337 final fragment = new DocumentFragment(); | 28484 final fragment = new DocumentFragment(); |
26338 fragment.innerHtml = html; | 28485 fragment.innerHtml = html; |
26339 return fragment; | 28486 return fragment; |
26340 } | 28487 } |
26341 | 28488 |
26342 // TODO(nweiz): enable this when XML is ported. | 28489 // TODO(nweiz): enable this when XML is ported. |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
26970 _position = nextPosition; | 29117 _position = nextPosition; |
26971 return true; | 29118 return true; |
26972 } | 29119 } |
26973 _current = null; | 29120 _current = null; |
26974 _position = _array.length; | 29121 _position = _array.length; |
26975 return false; | 29122 return false; |
26976 } | 29123 } |
26977 | 29124 |
26978 T get current => _current; | 29125 T get current => _current; |
26979 } | 29126 } |
OLD | NEW |