OLD | NEW |
1 #library('html'); | 1 #library('html'); |
2 | 2 |
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 // DO NOT EDIT | 7 // DO NOT EDIT |
8 // Auto-generated dart:html library. | 8 // Auto-generated dart:html library. |
9 | 9 |
10 | 10 |
11 | 11 |
12 | 12 |
13 | 13 |
14 // TODO(sra): What 'window' do we get in a worker? Perhaps this | 14 _WindowImpl _cachedWindow; |
15 // should return the interface type. | 15 _DocumentImpl _cachedDocument; |
16 Window get window() native "return window;"; | |
17 _WindowJs get _window() native "return window;"; | |
18 | 16 |
19 Document get document() native "return window.document.documentElement;"; | 17 void _init() { |
20 _DocumentJs get _document() native "return window.document.documentElement;"; | 18 _cachedDocument = _document; |
| 19 _cachedWindow = _window; |
| 20 // Feature detect that dart:dom and dart:html are not both loaded by |
| 21 // checking for the presence of a bug that manifests itself when both |
| 22 // libraries are loaded. |
| 23 // TODO(jacobr): remove this code once b/1911 is fixed and the frog compiler |
| 24 // is changed to generate compile time errors if two libraries that define |
| 25 // the same native types in conflicting ways are imported. |
| 26 var element = new Element.tag('body'); |
| 27 element.innerHTML = 'f'; |
| 28 if (element.text == '') { |
| 29 _cachedWindow.console.error( |
| 30 'Cannot import dart:html and dart:dom within the same application.'); |
| 31 throw new UnsupportedOperationException( |
| 32 'Cannot import dart:html and dart:dom within the same application.'); |
| 33 } |
| 34 } |
21 | 35 |
22 class _AbstractWorkerJs implements AbstractWorker native "*AbstractWorker" { | 36 Window get window() { |
| 37 if (_cachedWindow == null) { |
| 38 _init(); |
| 39 } |
| 40 return _cachedWindow; |
| 41 } |
| 42 |
| 43 _WindowImpl get _window() native "return window;"; |
| 44 |
| 45 Document get document() { |
| 46 if (_cachedDocument == null) { |
| 47 _init(); |
| 48 } |
| 49 return _cachedDocument; |
| 50 } |
| 51 |
| 52 _DocumentImpl get _document() native "return window.document.documentElement;"; |
| 53 |
| 54 class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker nat
ive "*AbstractWorker" { |
23 | 55 |
24 _AbstractWorkerEventsImpl get on() => | 56 _AbstractWorkerEventsImpl get on() => |
25 new _AbstractWorkerEventsImpl(this); | 57 new _AbstractWorkerEventsImpl(this); |
26 | 58 |
27 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 59 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
28 | 60 |
29 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | 61 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
30 | 62 |
31 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 63 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
32 } | 64 } |
33 | 65 |
34 class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEve
nts { | 66 class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEve
nts { |
35 _AbstractWorkerEventsImpl(_ptr) : super(_ptr); | 67 _AbstractWorkerEventsImpl(_ptr) : super(_ptr); |
36 | 68 |
37 EventListenerList get error() => _get('error'); | 69 EventListenerList get error() => _get('error'); |
38 } | 70 } |
39 | 71 |
40 class _AnchorElementJs extends _ElementJs implements AnchorElement native "*HTML
AnchorElement" { | 72 class _AnchorElementImpl extends _ElementImpl implements AnchorElement native "*
HTMLAnchorElement" { |
41 | 73 |
42 String charset; | 74 String charset; |
43 | 75 |
44 String coords; | 76 String coords; |
45 | 77 |
46 String download; | 78 String download; |
47 | 79 |
48 String hash; | 80 String hash; |
49 | 81 |
50 String host; | 82 String host; |
(...skipping 19 matching lines...) Expand all Loading... |
70 String rel; | 102 String rel; |
71 | 103 |
72 String rev; | 104 String rev; |
73 | 105 |
74 String search; | 106 String search; |
75 | 107 |
76 String shape; | 108 String shape; |
77 | 109 |
78 String target; | 110 String target; |
79 | 111 |
80 final String text; | |
81 | |
82 String type; | 112 String type; |
83 | 113 |
84 String toString() native; | 114 String toString() native; |
85 } | 115 } |
86 | 116 |
87 class _AnimationJs implements Animation native "*WebKitAnimation" { | 117 class _AnimationImpl implements Animation native "*WebKitAnimation" { |
88 | 118 |
89 static final int DIRECTION_ALTERNATE = 1; | 119 static final int DIRECTION_ALTERNATE = 1; |
90 | 120 |
91 static final int DIRECTION_NORMAL = 0; | 121 static final int DIRECTION_NORMAL = 0; |
92 | 122 |
93 static final int FILL_BACKWARDS = 1; | 123 static final int FILL_BACKWARDS = 1; |
94 | 124 |
95 static final int FILL_BOTH = 3; | 125 static final int FILL_BOTH = 3; |
96 | 126 |
97 static final int FILL_FORWARDS = 2; | 127 static final int FILL_FORWARDS = 2; |
(...skipping 16 matching lines...) Expand all Loading... |
114 | 144 |
115 final String name; | 145 final String name; |
116 | 146 |
117 final bool paused; | 147 final bool paused; |
118 | 148 |
119 void pause() native; | 149 void pause() native; |
120 | 150 |
121 void play() native; | 151 void play() native; |
122 } | 152 } |
123 | 153 |
124 class _AnimationEventJs extends _EventJs implements AnimationEvent native "*WebK
itAnimationEvent" { | 154 class _AnimationEventImpl extends _EventImpl implements AnimationEvent native "*
WebKitAnimationEvent" { |
125 | 155 |
126 final String animationName; | 156 final String animationName; |
127 | 157 |
128 final num elapsedTime; | 158 final num elapsedTime; |
129 } | 159 } |
130 | 160 |
131 class _AnimationListJs implements AnimationList native "*WebKitAnimationList" { | 161 class _AnimationListImpl implements AnimationList native "*WebKitAnimationList"
{ |
132 | 162 |
133 final int length; | 163 final int length; |
134 | 164 |
135 _AnimationJs item(int index) native; | 165 _AnimationImpl item(int index) native; |
136 } | 166 } |
137 | 167 |
138 class _AppletElementJs extends _ElementJs implements AppletElement native "*HTML
AppletElement" { | 168 class _AppletElementImpl extends _ElementImpl implements AppletElement native "*
HTMLAppletElement" { |
139 | 169 |
140 String align; | 170 String align; |
141 | 171 |
142 String alt; | 172 String alt; |
143 | 173 |
144 String archive; | 174 String archive; |
145 | 175 |
146 String code; | 176 String code; |
147 | 177 |
148 String codeBase; | 178 String codeBase; |
149 | 179 |
150 String height; | 180 String height; |
151 | 181 |
152 String hspace; | 182 String hspace; |
153 | 183 |
154 String name; | 184 String name; |
155 | 185 |
156 String object; | 186 String object; |
157 | 187 |
158 String vspace; | 188 String vspace; |
159 | 189 |
160 String width; | 190 String width; |
161 } | 191 } |
162 | 192 |
163 class _AreaElementJs extends _ElementJs implements AreaElement native "*HTMLArea
Element" { | 193 class _AreaElementImpl extends _ElementImpl implements AreaElement native "*HTML
AreaElement" { |
164 | 194 |
165 String alt; | 195 String alt; |
166 | 196 |
167 String coords; | 197 String coords; |
168 | 198 |
169 final String hash; | 199 final String hash; |
170 | 200 |
171 final String host; | 201 final String host; |
172 | 202 |
173 final String hostname; | 203 final String hostname; |
(...skipping 10 matching lines...) Expand all Loading... |
184 | 214 |
185 final String protocol; | 215 final String protocol; |
186 | 216 |
187 final String search; | 217 final String search; |
188 | 218 |
189 String shape; | 219 String shape; |
190 | 220 |
191 String target; | 221 String target; |
192 } | 222 } |
193 | 223 |
194 class _ArrayBufferJs implements ArrayBuffer native "*ArrayBuffer" { | 224 class _ArrayBufferImpl implements ArrayBuffer native "*ArrayBuffer" { |
195 | 225 |
196 final int byteLength; | 226 final int byteLength; |
197 | 227 |
198 _ArrayBufferJs slice(int begin, [int end = null]) native; | 228 _ArrayBufferImpl slice(int begin, [int end = null]) native; |
199 } | 229 } |
200 | 230 |
201 class _ArrayBufferViewJs implements ArrayBufferView native "*ArrayBufferView" { | 231 class _ArrayBufferViewImpl implements ArrayBufferView native "*ArrayBufferView"
{ |
202 | 232 |
203 final _ArrayBufferJs buffer; | 233 final _ArrayBufferImpl buffer; |
204 | 234 |
205 final int byteLength; | 235 final int byteLength; |
206 | 236 |
207 final int byteOffset; | 237 final int byteOffset; |
208 } | 238 } |
209 | 239 |
210 class _AttrJs extends _NodeJs implements Attr native "*Attr" { | 240 class _AttrImpl extends _NodeImpl implements Attr native "*Attr" { |
211 | 241 |
212 final bool isId; | 242 final bool isId; |
213 | 243 |
214 final String name; | 244 final String name; |
215 | 245 |
216 final _ElementJs ownerElement; | 246 final _ElementImpl ownerElement; |
217 | 247 |
218 final bool specified; | 248 final bool specified; |
219 | 249 |
220 String value; | 250 String value; |
221 } | 251 } |
222 | 252 |
223 class _AudioBufferJs implements AudioBuffer native "*AudioBuffer" { | 253 class _AudioBufferImpl implements AudioBuffer native "*AudioBuffer" { |
224 | 254 |
225 final num duration; | 255 final num duration; |
226 | 256 |
227 num gain; | 257 num gain; |
228 | 258 |
229 final int length; | 259 final int length; |
230 | 260 |
231 final int numberOfChannels; | 261 final int numberOfChannels; |
232 | 262 |
233 final num sampleRate; | 263 final num sampleRate; |
234 | 264 |
235 _Float32ArrayJs getChannelData(int channelIndex) native; | 265 _Float32ArrayImpl getChannelData(int channelIndex) native; |
236 } | 266 } |
237 | 267 |
238 class _AudioBufferSourceNodeJs extends _AudioSourceNodeJs implements AudioBuffer
SourceNode native "*AudioBufferSourceNode" { | 268 class _AudioBufferSourceNodeImpl extends _AudioSourceNodeImpl implements AudioBu
fferSourceNode native "*AudioBufferSourceNode" { |
239 | 269 |
240 _AudioBufferJs buffer; | 270 _AudioBufferImpl buffer; |
241 | 271 |
242 final _AudioGainJs gain; | 272 final _AudioGainImpl gain; |
243 | 273 |
244 bool loop; | 274 bool loop; |
245 | 275 |
246 bool looping; | 276 bool looping; |
247 | 277 |
248 final _AudioParamJs playbackRate; | 278 final _AudioParamImpl playbackRate; |
249 | 279 |
250 void noteGrainOn(num when, num grainOffset, num grainDuration) native; | 280 void noteGrainOn(num when, num grainOffset, num grainDuration) native; |
251 | 281 |
252 void noteOff(num when) native; | 282 void noteOff(num when) native; |
253 | 283 |
254 void noteOn(num when) native; | 284 void noteOn(num when) native; |
255 } | 285 } |
256 | 286 |
257 class _AudioChannelMergerJs extends _AudioNodeJs implements AudioChannelMerger n
ative "*AudioChannelMerger" { | 287 class _AudioChannelMergerImpl extends _AudioNodeImpl implements AudioChannelMerg
er native "*AudioChannelMerger" { |
258 } | 288 } |
259 | 289 |
260 class _AudioChannelSplitterJs extends _AudioNodeJs implements AudioChannelSplitt
er native "*AudioChannelSplitter" { | 290 class _AudioChannelSplitterImpl extends _AudioNodeImpl implements AudioChannelSp
litter native "*AudioChannelSplitter" { |
261 } | 291 } |
262 | 292 |
263 class _AudioContextJs implements AudioContext native "*AudioContext" { | 293 class _AudioContextImpl implements AudioContext native "*AudioContext" { |
264 | 294 |
265 final num currentTime; | 295 final num currentTime; |
266 | 296 |
267 final _AudioDestinationNodeJs destination; | 297 final _AudioDestinationNodeImpl destination; |
268 | 298 |
269 final _AudioListenerJs listener; | 299 final _AudioListenerImpl listener; |
270 | 300 |
271 EventListener oncomplete; | 301 EventListener oncomplete; |
272 | 302 |
273 final num sampleRate; | 303 final num sampleRate; |
274 | 304 |
275 _RealtimeAnalyserNodeJs createAnalyser() native; | 305 _RealtimeAnalyserNodeImpl createAnalyser() native; |
276 | 306 |
277 _BiquadFilterNodeJs createBiquadFilter() native; | 307 _BiquadFilterNodeImpl createBiquadFilter() native; |
278 | 308 |
279 _AudioBufferJs createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR_n
umberOfFrames, [num sampleRate = null]) native; | 309 _AudioBufferImpl createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR
_numberOfFrames, [num sampleRate = null]) native; |
280 | 310 |
281 _AudioBufferSourceNodeJs createBufferSource() native; | 311 _AudioBufferSourceNodeImpl createBufferSource() native; |
282 | 312 |
283 _AudioChannelMergerJs createChannelMerger() native; | 313 _AudioChannelMergerImpl createChannelMerger() native; |
284 | 314 |
285 _AudioChannelSplitterJs createChannelSplitter() native; | 315 _AudioChannelSplitterImpl createChannelSplitter() native; |
286 | 316 |
287 _ConvolverNodeJs createConvolver() native; | 317 _ConvolverNodeImpl createConvolver() native; |
288 | 318 |
289 _DelayNodeJs createDelayNode() native; | 319 _DelayNodeImpl createDelayNode() native; |
290 | 320 |
291 _DynamicsCompressorNodeJs createDynamicsCompressor() native; | 321 _DynamicsCompressorNodeImpl createDynamicsCompressor() native; |
292 | 322 |
293 _AudioGainNodeJs createGainNode() native; | 323 _AudioGainNodeImpl createGainNode() native; |
294 | 324 |
295 _HighPass2FilterNodeJs createHighPass2Filter() native; | 325 _HighPass2FilterNodeImpl createHighPass2Filter() native; |
296 | 326 |
297 _JavaScriptAudioNodeJs createJavaScriptNode(int bufferSize) native; | 327 _JavaScriptAudioNodeImpl createJavaScriptNode(int bufferSize) native; |
298 | 328 |
299 _LowPass2FilterNodeJs createLowPass2Filter() native; | 329 _LowPass2FilterNodeImpl createLowPass2Filter() native; |
300 | 330 |
301 _MediaElementAudioSourceNodeJs createMediaElementSource(_MediaElementJs mediaE
lement) native; | 331 _MediaElementAudioSourceNodeImpl createMediaElementSource(_MediaElementImpl me
diaElement) native; |
302 | 332 |
303 _AudioPannerNodeJs createPanner() native; | 333 _AudioPannerNodeImpl createPanner() native; |
304 | 334 |
305 _WaveShaperNodeJs createWaveShaper() native; | 335 _WaveShaperNodeImpl createWaveShaper() native; |
306 | 336 |
307 void decodeAudioData(_ArrayBufferJs audioData, AudioBufferCallback successCall
back, [AudioBufferCallback errorCallback = null]) native; | 337 void decodeAudioData(_ArrayBufferImpl audioData, AudioBufferCallback successCa
llback, [AudioBufferCallback errorCallback = null]) native; |
308 | 338 |
309 void startRendering() native; | 339 void startRendering() native; |
310 } | 340 } |
311 | 341 |
312 class _AudioDestinationNodeJs extends _AudioNodeJs implements AudioDestinationNo
de native "*AudioDestinationNode" { | 342 class _AudioDestinationNodeImpl extends _AudioNodeImpl implements AudioDestinati
onNode native "*AudioDestinationNode" { |
313 | 343 |
314 final int numberOfChannels; | 344 final int numberOfChannels; |
315 } | 345 } |
316 | 346 |
317 class _AudioElementJs extends _MediaElementJs implements AudioElement native "*H
TMLAudioElement" { | 347 class _AudioElementImpl extends _MediaElementImpl implements AudioElement native
"*HTMLAudioElement" { |
318 } | 348 } |
319 | 349 |
320 class _AudioGainJs extends _AudioParamJs implements AudioGain native "*AudioGain
" { | 350 class _AudioGainImpl extends _AudioParamImpl implements AudioGain native "*Audio
Gain" { |
321 } | 351 } |
322 | 352 |
323 class _AudioGainNodeJs extends _AudioNodeJs implements AudioGainNode native "*Au
dioGainNode" { | 353 class _AudioGainNodeImpl extends _AudioNodeImpl implements AudioGainNode native
"*AudioGainNode" { |
324 | 354 |
325 final _AudioGainJs gain; | 355 final _AudioGainImpl gain; |
326 } | 356 } |
327 | 357 |
328 class _AudioListenerJs implements AudioListener native "*AudioListener" { | 358 class _AudioListenerImpl implements AudioListener native "*AudioListener" { |
329 | 359 |
330 num dopplerFactor; | 360 num dopplerFactor; |
331 | 361 |
332 num speedOfSound; | 362 num speedOfSound; |
333 | 363 |
334 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | 364 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; |
335 | 365 |
336 void setPosition(num x, num y, num z) native; | 366 void setPosition(num x, num y, num z) native; |
337 | 367 |
338 void setVelocity(num x, num y, num z) native; | 368 void setVelocity(num x, num y, num z) native; |
339 } | 369 } |
340 | 370 |
341 class _AudioNodeJs implements AudioNode native "*AudioNode" { | 371 class _AudioNodeImpl implements AudioNode native "*AudioNode" { |
342 | 372 |
343 final _AudioContextJs context; | 373 final _AudioContextImpl context; |
344 | 374 |
345 final int numberOfInputs; | 375 final int numberOfInputs; |
346 | 376 |
347 final int numberOfOutputs; | 377 final int numberOfOutputs; |
348 | 378 |
349 void connect(_AudioNodeJs destination, int output, int input) native; | 379 void connect(_AudioNodeImpl destination, int output, int input) native; |
350 | 380 |
351 void disconnect(int output) native; | 381 void disconnect(int output) native; |
352 } | 382 } |
353 | 383 |
354 class _AudioPannerNodeJs extends _AudioNodeJs implements AudioPannerNode native
"*AudioPannerNode" { | 384 class _AudioPannerNodeImpl extends _AudioNodeImpl implements AudioPannerNode nat
ive "*AudioPannerNode" { |
355 | 385 |
356 static final int EQUALPOWER = 0; | 386 static final int EQUALPOWER = 0; |
357 | 387 |
358 static final int EXPONENTIAL_DISTANCE = 2; | 388 static final int EXPONENTIAL_DISTANCE = 2; |
359 | 389 |
360 static final int HRTF = 1; | 390 static final int HRTF = 1; |
361 | 391 |
362 static final int INVERSE_DISTANCE = 1; | 392 static final int INVERSE_DISTANCE = 1; |
363 | 393 |
364 static final int LINEAR_DISTANCE = 0; | 394 static final int LINEAR_DISTANCE = 0; |
365 | 395 |
366 static final int SOUNDFIELD = 2; | 396 static final int SOUNDFIELD = 2; |
367 | 397 |
368 final _AudioGainJs coneGain; | 398 final _AudioGainImpl coneGain; |
369 | 399 |
370 num coneInnerAngle; | 400 num coneInnerAngle; |
371 | 401 |
372 num coneOuterAngle; | 402 num coneOuterAngle; |
373 | 403 |
374 num coneOuterGain; | 404 num coneOuterGain; |
375 | 405 |
376 final _AudioGainJs distanceGain; | 406 final _AudioGainImpl distanceGain; |
377 | 407 |
378 int distanceModel; | 408 int distanceModel; |
379 | 409 |
380 num maxDistance; | 410 num maxDistance; |
381 | 411 |
382 int panningModel; | 412 int panningModel; |
383 | 413 |
384 num refDistance; | 414 num refDistance; |
385 | 415 |
386 num rolloffFactor; | 416 num rolloffFactor; |
387 | 417 |
388 void setOrientation(num x, num y, num z) native; | 418 void setOrientation(num x, num y, num z) native; |
389 | 419 |
390 void setPosition(num x, num y, num z) native; | 420 void setPosition(num x, num y, num z) native; |
391 | 421 |
392 void setVelocity(num x, num y, num z) native; | 422 void setVelocity(num x, num y, num z) native; |
393 } | 423 } |
394 | 424 |
395 class _AudioParamJs implements AudioParam native "*AudioParam" { | 425 class _AudioParamImpl implements AudioParam native "*AudioParam" { |
396 | 426 |
397 final num defaultValue; | 427 final num defaultValue; |
398 | 428 |
399 final num maxValue; | 429 final num maxValue; |
400 | 430 |
401 final num minValue; | 431 final num minValue; |
402 | 432 |
403 final String name; | 433 final String name; |
404 | 434 |
405 final int units; | 435 final int units; |
406 | 436 |
407 num value; | 437 num value; |
408 | 438 |
409 void cancelScheduledValues(num startTime) native; | 439 void cancelScheduledValues(num startTime) native; |
410 | 440 |
411 void exponentialRampToValueAtTime(num value, num time) native; | 441 void exponentialRampToValueAtTime(num value, num time) native; |
412 | 442 |
413 void linearRampToValueAtTime(num value, num time) native; | 443 void linearRampToValueAtTime(num value, num time) native; |
414 | 444 |
415 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; | 445 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; |
416 | 446 |
417 void setValueAtTime(num value, num time) native; | 447 void setValueAtTime(num value, num time) native; |
418 | 448 |
419 void setValueCurveAtTime(_Float32ArrayJs values, num time, num duration) nativ
e; | 449 void setValueCurveAtTime(_Float32ArrayImpl values, num time, num duration) nat
ive; |
420 } | 450 } |
421 | 451 |
422 class _AudioProcessingEventJs extends _EventJs implements AudioProcessingEvent n
ative "*AudioProcessingEvent" { | 452 class _AudioProcessingEventImpl extends _EventImpl implements AudioProcessingEve
nt native "*AudioProcessingEvent" { |
423 | 453 |
424 final _AudioBufferJs inputBuffer; | 454 final _AudioBufferImpl inputBuffer; |
425 | 455 |
426 final _AudioBufferJs outputBuffer; | 456 final _AudioBufferImpl outputBuffer; |
427 } | 457 } |
428 | 458 |
429 class _AudioSourceNodeJs extends _AudioNodeJs implements AudioSourceNode native
"*AudioSourceNode" { | 459 class _AudioSourceNodeImpl extends _AudioNodeImpl implements AudioSourceNode nat
ive "*AudioSourceNode" { |
430 } | 460 } |
431 | 461 |
432 class _BRElementJs extends _ElementJs implements BRElement native "*HTMLBRElemen
t" { | 462 class _BRElementImpl extends _ElementImpl implements BRElement native "*HTMLBREl
ement" { |
433 | 463 |
434 String clear; | 464 String clear; |
435 } | 465 } |
436 | 466 |
437 class _BarInfoJs implements BarInfo native "*BarInfo" { | 467 class _BarInfoImpl implements BarInfo native "*BarInfo" { |
438 | 468 |
439 final bool visible; | 469 final bool visible; |
440 } | 470 } |
441 | 471 |
442 class _BaseElementJs extends _ElementJs implements BaseElement native "*HTMLBase
Element" { | 472 class _BaseElementImpl extends _ElementImpl implements BaseElement native "*HTML
BaseElement" { |
443 | 473 |
444 String href; | 474 String href; |
445 | 475 |
446 String target; | 476 String target; |
447 } | 477 } |
448 | 478 |
449 class _BaseFontElementJs extends _ElementJs implements BaseFontElement native "*
HTMLBaseFontElement" { | 479 class _BaseFontElementImpl extends _ElementImpl implements BaseFontElement nativ
e "*HTMLBaseFontElement" { |
450 | 480 |
451 String color; | 481 String color; |
452 | 482 |
453 String face; | 483 String face; |
454 | 484 |
455 int size; | 485 int size; |
456 } | 486 } |
457 | 487 |
458 class _BeforeLoadEventJs extends _EventJs implements BeforeLoadEvent native "*Be
foreLoadEvent" { | 488 class _BeforeLoadEventImpl extends _EventImpl implements BeforeLoadEvent native
"*BeforeLoadEvent" { |
459 | 489 |
460 final String url; | 490 final String url; |
461 } | 491 } |
462 | 492 |
463 class _BiquadFilterNodeJs extends _AudioNodeJs implements BiquadFilterNode nativ
e "*BiquadFilterNode" { | 493 class _BiquadFilterNodeImpl extends _AudioNodeImpl implements BiquadFilterNode n
ative "*BiquadFilterNode" { |
464 | 494 |
465 static final int ALLPASS = 7; | 495 static final int ALLPASS = 7; |
466 | 496 |
467 static final int BANDPASS = 2; | 497 static final int BANDPASS = 2; |
468 | 498 |
469 static final int HIGHPASS = 1; | 499 static final int HIGHPASS = 1; |
470 | 500 |
471 static final int HIGHSHELF = 4; | 501 static final int HIGHSHELF = 4; |
472 | 502 |
473 static final int LOWPASS = 0; | 503 static final int LOWPASS = 0; |
474 | 504 |
475 static final int LOWSHELF = 3; | 505 static final int LOWSHELF = 3; |
476 | 506 |
477 static final int NOTCH = 6; | 507 static final int NOTCH = 6; |
478 | 508 |
479 static final int PEAKING = 5; | 509 static final int PEAKING = 5; |
480 | 510 |
481 final _AudioParamJs Q; | 511 final _AudioParamImpl Q; |
482 | 512 |
483 final _AudioParamJs frequency; | 513 final _AudioParamImpl frequency; |
484 | 514 |
485 final _AudioParamJs gain; | 515 final _AudioParamImpl gain; |
486 | 516 |
487 int type; | 517 int type; |
488 | 518 |
489 void getFrequencyResponse(_Float32ArrayJs frequencyHz, _Float32ArrayJs magResp
onse, _Float32ArrayJs phaseResponse) native; | 519 void getFrequencyResponse(_Float32ArrayImpl frequencyHz, _Float32ArrayImpl mag
Response, _Float32ArrayImpl phaseResponse) native; |
490 } | 520 } |
491 | 521 |
492 class _BlobJs implements Blob native "*Blob" { | 522 class _BlobImpl implements Blob native "*Blob" { |
493 | 523 |
494 final int size; | 524 final int size; |
495 | 525 |
496 final String type; | 526 final String type; |
497 | 527 |
498 _BlobJs webkitSlice([int start = null, int end = null, String contentType = nu
ll]) native; | 528 _BlobImpl webkitSlice([int start = null, int end = null, String contentType =
null]) native; |
499 } | 529 } |
500 | 530 |
501 class _BlobBuilderJs implements BlobBuilder native "*WebKitBlobBuilder" { | 531 class _BlobBuilderImpl implements BlobBuilder native "*WebKitBlobBuilder" { |
502 | 532 |
503 void append(var arrayBuffer_OR_blob_OR_value, [String endings = null]) native; | 533 void append(var arrayBuffer_OR_blob_OR_value, [String endings = null]) native; |
504 | 534 |
505 _BlobJs getBlob([String contentType = null]) native; | 535 _BlobImpl getBlob([String contentType = null]) native; |
506 } | 536 } |
507 | 537 |
508 class _BodyElementJs extends _ElementJs implements BodyElement native "*HTMLBody
Element" { | 538 class _BodyElementImpl extends _ElementImpl implements BodyElement native "*HTML
BodyElement" { |
509 | 539 |
510 String aLink; | 540 String aLink; |
511 | 541 |
512 String background; | 542 String background; |
513 | 543 |
514 String bgColor; | 544 String bgColor; |
515 | 545 |
516 String link; | 546 String link; |
517 | 547 |
518 String text; | |
519 | |
520 String vLink; | 548 String vLink; |
521 | 549 |
522 _BodyElementEventsImpl get on() => | 550 _BodyElementEventsImpl get on() => |
523 new _BodyElementEventsImpl(this); | 551 new _BodyElementEventsImpl(this); |
524 } | 552 } |
525 | 553 |
526 class _BodyElementEventsImpl extends _ElementEventsImpl implements BodyElementEv
ents { | 554 class _BodyElementEventsImpl extends _ElementEventsImpl implements BodyElementEv
ents { |
527 _BodyElementEventsImpl(_ptr) : super(_ptr); | 555 _BodyElementEventsImpl(_ptr) : super(_ptr); |
528 | 556 |
529 EventListenerList get beforeUnload() => _get('beforeunload'); | 557 EventListenerList get beforeUnload() => _get('beforeunload'); |
(...skipping 16 matching lines...) Expand all Loading... |
546 | 574 |
547 EventListenerList get popState() => _get('popstate'); | 575 EventListenerList get popState() => _get('popstate'); |
548 | 576 |
549 EventListenerList get resize() => _get('resize'); | 577 EventListenerList get resize() => _get('resize'); |
550 | 578 |
551 EventListenerList get storage() => _get('storage'); | 579 EventListenerList get storage() => _get('storage'); |
552 | 580 |
553 EventListenerList get unload() => _get('unload'); | 581 EventListenerList get unload() => _get('unload'); |
554 } | 582 } |
555 | 583 |
556 class _ButtonElementJs extends _ElementJs implements ButtonElement native "*HTML
ButtonElement" { | 584 class _ButtonElementImpl extends _ElementImpl implements ButtonElement native "*
HTMLButtonElement" { |
557 | 585 |
558 bool autofocus; | 586 bool autofocus; |
559 | 587 |
560 bool disabled; | 588 bool disabled; |
561 | 589 |
562 final _FormElementJs form; | 590 final _FormElementImpl form; |
563 | 591 |
564 String formAction; | 592 String formAction; |
565 | 593 |
566 String formEnctype; | 594 String formEnctype; |
567 | 595 |
568 String formMethod; | 596 String formMethod; |
569 | 597 |
570 bool formNoValidate; | 598 bool formNoValidate; |
571 | 599 |
572 String formTarget; | 600 String formTarget; |
573 | 601 |
574 final _NodeListJs labels; | 602 final _NodeListImpl labels; |
575 | 603 |
576 String name; | 604 String name; |
577 | 605 |
578 final String type; | 606 final String type; |
579 | 607 |
580 final String validationMessage; | 608 final String validationMessage; |
581 | 609 |
582 final _ValidityStateJs validity; | 610 final _ValidityStateImpl validity; |
583 | 611 |
584 String value; | 612 String value; |
585 | 613 |
586 final bool willValidate; | 614 final bool willValidate; |
587 | 615 |
588 bool checkValidity() native; | 616 bool checkValidity() native; |
589 | 617 |
590 void setCustomValidity(String error) native; | 618 void setCustomValidity(String error) native; |
591 } | 619 } |
592 | 620 |
593 class _CDATASectionJs extends _TextJs implements CDATASection native "*CDATASect
ion" { | 621 class _CDATASectionImpl extends _TextImpl implements CDATASection native "*CDATA
Section" { |
594 } | 622 } |
595 | 623 |
596 class _CSSCharsetRuleJs extends _CSSRuleJs implements CSSCharsetRule native "*CS
SCharsetRule" { | 624 class _CSSCharsetRuleImpl extends _CSSRuleImpl implements CSSCharsetRule native
"*CSSCharsetRule" { |
597 | 625 |
598 String encoding; | 626 String encoding; |
599 } | 627 } |
600 | 628 |
601 class _CSSFontFaceRuleJs extends _CSSRuleJs implements CSSFontFaceRule native "*
CSSFontFaceRule" { | 629 class _CSSFontFaceRuleImpl extends _CSSRuleImpl implements CSSFontFaceRule nativ
e "*CSSFontFaceRule" { |
602 | 630 |
603 final _CSSStyleDeclarationJs style; | 631 final _CSSStyleDeclarationImpl style; |
604 } | 632 } |
605 | 633 |
606 class _CSSImportRuleJs extends _CSSRuleJs implements CSSImportRule native "*CSSI
mportRule" { | 634 class _CSSImportRuleImpl extends _CSSRuleImpl implements CSSImportRule native "*
CSSImportRule" { |
607 | 635 |
608 final String href; | 636 final String href; |
609 | 637 |
610 final _MediaListJs media; | 638 final _MediaListImpl media; |
611 | 639 |
612 final _CSSStyleSheetJs styleSheet; | 640 final _CSSStyleSheetImpl styleSheet; |
613 } | 641 } |
614 | 642 |
615 class _CSSKeyframeRuleJs extends _CSSRuleJs implements CSSKeyframeRule native "*
WebKitCSSKeyframeRule" { | 643 class _CSSKeyframeRuleImpl extends _CSSRuleImpl implements CSSKeyframeRule nativ
e "*WebKitCSSKeyframeRule" { |
616 | 644 |
617 String keyText; | 645 String keyText; |
618 | 646 |
619 final _CSSStyleDeclarationJs style; | 647 final _CSSStyleDeclarationImpl style; |
620 } | 648 } |
621 | 649 |
622 class _CSSKeyframesRuleJs extends _CSSRuleJs implements CSSKeyframesRule native
"*WebKitCSSKeyframesRule" { | 650 class _CSSKeyframesRuleImpl extends _CSSRuleImpl implements CSSKeyframesRule nat
ive "*WebKitCSSKeyframesRule" { |
623 | 651 |
624 final _CSSRuleListJs cssRules; | 652 final _CSSRuleListImpl cssRules; |
625 | 653 |
626 String name; | 654 String name; |
627 | 655 |
628 void deleteRule(String key) native; | 656 void deleteRule(String key) native; |
629 | 657 |
630 _CSSKeyframeRuleJs findRule(String key) native; | 658 _CSSKeyframeRuleImpl findRule(String key) native; |
631 | 659 |
632 void insertRule(String rule) native; | 660 void insertRule(String rule) native; |
633 } | 661 } |
634 | 662 |
635 class _CSSMatrixJs implements CSSMatrix native "*WebKitCSSMatrix" { | 663 class _CSSMatrixImpl implements CSSMatrix native "*WebKitCSSMatrix" { |
636 | 664 |
637 num a; | 665 num a; |
638 | 666 |
639 num b; | 667 num b; |
640 | 668 |
641 num c; | 669 num c; |
642 | 670 |
643 num d; | 671 num d; |
644 | 672 |
645 num e; | 673 num e; |
(...skipping 25 matching lines...) Expand all Loading... |
671 num m34; | 699 num m34; |
672 | 700 |
673 num m41; | 701 num m41; |
674 | 702 |
675 num m42; | 703 num m42; |
676 | 704 |
677 num m43; | 705 num m43; |
678 | 706 |
679 num m44; | 707 num m44; |
680 | 708 |
681 _CSSMatrixJs inverse() native; | 709 _CSSMatrixImpl inverse() native; |
682 | 710 |
683 _CSSMatrixJs multiply(_CSSMatrixJs secondMatrix) native; | 711 _CSSMatrixImpl multiply(_CSSMatrixImpl secondMatrix) native; |
684 | 712 |
685 _CSSMatrixJs rotate(num rotX, num rotY, num rotZ) native; | 713 _CSSMatrixImpl rotate(num rotX, num rotY, num rotZ) native; |
686 | 714 |
687 _CSSMatrixJs rotateAxisAngle(num x, num y, num z, num angle) native; | 715 _CSSMatrixImpl rotateAxisAngle(num x, num y, num z, num angle) native; |
688 | 716 |
689 _CSSMatrixJs scale(num scaleX, num scaleY, num scaleZ) native; | 717 _CSSMatrixImpl scale(num scaleX, num scaleY, num scaleZ) native; |
690 | 718 |
691 void setMatrixValue(String string) native; | 719 void setMatrixValue(String string) native; |
692 | 720 |
693 _CSSMatrixJs skewX(num angle) native; | 721 _CSSMatrixImpl skewX(num angle) native; |
694 | 722 |
695 _CSSMatrixJs skewY(num angle) native; | 723 _CSSMatrixImpl skewY(num angle) native; |
696 | 724 |
697 String toString() native; | 725 String toString() native; |
698 | 726 |
699 _CSSMatrixJs translate(num x, num y, num z) native; | 727 _CSSMatrixImpl translate(num x, num y, num z) native; |
700 } | 728 } |
701 | 729 |
702 class _CSSMediaRuleJs extends _CSSRuleJs implements CSSMediaRule native "*CSSMed
iaRule" { | 730 class _CSSMediaRuleImpl extends _CSSRuleImpl implements CSSMediaRule native "*CS
SMediaRule" { |
703 | 731 |
704 final _CSSRuleListJs cssRules; | 732 final _CSSRuleListImpl cssRules; |
705 | 733 |
706 final _MediaListJs media; | 734 final _MediaListImpl media; |
707 | 735 |
708 void deleteRule(int index) native; | 736 void deleteRule(int index) native; |
709 | 737 |
710 int insertRule(String rule, int index) native; | 738 int insertRule(String rule, int index) native; |
711 } | 739 } |
712 | 740 |
713 class _CSSPageRuleJs extends _CSSRuleJs implements CSSPageRule native "*CSSPageR
ule" { | 741 class _CSSPageRuleImpl extends _CSSRuleImpl implements CSSPageRule native "*CSSP
ageRule" { |
714 | 742 |
715 String selectorText; | 743 String selectorText; |
716 | 744 |
717 final _CSSStyleDeclarationJs style; | 745 final _CSSStyleDeclarationImpl style; |
718 } | 746 } |
719 | 747 |
720 class _CSSPrimitiveValueJs extends _CSSValueJs implements CSSPrimitiveValue nati
ve "*CSSPrimitiveValue" { | 748 class _CSSPrimitiveValueImpl extends _CSSValueImpl implements CSSPrimitiveValue
native "*CSSPrimitiveValue" { |
721 | 749 |
722 static final int CSS_ATTR = 22; | 750 static final int CSS_ATTR = 22; |
723 | 751 |
724 static final int CSS_CM = 6; | 752 static final int CSS_CM = 6; |
725 | 753 |
726 static final int CSS_COUNTER = 23; | 754 static final int CSS_COUNTER = 23; |
727 | 755 |
728 static final int CSS_DEG = 11; | 756 static final int CSS_DEG = 11; |
729 | 757 |
730 static final int CSS_DIMENSION = 18; | 758 static final int CSS_DIMENSION = 18; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 static final int CSS_S = 15; | 794 static final int CSS_S = 15; |
767 | 795 |
768 static final int CSS_STRING = 19; | 796 static final int CSS_STRING = 19; |
769 | 797 |
770 static final int CSS_UNKNOWN = 0; | 798 static final int CSS_UNKNOWN = 0; |
771 | 799 |
772 static final int CSS_URI = 20; | 800 static final int CSS_URI = 20; |
773 | 801 |
774 final int primitiveType; | 802 final int primitiveType; |
775 | 803 |
776 _CounterJs getCounterValue() native; | 804 _CounterImpl getCounterValue() native; |
777 | 805 |
778 num getFloatValue(int unitType) native; | 806 num getFloatValue(int unitType) native; |
779 | 807 |
780 _RGBColorJs getRGBColorValue() native; | 808 _RGBColorImpl getRGBColorValue() native; |
781 | 809 |
782 _RectJs getRectValue() native; | 810 _RectImpl getRectValue() native; |
783 | 811 |
784 String getStringValue() native; | 812 String getStringValue() native; |
785 | 813 |
786 void setFloatValue(int unitType, num floatValue) native; | 814 void setFloatValue(int unitType, num floatValue) native; |
787 | 815 |
788 void setStringValue(int stringType, String stringValue) native; | 816 void setStringValue(int stringType, String stringValue) native; |
789 } | 817 } |
790 | 818 |
791 class _CSSRuleJs implements CSSRule native "*CSSRule" { | 819 class _CSSRuleImpl implements CSSRule native "*CSSRule" { |
792 | 820 |
793 static final int CHARSET_RULE = 2; | 821 static final int CHARSET_RULE = 2; |
794 | 822 |
795 static final int FONT_FACE_RULE = 5; | 823 static final int FONT_FACE_RULE = 5; |
796 | 824 |
797 static final int IMPORT_RULE = 3; | 825 static final int IMPORT_RULE = 3; |
798 | 826 |
799 static final int MEDIA_RULE = 4; | 827 static final int MEDIA_RULE = 4; |
800 | 828 |
801 static final int PAGE_RULE = 6; | 829 static final int PAGE_RULE = 6; |
802 | 830 |
803 static final int STYLE_RULE = 1; | 831 static final int STYLE_RULE = 1; |
804 | 832 |
805 static final int UNKNOWN_RULE = 0; | 833 static final int UNKNOWN_RULE = 0; |
806 | 834 |
807 static final int WEBKIT_KEYFRAMES_RULE = 7; | 835 static final int WEBKIT_KEYFRAMES_RULE = 7; |
808 | 836 |
809 static final int WEBKIT_KEYFRAME_RULE = 8; | 837 static final int WEBKIT_KEYFRAME_RULE = 8; |
810 | 838 |
811 static final int WEBKIT_REGION_RULE = 10; | 839 static final int WEBKIT_REGION_RULE = 10; |
812 | 840 |
813 String cssText; | 841 String cssText; |
814 | 842 |
815 final _CSSRuleJs parentRule; | 843 final _CSSRuleImpl parentRule; |
816 | 844 |
817 final _CSSStyleSheetJs parentStyleSheet; | 845 final _CSSStyleSheetImpl parentStyleSheet; |
818 | 846 |
819 final int type; | 847 final int type; |
820 } | 848 } |
821 | 849 |
822 class _CSSRuleListJs implements CSSRuleList native "*CSSRuleList" { | 850 class _CSSRuleListImpl implements CSSRuleList native "*CSSRuleList" { |
823 | 851 |
824 final int length; | 852 final int length; |
825 | 853 |
826 _CSSRuleJs item(int index) native; | 854 _CSSRuleImpl item(int index) native; |
827 } | 855 } |
828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
829 // for details. All rights reserved. Use of this source code is governed by a | 857 // for details. All rights reserved. Use of this source code is governed by a |
830 // BSD-style license that can be found in the LICENSE file. | 858 // BSD-style license that can be found in the LICENSE file. |
831 | 859 |
832 String _cachedBrowserPrefix; | 860 String _cachedBrowserPrefix; |
833 | 861 |
834 class _CSSStyleDeclarationJs implements CSSStyleDeclaration native "*CSSStyleDec
laration" { | 862 String get _browserPrefix() { |
| 863 if (_cachedBrowserPrefix === null) { |
| 864 if (_Device.isFirefox) { |
| 865 _cachedBrowserPrefix = '-moz-'; |
| 866 } else { |
| 867 _cachedBrowserPrefix = '-webkit-'; |
| 868 } |
| 869 // TODO(jacobr): support IE 9.0 and Opera as well. |
| 870 } |
| 871 return _cachedBrowserPrefix; |
| 872 } |
835 | 873 |
836 factory _CSSStyleDeclarationJs.css(String css) { | 874 class _CSSStyleDeclarationImpl implements CSSStyleDeclaration native "*CSSStyleD
eclaration" { |
837 var style = new Element.tag('div').style; | |
838 style.cssText = css; | |
839 return style; | |
840 } | |
841 | |
842 factory _CSSStyleDeclarationJs() { | |
843 return new _CSSStyleDeclarationJs.css(''); | |
844 } | |
845 | |
846 static String get _browserPrefix() { | |
847 if (_cachedBrowserPrefix === null) { | |
848 if (_Device.isFirefox) { | |
849 _cachedBrowserPrefix = '-moz-'; | |
850 } else { | |
851 _cachedBrowserPrefix = '-webkit-'; | |
852 } | |
853 // TODO(jacobr): support IE 9.0 and Opera as well. | |
854 } | |
855 return _cachedBrowserPrefix; | |
856 } | |
857 | 875 |
858 | 876 |
859 String cssText; | 877 String cssText; |
860 | 878 |
861 final int length; | 879 final int length; |
862 | 880 |
863 final _CSSRuleJs parentRule; | 881 final _CSSRuleImpl parentRule; |
864 | 882 |
865 _CSSValueJs getPropertyCSSValue(String propertyName) native; | 883 _CSSValueImpl getPropertyCSSValue(String propertyName) native; |
866 | 884 |
867 String getPropertyPriority(String propertyName) native; | 885 String getPropertyPriority(String propertyName) native; |
868 | 886 |
869 String getPropertyShorthand(String propertyName) native; | 887 String getPropertyShorthand(String propertyName) native; |
870 | 888 |
871 String getPropertyValue(String propertyName) native; | 889 String getPropertyValue(String propertyName) native; |
872 | 890 |
873 bool isPropertyImplicit(String propertyName) native; | 891 bool isPropertyImplicit(String propertyName) native; |
874 | 892 |
875 String item(int index) native; | 893 String item(int index) native; |
(...skipping 2761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3637 /** Gets the value of "zoom" */ | 3655 /** Gets the value of "zoom" */ |
3638 String get zoom() => | 3656 String get zoom() => |
3639 getPropertyValue('zoom'); | 3657 getPropertyValue('zoom'); |
3640 | 3658 |
3641 /** Sets the value of "zoom" */ | 3659 /** Sets the value of "zoom" */ |
3642 void set zoom(var value) { | 3660 void set zoom(var value) { |
3643 setProperty('zoom', value, ''); | 3661 setProperty('zoom', value, ''); |
3644 } | 3662 } |
3645 } | 3663 } |
3646 | 3664 |
3647 class _CSSStyleRuleJs extends _CSSRuleJs implements CSSStyleRule native "*CSSSty
leRule" { | 3665 class _CSSStyleRuleImpl extends _CSSRuleImpl implements CSSStyleRule native "*CS
SStyleRule" { |
3648 | 3666 |
3649 String selectorText; | 3667 String selectorText; |
3650 | 3668 |
3651 final _CSSStyleDeclarationJs style; | 3669 final _CSSStyleDeclarationImpl style; |
3652 } | 3670 } |
3653 | 3671 |
3654 class _CSSStyleSheetJs extends _StyleSheetJs implements CSSStyleSheet native "*C
SSStyleSheet" { | 3672 class _CSSStyleSheetImpl extends _StyleSheetImpl implements CSSStyleSheet native
"*CSSStyleSheet" { |
3655 | 3673 |
3656 final _CSSRuleListJs cssRules; | 3674 final _CSSRuleListImpl cssRules; |
3657 | 3675 |
3658 final _CSSRuleJs ownerRule; | 3676 final _CSSRuleImpl ownerRule; |
3659 | 3677 |
3660 final _CSSRuleListJs rules; | 3678 final _CSSRuleListImpl rules; |
3661 | 3679 |
3662 int addRule(String selector, String style, [int index = null]) native; | 3680 int addRule(String selector, String style, [int index = null]) native; |
3663 | 3681 |
3664 void deleteRule(int index) native; | 3682 void deleteRule(int index) native; |
3665 | 3683 |
3666 int insertRule(String rule, int index) native; | 3684 int insertRule(String rule, int index) native; |
3667 | 3685 |
3668 void removeRule(int index) native; | 3686 void removeRule(int index) native; |
3669 } | 3687 } |
3670 | 3688 |
3671 class _CSSTransformValueJs extends _CSSValueListJs implements CSSTransformValue
native "*WebKitCSSTransformValue" { | 3689 class _CSSTransformValueImpl extends _CSSValueListImpl implements CSSTransformVa
lue native "*WebKitCSSTransformValue" { |
3672 | 3690 |
3673 static final int CSS_MATRIX = 11; | 3691 static final int CSS_MATRIX = 11; |
3674 | 3692 |
3675 static final int CSS_MATRIX3D = 21; | 3693 static final int CSS_MATRIX3D = 21; |
3676 | 3694 |
3677 static final int CSS_PERSPECTIVE = 20; | 3695 static final int CSS_PERSPECTIVE = 20; |
3678 | 3696 |
3679 static final int CSS_ROTATE = 4; | 3697 static final int CSS_ROTATE = 4; |
3680 | 3698 |
3681 static final int CSS_ROTATE3D = 17; | 3699 static final int CSS_ROTATE3D = 17; |
(...skipping 26 matching lines...) Expand all Loading... |
3708 | 3726 |
3709 static final int CSS_TRANSLATEX = 2; | 3727 static final int CSS_TRANSLATEX = 2; |
3710 | 3728 |
3711 static final int CSS_TRANSLATEY = 3; | 3729 static final int CSS_TRANSLATEY = 3; |
3712 | 3730 |
3713 static final int CSS_TRANSLATEZ = 12; | 3731 static final int CSS_TRANSLATEZ = 12; |
3714 | 3732 |
3715 final int operationType; | 3733 final int operationType; |
3716 } | 3734 } |
3717 | 3735 |
3718 class _CSSUnknownRuleJs extends _CSSRuleJs implements CSSUnknownRule native "*CS
SUnknownRule" { | 3736 class _CSSUnknownRuleImpl extends _CSSRuleImpl implements CSSUnknownRule native
"*CSSUnknownRule" { |
3719 } | 3737 } |
3720 | 3738 |
3721 class _CSSValueJs implements CSSValue native "*CSSValue" { | 3739 class _CSSValueImpl implements CSSValue native "*CSSValue" { |
3722 | 3740 |
3723 static final int CSS_CUSTOM = 3; | 3741 static final int CSS_CUSTOM = 3; |
3724 | 3742 |
3725 static final int CSS_INHERIT = 0; | 3743 static final int CSS_INHERIT = 0; |
3726 | 3744 |
3727 static final int CSS_PRIMITIVE_VALUE = 1; | 3745 static final int CSS_PRIMITIVE_VALUE = 1; |
3728 | 3746 |
3729 static final int CSS_VALUE_LIST = 2; | 3747 static final int CSS_VALUE_LIST = 2; |
3730 | 3748 |
3731 String cssText; | 3749 String cssText; |
3732 | 3750 |
3733 final int cssValueType; | 3751 final int cssValueType; |
3734 } | 3752 } |
3735 | 3753 |
3736 class _CSSValueListJs extends _CSSValueJs implements CSSValueList native "*CSSVa
lueList" { | 3754 class _CSSValueListImpl extends _CSSValueImpl implements CSSValueList native "*C
SSValueList" { |
3737 | 3755 |
3738 final int length; | 3756 final int length; |
3739 | 3757 |
3740 _CSSValueJs item(int index) native; | 3758 _CSSValueImpl item(int index) native; |
3741 } | 3759 } |
3742 | 3760 |
3743 class _CanvasElementJs extends _ElementJs implements CanvasElement native "*HTML
CanvasElement" { | 3761 class _CanvasElementImpl extends _ElementImpl implements CanvasElement native "*
HTMLCanvasElement" { |
3744 | 3762 |
3745 int height; | 3763 int height; |
3746 | 3764 |
3747 int width; | 3765 int width; |
3748 | 3766 |
3749 Object getContext(String contextId) native; | 3767 Object getContext(String contextId) native; |
3750 | 3768 |
3751 String toDataURL(String type) native; | 3769 String toDataURL(String type) native; |
3752 } | 3770 } |
3753 | 3771 |
3754 class _CanvasGradientJs implements CanvasGradient native "*CanvasGradient" { | 3772 class _CanvasGradientImpl implements CanvasGradient native "*CanvasGradient" { |
3755 | 3773 |
3756 void addColorStop(num offset, String color) native; | 3774 void addColorStop(num offset, String color) native; |
3757 } | 3775 } |
3758 | 3776 |
3759 class _CanvasPatternJs implements CanvasPattern native "*CanvasPattern" { | 3777 class _CanvasPatternImpl implements CanvasPattern native "*CanvasPattern" { |
3760 } | 3778 } |
3761 | 3779 |
3762 class _CanvasPixelArrayJs implements CanvasPixelArray native "*CanvasPixelArray"
{ | 3780 class _CanvasPixelArrayImpl implements CanvasPixelArray native "*CanvasPixelArra
y" { |
3763 | 3781 |
3764 final int length; | 3782 final int length; |
3765 | 3783 |
3766 int operator[](int index) native "return this[index];"; | 3784 int operator[](int index) native "return this[index];"; |
3767 | 3785 |
3768 void operator[]=(int index, int value) native "this[index] = value"; | 3786 void operator[]=(int index, int value) native "this[index] = value"; |
3769 // -- start List<int> mixins. | 3787 // -- start List<int> mixins. |
3770 // int is the element type. | 3788 // int is the element type. |
3771 | 3789 |
3772 // From Iterable<int>: | 3790 // From Iterable<int>: |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3828 } | 3846 } |
3829 void insertRange(int start, int length, [int initialValue]) { | 3847 void insertRange(int start, int length, [int initialValue]) { |
3830 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 3848 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
3831 } | 3849 } |
3832 List<int> getRange(int start, int length) => | 3850 List<int> getRange(int start, int length) => |
3833 _Lists.getRange(this, start, length, <int>[]); | 3851 _Lists.getRange(this, start, length, <int>[]); |
3834 | 3852 |
3835 // -- end List<int> mixins. | 3853 // -- end List<int> mixins. |
3836 } | 3854 } |
3837 | 3855 |
3838 class _CanvasRenderingContextJs implements CanvasRenderingContext native "*Canva
sRenderingContext" { | 3856 class _CanvasRenderingContextImpl implements CanvasRenderingContext native "*Can
vasRenderingContext" { |
3839 | 3857 |
3840 final _CanvasElementJs canvas; | 3858 final _CanvasElementImpl canvas; |
3841 } | 3859 } |
3842 | 3860 |
3843 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C
anvasRenderingContext2D native "*CanvasRenderingContext2D" { | 3861 class _CanvasRenderingContext2DImpl extends _CanvasRenderingContextImpl implemen
ts CanvasRenderingContext2D native "*CanvasRenderingContext2D" { |
3844 | 3862 |
3845 Dynamic fillStyle; | 3863 Dynamic fillStyle; |
3846 | 3864 |
3847 String font; | 3865 String font; |
3848 | 3866 |
3849 num globalAlpha; | 3867 num globalAlpha; |
3850 | 3868 |
3851 String globalCompositeOperation; | 3869 String globalCompositeOperation; |
3852 | 3870 |
3853 String lineCap; | 3871 String lineCap; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3885 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | 3903 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; |
3886 | 3904 |
3887 void clearRect(num x, num y, num width, num height) native; | 3905 void clearRect(num x, num y, num width, num height) native; |
3888 | 3906 |
3889 void clearShadow() native; | 3907 void clearShadow() native; |
3890 | 3908 |
3891 void clip() native; | 3909 void clip() native; |
3892 | 3910 |
3893 void closePath() native; | 3911 void closePath() native; |
3894 | 3912 |
3895 _ImageDataJs createImageData(var imagedata_OR_sw, [num sh = null]) native; | 3913 _ImageDataImpl createImageData(var imagedata_OR_sw, [num sh = null]) native; |
3896 | 3914 |
3897 _CanvasGradientJs createLinearGradient(num x0, num y0, num x1, num y1) native; | 3915 _CanvasGradientImpl createLinearGradient(num x0, num y0, num x1, num y1) nativ
e; |
3898 | 3916 |
3899 _CanvasPatternJs createPattern(var canvas_OR_image, String repetitionType) nat
ive; | 3917 _CanvasPatternImpl createPattern(var canvas_OR_image, String repetitionType) n
ative; |
3900 | 3918 |
3901 _CanvasGradientJs createRadialGradient(num x0, num y0, num r0, num x1, num y1,
num r1) native; | 3919 _CanvasGradientImpl createRadialGradient(num x0, num y0, num r0, num x1, num y
1, num r1) native; |
3902 | 3920 |
3903 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw
_OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw
= null, num dh = null]) native; | 3921 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw
_OR_width = null, num height_OR_sh = null, num dx = null, num dy = null, num dw
= null, num dh = null]) native; |
3904 | 3922 |
3905 void drawImageFromRect(_ImageElementJs image, [num sx = null, num sy = null, n
um sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num dh
= null, String compositeOperation = null]) native; | 3923 void drawImageFromRect(_ImageElementImpl image, [num sx = null, num sy = null,
num sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num
dh = null, String compositeOperation = null]) native; |
3906 | 3924 |
3907 void fill() native; | 3925 void fill() native; |
3908 | 3926 |
3909 void fillRect(num x, num y, num width, num height) native; | 3927 void fillRect(num x, num y, num width, num height) native; |
3910 | 3928 |
3911 void fillText(String text, num x, num y, [num maxWidth = null]) native; | 3929 void fillText(String text, num x, num y, [num maxWidth = null]) native; |
3912 | 3930 |
3913 _ImageDataJs getImageData(num sx, num sy, num sw, num sh) native; | 3931 _ImageDataImpl getImageData(num sx, num sy, num sw, num sh) native; |
3914 | 3932 |
3915 bool isPointInPath(num x, num y) native; | 3933 bool isPointInPath(num x, num y) native; |
3916 | 3934 |
3917 void lineTo(num x, num y) native; | 3935 void lineTo(num x, num y) native; |
3918 | 3936 |
3919 _TextMetricsJs measureText(String text) native; | 3937 _TextMetricsImpl measureText(String text) native; |
3920 | 3938 |
3921 void moveTo(num x, num y) native; | 3939 void moveTo(num x, num y) native; |
3922 | 3940 |
3923 void putImageData(_ImageDataJs imagedata, num dx, num dy, [num dirtyX = null,
num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native; | 3941 void putImageData(_ImageDataImpl imagedata, num dx, num dy, [num dirtyX = null
, num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native; |
3924 | 3942 |
3925 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | 3943 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
3926 | 3944 |
3927 void rect(num x, num y, num width, num height) native; | 3945 void rect(num x, num y, num width, num height) native; |
3928 | 3946 |
3929 void restore() native; | 3947 void restore() native; |
3930 | 3948 |
3931 void rotate(num angle) native; | 3949 void rotate(num angle) native; |
3932 | 3950 |
3933 void save() native; | 3951 void save() native; |
(...skipping 24 matching lines...) Expand all Loading... |
3958 | 3976 |
3959 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; | 3977 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; |
3960 | 3978 |
3961 void strokeText(String text, num x, num y, [num maxWidth = null]) native; | 3979 void strokeText(String text, num x, num y, [num maxWidth = null]) native; |
3962 | 3980 |
3963 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 3981 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
3964 | 3982 |
3965 void translate(num tx, num ty) native; | 3983 void translate(num tx, num ty) native; |
3966 } | 3984 } |
3967 | 3985 |
3968 class _CharacterDataJs extends _NodeJs implements CharacterData native "*Charact
erData" { | 3986 class _CharacterDataImpl extends _NodeImpl implements CharacterData native "*Cha
racterData" { |
3969 | 3987 |
3970 String data; | 3988 String data; |
3971 | 3989 |
3972 final int length; | 3990 final int length; |
3973 | 3991 |
3974 void appendData(String data) native; | 3992 void appendData(String data) native; |
3975 | 3993 |
3976 void deleteData(int offset, int length) native; | 3994 void deleteData(int offset, int length) native; |
3977 | 3995 |
3978 void insertData(int offset, String data) native; | 3996 void insertData(int offset, String data) native; |
3979 | 3997 |
3980 void replaceData(int offset, int length, String data) native; | 3998 void replaceData(int offset, int length, String data) native; |
3981 | 3999 |
3982 String substringData(int offset, int length) native; | 4000 String substringData(int offset, int length) native; |
3983 } | 4001 } |
3984 | 4002 |
3985 class _ClientRectJs implements ClientRect native "*ClientRect" { | 4003 class _ClientRectImpl implements ClientRect native "*ClientRect" { |
3986 | 4004 |
3987 final num bottom; | 4005 final num bottom; |
3988 | 4006 |
3989 final num height; | 4007 final num height; |
3990 | 4008 |
3991 final num left; | 4009 final num left; |
3992 | 4010 |
3993 final num right; | 4011 final num right; |
3994 | 4012 |
3995 final num top; | 4013 final num top; |
3996 | 4014 |
3997 final num width; | 4015 final num width; |
3998 } | 4016 } |
3999 | 4017 |
4000 class _ClientRectListJs implements ClientRectList native "*ClientRectList" { | 4018 class _ClientRectListImpl implements ClientRectList native "*ClientRectList" { |
4001 | 4019 |
4002 final int length; | 4020 final int length; |
4003 | 4021 |
4004 _ClientRectJs item(int index) native; | 4022 _ClientRectImpl item(int index) native; |
4005 } | 4023 } |
4006 | 4024 |
4007 class _ClipboardJs implements Clipboard native "*Clipboard" { | 4025 class _ClipboardImpl implements Clipboard native "*Clipboard" { |
4008 | 4026 |
4009 String dropEffect; | 4027 String dropEffect; |
4010 | 4028 |
4011 String effectAllowed; | 4029 String effectAllowed; |
4012 | 4030 |
4013 final _FileListJs files; | 4031 final _FileListImpl files; |
4014 | 4032 |
4015 final _DataTransferItemListJs items; | 4033 final _DataTransferItemListImpl items; |
4016 | 4034 |
4017 final List types; | 4035 final List types; |
4018 | 4036 |
4019 void clearData([String type = null]) native; | 4037 void clearData([String type = null]) native; |
4020 | 4038 |
4021 void getData(String type) native; | 4039 void getData(String type) native; |
4022 | 4040 |
4023 bool setData(String type, String data) native; | 4041 bool setData(String type, String data) native; |
4024 | 4042 |
4025 void setDragImage(_ImageElementJs image, int x, int y) native; | 4043 void setDragImage(_ImageElementImpl image, int x, int y) native; |
4026 } | 4044 } |
4027 | 4045 |
4028 class _CloseEventJs extends _EventJs implements CloseEvent native "*CloseEvent"
{ | 4046 class _CloseEventImpl extends _EventImpl implements CloseEvent native "*CloseEve
nt" { |
4029 | 4047 |
4030 final int code; | 4048 final int code; |
4031 | 4049 |
4032 final String reason; | 4050 final String reason; |
4033 | 4051 |
4034 final bool wasClean; | 4052 final bool wasClean; |
4035 } | 4053 } |
4036 | 4054 |
4037 class _CommentJs extends _CharacterDataJs implements Comment native "*Comment" { | 4055 class _CommentImpl extends _CharacterDataImpl implements Comment native "*Commen
t" { |
4038 } | 4056 } |
4039 | 4057 |
4040 class _CompositionEventJs extends _UIEventJs implements CompositionEvent native
"*CompositionEvent" { | 4058 class _CompositionEventImpl extends _UIEventImpl implements CompositionEvent nat
ive "*CompositionEvent" { |
4041 | 4059 |
4042 final String data; | 4060 final String data; |
4043 | 4061 |
4044 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, _WindowJs viewArg, String dataArg) native; | 4062 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, _WindowImpl viewArg, String dataArg) native; |
4045 } | 4063 } |
4046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4047 // for details. All rights reserved. Use of this source code is governed by a | 4065 // for details. All rights reserved. Use of this source code is governed by a |
4048 // BSD-style license that can be found in the LICENSE file. | 4066 // BSD-style license that can be found in the LICENSE file. |
4049 | 4067 |
4050 class _ConsoleJs | 4068 class _ConsoleImpl |
4051 // Console is sometimes a singleton bag-of-properties without a prototype. | 4069 // Console is sometimes a singleton bag-of-properties without a prototype. |
4052 implements Console | 4070 implements Console |
4053 native "=(typeof console == 'undefined' ? {} : console)" { | 4071 native "=(typeof console == 'undefined' ? {} : console)" { |
4054 | 4072 |
4055 final _MemoryInfoJs memory; | 4073 final _MemoryInfoImpl memory; |
4056 | 4074 |
4057 final List profiles; | 4075 final List profiles; |
4058 | 4076 |
4059 void assertCondition(bool condition, Object arg) native; | 4077 void assertCondition(bool condition, Object arg) native; |
4060 | 4078 |
4061 void count() native; | 4079 void count() native; |
4062 | 4080 |
4063 void debug(Object arg) native; | 4081 void debug(Object arg) native; |
4064 | 4082 |
4065 void dir() native; | 4083 void dir() native; |
(...skipping 23 matching lines...) Expand all Loading... |
4089 void timeEnd(String title, Object arg) native; | 4107 void timeEnd(String title, Object arg) native; |
4090 | 4108 |
4091 void timeStamp(Object arg) native; | 4109 void timeStamp(Object arg) native; |
4092 | 4110 |
4093 void trace(Object arg) native; | 4111 void trace(Object arg) native; |
4094 | 4112 |
4095 void warn(Object arg) native; | 4113 void warn(Object arg) native; |
4096 | 4114 |
4097 } | 4115 } |
4098 | 4116 |
4099 class _ContentElementJs extends _ElementJs implements ContentElement native "*HT
MLContentElement" { | 4117 class _ContentElementImpl extends _ElementImpl implements ContentElement native
"*HTMLContentElement" { |
4100 | 4118 |
4101 String select; | 4119 String select; |
4102 } | 4120 } |
4103 | 4121 |
4104 class _ConvolverNodeJs extends _AudioNodeJs implements ConvolverNode native "*Co
nvolverNode" { | 4122 class _ConvolverNodeImpl extends _AudioNodeImpl implements ConvolverNode native
"*ConvolverNode" { |
4105 | 4123 |
4106 _AudioBufferJs buffer; | 4124 _AudioBufferImpl buffer; |
4107 | 4125 |
4108 bool normalize; | 4126 bool normalize; |
4109 } | 4127 } |
4110 | 4128 |
4111 class _CoordinatesJs implements Coordinates native "*Coordinates" { | 4129 class _CoordinatesImpl implements Coordinates native "*Coordinates" { |
4112 | 4130 |
4113 final num accuracy; | 4131 final num accuracy; |
4114 | 4132 |
4115 final num altitude; | 4133 final num altitude; |
4116 | 4134 |
4117 final num altitudeAccuracy; | 4135 final num altitudeAccuracy; |
4118 | 4136 |
4119 final num heading; | 4137 final num heading; |
4120 | 4138 |
4121 final num latitude; | 4139 final num latitude; |
4122 | 4140 |
4123 final num longitude; | 4141 final num longitude; |
4124 | 4142 |
4125 final num speed; | 4143 final num speed; |
4126 } | 4144 } |
4127 | 4145 |
4128 class _CounterJs implements Counter native "*Counter" { | 4146 class _CounterImpl implements Counter native "*Counter" { |
4129 | 4147 |
4130 final String identifier; | 4148 final String identifier; |
4131 | 4149 |
4132 final String listStyle; | 4150 final String listStyle; |
4133 | 4151 |
4134 final String separator; | 4152 final String separator; |
4135 } | 4153 } |
4136 | 4154 |
4137 class _CryptoJs implements Crypto native "*Crypto" { | 4155 class _CryptoImpl implements Crypto native "*Crypto" { |
4138 | 4156 |
4139 void getRandomValues(_ArrayBufferViewJs array) native; | 4157 void getRandomValues(_ArrayBufferViewImpl array) native; |
4140 } | 4158 } |
4141 | 4159 |
4142 class _CustomEventJs extends _EventJs implements CustomEvent native "*CustomEven
t" { | 4160 class _CustomEventImpl extends _EventImpl implements CustomEvent native "*Custom
Event" { |
4143 | 4161 |
4144 final Object detail; | 4162 final Object detail; |
4145 | 4163 |
4146 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob
ject detailArg) native; | 4164 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob
ject detailArg) native; |
4147 } | 4165 } |
4148 | 4166 |
4149 class _DListElementJs extends _ElementJs implements DListElement native "*HTMLDL
istElement" { | 4167 class _DListElementImpl extends _ElementImpl implements DListElement native "*HT
MLDListElement" { |
4150 | 4168 |
4151 bool compact; | 4169 bool compact; |
4152 } | 4170 } |
4153 | 4171 |
4154 class _DOMApplicationCacheJs implements DOMApplicationCache native "*DOMApplicat
ionCache" { | 4172 class _DOMApplicationCacheImpl extends _EventTargetImpl implements DOMApplicatio
nCache native "*DOMApplicationCache" { |
4155 | 4173 |
4156 static final int CHECKING = 2; | 4174 static final int CHECKING = 2; |
4157 | 4175 |
4158 static final int DOWNLOADING = 3; | 4176 static final int DOWNLOADING = 3; |
4159 | 4177 |
4160 static final int IDLE = 1; | 4178 static final int IDLE = 1; |
4161 | 4179 |
4162 static final int OBSOLETE = 5; | 4180 static final int OBSOLETE = 5; |
4163 | 4181 |
4164 static final int UNCACHED = 0; | 4182 static final int UNCACHED = 0; |
4165 | 4183 |
4166 static final int UPDATEREADY = 4; | 4184 static final int UPDATEREADY = 4; |
4167 | 4185 |
4168 final int status; | 4186 final int status; |
4169 | 4187 |
4170 _DOMApplicationCacheEventsImpl get on() => | 4188 _DOMApplicationCacheEventsImpl get on() => |
4171 new _DOMApplicationCacheEventsImpl(this); | 4189 new _DOMApplicationCacheEventsImpl(this); |
4172 | 4190 |
4173 void abort() native; | 4191 void abort() native; |
4174 | 4192 |
4175 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 4193 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
4176 | 4194 |
4177 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | 4195 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
4178 | 4196 |
4179 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 4197 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
4180 | 4198 |
4181 void swapCache() native; | 4199 void swapCache() native; |
4182 | 4200 |
4183 void update() native; | 4201 void update() native; |
4184 } | 4202 } |
4185 | 4203 |
4186 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati
onCacheEvents { | 4204 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati
onCacheEvents { |
4187 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr); | 4205 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr); |
4188 | 4206 |
4189 EventListenerList get cached() => _get('cached'); | 4207 EventListenerList get cached() => _get('cached'); |
4190 | 4208 |
4191 EventListenerList get checking() => _get('checking'); | 4209 EventListenerList get checking() => _get('checking'); |
4192 | 4210 |
4193 EventListenerList get downloading() => _get('downloading'); | 4211 EventListenerList get downloading() => _get('downloading'); |
4194 | 4212 |
4195 EventListenerList get error() => _get('error'); | 4213 EventListenerList get error() => _get('error'); |
4196 | 4214 |
4197 EventListenerList get noUpdate() => _get('noupdate'); | 4215 EventListenerList get noUpdate() => _get('noupdate'); |
4198 | 4216 |
4199 EventListenerList get obsolete() => _get('obsolete'); | 4217 EventListenerList get obsolete() => _get('obsolete'); |
4200 | 4218 |
4201 EventListenerList get progress() => _get('progress'); | 4219 EventListenerList get progress() => _get('progress'); |
4202 | 4220 |
4203 EventListenerList get updateReady() => _get('updateready'); | 4221 EventListenerList get updateReady() => _get('updateready'); |
4204 } | 4222 } |
4205 | 4223 |
4206 class _DOMExceptionJs implements DOMException native "*DOMException" { | 4224 class _DOMExceptionImpl implements DOMException native "*DOMException" { |
4207 | 4225 |
4208 static final int ABORT_ERR = 20; | 4226 static final int ABORT_ERR = 20; |
4209 | 4227 |
4210 static final int DATA_CLONE_ERR = 25; | 4228 static final int DATA_CLONE_ERR = 25; |
4211 | 4229 |
4212 static final int DOMSTRING_SIZE_ERR = 2; | 4230 static final int DOMSTRING_SIZE_ERR = 2; |
4213 | 4231 |
4214 static final int HIERARCHY_REQUEST_ERR = 3; | 4232 static final int HIERARCHY_REQUEST_ERR = 3; |
4215 | 4233 |
4216 static final int INDEX_SIZE_ERR = 1; | 4234 static final int INDEX_SIZE_ERR = 1; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4257 | 4275 |
4258 final int code; | 4276 final int code; |
4259 | 4277 |
4260 final String message; | 4278 final String message; |
4261 | 4279 |
4262 final String name; | 4280 final String name; |
4263 | 4281 |
4264 String toString() native; | 4282 String toString() native; |
4265 } | 4283 } |
4266 | 4284 |
4267 class _DOMFileSystemJs implements DOMFileSystem native "*DOMFileSystem" { | 4285 class _DOMFileSystemImpl implements DOMFileSystem native "*DOMFileSystem" { |
4268 | 4286 |
4269 final String name; | 4287 final String name; |
4270 | 4288 |
4271 final _DirectoryEntryJs root; | 4289 final _DirectoryEntryImpl root; |
4272 } | 4290 } |
4273 | 4291 |
4274 class _DOMFileSystemSyncJs implements DOMFileSystemSync native "*DOMFileSystemSy
nc" { | 4292 class _DOMFileSystemSyncImpl implements DOMFileSystemSync native "*DOMFileSystem
Sync" { |
4275 | 4293 |
4276 final String name; | 4294 final String name; |
4277 | 4295 |
4278 final _DirectoryEntrySyncJs root; | 4296 final _DirectoryEntrySyncImpl root; |
4279 } | 4297 } |
4280 | 4298 |
4281 class _DOMFormDataJs implements DOMFormData native "*DOMFormData" { | 4299 class _DOMFormDataImpl implements DOMFormData native "*DOMFormData" { |
4282 | 4300 |
4283 void append(String name, String value, String filename) native; | 4301 void append(String name, String value, String filename) native; |
4284 } | 4302 } |
4285 | 4303 |
4286 class _DOMImplementationJs implements DOMImplementation native "*DOMImplementati
on" { | 4304 class _DOMImplementationImpl implements DOMImplementation native "*DOMImplementa
tion" { |
4287 | 4305 |
4288 _CSSStyleSheetJs createCSSStyleSheet(String title, String media) native; | 4306 _CSSStyleSheetImpl createCSSStyleSheet(String title, String media) native; |
4289 | 4307 |
4290 _DocumentJs createDocument(String namespaceURI, String qualifiedName, _Documen
tTypeJs doctype) native; | 4308 _DocumentImpl createDocument(String namespaceURI, String qualifiedName, _Docum
entTypeImpl doctype) => _FixHtmlDocumentReference(_createDocument(namespaceURI,
qualifiedName, doctype)); |
4291 | 4309 |
4292 _DocumentTypeJs createDocumentType(String qualifiedName, String publicId, Stri
ng systemId) native; | 4310 _EventTargetImpl _createDocument(String namespaceURI, String qualifiedName, _D
ocumentTypeImpl doctype) native "return this.createDocument(namespaceURI, qualif
iedName, doctype);"; |
4293 | 4311 |
4294 _DocumentJs createHTMLDocument(String title) native; | 4312 _DocumentTypeImpl createDocumentType(String qualifiedName, String publicId, St
ring systemId) native; |
| 4313 |
| 4314 _DocumentImpl createHTMLDocument(String title) => _FixHtmlDocumentReference(_c
reateHTMLDocument(title)); |
| 4315 |
| 4316 _EventTargetImpl _createHTMLDocument(String title) native "return this.createH
TMLDocument(title);"; |
4295 | 4317 |
4296 bool hasFeature(String feature, String version) native; | 4318 bool hasFeature(String feature, String version) native; |
4297 } | 4319 } |
4298 | 4320 |
4299 class _DOMMimeTypeJs implements DOMMimeType native "*DOMMimeType" { | 4321 class _DOMMimeTypeImpl implements DOMMimeType native "*DOMMimeType" { |
4300 | 4322 |
4301 final String description; | 4323 final String description; |
4302 | 4324 |
4303 final _DOMPluginJs enabledPlugin; | 4325 final _DOMPluginImpl enabledPlugin; |
4304 | 4326 |
4305 final String suffixes; | 4327 final String suffixes; |
4306 | 4328 |
4307 final String type; | 4329 final String type; |
4308 } | 4330 } |
4309 | 4331 |
4310 class _DOMMimeTypeArrayJs implements DOMMimeTypeArray native "*DOMMimeTypeArray"
{ | 4332 class _DOMMimeTypeArrayImpl implements DOMMimeTypeArray native "*DOMMimeTypeArra
y" { |
4311 | 4333 |
4312 final int length; | 4334 final int length; |
4313 | 4335 |
4314 _DOMMimeTypeJs item(int index) native; | 4336 _DOMMimeTypeImpl item(int index) native; |
4315 | 4337 |
4316 _DOMMimeTypeJs namedItem(String name) native; | 4338 _DOMMimeTypeImpl namedItem(String name) native; |
4317 } | 4339 } |
4318 | 4340 |
4319 class _DOMParserJs implements DOMParser native "*DOMParser" { | 4341 class _DOMParserImpl implements DOMParser native "*DOMParser" { |
4320 | 4342 |
4321 _DocumentJs parseFromString(String str, String contentType) native; | 4343 _DocumentImpl parseFromString(String str, String contentType) => _FixHtmlDocum
entReference(_parseFromString(str, contentType)); |
| 4344 |
| 4345 _EventTargetImpl _parseFromString(String str, String contentType) native "retu
rn this.parseFromString(str, contentType);"; |
4322 } | 4346 } |
4323 | 4347 |
4324 class _DOMPluginJs implements DOMPlugin native "*DOMPlugin" { | 4348 class _DOMPluginImpl implements DOMPlugin native "*DOMPlugin" { |
4325 | 4349 |
4326 final String description; | 4350 final String description; |
4327 | 4351 |
4328 final String filename; | 4352 final String filename; |
4329 | 4353 |
4330 final int length; | 4354 final int length; |
4331 | 4355 |
4332 final String name; | 4356 final String name; |
4333 | 4357 |
4334 _DOMMimeTypeJs item(int index) native; | 4358 _DOMMimeTypeImpl item(int index) native; |
4335 | 4359 |
4336 _DOMMimeTypeJs namedItem(String name) native; | 4360 _DOMMimeTypeImpl namedItem(String name) native; |
4337 } | 4361 } |
4338 | 4362 |
4339 class _DOMPluginArrayJs implements DOMPluginArray native "*DOMPluginArray" { | 4363 class _DOMPluginArrayImpl implements DOMPluginArray native "*DOMPluginArray" { |
4340 | 4364 |
4341 final int length; | 4365 final int length; |
4342 | 4366 |
4343 _DOMPluginJs item(int index) native; | 4367 _DOMPluginImpl item(int index) native; |
4344 | 4368 |
4345 _DOMPluginJs namedItem(String name) native; | 4369 _DOMPluginImpl namedItem(String name) native; |
4346 | 4370 |
4347 void refresh(bool reload) native; | 4371 void refresh(bool reload) native; |
4348 } | 4372 } |
4349 | 4373 |
4350 class _DOMSelectionJs implements DOMSelection native "*DOMSelection" { | 4374 class _DOMSelectionImpl implements DOMSelection native "*DOMSelection" { |
4351 | 4375 |
4352 final _NodeJs anchorNode; | 4376 final _NodeImpl anchorNode; |
4353 | 4377 |
4354 final int anchorOffset; | 4378 final int anchorOffset; |
4355 | 4379 |
4356 final _NodeJs baseNode; | 4380 final _NodeImpl baseNode; |
4357 | 4381 |
4358 final int baseOffset; | 4382 final int baseOffset; |
4359 | 4383 |
4360 final _NodeJs extentNode; | 4384 final _NodeImpl extentNode; |
4361 | 4385 |
4362 final int extentOffset; | 4386 final int extentOffset; |
4363 | 4387 |
4364 final _NodeJs focusNode; | 4388 final _NodeImpl focusNode; |
4365 | 4389 |
4366 final int focusOffset; | 4390 final int focusOffset; |
4367 | 4391 |
4368 final bool isCollapsed; | 4392 final bool isCollapsed; |
4369 | 4393 |
4370 final int rangeCount; | 4394 final int rangeCount; |
4371 | 4395 |
4372 final String type; | 4396 final String type; |
4373 | 4397 |
4374 void addRange(_RangeJs range) native; | 4398 void addRange(_RangeImpl range) native; |
4375 | 4399 |
4376 void collapse(_NodeJs node, int index) native; | 4400 void collapse(_NodeImpl node, int index) native; |
4377 | 4401 |
4378 void collapseToEnd() native; | 4402 void collapseToEnd() native; |
4379 | 4403 |
4380 void collapseToStart() native; | 4404 void collapseToStart() native; |
4381 | 4405 |
4382 bool containsNode(_NodeJs node, bool allowPartial) native; | 4406 bool containsNode(_NodeImpl node, bool allowPartial) native; |
4383 | 4407 |
4384 void deleteFromDocument() native; | 4408 void deleteFromDocument() native; |
4385 | 4409 |
4386 void empty() native; | 4410 void empty() native; |
4387 | 4411 |
4388 void extend(_NodeJs node, int offset) native; | 4412 void extend(_NodeImpl node, int offset) native; |
4389 | 4413 |
4390 _RangeJs getRangeAt(int index) native; | 4414 _RangeImpl getRangeAt(int index) native; |
4391 | 4415 |
4392 void modify(String alter, String direction, String granularity) native; | 4416 void modify(String alter, String direction, String granularity) native; |
4393 | 4417 |
4394 void removeAllRanges() native; | 4418 void removeAllRanges() native; |
4395 | 4419 |
4396 void selectAllChildren(_NodeJs node) native; | 4420 void selectAllChildren(_NodeImpl node) native; |
4397 | 4421 |
4398 void setBaseAndExtent(_NodeJs baseNode, int baseOffset, _NodeJs extentNode, in
t extentOffset) native; | 4422 void setBaseAndExtent(_NodeImpl baseNode, int baseOffset, _NodeImpl extentNode
, int extentOffset) native; |
4399 | 4423 |
4400 void setPosition(_NodeJs node, int offset) native; | 4424 void setPosition(_NodeImpl node, int offset) native; |
4401 | 4425 |
4402 String toString() native; | 4426 String toString() native; |
4403 } | 4427 } |
4404 | 4428 |
4405 class _DOMSettableTokenListJs extends _DOMTokenListJs implements DOMSettableToke
nList native "*DOMSettableTokenList" { | 4429 class _DOMSettableTokenListImpl extends _DOMTokenListImpl implements DOMSettable
TokenList native "*DOMSettableTokenList" { |
4406 | 4430 |
4407 String value; | 4431 String value; |
4408 } | 4432 } |
4409 | 4433 |
4410 class _DOMTokenListJs implements DOMTokenList native "*DOMTokenList" { | 4434 class _DOMTokenListImpl implements DOMTokenList native "*DOMTokenList" { |
4411 | 4435 |
4412 final int length; | 4436 final int length; |
4413 | 4437 |
4414 void add(String token) native; | 4438 void add(String token) native; |
4415 | 4439 |
4416 bool contains(String token) native; | 4440 bool contains(String token) native; |
4417 | 4441 |
4418 String item(int index) native; | 4442 String item(int index) native; |
4419 | 4443 |
4420 void remove(String token) native; | 4444 void remove(String token) native; |
4421 | 4445 |
4422 String toString() native; | 4446 String toString() native; |
4423 | 4447 |
4424 bool toggle(String token) native; | 4448 bool toggle(String token) native; |
4425 } | 4449 } |
4426 | 4450 |
4427 class _DOMURLJs implements DOMURL native "*DOMURL" { | 4451 class _DOMURLImpl implements DOMURL native "*DOMURL" { |
4428 } | 4452 } |
4429 | 4453 |
4430 class _DataTransferItemJs implements DataTransferItem native "*DataTransferItem"
{ | 4454 class _DataTransferItemImpl implements DataTransferItem native "*DataTransferIte
m" { |
4431 | 4455 |
4432 final String kind; | 4456 final String kind; |
4433 | 4457 |
4434 final String type; | 4458 final String type; |
4435 | 4459 |
4436 _BlobJs getAsFile() native; | 4460 _BlobImpl getAsFile() native; |
4437 | 4461 |
4438 void getAsString(StringCallback callback) native; | 4462 void getAsString(StringCallback callback) native; |
4439 } | 4463 } |
4440 | 4464 |
4441 class _DataTransferItemListJs implements DataTransferItemList native "*DataTrans
ferItemList" { | 4465 class _DataTransferItemListImpl implements DataTransferItemList native "*DataTra
nsferItemList" { |
4442 | 4466 |
4443 final int length; | 4467 final int length; |
4444 | 4468 |
4445 void add(var data_OR_file, [String type = null]) native; | 4469 void add(var data_OR_file, [String type = null]) native; |
4446 | 4470 |
4447 void clear() native; | 4471 void clear() native; |
4448 | 4472 |
4449 _DataTransferItemJs item(int index) native; | 4473 _DataTransferItemImpl item(int index) native; |
4450 } | 4474 } |
4451 | 4475 |
4452 class _DataViewJs extends _ArrayBufferViewJs implements DataView native "*DataVi
ew" { | 4476 class _DataViewImpl extends _ArrayBufferViewImpl implements DataView native "*Da
taView" { |
4453 | 4477 |
4454 num getFloat32(int byteOffset, [bool littleEndian = null]) native; | 4478 num getFloat32(int byteOffset, [bool littleEndian = null]) native; |
4455 | 4479 |
4456 num getFloat64(int byteOffset, [bool littleEndian = null]) native; | 4480 num getFloat64(int byteOffset, [bool littleEndian = null]) native; |
4457 | 4481 |
4458 int getInt16(int byteOffset, [bool littleEndian = null]) native; | 4482 int getInt16(int byteOffset, [bool littleEndian = null]) native; |
4459 | 4483 |
4460 int getInt32(int byteOffset, [bool littleEndian = null]) native; | 4484 int getInt32(int byteOffset, [bool littleEndian = null]) native; |
4461 | 4485 |
4462 Object getInt8() native; | 4486 Object getInt8() native; |
(...skipping 14 matching lines...) Expand all Loading... |
4477 | 4501 |
4478 void setInt8() native; | 4502 void setInt8() native; |
4479 | 4503 |
4480 void setUint16(int byteOffset, int value, [bool littleEndian = null]) native; | 4504 void setUint16(int byteOffset, int value, [bool littleEndian = null]) native; |
4481 | 4505 |
4482 void setUint32(int byteOffset, int value, [bool littleEndian = null]) native; | 4506 void setUint32(int byteOffset, int value, [bool littleEndian = null]) native; |
4483 | 4507 |
4484 void setUint8() native; | 4508 void setUint8() native; |
4485 } | 4509 } |
4486 | 4510 |
4487 class _DatabaseJs implements Database native "*Database" { | 4511 class _DatabaseImpl implements Database native "*Database" { |
4488 | 4512 |
4489 final String version; | 4513 final String version; |
4490 | 4514 |
4491 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba
ck successCallback = null]) native; | 4515 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba
ck successCallback = null]) native; |
4492 | 4516 |
4493 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback = null, VoidCallback successCallback = null]) native; | 4517 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback = null, VoidCallback successCallback = null]) native; |
4494 | 4518 |
4495 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback = null, VoidCallback successCallback = null]) native; | 4519 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback = null, VoidCallback successCallback = null]) native; |
4496 } | 4520 } |
4497 | 4521 |
4498 class _DatabaseSyncJs implements DatabaseSync native "*DatabaseSync" { | 4522 class _DatabaseSyncImpl implements DatabaseSync native "*DatabaseSync" { |
4499 | 4523 |
4500 final String lastErrorMessage; | 4524 final String lastErrorMessage; |
4501 | 4525 |
4502 final String version; | 4526 final String version; |
4503 | 4527 |
4504 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa
llback callback = null]) native; | 4528 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa
llback callback = null]) native; |
4505 | 4529 |
4506 void readTransaction(SQLTransactionSyncCallback callback) native; | 4530 void readTransaction(SQLTransactionSyncCallback callback) native; |
4507 | 4531 |
4508 void transaction(SQLTransactionSyncCallback callback) native; | 4532 void transaction(SQLTransactionSyncCallback callback) native; |
4509 } | 4533 } |
4510 | 4534 |
4511 class _DedicatedWorkerContextJs extends _WorkerContextJs implements DedicatedWor
kerContext native "*DedicatedWorkerContext" { | 4535 class _DedicatedWorkerContextImpl extends _WorkerContextImpl implements Dedicate
dWorkerContext native "*DedicatedWorkerContext" { |
4512 | 4536 |
4513 EventListener onmessage; | 4537 EventListener onmessage; |
4514 | 4538 |
4515 void postMessage(Object message, [List messagePorts = null]) native; | 4539 void postMessage(Object message, [List messagePorts = null]) native; |
4516 | 4540 |
4517 void webkitPostMessage(Object message, [List transferList = null]) native; | 4541 void webkitPostMessage(Object message, [List transferList = null]) native; |
4518 } | 4542 } |
4519 | 4543 |
4520 class _DelayNodeJs extends _AudioNodeJs implements DelayNode native "*DelayNode"
{ | 4544 class _DelayNodeImpl extends _AudioNodeImpl implements DelayNode native "*DelayN
ode" { |
4521 | 4545 |
4522 final _AudioParamJs delayTime; | 4546 final _AudioParamImpl delayTime; |
4523 } | 4547 } |
4524 | 4548 |
4525 class _DetailsElementJs extends _ElementJs implements DetailsElement native "*HT
MLDetailsElement" { | 4549 class _DetailsElementImpl extends _ElementImpl implements DetailsElement native
"*HTMLDetailsElement" { |
4526 | 4550 |
4527 bool open; | 4551 bool open; |
4528 } | 4552 } |
4529 | 4553 |
4530 class _DeviceMotionEventJs extends _EventJs implements DeviceMotionEvent native
"*DeviceMotionEvent" { | 4554 class _DeviceMotionEventImpl extends _EventImpl implements DeviceMotionEvent nat
ive "*DeviceMotionEvent" { |
4531 | 4555 |
4532 final num interval; | 4556 final num interval; |
4533 } | 4557 } |
4534 | 4558 |
4535 class _DeviceOrientationEventJs extends _EventJs implements DeviceOrientationEve
nt native "*DeviceOrientationEvent" { | 4559 class _DeviceOrientationEventImpl extends _EventImpl implements DeviceOrientatio
nEvent native "*DeviceOrientationEvent" { |
4536 | 4560 |
4537 final bool absolute; | 4561 final bool absolute; |
4538 | 4562 |
4539 final num alpha; | 4563 final num alpha; |
4540 | 4564 |
4541 final num beta; | 4565 final num beta; |
4542 | 4566 |
4543 final num gamma; | 4567 final num gamma; |
4544 | 4568 |
4545 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute) native; | 4569 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute) native; |
4546 } | 4570 } |
4547 | 4571 |
4548 class _DirectoryElementJs extends _ElementJs implements DirectoryElement native
"*HTMLDirectoryElement" { | 4572 class _DirectoryElementImpl extends _ElementImpl implements DirectoryElement nat
ive "*HTMLDirectoryElement" { |
4549 | 4573 |
4550 bool compact; | 4574 bool compact; |
4551 } | 4575 } |
4552 | 4576 |
4553 class _DirectoryEntryJs extends _EntryJs implements DirectoryEntry native "*Dire
ctoryEntry" { | 4577 class _DirectoryEntryImpl extends _EntryImpl implements DirectoryEntry native "*
DirectoryEntry" { |
4554 | 4578 |
4555 _DirectoryReaderJs createReader() native; | 4579 _DirectoryReaderImpl createReader() native; |
4556 | 4580 |
4557 void getDirectory(String path, [Object flags = null, EntryCallback successCall
back = null, ErrorCallback errorCallback = null]) native; | 4581 void getDirectory(String path, [Object flags = null, EntryCallback successCall
back = null, ErrorCallback errorCallback = null]) native; |
4558 | 4582 |
4559 void getFile(String path, [Object flags = null, EntryCallback successCallback
= null, ErrorCallback errorCallback = null]) native; | 4583 void getFile(String path, [Object flags = null, EntryCallback successCallback
= null, ErrorCallback errorCallback = null]) native; |
4560 | 4584 |
4561 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack = null]) native; | 4585 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack = null]) native; |
4562 } | 4586 } |
4563 | 4587 |
4564 class _DirectoryEntrySyncJs extends _EntrySyncJs implements DirectoryEntrySync n
ative "*DirectoryEntrySync" { | 4588 class _DirectoryEntrySyncImpl extends _EntrySyncImpl implements DirectoryEntrySy
nc native "*DirectoryEntrySync" { |
4565 | 4589 |
4566 _DirectoryReaderSyncJs createReader() native; | 4590 _DirectoryReaderSyncImpl createReader() native; |
4567 | 4591 |
4568 _DirectoryEntrySyncJs getDirectory(String path, Object flags) native; | 4592 _DirectoryEntrySyncImpl getDirectory(String path, Object flags) native; |
4569 | 4593 |
4570 _FileEntrySyncJs getFile(String path, Object flags) native; | 4594 _FileEntrySyncImpl getFile(String path, Object flags) native; |
4571 | 4595 |
4572 void removeRecursively() native; | 4596 void removeRecursively() native; |
4573 } | 4597 } |
4574 | 4598 |
4575 class _DirectoryReaderJs implements DirectoryReader native "*DirectoryReader" { | 4599 class _DirectoryReaderImpl implements DirectoryReader native "*DirectoryReader"
{ |
4576 | 4600 |
4577 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
= null]) native; | 4601 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
= null]) native; |
4578 } | 4602 } |
4579 | 4603 |
4580 class _DirectoryReaderSyncJs implements DirectoryReaderSync native "*DirectoryRe
aderSync" { | 4604 class _DirectoryReaderSyncImpl implements DirectoryReaderSync native "*Directory
ReaderSync" { |
4581 | 4605 |
4582 _EntryArraySyncJs readEntries() native; | 4606 _EntryArraySyncImpl readEntries() native; |
4583 } | 4607 } |
4584 | 4608 |
4585 class _DivElementJs extends _ElementJs implements DivElement native "*HTMLDivEle
ment" { | 4609 class _DivElementImpl extends _ElementImpl implements DivElement native "*HTMLDi
vElement" { |
4586 | 4610 |
4587 String align; | 4611 String align; |
4588 } | 4612 } |
4589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4590 // for details. All rights reserved. Use of this source code is governed by a | 4614 // for details. All rights reserved. Use of this source code is governed by a |
4591 // BSD-style license that can be found in the LICENSE file. | 4615 // BSD-style license that can be found in the LICENSE file. |
4592 | 4616 |
4593 class _DocumentJs extends _ElementJs | 4617 class _DocumentImpl extends _ElementImpl |
4594 implements Document | 4618 implements Document |
4595 native "*HTMLHtmlElement" { | 4619 native "*HTMLHtmlElement" { |
4596 | 4620 |
4597 _ElementJs get activeElement() native "return this.parentNode.activeElement;"; | 4621 _ElementImpl get activeElement() native "return this.parentNode.activeElement;
"; |
4598 | 4622 |
4599 _ElementJs get body() native "return this.parentNode.body;"; | 4623 _ElementImpl get body() native "return this.parentNode.body;"; |
4600 | 4624 |
4601 void set body(_ElementJs value) native "this.parentNode.body = value;"; | 4625 void set body(_ElementImpl value) native "this.parentNode.body = value;"; |
4602 | 4626 |
4603 String get charset() native "return this.parentNode.charset;"; | 4627 String get charset() native "return this.parentNode.charset;"; |
4604 | 4628 |
4605 void set charset(String value) native "this.parentNode.charset = value;"; | 4629 void set charset(String value) native "this.parentNode.charset = value;"; |
4606 | 4630 |
4607 String get cookie() native "return this.parentNode.cookie;"; | 4631 String get cookie() native "return this.parentNode.cookie;"; |
4608 | 4632 |
4609 void set cookie(String value) native "this.parentNode.cookie = value;"; | 4633 void set cookie(String value) native "this.parentNode.cookie = value;"; |
4610 | 4634 |
4611 _WindowJs get defaultView() native "return this.parentNode.defaultView;"; | 4635 _WindowImpl get window() native "return this.parentNode.defaultView;"; |
4612 | 4636 |
4613 String get domain() native "return this.parentNode.domain;"; | 4637 String get domain() native "return this.parentNode.domain;"; |
4614 | 4638 |
4615 _HeadElementJs get head() native "return this.parentNode.head;"; | 4639 _HeadElementImpl get head() native "return this.parentNode.head;"; |
4616 | 4640 |
4617 String get lastModified() native "return this.parentNode.lastModified;"; | 4641 String get lastModified() native "return this.parentNode.lastModified;"; |
4618 | 4642 |
4619 String get preferredStylesheetSet() native "return this.parentNode.preferredSt
ylesheetSet;"; | 4643 String get preferredStylesheetSet() native "return this.parentNode.preferredSt
ylesheetSet;"; |
4620 | 4644 |
4621 String get readyState() native "return this.parentNode.readyState;"; | 4645 String get readyState() native "return this.parentNode.readyState;"; |
4622 | 4646 |
4623 String get referrer() native "return this.parentNode.referrer;"; | 4647 String get referrer() native "return this.parentNode.referrer;"; |
4624 | 4648 |
4625 String get selectedStylesheetSet() native "return this.parentNode.selectedStyl
esheetSet;"; | 4649 String get selectedStylesheetSet() native "return this.parentNode.selectedStyl
esheetSet;"; |
4626 | 4650 |
4627 void set selectedStylesheetSet(String value) native "this.parentNode.selectedS
tylesheetSet = value;"; | 4651 void set selectedStylesheetSet(String value) native "this.parentNode.selectedS
tylesheetSet = value;"; |
4628 | 4652 |
4629 _StyleSheetListJs get styleSheets() native "return this.parentNode.styleSheets
;"; | 4653 _StyleSheetListImpl get styleSheets() native "return this.parentNode.styleShee
ts;"; |
4630 | 4654 |
4631 _ElementJs get webkitCurrentFullScreenElement() native "return this.parentNode
.webkitCurrentFullScreenElement;"; | 4655 _ElementImpl get webkitCurrentFullScreenElement() native "return this.parentNo
de.webkitCurrentFullScreenElement;"; |
4632 | 4656 |
4633 bool get webkitFullScreenKeyboardInputAllowed() native "return this.parentNode
.webkitFullScreenKeyboardInputAllowed;"; | 4657 bool get webkitFullScreenKeyboardInputAllowed() native "return this.parentNode
.webkitFullScreenKeyboardInputAllowed;"; |
4634 | 4658 |
4635 bool get webkitHidden() native "return this.parentNode.webkitHidden;"; | 4659 bool get webkitHidden() native "return this.parentNode.webkitHidden;"; |
4636 | 4660 |
4637 bool get webkitIsFullScreen() native "return this.parentNode.webkitIsFullScree
n;"; | 4661 bool get webkitIsFullScreen() native "return this.parentNode.webkitIsFullScree
n;"; |
4638 | 4662 |
4639 String get webkitVisibilityState() native "return this.parentNode.webkitVisibi
lityState;"; | 4663 String get webkitVisibilityState() native "return this.parentNode.webkitVisibi
lityState;"; |
4640 | 4664 |
4641 _DocumentEventsImpl get on() => | 4665 _DocumentEventsImpl get on() => |
4642 new _DocumentEventsImpl(_jsDocument); | 4666 new _DocumentEventsImpl(_jsDocument); |
4643 | 4667 |
4644 _NodeJs adoptNode(_NodeJs source) native "return this.parentNode.adoptNode(sou
rce);"; | 4668 _RangeImpl caretRangeFromPoint(int x, int y) native "return this.parentNode.ca
retRangeFromPoint(x, y);"; |
4645 | 4669 |
4646 void captureEvents() native "this.parentNode.captureEvents();"; | 4670 _CDATASectionImpl createCDATASection(String data) native "return this.parentNo
de.createCDATASection(data);"; |
4647 | 4671 |
4648 _RangeJs caretRangeFromPoint(int x, int y) native "return this.parentNode.care
tRangeFromPoint(x, y);"; | 4672 _DocumentFragmentImpl createDocumentFragment() native "return this.parentNode.
createDocumentFragment();"; |
4649 | 4673 |
4650 void clear() native "this.parentNode.clear();"; | 4674 _ElementImpl _createElement(String tagName) native "return this.parentNode.cre
ateElement(tagName);"; |
4651 | 4675 |
4652 void close() native "this.parentNode.close();"; | 4676 _EventImpl _createEvent(String eventType) native "return this.parentNode.creat
eEvent(eventType);"; |
4653 | 4677 |
4654 _AttrJs createAttribute(String name) native "return this.parentNode.createAttr
ibute(name);"; | 4678 _RangeImpl createRange() native "return this.parentNode.createRange();"; |
4655 | 4679 |
4656 _AttrJs createAttributeNS(String namespaceURI, String qualifiedName) native "r
eturn this.parentNode.createAttributeNS(namespaceURI, qualifiedName);"; | 4680 _TextImpl _createTextNode(String data) native "return this.parentNode.createTe
xtNode(data);"; |
4657 | 4681 |
4658 _CDATASectionJs createCDATASection(String data) native "return this.parentNode
.createCDATASection(data);"; | 4682 _TouchImpl createTouch(_WindowImpl window, _EventTargetImpl target, int identi
fier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int web
kitRadiusY, num webkitRotationAngle, num webkitForce) native "return this.parent
Node.createTouch(window, target, identifier, pageX, pageY, screenX, screenY, web
kitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce);"; |
4659 | 4683 |
4660 _CommentJs createComment(String data) native "return this.parentNode.createCom
ment(data);"; | 4684 _TouchListImpl _createTouchList() native "return this.parentNode.createTouchLi
st();"; |
4661 | 4685 |
4662 _DocumentFragmentJs createDocumentFragment() native "return this.parentNode.cr
eateDocumentFragment();"; | 4686 _ElementImpl elementFromPoint(int x, int y) native "return this.parentNode.ele
mentFromPoint(x, y);"; |
4663 | |
4664 _ElementJs _createElement(String tagName) native "return this.parentNode.creat
eElement(tagName);"; | |
4665 | |
4666 _ElementJs createElementNS(String namespaceURI, String qualifiedName) native "
return this.parentNode.createElementNS(namespaceURI, qualifiedName);"; | |
4667 | |
4668 _EntityReferenceJs createEntityReference(String name) native "return this.pare
ntNode.createEntityReference(name);"; | |
4669 | |
4670 _EventJs _createEvent(String eventType) native "return this.parentNode.createE
vent(eventType);"; | |
4671 | |
4672 _XPathExpressionJs createExpression(String expression, _XPathNSResolverJs reso
lver) native "return this.parentNode.createExpression(expression, resolver);"; | |
4673 | |
4674 _XPathNSResolverJs createNSResolver(_NodeJs nodeResolver) native "return this.
parentNode.createNSResolver(nodeResolver);"; | |
4675 | |
4676 _NodeIteratorJs createNodeIterator(_NodeJs root, int whatToShow, _NodeFilterJs
filter, bool expandEntityReferences) native "return this.parentNode.createNodeI
terator(root, whatToShow, filter, expandEntityReferences);"; | |
4677 | |
4678 _ProcessingInstructionJs createProcessingInstruction(String target, String dat
a) native "return this.parentNode.createProcessingInstruction(target, data);"; | |
4679 | |
4680 _RangeJs createRange() native "return this.parentNode.createRange();"; | |
4681 | |
4682 _TextJs createTextNode(String data) native "return this.parentNode.createTextN
ode(data);"; | |
4683 | |
4684 _TouchJs createTouch(_WindowJs window, _EventTargetJs target, int identifier,
int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRad
iusY, num webkitRotationAngle, num webkitForce) native "return this.parentNode.c
reateTouch(window, target, identifier, pageX, pageY, screenX, screenY, webkitRad
iusX, webkitRadiusY, webkitRotationAngle, webkitForce);"; | |
4685 | |
4686 _TouchListJs createTouchList() native "return this.parentNode.createTouchList(
);"; | |
4687 | |
4688 _TreeWalkerJs createTreeWalker(_NodeJs root, int whatToShow, _NodeFilterJs fil
ter, bool expandEntityReferences) native "return this.parentNode.createTreeWalke
r(root, whatToShow, filter, expandEntityReferences);"; | |
4689 | |
4690 _ElementJs elementFromPoint(int x, int y) native "return this.parentNode.eleme
ntFromPoint(x, y);"; | |
4691 | |
4692 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv
erJs resolver, int type, _XPathResultJs inResult) native "return this.parentNode
.evaluate(expression, contextNode, resolver, type, inResult);"; | |
4693 | 4687 |
4694 bool execCommand(String command, bool userInterface, String value) native "ret
urn this.parentNode.execCommand(command, userInterface, value);"; | 4688 bool execCommand(String command, bool userInterface, String value) native "ret
urn this.parentNode.execCommand(command, userInterface, value);"; |
4695 | 4689 |
4696 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t) native "return this.parentNode.getCSSCanvasContext(contextId, name, width, he
ight);"; | 4690 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t) native "return this.parentNode.getCSSCanvasContext(contextId, name, width, he
ight);"; |
4697 | 4691 |
4698 _ElementJs getElementById(String elementId) native "return this.parentNode.get
ElementById(elementId);"; | |
4699 | |
4700 _NodeListJs getElementsByClassName(String tagname) native "return this.parentN
ode.getElementsByClassName(tagname);"; | |
4701 | |
4702 _NodeListJs getElementsByName(String elementName) native "return this.parentNo
de.getElementsByName(elementName);"; | |
4703 | |
4704 _NodeListJs getElementsByTagName(String tagname) native "return this.parentNod
e.getElementsByTagName(tagname);"; | |
4705 | |
4706 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve "return this.parentNode.getElementsByTagNameNS(namespaceURI, localName);"; | |
4707 | |
4708 _CSSStyleDeclarationJs getOverrideStyle(_ElementJs element, String pseudoEleme
nt) native "return this.parentNode.getOverrideStyle(element, pseudoElement);"; | |
4709 | |
4710 _DOMSelectionJs getSelection() native "return this.parentNode.getSelection();"
; | |
4711 | |
4712 bool hasFocus() native "return this.parentNode.hasFocus();"; | |
4713 | |
4714 _NodeJs importNode(_NodeJs importedNode, [bool deep = null]) native "return th
is.parentNode.importNode(importedNode, deep);"; | |
4715 | |
4716 void open() native "this.parentNode.open();"; | |
4717 | |
4718 bool queryCommandEnabled(String command) native "return this.parentNode.queryC
ommandEnabled(command);"; | 4692 bool queryCommandEnabled(String command) native "return this.parentNode.queryC
ommandEnabled(command);"; |
4719 | 4693 |
4720 bool queryCommandIndeterm(String command) native "return this.parentNode.query
CommandIndeterm(command);"; | 4694 bool queryCommandIndeterm(String command) native "return this.parentNode.query
CommandIndeterm(command);"; |
4721 | 4695 |
4722 bool queryCommandState(String command) native "return this.parentNode.queryCom
mandState(command);"; | 4696 bool queryCommandState(String command) native "return this.parentNode.queryCom
mandState(command);"; |
4723 | 4697 |
4724 bool queryCommandSupported(String command) native "return this.parentNode.quer
yCommandSupported(command);"; | 4698 bool queryCommandSupported(String command) native "return this.parentNode.quer
yCommandSupported(command);"; |
4725 | 4699 |
4726 String queryCommandValue(String command) native "return this.parentNode.queryC
ommandValue(command);"; | 4700 String queryCommandValue(String command) native "return this.parentNode.queryC
ommandValue(command);"; |
4727 | 4701 |
4728 _ElementJs querySelector(String selectors) native "return this.parentNode.quer
ySelector(selectors);"; | |
4729 | |
4730 _NodeListJs querySelectorAll(String selectors) native "return this.parentNode.
querySelectorAll(selectors);"; | |
4731 | |
4732 void releaseEvents() native "this.parentNode.releaseEvents();"; | |
4733 | |
4734 void webkitCancelFullScreen() native "this.parentNode.webkitCancelFullScreen()
;"; | 4702 void webkitCancelFullScreen() native "this.parentNode.webkitCancelFullScreen()
;"; |
4735 | 4703 |
4736 _WebKitNamedFlowJs webkitGetFlowByName(String name) native "return this.parent
Node.webkitGetFlowByName(name);"; | 4704 _WebKitNamedFlowImpl webkitGetFlowByName(String name) native "return this.pare
ntNode.webkitGetFlowByName(name);"; |
4737 | 4705 |
4738 void write(String text) native "this.parentNode.write(text);"; | |
4739 | |
4740 void writeln(String text) native "this.parentNode.writeln(text);"; | |
4741 | |
4742 | |
4743 // We execute query selectors off the traditional document rather than the | |
4744 // HTMLHtmlElement to make the result of query and queryAll less surprising. | |
4745 // Note: this means that document.query('html') will return the Document. | |
4746 _ElementJs query(String selectors) native "return this.parentNode.querySelecto
r(selectors);"; | |
4747 ElementList queryAll(String selectors) native "return this.parentNode.querySel
ectorAll(selectors);"; | |
4748 | 4706 |
4749 // TODO(jacobr): remove these methods and let them be generated automatically | 4707 // TODO(jacobr): remove these methods and let them be generated automatically |
4750 // once dart supports defining fields with the same name in an interface and | 4708 // once dart supports defining fields with the same name in an interface and |
4751 // its parent interface. | 4709 // its parent interface. |
4752 String get title() native "return this.parentNode.title;"; | 4710 String get title() native "return this.parentNode.title;"; |
4753 void set title(String value) native "this.parentNode.title = value;"; | 4711 void set title(String value) native "this.parentNode.title = value;"; |
4754 | 4712 |
4755 | 4713 |
4756 // For efficiency and simplicity, we always use the HtmlElement as the | 4714 // For efficiency and simplicity, we always use the HtmlElement as the |
4757 // Document but sometimes internally we need the real JS document object. | 4715 // Document but sometimes internally we need the real JS document object. |
4758 _NodeJs get _jsDocument() native "return this.parentNode;"; | 4716 _NodeImpl get _jsDocument() native "return this.parentNode;"; |
4759 | 4717 |
4760 // The document doesn't have a parent element. | 4718 // The document doesn't have a parent element. |
4761 _ElementJs get parent() => null; | 4719 _ElementImpl get parent() => null; |
4762 } | 4720 } |
4763 | 4721 |
4764 // This class should not be externally visible. If a user ever gets access to | 4722 // This class should not be externally visible. If a user ever gets access to |
4765 // a _SecretHtmlDocumentJs object that is a bug. This object is hidden by | 4723 // a _SecretHtmlDocumentImpl object that is a bug. This object is hidden by |
4766 // adding checks to all methods that could an HTMLDocument. We believe that | 4724 // adding checks to all methods that could an HTMLDocument. We believe that |
4767 // list is limited to Event.target, and HTMLHtmlElement.parent. | 4725 // list is limited to Event.target, and HTMLHtmlElement.parent. |
4768 class _SecretHtmlDocumentJs extends _NodeJs implements Node | 4726 class _SecretHtmlDocumentImpl extends _NodeImpl implements Node |
4769 native "*HTMLDocument" { | 4727 native "*HTMLDocument" { |
4770 _DocumentJs get _documentElement() native "return this.documentElement;"; | 4728 _DocumentImpl get _documentElement() native "return this.documentElement;"; |
4771 } | 4729 } |
4772 | 4730 |
4773 EventTarget _FixHtmlDocumentReference(EventTarget eventTarget) { | 4731 EventTarget _FixHtmlDocumentReference(EventTarget eventTarget) { |
4774 if (eventTarget is _SecretHtmlDocumentJs) { | 4732 if (eventTarget is _SecretHtmlDocumentImpl) { |
4775 _SecretHtmlDocumentJs secretDocument = eventTarget; | 4733 _SecretHtmlDocumentImpl secretDocument = eventTarget; |
4776 return secretDocument._documentElement; | 4734 return secretDocument._documentElement; |
4777 } else { | 4735 } else { |
4778 return eventTarget; | 4736 return eventTarget; |
4779 } | 4737 } |
4780 } | 4738 } |
4781 | 4739 |
4782 class _DocumentEventsImpl extends _ElementEventsImpl implements DocumentEvents { | 4740 class _DocumentEventsImpl extends _ElementEventsImpl implements DocumentEvents { |
4783 _DocumentEventsImpl(_ptr) : super(_ptr); | 4741 _DocumentEventsImpl(_ptr) : super(_ptr); |
4784 | 4742 |
4785 EventListenerList get abort() => _get('abort'); | 4743 EventListenerList get abort() => _get('abort'); |
(...skipping 29 matching lines...) Expand all Loading... |
4815 EventListenerList get dragOver() => _get('dragover'); | 4773 EventListenerList get dragOver() => _get('dragover'); |
4816 | 4774 |
4817 EventListenerList get dragStart() => _get('dragstart'); | 4775 EventListenerList get dragStart() => _get('dragstart'); |
4818 | 4776 |
4819 EventListenerList get drop() => _get('drop'); | 4777 EventListenerList get drop() => _get('drop'); |
4820 | 4778 |
4821 EventListenerList get error() => _get('error'); | 4779 EventListenerList get error() => _get('error'); |
4822 | 4780 |
4823 EventListenerList get focus() => _get('focus'); | 4781 EventListenerList get focus() => _get('focus'); |
4824 | 4782 |
4825 EventListenerList get fullScreenChange() => _get('webkitFullScreenChange'); | 4783 EventListenerList get fullscreenChange() => _get('webkitfullscreenchange'); |
4826 | 4784 |
4827 EventListenerList get fullScreenError() => _get('webkitFullScreenError'); | 4785 EventListenerList get fullscreenError() => _get('webkitfullscreenerror'); |
4828 | 4786 |
4829 EventListenerList get input() => _get('input'); | 4787 EventListenerList get input() => _get('input'); |
4830 | 4788 |
4831 EventListenerList get invalid() => _get('invalid'); | 4789 EventListenerList get invalid() => _get('invalid'); |
4832 | 4790 |
4833 EventListenerList get keyDown() => _get('keydown'); | 4791 EventListenerList get keyDown() => _get('keydown'); |
4834 | 4792 |
4835 EventListenerList get keyPress() => _get('keypress'); | 4793 EventListenerList get keyPress() => _get('keypress'); |
4836 | 4794 |
4837 EventListenerList get keyUp() => _get('keyup'); | 4795 EventListenerList get keyUp() => _get('keyup'); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4870 | 4828 |
4871 EventListenerList get touchCancel() => _get('touchcancel'); | 4829 EventListenerList get touchCancel() => _get('touchcancel'); |
4872 | 4830 |
4873 EventListenerList get touchEnd() => _get('touchend'); | 4831 EventListenerList get touchEnd() => _get('touchend'); |
4874 | 4832 |
4875 EventListenerList get touchMove() => _get('touchmove'); | 4833 EventListenerList get touchMove() => _get('touchmove'); |
4876 | 4834 |
4877 EventListenerList get touchStart() => _get('touchstart'); | 4835 EventListenerList get touchStart() => _get('touchstart'); |
4878 } | 4836 } |
4879 | 4837 |
4880 class _DocumentFragmentJs extends _NodeJs implements DocumentFragment native "*D
ocumentFragment" { | 4838 class _DocumentFragmentImpl extends _NodeImpl implements DocumentFragment native
"*DocumentFragment" { |
4881 | 4839 |
4882 _ElementJs querySelector(String selectors) native; | 4840 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; |
4883 | 4841 |
4884 _NodeListJs querySelectorAll(String selectors) native; | 4842 _NodeListImpl queryAll(String selectors) native "return this.querySelectorAll(
selectors);"; |
4885 } | 4843 } |
4886 | 4844 |
4887 class _DocumentTypeJs extends _NodeJs implements DocumentType native "*DocumentT
ype" { | 4845 class _DocumentTypeImpl extends _NodeImpl implements DocumentType native "*Docum
entType" { |
4888 | 4846 |
4889 final _NamedNodeMapJs entities; | 4847 final _NamedNodeMapImpl entities; |
4890 | 4848 |
4891 final String internalSubset; | 4849 final String internalSubset; |
4892 | 4850 |
4893 final String name; | 4851 final String name; |
4894 | 4852 |
4895 final _NamedNodeMapJs notations; | 4853 final _NamedNodeMapImpl notations; |
4896 | 4854 |
4897 final String publicId; | 4855 final String publicId; |
4898 | 4856 |
4899 final String systemId; | 4857 final String systemId; |
4900 } | 4858 } |
4901 | 4859 |
4902 class _DynamicsCompressorNodeJs extends _AudioNodeJs implements DynamicsCompress
orNode native "*DynamicsCompressorNode" { | 4860 class _DynamicsCompressorNodeImpl extends _AudioNodeImpl implements DynamicsComp
ressorNode native "*DynamicsCompressorNode" { |
4903 } | 4861 } |
4904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4905 // for details. All rights reserved. Use of this source code is governed by a | 4863 // for details. All rights reserved. Use of this source code is governed by a |
4906 // BSD-style license that can be found in the LICENSE file. | 4864 // BSD-style license that can be found in the LICENSE file. |
4907 | 4865 |
4908 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality. | 4866 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
| 4867 // functionality. |
4909 class _ChildrenElementList implements ElementList { | 4868 class _ChildrenElementList implements ElementList { |
4910 // Raw Element. | 4869 // Raw Element. |
4911 final _ElementJs _element; | 4870 final _ElementImpl _element; |
4912 final _HTMLCollectionJs _childElements; | 4871 final _HTMLCollectionImpl _childElements; |
4913 | 4872 |
4914 _ChildrenElementList._wrap(_ElementJs element) | 4873 _ChildrenElementList._wrap(_ElementImpl element) |
4915 : _childElements = element._children, | 4874 : _childElements = element._children, |
4916 _element = element; | 4875 _element = element; |
4917 | 4876 |
4918 List<Element> _toList() { | 4877 List<Element> _toList() { |
4919 final output = new List(_childElements.length); | 4878 final output = new List(_childElements.length); |
4920 for (int i = 0, len = _childElements.length; i < len; i++) { | 4879 for (int i = 0, len = _childElements.length; i < len; i++) { |
4921 output[i] = _childElements[i]; | 4880 output[i] = _childElements[i]; |
4922 } | 4881 } |
4923 return output; | 4882 return output; |
4924 } | 4883 } |
4925 | 4884 |
4926 _ElementJs get first() { | 4885 _ElementImpl get first() { |
4927 return _element._firstElementChild; | 4886 return _element._firstElementChild; |
4928 } | 4887 } |
4929 | 4888 |
4930 void forEach(void f(Element element)) { | 4889 void forEach(void f(Element element)) { |
4931 for (_ElementJs element in _childElements) { | 4890 for (_ElementImpl element in _childElements) { |
4932 f(element); | 4891 f(element); |
4933 } | 4892 } |
4934 } | 4893 } |
4935 | 4894 |
4936 Collection<Element> filter(bool f(Element element)) { | 4895 ElementList filter(bool f(Element element)) { |
4937 List<Element> output = <Element>[]; | 4896 final output = <Element>[]; |
4938 forEach((Element element) { | 4897 forEach((Element element) { |
4939 if (f(element)) { | 4898 if (f(element)) { |
4940 output.add(element); | 4899 output.add(element); |
4941 } | 4900 } |
4942 }); | 4901 }); |
4943 return output; | 4902 return new _FrozenElementList._wrap(output); |
4944 } | 4903 } |
4945 | 4904 |
4946 bool every(bool f(Element element)) { | 4905 bool every(bool f(Element element)) { |
4947 for(Element element in this) { | 4906 for(Element element in this) { |
4948 if (!f(element)) { | 4907 if (!f(element)) { |
4949 return false; | 4908 return false; |
4950 } | 4909 } |
4951 }; | 4910 }; |
4952 return true; | 4911 return true; |
4953 } | 4912 } |
4954 | 4913 |
4955 bool some(bool f(Element element)) { | 4914 bool some(bool f(Element element)) { |
4956 for(Element element in this) { | 4915 for(Element element in this) { |
4957 if (f(element)) { | 4916 if (f(element)) { |
4958 return true; | 4917 return true; |
4959 } | 4918 } |
4960 }; | 4919 }; |
4961 return false; | 4920 return false; |
4962 } | 4921 } |
4963 | 4922 |
4964 bool isEmpty() { | 4923 bool isEmpty() { |
4965 return _element._firstElementChild !== null; | 4924 return _element._firstElementChild == null; |
4966 } | 4925 } |
4967 | 4926 |
4968 int get length() { | 4927 int get length() { |
4969 return _childElements.length; | 4928 return _childElements.length; |
4970 } | 4929 } |
4971 | 4930 |
4972 _ElementJs operator [](int index) { | 4931 _ElementImpl operator [](int index) { |
4973 return _childElements[index]; | 4932 return _childElements[index]; |
4974 } | 4933 } |
4975 | 4934 |
4976 void operator []=(int index, _ElementJs value) { | 4935 void operator []=(int index, _ElementImpl value) { |
4977 _element._replaceChild(value, _childElements.item(index)); | 4936 _element._replaceChild(value, _childElements[index]); |
4978 } | 4937 } |
4979 | 4938 |
4980 void set length(int newLength) { | 4939 void set length(int newLength) { |
4981 // TODO(jacobr): remove children when length is reduced. | 4940 // TODO(jacobr): remove children when length is reduced. |
4982 throw const UnsupportedOperationException(''); | 4941 throw const UnsupportedOperationException(''); |
4983 } | 4942 } |
4984 | 4943 |
4985 Element add(_ElementJs value) { | 4944 Element add(_ElementImpl value) { |
4986 _element._appendChild(value); | 4945 _element._appendChild(value); |
4987 return value; | 4946 return value; |
4988 } | 4947 } |
4989 | 4948 |
4990 Element addLast(_ElementJs value) => add(value); | 4949 Element addLast(_ElementImpl value) => add(value); |
4991 | 4950 |
4992 Iterator<Element> iterator() => _toList().iterator(); | 4951 Iterator<Element> iterator() => _toList().iterator(); |
4993 | 4952 |
4994 void addAll(Collection<_ElementJs> collection) { | 4953 void addAll(Collection<_ElementImpl> collection) { |
4995 for (_ElementJs element in collection) { | 4954 for (_ElementImpl element in collection) { |
4996 _element._appendChild(element); | 4955 _element._appendChild(element); |
4997 } | 4956 } |
4998 } | 4957 } |
4999 | 4958 |
5000 void sort(int compare(Element a, Element b)) { | 4959 void sort(int compare(Element a, Element b)) { |
5001 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | 4960 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); |
5002 } | 4961 } |
5003 | 4962 |
5004 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | 4963 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { |
5005 throw 'Not impl yet. todo(jacobr)'; | 4964 throw 'Not impl yet. todo(jacobr)'; |
5006 } | 4965 } |
5007 | 4966 |
5008 void setRange(int start, int length, List from, [int startFrom = 0]) { | 4967 void setRange(int start, int length, List from, [int startFrom = 0]) { |
5009 throw const NotImplementedException(); | 4968 throw const NotImplementedException(); |
5010 } | 4969 } |
5011 | 4970 |
5012 void removeRange(int start, int length) { | 4971 void removeRange(int start, int length) { |
5013 throw const NotImplementedException(); | 4972 throw const NotImplementedException(); |
5014 } | 4973 } |
5015 | 4974 |
5016 void insertRange(int start, int length, [initialValue = null]) { | 4975 void insertRange(int start, int length, [initialValue = null]) { |
5017 throw const NotImplementedException(); | 4976 throw const NotImplementedException(); |
5018 } | 4977 } |
5019 | 4978 |
5020 List getRange(int start, int length) { | 4979 List getRange(int start, int length) => |
5021 throw const NotImplementedException(); | 4980 new _FrozenElementList._wrap(_Lists.getRange(this, start, length, |
5022 } | 4981 <Element>[])); |
5023 | 4982 |
5024 int indexOf(Element element, [int start = 0]) { | 4983 int indexOf(Element element, [int start = 0]) { |
5025 return _Lists.indexOf(this, element, start, this.length); | 4984 return _Lists.indexOf(this, element, start, this.length); |
5026 } | 4985 } |
5027 | 4986 |
5028 int lastIndexOf(Element element, [int start = null]) { | 4987 int lastIndexOf(Element element, [int start = null]) { |
5029 if (start === null) start = length - 1; | 4988 if (start === null) start = length - 1; |
5030 return _Lists.lastIndexOf(this, element, start); | 4989 return _Lists.lastIndexOf(this, element, start); |
5031 } | 4990 } |
5032 | 4991 |
5033 void clear() { | 4992 void clear() { |
5034 // It is unclear if we want to keep non element nodes? | 4993 // It is unclear if we want to keep non element nodes? |
5035 _element.text = ''; | 4994 _element.text = ''; |
5036 } | 4995 } |
5037 | 4996 |
5038 Element removeLast() { | 4997 Element removeLast() { |
5039 final last = this.last(); | 4998 final last = this.last(); |
5040 if (last != null) { | 4999 if (last != null) { |
5041 _element._removeChild(last); | 5000 _element._removeChild(last); |
5042 } | 5001 } |
5043 return last; | 5002 return last; |
5044 } | 5003 } |
5045 | 5004 |
5046 Element last() { | 5005 Element last() { |
5047 return _element.lastElementChild; | 5006 return _element.lastElementChild; |
5048 } | 5007 } |
5049 } | 5008 } |
5050 | 5009 |
| 5010 // TODO(jacobr): this is an inefficient implementation but it is hard to see |
| 5011 // a better option given that we cannot quite force NodeList to be an |
| 5012 // ElementList as there are valid cases where a NodeList JavaScript object |
| 5013 // contains Node objects that are not Elements. |
| 5014 class _FrozenElementList implements ElementList { |
| 5015 final List<Node> _nodeList; |
| 5016 |
| 5017 _FrozenElementList._wrap(this._nodeList); |
| 5018 |
| 5019 Element get first() { |
| 5020 return _nodeList.first; |
| 5021 } |
| 5022 |
| 5023 void forEach(void f(Element element)) { |
| 5024 for (Element el in this) { |
| 5025 f(el); |
| 5026 } |
| 5027 } |
| 5028 |
| 5029 Collection map(f(Element element)) { |
| 5030 final out = []; |
| 5031 for (Element el in this) { |
| 5032 out.add(f(el)); |
| 5033 } |
| 5034 return out; |
| 5035 } |
| 5036 |
| 5037 ElementList filter(bool f(Element element)) { |
| 5038 final out = new _ElementList([]); |
| 5039 for (Element el in this) { |
| 5040 if (f(el)) out.add(el); |
| 5041 } |
| 5042 return out; |
| 5043 } |
| 5044 |
| 5045 bool every(bool f(Element element)) { |
| 5046 for(Element element in this) { |
| 5047 if (!f(element)) { |
| 5048 return false; |
| 5049 } |
| 5050 }; |
| 5051 return true; |
| 5052 } |
| 5053 |
| 5054 bool some(bool f(Element element)) { |
| 5055 for(Element element in this) { |
| 5056 if (f(element)) { |
| 5057 return true; |
| 5058 } |
| 5059 }; |
| 5060 return false; |
| 5061 } |
| 5062 |
| 5063 bool isEmpty() => _nodeList.isEmpty(); |
| 5064 |
| 5065 int get length() => _nodeList.length; |
| 5066 |
| 5067 Element operator [](int index) => _nodeList[index]; |
| 5068 |
| 5069 void operator []=(int index, Element value) { |
| 5070 throw const UnsupportedOperationException(''); |
| 5071 } |
| 5072 |
| 5073 void set length(int newLength) { |
| 5074 _nodeList.length = newLength; |
| 5075 } |
| 5076 |
| 5077 void add(Element value) { |
| 5078 throw const UnsupportedOperationException(''); |
| 5079 } |
| 5080 |
| 5081 void addLast(Element value) { |
| 5082 throw const UnsupportedOperationException(''); |
| 5083 } |
| 5084 |
| 5085 Iterator<Element> iterator() => new _FrozenElementListIterator(this); |
| 5086 |
| 5087 void addAll(Collection<Element> collection) { |
| 5088 throw const UnsupportedOperationException(''); |
| 5089 } |
| 5090 |
| 5091 void sort(int compare(Element a, Element b)) { |
| 5092 throw const UnsupportedOperationException(''); |
| 5093 } |
| 5094 |
| 5095 void setRange(int start, int length, List from, [int startFrom = 0]) { |
| 5096 throw const UnsupportedOperationException(''); |
| 5097 } |
| 5098 |
| 5099 void removeRange(int start, int length) { |
| 5100 throw const UnsupportedOperationException(''); |
| 5101 } |
| 5102 |
| 5103 void insertRange(int start, int length, [initialValue = null]) { |
| 5104 throw const UnsupportedOperationException(''); |
| 5105 } |
| 5106 |
| 5107 ElementList getRange(int start, int length) => |
| 5108 new _FrozenElementList._wrap(_nodeList.getRange(start, length)); |
| 5109 |
| 5110 int indexOf(Element element, [int start = 0]) => |
| 5111 _nodeList.indexOf(element, start); |
| 5112 |
| 5113 int lastIndexOf(Element element, [int start = null]) => |
| 5114 _nodeList.lastIndexOf(element, start); |
| 5115 |
| 5116 void clear() { |
| 5117 throw const UnsupportedOperationException(''); |
| 5118 } |
| 5119 |
| 5120 Element removeLast() { |
| 5121 throw const UnsupportedOperationException(''); |
| 5122 } |
| 5123 |
| 5124 Element last() => _nodeList.last(); |
| 5125 } |
| 5126 |
| 5127 class _FrozenElementListIterator implements Iterator<Element> { |
| 5128 final _FrozenElementList _list; |
| 5129 int _index = 0; |
| 5130 |
| 5131 _FrozenElementListIterator(this._list); |
| 5132 |
| 5133 /** |
| 5134 * Gets the next element in the iteration. Throws a |
| 5135 * [NoMoreElementsException] if no element is left. |
| 5136 */ |
| 5137 Element next() { |
| 5138 if (!hasNext()) { |
| 5139 throw const NoMoreElementsException(); |
| 5140 } |
| 5141 |
| 5142 return _list[_index++]; |
| 5143 } |
| 5144 |
| 5145 /** |
| 5146 * Returns whether the [Iterator] has elements left. |
| 5147 */ |
| 5148 bool hasNext() => _index < _list.length; |
| 5149 } |
| 5150 |
| 5151 class _ElementList extends _ListWrapper<Element> implements ElementList { |
| 5152 _ElementList(List<Element> list) : super(list); |
| 5153 |
| 5154 ElementList filter(bool f(Element element)) => |
| 5155 new _ElementList(super.filter(f)); |
| 5156 |
| 5157 ElementList getRange(int start, int length) => |
| 5158 new _ElementList(super.getRange(start, length)); |
| 5159 } |
| 5160 |
5051 class ElementAttributeMap implements Map<String, String> { | 5161 class ElementAttributeMap implements Map<String, String> { |
5052 | 5162 |
5053 final _ElementJs _element; | 5163 final _ElementImpl _element; |
5054 | 5164 |
5055 ElementAttributeMap._wrap(this._element); | 5165 ElementAttributeMap._wrap(this._element); |
5056 | 5166 |
5057 bool containsValue(String value) { | 5167 bool containsValue(String value) { |
5058 final attributes = _element.attributes; | 5168 final attributes = _element._attributes; |
5059 for (int i = 0, len = attributes.length; i < len; i++) { | 5169 for (int i = 0, len = attributes.length; i < len; i++) { |
5060 if(value == attributes.item(i).value) { | 5170 if(value == attributes[i].value) { |
5061 return true; | 5171 return true; |
5062 } | 5172 } |
5063 } | 5173 } |
5064 return false; | 5174 return false; |
5065 } | 5175 } |
5066 | 5176 |
5067 bool containsKey(String key) { | 5177 bool containsKey(String key) { |
5068 return _element._hasAttribute(key); | 5178 return _element._hasAttribute(key); |
5069 } | 5179 } |
5070 | 5180 |
(...skipping 11 matching lines...) Expand all Loading... |
5082 } | 5192 } |
5083 } | 5193 } |
5084 | 5194 |
5085 String remove(String key) { | 5195 String remove(String key) { |
5086 _element._removeAttribute(key); | 5196 _element._removeAttribute(key); |
5087 } | 5197 } |
5088 | 5198 |
5089 void clear() { | 5199 void clear() { |
5090 final attributes = _element._attributes; | 5200 final attributes = _element._attributes; |
5091 for (int i = attributes.length - 1; i >= 0; i--) { | 5201 for (int i = attributes.length - 1; i >= 0; i--) { |
5092 remove(attributes.item(i).name); | 5202 remove(attributes[i].name); |
5093 } | 5203 } |
5094 } | 5204 } |
5095 | 5205 |
5096 void forEach(void f(String key, String value)) { | 5206 void forEach(void f(String key, String value)) { |
5097 final attributes = _element.attributes; | 5207 final attributes = _element._attributes; |
5098 for (int i = 0, len = attributes.length; i < len; i++) { | 5208 for (int i = 0, len = attributes.length; i < len; i++) { |
5099 final item = attributes.item(i); | 5209 final item = attributes[i]; |
5100 f(item.name, item.value); | 5210 f(item.name, item.value); |
5101 } | 5211 } |
5102 } | 5212 } |
5103 | 5213 |
5104 Collection<String> getKeys() { | 5214 Collection<String> getKeys() { |
5105 // TODO(jacobr): generate a lazy collection instead. | 5215 // TODO(jacobr): generate a lazy collection instead. |
5106 final attributes = _element.attributes; | 5216 final attributes = _element._attributes; |
5107 final keys = new List<String>(attributes.length); | 5217 final keys = new List<String>(attributes.length); |
5108 for (int i = 0, len = attributes.length; i < len; i++) { | 5218 for (int i = 0, len = attributes.length; i < len; i++) { |
5109 keys[i] = attributes.item(i).name; | 5219 keys[i] = attributes[i].name; |
5110 } | 5220 } |
5111 return keys; | 5221 return keys; |
5112 } | 5222 } |
5113 | 5223 |
5114 Collection<String> getValues() { | 5224 Collection<String> getValues() { |
5115 // TODO(jacobr): generate a lazy collection instead. | 5225 // TODO(jacobr): generate a lazy collection instead. |
5116 final attributes = _element.attributes; | 5226 final attributes = _element._attributes; |
5117 final values = new List<String>(attributes.length); | 5227 final values = new List<String>(attributes.length); |
5118 for (int i = 0, len = attributes.length; i < len; i++) { | 5228 for (int i = 0, len = attributes.length; i < len; i++) { |
5119 values[i] = attributes.item(i).value; | 5229 values[i] = attributes[i].value; |
5120 } | 5230 } |
5121 return values; | 5231 return values; |
5122 } | 5232 } |
5123 | 5233 |
5124 /** | 5234 /** |
5125 * The number of {key, value} pairs in the map. | 5235 * The number of {key, value} pairs in the map. |
5126 */ | 5236 */ |
5127 int get length() { | 5237 int get length() { |
5128 return _element._attributes.length; | 5238 return _element._attributes.length; |
5129 } | 5239 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5161 * All your element measurement needs in one place | 5271 * All your element measurement needs in one place |
5162 * @domName none | 5272 * @domName none |
5163 */ | 5273 */ |
5164 class _ElementRectImpl implements ElementRect { | 5274 class _ElementRectImpl implements ElementRect { |
5165 final ClientRect client; | 5275 final ClientRect client; |
5166 final ClientRect offset; | 5276 final ClientRect offset; |
5167 final ClientRect scroll; | 5277 final ClientRect scroll; |
5168 | 5278 |
5169 // TODO(jacobr): should we move these outside of ElementRect to avoid the | 5279 // TODO(jacobr): should we move these outside of ElementRect to avoid the |
5170 // overhead of computing them every time even though they are rarely used. | 5280 // overhead of computing them every time even though they are rarely used. |
5171 final _ClientRectJs _boundingClientRect; | 5281 final _ClientRectImpl _boundingClientRect; |
5172 final _ClientRectListJs _clientRects; | 5282 final _ClientRectListImpl _clientRects; |
5173 | 5283 |
5174 _ElementRectImpl(_ElementJs element) : | 5284 _ElementRectImpl(_ElementImpl element) : |
5175 client = new _SimpleClientRect(element._clientLeft, | 5285 client = new _SimpleClientRect(element._clientLeft, |
5176 element._clientTop, | 5286 element._clientTop, |
5177 element._clientWidth, | 5287 element._clientWidth, |
5178 element._clientHeight), | 5288 element._clientHeight), |
5179 offset = new _SimpleClientRect(element._offsetLeft, | 5289 offset = new _SimpleClientRect(element._offsetLeft, |
5180 element._offsetTop, | 5290 element._offsetTop, |
5181 element._offsetWidth, | 5291 element._offsetWidth, |
5182 element._offsetHeight), | 5292 element._offsetHeight), |
5183 scroll = new _SimpleClientRect(element._scrollLeft, | 5293 scroll = new _SimpleClientRect(element._scrollLeft, |
5184 element._scrollTop, | 5294 element._scrollTop, |
5185 element._scrollWidth, | 5295 element._scrollWidth, |
5186 element._scrollHeight), | 5296 element._scrollHeight), |
5187 _boundingClientRect = element.getBoundingClientRect(), | 5297 _boundingClientRect = element._getBoundingClientRect(), |
5188 _clientRects = element.getClientRects(); | 5298 _clientRects = element._getClientRects(); |
5189 | 5299 |
5190 _ClientRectJs get bounding() => _boundingClientRect; | 5300 _ClientRectImpl get bounding() => _boundingClientRect; |
5191 | 5301 |
5192 // TODO(jacobr): cleanup. | 5302 // TODO(jacobr): cleanup. |
5193 List<ClientRect> get clientRects() { | 5303 List<ClientRect> get clientRects() { |
5194 final out = new List(_clientRects.length); | 5304 final out = new List(_clientRects.length); |
5195 for (num i = 0; i < _clientRects.length; i++) { | 5305 for (num i = 0; i < _clientRects.length; i++) { |
5196 out[i] = _clientRects.item(i); | 5306 out[i] = _clientRects.item(i); |
5197 } | 5307 } |
5198 return out; | 5308 return out; |
5199 } | 5309 } |
5200 } | 5310 } |
5201 | 5311 |
5202 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); | 5312 class _ElementImpl extends _NodeImpl implements Element native "*Element" { |
5203 | |
5204 class _ElementJs extends _NodeJs implements Element native "*Element" { | |
5205 | |
5206 static final _CUSTOM_PARENT_TAG_MAP = const { | |
5207 'body' : 'html', | |
5208 'head' : 'html', | |
5209 'caption' : 'table', | |
5210 'td': 'tr', | |
5211 'colgroup': 'table', | |
5212 'col' : 'colgroup', | |
5213 'tr' : 'tbody', | |
5214 'tbody' : 'table', | |
5215 'tfoot' : 'table', | |
5216 'thead' : 'table', | |
5217 'track' : 'audio', | |
5218 }; | |
5219 | |
5220 /** @domName Document.createElement */ | |
5221 factory Element.html(String html) { | |
5222 // TODO(jacobr): this method can be made more robust and performant. | |
5223 // 1) Cache the dummy parent elements required to use innerHTML rather than | |
5224 // creating them every call. | |
5225 // 2) Verify that the html does not contain leading or trailing text nodes. | |
5226 // 3) Verify that the html does not contain both <head> and <body> tags. | |
5227 // 4) Detatch the created element from its dummy parent. | |
5228 String parentTag = 'div'; | |
5229 String tag; | |
5230 final match = _START_TAG_REGEXP.firstMatch(html); | |
5231 if (match !== null) { | |
5232 tag = match.group(1).toLowerCase(); | |
5233 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { | |
5234 parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; | |
5235 } | |
5236 } | |
5237 _ElementJs temp = _document._createElement(parentTag); | |
5238 temp.innerHTML = html; | |
5239 | |
5240 if (temp._childElementCount == 1) { | |
5241 return temp._firstElementChild; | |
5242 } else if (parentTag == 'html' && temp._childElementCount == 2) { | |
5243 // Work around for edge case in WebKit and possibly other browsers where | |
5244 // both body and head elements are created even though the inner html | |
5245 // only contains a head or body element. | |
5246 return temp.elements[tag == 'head' ? 0 : 1]; | |
5247 } else { | |
5248 throw new IllegalArgumentException('HTML had ${temp._childElementCount} '
+ | |
5249 'top level elements but 1 expected'); | |
5250 } | |
5251 } | |
5252 | |
5253 /** @domName Document.createElement */ | |
5254 factory Element.tag(String tag) { | |
5255 return _document._createElement(tag); | |
5256 } | |
5257 | 5313 |
5258 // TODO(jacobr): caching these may hurt performance. | 5314 // TODO(jacobr): caching these may hurt performance. |
5259 ElementAttributeMap _elementAttributeMap; | 5315 ElementAttributeMap _elementAttributeMap; |
5260 _CssClassSet _cssClassSet; | 5316 _CssClassSet _cssClassSet; |
5261 _DataAttributeMap _dataAttributes; | 5317 _DataAttributeMap _dataAttributes; |
5262 | 5318 |
5263 // TODO(jacobr): remove these methods and let them be generated automatically | |
5264 // once dart supports defining fields with the same name in an interface and | |
5265 // its parent interface. | |
5266 String get title() native "return this.parentNode.title;"; | |
5267 void set title(String value) native "this.parentNode.title = value;"; | |
5268 | |
5269 /** | 5319 /** |
5270 * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute, | 5320 * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute, |
5271 * Element.removeAttribute | 5321 * Element.removeAttribute |
5272 */ | 5322 */ |
5273 Map<String, String> get attributes() { | 5323 Map<String, String> get attributes() { |
5274 if (_elementAttributeMap === null) { | 5324 if (_elementAttributeMap === null) { |
5275 _elementAttributeMap = new ElementAttributeMap._wrap(this); | 5325 _elementAttributeMap = new ElementAttributeMap._wrap(this); |
5276 } | 5326 } |
5277 return _elementAttributeMap; | 5327 return _elementAttributeMap; |
5278 } | 5328 } |
5279 | 5329 |
5280 void set attributes(Map<String, String> value) { | 5330 void set attributes(Map<String, String> value) { |
5281 Map<String, String> attributes = this.attributes; | 5331 Map<String, String> attributes = this.attributes; |
5282 attributes.clear(); | 5332 attributes.clear(); |
5283 for (String key in value.getKeys()) { | 5333 for (String key in value.getKeys()) { |
5284 attributes[key] = value[key]; | 5334 attributes[key] = value[key]; |
5285 } | 5335 } |
5286 } | 5336 } |
5287 | 5337 |
5288 void set elements(Collection<Element> value) { | 5338 void set elements(Collection<Element> value) { |
5289 final elements = this.elements; | 5339 final elements = this.elements; |
5290 elements.clear(); | 5340 elements.clear(); |
5291 elements.addAll(value); | 5341 elements.addAll(value); |
5292 } | 5342 } |
5293 | 5343 |
5294 /** | |
5295 * @domName childElementCount, firstElementChild, lastElementChild, | |
5296 * children, Node.nodes.add | |
5297 */ | |
5298 ElementList get elements() => new _ChildrenElementList._wrap(this); | 5344 ElementList get elements() => new _ChildrenElementList._wrap(this); |
5299 | 5345 |
5300 /** @domName querySelector, Document.getElementById */ | 5346 ElementList queryAll(String selectors) => |
5301 Element query(String selectors) native "return this.querySelector(selectors);"
; | 5347 new _FrozenElementList._wrap(_querySelectorAll(selectors)); |
5302 | 5348 |
5303 /** | |
5304 * @domName querySelectorAll, getElementsByClassName, getElementsByTagName, | |
5305 * getElementsByTagNameNS | |
5306 */ | |
5307 ElementList queryAll(String selectors) native "return this.querySelectorAll(se
lectors);"; | |
5308 | |
5309 /** @domName className, classList */ | |
5310 Set<String> get classes() { | 5349 Set<String> get classes() { |
5311 if (_cssClassSet === null) { | 5350 if (_cssClassSet === null) { |
5312 _cssClassSet = new _CssClassSet(this); | 5351 _cssClassSet = new _CssClassSet(this); |
5313 } | 5352 } |
5314 return _cssClassSet; | 5353 return _cssClassSet; |
5315 } | 5354 } |
5316 | 5355 |
5317 void set classes(Collection<String> value) { | 5356 void set classes(Collection<String> value) { |
5318 _CssClassSet classSet = classes; | 5357 _CssClassSet classSet = classes; |
5319 classSet.clear(); | 5358 classSet.clear(); |
5320 classSet.addAll(value); | 5359 classSet.addAll(value); |
5321 } | 5360 } |
5322 | 5361 |
5323 Map<String, String> get dataAttributes() { | 5362 Map<String, String> get dataAttributes() { |
5324 if (_dataAttributes === null) { | 5363 if (_dataAttributes === null) { |
5325 _dataAttributes = new _DataAttributeMap(attributes); | 5364 _dataAttributes = new _DataAttributeMap(attributes); |
5326 } | 5365 } |
5327 return _dataAttributes; | 5366 return _dataAttributes; |
5328 } | 5367 } |
5329 | 5368 |
5330 void set dataAttributes(Map<String, String> value) { | 5369 void set dataAttributes(Map<String, String> value) { |
5331 Map<String, String> dataAttributes = this.dataAttributes; | 5370 Map<String, String> dataAttributes = this.dataAttributes; |
5332 dataAttributes.clear(); | 5371 dataAttributes.clear(); |
5333 for (String key in value.getKeys()) { | 5372 for (String key in value.getKeys()) { |
5334 dataAttributes[key] = value[key]; | 5373 dataAttributes[key] = value[key]; |
5335 } | 5374 } |
5336 } | 5375 } |
5337 | 5376 |
5338 bool matchesSelector(String selectors) native "return this.webkitMatchesSelect
or(selectors)"; | |
5339 | |
5340 /** | |
5341 * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth, | |
5342 * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft, | |
5343 * scrollHeight, scrollWidth, scrollTop, scrollLeft | |
5344 */ | |
5345 Future<ElementRect> get rect() { | 5377 Future<ElementRect> get rect() { |
5346 return _createMeasurementFuture( | 5378 return _createMeasurementFuture( |
5347 () => new _ElementRectImpl(this), | 5379 () => new _ElementRectImpl(this), |
5348 new Completer<ElementRect>()); | 5380 new Completer<ElementRect>()); |
5349 } | 5381 } |
5350 | 5382 |
5351 /** @domName Window.getComputedStyle */ | |
5352 Future<CSSStyleDeclaration> get computedStyle() { | 5383 Future<CSSStyleDeclaration> get computedStyle() { |
5353 // TODO(jacobr): last param should be null, see b/5045788 | 5384 // TODO(jacobr): last param should be null, see b/5045788 |
5354 return getComputedStyle(''); | 5385 return getComputedStyle(''); |
5355 } | 5386 } |
5356 | 5387 |
5357 /** @domName Window.getComputedStyle */ | |
5358 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { | 5388 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { |
5359 return _createMeasurementFuture(() => | 5389 return _createMeasurementFuture(() => |
5360 _window._getComputedStyle(this, pseudoElement), | 5390 window._getComputedStyle(this, pseudoElement), |
5361 new Completer<CSSStyleDeclaration>()); | 5391 new Completer<CSSStyleDeclaration>()); |
5362 } | 5392 } |
5363 | 5393 |
5364 _ElementJs clone(bool deep) native; | |
5365 | |
5366 static final int ALLOW_KEYBOARD_INPUT = 1; | 5394 static final int ALLOW_KEYBOARD_INPUT = 1; |
5367 | 5395 |
5368 int get _childElementCount() native "return this.childElementCount;"; | 5396 int get _childElementCount() native "return this.childElementCount;"; |
5369 | 5397 |
5370 _HTMLCollectionJs get _children() native "return this.children;"; | 5398 _HTMLCollectionImpl get _children() native "return this.children;"; |
5371 | 5399 |
5372 final _DOMTokenListJs classList; | 5400 final _DOMTokenListImpl classList; |
5373 | 5401 |
5374 String get _className() native "return this.className;"; | 5402 String get _className() native "return this.className;"; |
5375 | 5403 |
5376 void set _className(String value) native "this.className = value;"; | 5404 void set _className(String value) native "this.className = value;"; |
5377 | 5405 |
5378 int get _clientHeight() native "return this.clientHeight;"; | 5406 int get _clientHeight() native "return this.clientHeight;"; |
5379 | 5407 |
5380 int get _clientLeft() native "return this.clientLeft;"; | 5408 int get _clientLeft() native "return this.clientLeft;"; |
5381 | 5409 |
5382 int get _clientTop() native "return this.clientTop;"; | 5410 int get _clientTop() native "return this.clientTop;"; |
5383 | 5411 |
5384 int get _clientWidth() native "return this.clientWidth;"; | 5412 int get _clientWidth() native "return this.clientWidth;"; |
5385 | 5413 |
5386 String contentEditable; | 5414 String contentEditable; |
5387 | 5415 |
5388 String dir; | 5416 String dir; |
5389 | 5417 |
5390 bool draggable; | 5418 bool draggable; |
5391 | 5419 |
5392 _ElementJs get _firstElementChild() native "return this.firstElementChild;"; | 5420 _ElementImpl get _firstElementChild() native "return this.firstElementChild;"; |
5393 | 5421 |
5394 bool hidden; | 5422 bool hidden; |
5395 | 5423 |
5396 String id; | 5424 String id; |
5397 | 5425 |
5398 String innerHTML; | 5426 String innerHTML; |
5399 | 5427 |
5400 final bool isContentEditable; | 5428 final bool isContentEditable; |
5401 | 5429 |
5402 String lang; | 5430 String lang; |
5403 | 5431 |
5404 final _ElementJs lastElementChild; | 5432 final _ElementImpl lastElementChild; |
5405 | 5433 |
5406 final _ElementJs nextElementSibling; | 5434 final _ElementImpl nextElementSibling; |
5407 | 5435 |
5408 int get _offsetHeight() native "return this.offsetHeight;"; | 5436 int get _offsetHeight() native "return this.offsetHeight;"; |
5409 | 5437 |
5410 int get _offsetLeft() native "return this.offsetLeft;"; | 5438 int get _offsetLeft() native "return this.offsetLeft;"; |
5411 | 5439 |
5412 final _ElementJs offsetParent; | 5440 final _ElementImpl offsetParent; |
5413 | 5441 |
5414 int get _offsetTop() native "return this.offsetTop;"; | 5442 int get _offsetTop() native "return this.offsetTop;"; |
5415 | 5443 |
5416 int get _offsetWidth() native "return this.offsetWidth;"; | 5444 int get _offsetWidth() native "return this.offsetWidth;"; |
5417 | 5445 |
5418 final String outerHTML; | 5446 final String outerHTML; |
5419 | 5447 |
5420 final _ElementJs previousElementSibling; | 5448 final _ElementImpl previousElementSibling; |
5421 | 5449 |
5422 int get _scrollHeight() native "return this.scrollHeight;"; | 5450 int get _scrollHeight() native "return this.scrollHeight;"; |
5423 | 5451 |
5424 int get _scrollLeft() native "return this.scrollLeft;"; | 5452 int get _scrollLeft() native "return this.scrollLeft;"; |
5425 | 5453 |
5426 void set _scrollLeft(int value) native "this.scrollLeft = value;"; | 5454 void set _scrollLeft(int value) native "this.scrollLeft = value;"; |
5427 | 5455 |
5428 int get _scrollTop() native "return this.scrollTop;"; | 5456 int get _scrollTop() native "return this.scrollTop;"; |
5429 | 5457 |
5430 void set _scrollTop(int value) native "this.scrollTop = value;"; | 5458 void set _scrollTop(int value) native "this.scrollTop = value;"; |
5431 | 5459 |
5432 int get _scrollWidth() native "return this.scrollWidth;"; | 5460 int get _scrollWidth() native "return this.scrollWidth;"; |
5433 | 5461 |
5434 bool spellcheck; | 5462 bool spellcheck; |
5435 | 5463 |
5436 final _CSSStyleDeclarationJs style; | 5464 final _CSSStyleDeclarationImpl style; |
5437 | 5465 |
5438 int tabIndex; | 5466 int tabIndex; |
5439 | 5467 |
5440 final String tagName; | 5468 final String tagName; |
5441 | 5469 |
5442 final String webkitRegionOverflow; | 5470 final String webkitRegionOverflow; |
5443 | 5471 |
5444 String webkitdropzone; | 5472 String webkitdropzone; |
5445 | 5473 |
5446 _ElementEventsImpl get on() => | 5474 _ElementEventsImpl get on() => |
5447 new _ElementEventsImpl(this); | 5475 new _ElementEventsImpl(this); |
5448 | 5476 |
5449 void blur() native; | 5477 void blur() native; |
5450 | 5478 |
5451 void click() native; | 5479 void click() native; |
5452 | 5480 |
5453 void focus() native; | 5481 void focus() native; |
5454 | 5482 |
5455 String _getAttribute(String name) native "return this.getAttribute(name);"; | 5483 String _getAttribute(String name) native "return this.getAttribute(name);"; |
5456 | 5484 |
5457 _ClientRectJs getBoundingClientRect() native; | 5485 _ClientRectImpl _getBoundingClientRect() native "return this.getBoundingClient
Rect();"; |
5458 | 5486 |
5459 _ClientRectListJs getClientRects() native; | 5487 _ClientRectListImpl _getClientRects() native "return this.getClientRects();"; |
5460 | |
5461 _NodeListJs getElementsByClassName(String name) native; | |
5462 | |
5463 _NodeListJs getElementsByTagName(String name) native; | |
5464 | |
5465 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | |
5466 | 5488 |
5467 bool _hasAttribute(String name) native "return this.hasAttribute(name);"; | 5489 bool _hasAttribute(String name) native "return this.hasAttribute(name);"; |
5468 | 5490 |
5469 _ElementJs insertAdjacentElement(String where, _ElementJs element) native; | 5491 _ElementImpl insertAdjacentElement(String where, _ElementImpl element) native; |
5470 | 5492 |
5471 void insertAdjacentHTML(String where, String html) native; | 5493 void insertAdjacentHTML(String where, String html) native; |
5472 | 5494 |
5473 void insertAdjacentText(String where, String text) native; | 5495 void insertAdjacentText(String where, String text) native; |
5474 | 5496 |
5475 _ElementJs querySelector(String selectors) native; | 5497 _ElementImpl query(String selectors) native "return this.querySelector(selecto
rs);"; |
5476 | 5498 |
5477 _NodeListJs querySelectorAll(String selectors) native; | 5499 _NodeListImpl _querySelectorAll(String selectors) native "return this.querySel
ectorAll(selectors);"; |
5478 | 5500 |
5479 void _removeAttribute(String name) native "this.removeAttribute(name);"; | 5501 void _removeAttribute(String name) native "this.removeAttribute(name);"; |
5480 | 5502 |
5481 void scrollByLines(int lines) native; | 5503 void scrollByLines(int lines) native; |
5482 | 5504 |
5483 void scrollByPages(int pages) native; | 5505 void scrollByPages(int pages) native; |
5484 | 5506 |
5485 void scrollIntoView([bool alignWithTop = null]) native; | 5507 void scrollIntoView([bool centerIfNeeded = null]) native "this.scrollIntoViewI
fNeeded(centerIfNeeded);"; |
5486 | |
5487 void scrollIntoViewIfNeeded([bool centerIfNeeded = null]) native; | |
5488 | 5508 |
5489 void _setAttribute(String name, String value) native "this.setAttribute(name,
value);"; | 5509 void _setAttribute(String name, String value) native "this.setAttribute(name,
value);"; |
5490 | 5510 |
5491 bool webkitMatchesSelector(String selectors) native; | 5511 bool matchesSelector(String selectors) native "return this.webkitMatchesSelect
or(selectors);"; |
5492 | 5512 |
5493 void webkitRequestFullScreen(int flags) native; | 5513 void webkitRequestFullScreen(int flags) native; |
5494 | 5514 |
5495 } | 5515 } |
5496 | 5516 |
5497 class _ElementEventsImpl extends _EventsImpl implements ElementEvents { | 5517 class _ElementEventsImpl extends _EventsImpl implements ElementEvents { |
5498 _ElementEventsImpl(_ptr) : super(_ptr); | 5518 _ElementEventsImpl(_ptr) : super(_ptr); |
5499 | 5519 |
5500 EventListenerList get abort() => _get('abort'); | 5520 EventListenerList get abort() => _get('abort'); |
5501 | 5521 |
(...skipping 28 matching lines...) Expand all Loading... |
5530 EventListenerList get dragOver() => _get('dragover'); | 5550 EventListenerList get dragOver() => _get('dragover'); |
5531 | 5551 |
5532 EventListenerList get dragStart() => _get('dragstart'); | 5552 EventListenerList get dragStart() => _get('dragstart'); |
5533 | 5553 |
5534 EventListenerList get drop() => _get('drop'); | 5554 EventListenerList get drop() => _get('drop'); |
5535 | 5555 |
5536 EventListenerList get error() => _get('error'); | 5556 EventListenerList get error() => _get('error'); |
5537 | 5557 |
5538 EventListenerList get focus() => _get('focus'); | 5558 EventListenerList get focus() => _get('focus'); |
5539 | 5559 |
5540 EventListenerList get fullScreenChange() => _get('webkitFullScreenChange'); | 5560 EventListenerList get fullscreenChange() => _get('webkitfullscreenchange'); |
5541 | 5561 |
5542 EventListenerList get fullScreenError() => _get('webkitFullScreenError'); | 5562 EventListenerList get fullscreenError() => _get('webkitfullscreenerror'); |
5543 | 5563 |
5544 EventListenerList get input() => _get('input'); | 5564 EventListenerList get input() => _get('input'); |
5545 | 5565 |
5546 EventListenerList get invalid() => _get('invalid'); | 5566 EventListenerList get invalid() => _get('invalid'); |
5547 | 5567 |
5548 EventListenerList get keyDown() => _get('keydown'); | 5568 EventListenerList get keyDown() => _get('keydown'); |
5549 | 5569 |
5550 EventListenerList get keyPress() => _get('keypress'); | 5570 EventListenerList get keyPress() => _get('keypress'); |
5551 | 5571 |
5552 EventListenerList get keyUp() => _get('keyup'); | 5572 EventListenerList get keyUp() => _get('keyup'); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5585 | 5605 |
5586 EventListenerList get touchLeave() => _get('touchleave'); | 5606 EventListenerList get touchLeave() => _get('touchleave'); |
5587 | 5607 |
5588 EventListenerList get touchMove() => _get('touchmove'); | 5608 EventListenerList get touchMove() => _get('touchmove'); |
5589 | 5609 |
5590 EventListenerList get touchStart() => _get('touchstart'); | 5610 EventListenerList get touchStart() => _get('touchstart'); |
5591 | 5611 |
5592 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); | 5612 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); |
5593 } | 5613 } |
5594 | 5614 |
5595 class _ElementTimeControlJs implements ElementTimeControl native "*ElementTimeCo
ntrol" { | 5615 class _ElementTimeControlImpl implements ElementTimeControl native "*ElementTime
Control" { |
5596 | 5616 |
5597 void beginElement() native; | 5617 void beginElement() native; |
5598 | 5618 |
5599 void beginElementAt(num offset) native; | 5619 void beginElementAt(num offset) native; |
5600 | 5620 |
5601 void endElement() native; | 5621 void endElement() native; |
5602 | 5622 |
5603 void endElementAt(num offset) native; | 5623 void endElementAt(num offset) native; |
5604 } | 5624 } |
5605 | 5625 |
5606 class _ElementTraversalJs implements ElementTraversal native "*ElementTraversal"
{ | 5626 class _ElementTraversalImpl implements ElementTraversal native "*ElementTraversa
l" { |
5607 | 5627 |
5608 final int childElementCount; | 5628 final int childElementCount; |
5609 | 5629 |
5610 final _ElementJs firstElementChild; | 5630 final _ElementImpl firstElementChild; |
5611 | 5631 |
5612 final _ElementJs lastElementChild; | 5632 final _ElementImpl lastElementChild; |
5613 | 5633 |
5614 final _ElementJs nextElementSibling; | 5634 final _ElementImpl nextElementSibling; |
5615 | 5635 |
5616 final _ElementJs previousElementSibling; | 5636 final _ElementImpl previousElementSibling; |
5617 } | 5637 } |
5618 | 5638 |
5619 class _EmbedElementJs extends _ElementJs implements EmbedElement native "*HTMLEm
bedElement" { | 5639 class _EmbedElementImpl extends _ElementImpl implements EmbedElement native "*HT
MLEmbedElement" { |
5620 | 5640 |
5621 String align; | 5641 String align; |
5622 | 5642 |
5623 String height; | 5643 String height; |
5624 | 5644 |
5625 String name; | 5645 String name; |
5626 | 5646 |
5627 String src; | 5647 String src; |
5628 | 5648 |
5629 String type; | 5649 String type; |
5630 | 5650 |
5631 String width; | 5651 String width; |
5632 } | 5652 } |
5633 | 5653 |
5634 class _EntityJs extends _NodeJs implements Entity native "*Entity" { | 5654 class _EntityImpl extends _NodeImpl implements Entity native "*Entity" { |
5635 | 5655 |
5636 final String notationName; | 5656 final String notationName; |
5637 | 5657 |
5638 final String publicId; | 5658 final String publicId; |
5639 | 5659 |
5640 final String systemId; | 5660 final String systemId; |
5641 } | 5661 } |
5642 | 5662 |
5643 class _EntityReferenceJs extends _NodeJs implements EntityReference native "*Ent
ityReference" { | 5663 class _EntityReferenceImpl extends _NodeImpl implements EntityReference native "
*EntityReference" { |
5644 } | 5664 } |
5645 | 5665 |
5646 class _EntryJs implements Entry native "*Entry" { | 5666 class _EntryImpl implements Entry native "*Entry" { |
5647 | 5667 |
5648 final _DOMFileSystemJs filesystem; | 5668 final _DOMFileSystemImpl filesystem; |
5649 | 5669 |
5650 final String fullPath; | 5670 final String fullPath; |
5651 | 5671 |
5652 final bool isDirectory; | 5672 final bool isDirectory; |
5653 | 5673 |
5654 final bool isFile; | 5674 final bool isFile; |
5655 | 5675 |
5656 final String name; | 5676 final String name; |
5657 | 5677 |
5658 void copyTo(_DirectoryEntryJs parent, [String name = null, EntryCallback succe
ssCallback = null, ErrorCallback errorCallback = null]) native; | 5678 void copyTo(_DirectoryEntryImpl parent, [String name = null, EntryCallback suc
cessCallback = null, ErrorCallback errorCallback = null]) native; |
5659 | 5679 |
5660 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k = null]) native; | 5680 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k = null]) native; |
5661 | 5681 |
5662 void getParent([EntryCallback successCallback = null, ErrorCallback errorCallb
ack = null]) native; | 5682 void getParent([EntryCallback successCallback = null, ErrorCallback errorCallb
ack = null]) native; |
5663 | 5683 |
5664 void moveTo(_DirectoryEntryJs parent, [String name = null, EntryCallback succe
ssCallback = null, ErrorCallback errorCallback = null]) native; | 5684 void moveTo(_DirectoryEntryImpl parent, [String name = null, EntryCallback suc
cessCallback = null, ErrorCallback errorCallback = null]) native; |
5665 | 5685 |
5666 void remove(VoidCallback successCallback, [ErrorCallback errorCallback = null]
) native; | 5686 void remove(VoidCallback successCallback, [ErrorCallback errorCallback = null]
) native; |
5667 | 5687 |
5668 String toURL() native; | 5688 String toURL() native; |
5669 } | 5689 } |
5670 | 5690 |
5671 class _EntryArrayJs implements EntryArray native "*EntryArray" { | 5691 class _EntryArrayImpl implements EntryArray native "*EntryArray" { |
5672 | 5692 |
5673 final int length; | 5693 final int length; |
5674 | 5694 |
5675 _EntryJs item(int index) native; | 5695 _EntryImpl item(int index) native; |
5676 } | 5696 } |
5677 | 5697 |
5678 class _EntryArraySyncJs implements EntryArraySync native "*EntryArraySync" { | 5698 class _EntryArraySyncImpl implements EntryArraySync native "*EntryArraySync" { |
5679 | 5699 |
5680 final int length; | 5700 final int length; |
5681 | 5701 |
5682 _EntrySyncJs item(int index) native; | 5702 _EntrySyncImpl item(int index) native; |
5683 } | 5703 } |
5684 | 5704 |
5685 class _EntrySyncJs implements EntrySync native "*EntrySync" { | 5705 class _EntrySyncImpl implements EntrySync native "*EntrySync" { |
5686 | 5706 |
5687 final _DOMFileSystemSyncJs filesystem; | 5707 final _DOMFileSystemSyncImpl filesystem; |
5688 | 5708 |
5689 final String fullPath; | 5709 final String fullPath; |
5690 | 5710 |
5691 final bool isDirectory; | 5711 final bool isDirectory; |
5692 | 5712 |
5693 final bool isFile; | 5713 final bool isFile; |
5694 | 5714 |
5695 final String name; | 5715 final String name; |
5696 | 5716 |
5697 _EntrySyncJs copyTo(_DirectoryEntrySyncJs parent, String name) native; | 5717 _EntrySyncImpl copyTo(_DirectoryEntrySyncImpl parent, String name) native; |
5698 | 5718 |
5699 _MetadataJs getMetadata() native; | 5719 _MetadataImpl getMetadata() native; |
5700 | 5720 |
5701 _DirectoryEntrySyncJs getParent() native; | 5721 _DirectoryEntrySyncImpl getParent() native; |
5702 | 5722 |
5703 _EntrySyncJs moveTo(_DirectoryEntrySyncJs parent, String name) native; | 5723 _EntrySyncImpl moveTo(_DirectoryEntrySyncImpl parent, String name) native; |
5704 | 5724 |
5705 void remove() native; | 5725 void remove() native; |
5706 | 5726 |
5707 String toURL() native; | 5727 String toURL() native; |
5708 } | 5728 } |
5709 | 5729 |
5710 class _ErrorEventJs extends _EventJs implements ErrorEvent native "*ErrorEvent"
{ | 5730 class _ErrorEventImpl extends _EventImpl implements ErrorEvent native "*ErrorEve
nt" { |
5711 | 5731 |
5712 final String filename; | 5732 final String filename; |
5713 | 5733 |
5714 final int lineno; | 5734 final int lineno; |
5715 | 5735 |
5716 final String message; | 5736 final String message; |
5717 } | 5737 } |
5718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
5719 // for details. All rights reserved. Use of this source code is governed by a | |
5720 // BSD-style license that can be found in the LICENSE file. | |
5721 | 5738 |
5722 class _EventJs implements Event native "*Event" { | 5739 class _EventImpl implements Event native "*Event" { |
5723 | |
5724 EventTarget get target() => _FixHtmlDocumentReference(_target); | |
5725 EventTarget get srcElement() => _FixHtmlDocumentReference(_srcElement); | |
5726 EventTarget get currentTarget() => | |
5727 _FixHtmlDocumentReference(_currentTarget); | |
5728 | 5740 |
5729 static final int AT_TARGET = 2; | 5741 static final int AT_TARGET = 2; |
5730 | 5742 |
5731 static final int BLUR = 8192; | 5743 static final int BLUR = 8192; |
5732 | 5744 |
5733 static final int BUBBLING_PHASE = 3; | 5745 static final int BUBBLING_PHASE = 3; |
5734 | 5746 |
5735 static final int CAPTURING_PHASE = 1; | 5747 static final int CAPTURING_PHASE = 1; |
5736 | 5748 |
5737 static final int CHANGE = 32768; | 5749 static final int CHANGE = 32768; |
(...skipping 25 matching lines...) Expand all Loading... |
5763 static final int MOUSEUP = 2; | 5775 static final int MOUSEUP = 2; |
5764 | 5776 |
5765 static final int SELECT = 16384; | 5777 static final int SELECT = 16384; |
5766 | 5778 |
5767 final bool bubbles; | 5779 final bool bubbles; |
5768 | 5780 |
5769 bool cancelBubble; | 5781 bool cancelBubble; |
5770 | 5782 |
5771 final bool cancelable; | 5783 final bool cancelable; |
5772 | 5784 |
5773 final _ClipboardJs clipboardData; | 5785 final _ClipboardImpl clipboardData; |
5774 | 5786 |
5775 _EventTargetJs get _currentTarget() native "return this.currentTarget;"; | 5787 _EventTargetImpl get currentTarget() => _FixHtmlDocumentReference(_currentTarg
et); |
| 5788 |
| 5789 _EventTargetImpl get _currentTarget() native "return this.currentTarget;"; |
5776 | 5790 |
5777 final bool defaultPrevented; | 5791 final bool defaultPrevented; |
5778 | 5792 |
5779 final int eventPhase; | 5793 final int eventPhase; |
5780 | 5794 |
5781 bool returnValue; | 5795 bool returnValue; |
5782 | 5796 |
5783 _EventTargetJs get _srcElement() native "return this.srcElement;"; | 5797 _EventTargetImpl get srcElement() => _FixHtmlDocumentReference(_srcElement); |
5784 | 5798 |
5785 _EventTargetJs get _target() native "return this.target;"; | 5799 _EventTargetImpl get _srcElement() native "return this.srcElement;"; |
| 5800 |
| 5801 _EventTargetImpl get target() => _FixHtmlDocumentReference(_target); |
| 5802 |
| 5803 _EventTargetImpl get _target() native "return this.target;"; |
5786 | 5804 |
5787 final int timeStamp; | 5805 final int timeStamp; |
5788 | 5806 |
5789 final String type; | 5807 final String type; |
5790 | 5808 |
5791 void _initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) na
tive "this.initEvent(eventTypeArg, canBubbleArg, cancelableArg);"; | 5809 void _initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) na
tive "this.initEvent(eventTypeArg, canBubbleArg, cancelableArg);"; |
5792 | 5810 |
5793 void preventDefault() native; | 5811 void preventDefault() native; |
5794 | 5812 |
5795 void stopImmediatePropagation() native; | 5813 void stopImmediatePropagation() native; |
5796 | 5814 |
5797 void stopPropagation() native; | 5815 void stopPropagation() native; |
5798 | |
5799 } | 5816 } |
5800 | 5817 |
5801 class _EventExceptionJs implements EventException native "*EventException" { | 5818 class _EventExceptionImpl implements EventException native "*EventException" { |
5802 | 5819 |
5803 static final int DISPATCH_REQUEST_ERR = 1; | 5820 static final int DISPATCH_REQUEST_ERR = 1; |
5804 | 5821 |
5805 static final int UNSPECIFIED_EVENT_TYPE_ERR = 0; | 5822 static final int UNSPECIFIED_EVENT_TYPE_ERR = 0; |
5806 | 5823 |
5807 final int code; | 5824 final int code; |
5808 | 5825 |
5809 final String message; | 5826 final String message; |
5810 | 5827 |
5811 final String name; | 5828 final String name; |
5812 | 5829 |
5813 String toString() native; | 5830 String toString() native; |
5814 } | 5831 } |
5815 | 5832 |
5816 class _EventSourceJs implements EventSource native "*EventSource" { | 5833 class _EventSourceImpl extends _EventTargetImpl implements EventSource native "*
EventSource" { |
5817 | 5834 |
5818 static final int CLOSED = 2; | 5835 static final int CLOSED = 2; |
5819 | 5836 |
5820 static final int CONNECTING = 0; | 5837 static final int CONNECTING = 0; |
5821 | 5838 |
5822 static final int OPEN = 1; | 5839 static final int OPEN = 1; |
5823 | 5840 |
5824 final String URL; | 5841 final String URL; |
5825 | 5842 |
5826 final int readyState; | 5843 final int readyState; |
5827 | 5844 |
5828 final String url; | 5845 final String url; |
5829 | 5846 |
5830 _EventSourceEventsImpl get on() => | 5847 _EventSourceEventsImpl get on() => |
5831 new _EventSourceEventsImpl(this); | 5848 new _EventSourceEventsImpl(this); |
5832 | 5849 |
5833 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 5850 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
5834 | 5851 |
5835 void close() native; | 5852 void close() native; |
5836 | 5853 |
5837 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | 5854 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
5838 | 5855 |
5839 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 5856 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
5840 } | 5857 } |
5841 | 5858 |
5842 class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents { | 5859 class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents { |
5843 _EventSourceEventsImpl(_ptr) : super(_ptr); | 5860 _EventSourceEventsImpl(_ptr) : super(_ptr); |
5844 | 5861 |
5845 EventListenerList get error() => _get('error'); | 5862 EventListenerList get error() => _get('error'); |
5846 | 5863 |
5847 EventListenerList get message() => _get('message'); | 5864 EventListenerList get message() => _get('message'); |
5848 | 5865 |
5849 EventListenerList get open() => _get('open'); | 5866 EventListenerList get open() => _get('open'); |
5850 } | 5867 } |
5851 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
5852 // for details. All rights reserved. Use of this source code is governed by a | 5869 // for details. All rights reserved. Use of this source code is governed by a |
5853 // BSD-style license that can be found in the LICENSE file. | 5870 // BSD-style license that can be found in the LICENSE file. |
5854 | 5871 |
5855 class _EventsImpl implements Events { | 5872 class _EventsImpl implements Events { |
5856 /* Raw event target. */ | 5873 /* Raw event target. */ |
5857 // TODO(jacobr): it would be nice if we could specify this as | 5874 // TODO(jacobr): it would be nice if we could specify this as |
5858 // _EventTargetJs or EventTarget | 5875 // _EventTargetImpl or EventTarget |
5859 final var _ptr; | 5876 final var _ptr; |
5860 | 5877 |
5861 _EventsImpl(this._ptr); | 5878 _EventsImpl(this._ptr); |
5862 | 5879 |
5863 _EventListenerListImpl operator [](String type) => _get(type.toLowerCase()); | 5880 _EventListenerListImpl operator [](String type) => _get(type.toLowerCase()); |
5864 | 5881 |
5865 _EventListenerListImpl _get(String type) { | 5882 _EventListenerListImpl _get(String type) { |
5866 return new _EventListenerListImpl(_ptr, type); | 5883 return new _EventListenerListImpl(_ptr, type); |
5867 } | 5884 } |
5868 } | 5885 } |
5869 | 5886 |
5870 class _EventListenerListImpl implements EventListenerList { | 5887 class _EventListenerListImpl implements EventListenerList { |
5871 | 5888 |
5872 // TODO(jacobr): make this _EventTargetJs | 5889 // TODO(jacobr): make this _EventTargetImpl |
5873 final var _ptr; | 5890 final var _ptr; |
5874 final String _type; | 5891 final String _type; |
5875 | 5892 |
5876 _EventListenerListImpl(this._ptr, this._type); | 5893 _EventListenerListImpl(this._ptr, this._type); |
5877 | 5894 |
5878 // TODO(jacobr): implement equals. | 5895 // TODO(jacobr): implement equals. |
5879 | 5896 |
5880 _EventListenerListImpl add(EventListener listener, | 5897 _EventListenerListImpl add(EventListener listener, |
5881 [bool useCapture = false]) { | 5898 [bool useCapture = false]) { |
5882 _add(listener, useCapture); | 5899 _add(listener, useCapture); |
(...skipping 16 matching lines...) Expand all Loading... |
5899 void _add(EventListener listener, bool useCapture) { | 5916 void _add(EventListener listener, bool useCapture) { |
5900 _ptr._addEventListener(_type, listener, useCapture); | 5917 _ptr._addEventListener(_type, listener, useCapture); |
5901 } | 5918 } |
5902 | 5919 |
5903 void _remove(EventListener listener, bool useCapture) { | 5920 void _remove(EventListener listener, bool useCapture) { |
5904 _ptr._removeEventListener(_type, listener, useCapture); | 5921 _ptr._removeEventListener(_type, listener, useCapture); |
5905 } | 5922 } |
5906 } | 5923 } |
5907 | 5924 |
5908 | 5925 |
5909 class _EventTargetJs implements EventTarget native "*EventTarget" { | 5926 class _EventTargetImpl implements EventTarget native "*EventTarget" { |
5910 | 5927 |
5911 Events get on() => new _EventsImpl(this); | 5928 Events get on() => new _EventsImpl(this); |
5912 | 5929 |
5913 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 5930 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
5914 | 5931 |
5915 bool _dispatchEvent(_EventJs event) native "return this.dispatchEvent(event);"
; | 5932 bool _dispatchEvent(_EventImpl event) native "return this.dispatchEvent(event)
;"; |
5916 | 5933 |
5917 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 5934 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
5918 | 5935 |
5919 } | 5936 } |
5920 | 5937 |
5921 class _FieldSetElementJs extends _ElementJs implements FieldSetElement native "*
HTMLFieldSetElement" { | 5938 class _FieldSetElementImpl extends _ElementImpl implements FieldSetElement nativ
e "*HTMLFieldSetElement" { |
5922 | 5939 |
5923 final _FormElementJs form; | 5940 final _FormElementImpl form; |
5924 | 5941 |
5925 final String validationMessage; | 5942 final String validationMessage; |
5926 | 5943 |
5927 final _ValidityStateJs validity; | 5944 final _ValidityStateImpl validity; |
5928 | 5945 |
5929 final bool willValidate; | 5946 final bool willValidate; |
5930 | 5947 |
5931 bool checkValidity() native; | 5948 bool checkValidity() native; |
5932 | 5949 |
5933 void setCustomValidity(String error) native; | 5950 void setCustomValidity(String error) native; |
5934 } | 5951 } |
5935 | 5952 |
5936 class _FileJs extends _BlobJs implements File native "*File" { | 5953 class _FileImpl extends _BlobImpl implements File native "*File" { |
5937 | 5954 |
5938 final String fileName; | 5955 final String fileName; |
5939 | 5956 |
5940 final int fileSize; | 5957 final int fileSize; |
5941 | 5958 |
5942 final Date lastModifiedDate; | 5959 final Date lastModifiedDate; |
5943 | 5960 |
5944 final String name; | 5961 final String name; |
5945 | 5962 |
5946 final String webkitRelativePath; | 5963 final String webkitRelativePath; |
5947 } | 5964 } |
5948 | 5965 |
5949 class _FileEntryJs extends _EntryJs implements FileEntry native "*FileEntry" { | 5966 class _FileEntryImpl extends _EntryImpl implements FileEntry native "*FileEntry"
{ |
5950 | 5967 |
5951 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back = null]) native; | 5968 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back = null]) native; |
5952 | 5969 |
5953 void file(FileCallback successCallback, [ErrorCallback errorCallback = null])
native; | 5970 void file(FileCallback successCallback, [ErrorCallback errorCallback = null])
native; |
5954 } | 5971 } |
5955 | 5972 |
5956 class _FileEntrySyncJs extends _EntrySyncJs implements FileEntrySync native "*Fi
leEntrySync" { | 5973 class _FileEntrySyncImpl extends _EntrySyncImpl implements FileEntrySync native
"*FileEntrySync" { |
5957 | 5974 |
5958 _FileWriterSyncJs createWriter() native; | 5975 _FileWriterSyncImpl createWriter() native; |
5959 | 5976 |
5960 _FileJs file() native; | 5977 _FileImpl file() native; |
5961 } | 5978 } |
5962 | 5979 |
5963 class _FileErrorJs implements FileError native "*FileError" { | 5980 class _FileErrorImpl implements FileError native "*FileError" { |
5964 | 5981 |
5965 static final int ABORT_ERR = 3; | 5982 static final int ABORT_ERR = 3; |
5966 | 5983 |
5967 static final int ENCODING_ERR = 5; | 5984 static final int ENCODING_ERR = 5; |
5968 | 5985 |
5969 static final int INVALID_MODIFICATION_ERR = 9; | 5986 static final int INVALID_MODIFICATION_ERR = 9; |
5970 | 5987 |
5971 static final int INVALID_STATE_ERR = 7; | 5988 static final int INVALID_STATE_ERR = 7; |
5972 | 5989 |
5973 static final int NOT_FOUND_ERR = 1; | 5990 static final int NOT_FOUND_ERR = 1; |
5974 | 5991 |
5975 static final int NOT_READABLE_ERR = 4; | 5992 static final int NOT_READABLE_ERR = 4; |
5976 | 5993 |
5977 static final int NO_MODIFICATION_ALLOWED_ERR = 6; | 5994 static final int NO_MODIFICATION_ALLOWED_ERR = 6; |
5978 | 5995 |
5979 static final int PATH_EXISTS_ERR = 12; | 5996 static final int PATH_EXISTS_ERR = 12; |
5980 | 5997 |
5981 static final int QUOTA_EXCEEDED_ERR = 10; | 5998 static final int QUOTA_EXCEEDED_ERR = 10; |
5982 | 5999 |
5983 static final int SECURITY_ERR = 2; | 6000 static final int SECURITY_ERR = 2; |
5984 | 6001 |
5985 static final int SYNTAX_ERR = 8; | 6002 static final int SYNTAX_ERR = 8; |
5986 | 6003 |
5987 static final int TYPE_MISMATCH_ERR = 11; | 6004 static final int TYPE_MISMATCH_ERR = 11; |
5988 | 6005 |
5989 final int code; | 6006 final int code; |
5990 } | 6007 } |
5991 | 6008 |
5992 class _FileExceptionJs implements FileException native "*FileException" { | 6009 class _FileExceptionImpl implements FileException native "*FileException" { |
5993 | 6010 |
5994 static final int ABORT_ERR = 3; | 6011 static final int ABORT_ERR = 3; |
5995 | 6012 |
5996 static final int ENCODING_ERR = 5; | 6013 static final int ENCODING_ERR = 5; |
5997 | 6014 |
5998 static final int INVALID_MODIFICATION_ERR = 9; | 6015 static final int INVALID_MODIFICATION_ERR = 9; |
5999 | 6016 |
6000 static final int INVALID_STATE_ERR = 7; | 6017 static final int INVALID_STATE_ERR = 7; |
6001 | 6018 |
6002 static final int NOT_FOUND_ERR = 1; | 6019 static final int NOT_FOUND_ERR = 1; |
(...skipping 14 matching lines...) Expand all Loading... |
6017 | 6034 |
6018 final int code; | 6035 final int code; |
6019 | 6036 |
6020 final String message; | 6037 final String message; |
6021 | 6038 |
6022 final String name; | 6039 final String name; |
6023 | 6040 |
6024 String toString() native; | 6041 String toString() native; |
6025 } | 6042 } |
6026 | 6043 |
6027 class _FileListJs implements FileList native "*FileList" { | 6044 class _FileListImpl implements FileList native "*FileList" { |
6028 | 6045 |
6029 final int length; | 6046 final int length; |
6030 | 6047 |
6031 _FileJs item(int index) native; | 6048 _FileImpl item(int index) native; |
6032 } | 6049 } |
6033 | 6050 |
6034 class _FileReaderJs implements FileReader native "*FileReader" { | 6051 class _FileReaderImpl implements FileReader native "*FileReader" { |
6035 | 6052 |
6036 static final int DONE = 2; | 6053 static final int DONE = 2; |
6037 | 6054 |
6038 static final int EMPTY = 0; | 6055 static final int EMPTY = 0; |
6039 | 6056 |
6040 static final int LOADING = 1; | 6057 static final int LOADING = 1; |
6041 | 6058 |
6042 final _FileErrorJs error; | 6059 final _FileErrorImpl error; |
6043 | 6060 |
6044 EventListener onabort; | 6061 EventListener onabort; |
6045 | 6062 |
6046 EventListener onerror; | 6063 EventListener onerror; |
6047 | 6064 |
6048 EventListener onload; | 6065 EventListener onload; |
6049 | 6066 |
6050 EventListener onloadend; | 6067 EventListener onloadend; |
6051 | 6068 |
6052 EventListener onloadstart; | 6069 EventListener onloadstart; |
6053 | 6070 |
6054 EventListener onprogress; | 6071 EventListener onprogress; |
6055 | 6072 |
6056 final int readyState; | 6073 final int readyState; |
6057 | 6074 |
6058 final Object result; | 6075 final Object result; |
6059 | 6076 |
6060 void abort() native; | 6077 void abort() native; |
6061 | 6078 |
6062 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 6079 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
6063 | 6080 |
6064 bool dispatchEvent(_EventJs evt) native; | 6081 bool dispatchEvent(_EventImpl evt) native; |
6065 | 6082 |
6066 void readAsArrayBuffer(_BlobJs blob) native; | 6083 void readAsArrayBuffer(_BlobImpl blob) native; |
6067 | 6084 |
6068 void readAsBinaryString(_BlobJs blob) native; | 6085 void readAsBinaryString(_BlobImpl blob) native; |
6069 | 6086 |
6070 void readAsDataURL(_BlobJs blob) native; | 6087 void readAsDataURL(_BlobImpl blob) native; |
6071 | 6088 |
6072 void readAsText(_BlobJs blob, [String encoding = null]) native; | 6089 void readAsText(_BlobImpl blob, [String encoding = null]) native; |
6073 | 6090 |
6074 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 6091 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
6075 } | 6092 } |
6076 | 6093 |
6077 class _FileReaderSyncJs implements FileReaderSync native "*FileReaderSync" { | 6094 class _FileReaderSyncImpl implements FileReaderSync native "*FileReaderSync" { |
6078 | 6095 |
6079 _ArrayBufferJs readAsArrayBuffer(_BlobJs blob) native; | 6096 _ArrayBufferImpl readAsArrayBuffer(_BlobImpl blob) native; |
6080 | 6097 |
6081 String readAsBinaryString(_BlobJs blob) native; | 6098 String readAsBinaryString(_BlobImpl blob) native; |
6082 | 6099 |
6083 String readAsDataURL(_BlobJs blob) native; | 6100 String readAsDataURL(_BlobImpl blob) native; |
6084 | 6101 |
6085 String readAsText(_BlobJs blob, [String encoding = null]) native; | 6102 String readAsText(_BlobImpl blob, [String encoding = null]) native; |
6086 } | 6103 } |
6087 | 6104 |
6088 class _FileWriterJs implements FileWriter native "*FileWriter" { | 6105 class _FileWriterImpl implements FileWriter native "*FileWriter" { |
6089 | 6106 |
6090 static final int DONE = 2; | 6107 static final int DONE = 2; |
6091 | 6108 |
6092 static final int INIT = 0; | 6109 static final int INIT = 0; |
6093 | 6110 |
6094 static final int WRITING = 1; | 6111 static final int WRITING = 1; |
6095 | 6112 |
6096 final _FileErrorJs error; | 6113 final _FileErrorImpl error; |
6097 | 6114 |
6098 final int length; | 6115 final int length; |
6099 | 6116 |
6100 EventListener onabort; | 6117 EventListener onabort; |
6101 | 6118 |
6102 EventListener onerror; | 6119 EventListener onerror; |
6103 | 6120 |
6104 EventListener onprogress; | 6121 EventListener onprogress; |
6105 | 6122 |
6106 EventListener onwrite; | 6123 EventListener onwrite; |
6107 | 6124 |
6108 EventListener onwriteend; | 6125 EventListener onwriteend; |
6109 | 6126 |
6110 EventListener onwritestart; | 6127 EventListener onwritestart; |
6111 | 6128 |
6112 final int position; | 6129 final int position; |
6113 | 6130 |
6114 final int readyState; | 6131 final int readyState; |
6115 | 6132 |
6116 void abort() native; | 6133 void abort() native; |
6117 | 6134 |
6118 void seek(int position) native; | 6135 void seek(int position) native; |
6119 | 6136 |
6120 void truncate(int size) native; | 6137 void truncate(int size) native; |
6121 | 6138 |
6122 void write(_BlobJs data) native; | 6139 void write(_BlobImpl data) native; |
6123 } | 6140 } |
6124 | 6141 |
6125 class _FileWriterSyncJs implements FileWriterSync native "*FileWriterSync" { | 6142 class _FileWriterSyncImpl implements FileWriterSync native "*FileWriterSync" { |
6126 | 6143 |
6127 final int length; | 6144 final int length; |
6128 | 6145 |
6129 final int position; | 6146 final int position; |
6130 | 6147 |
6131 void seek(int position) native; | 6148 void seek(int position) native; |
6132 | 6149 |
6133 void truncate(int size) native; | 6150 void truncate(int size) native; |
6134 | 6151 |
6135 void write(_BlobJs data) native; | 6152 void write(_BlobImpl data) native; |
6136 } | 6153 } |
6137 | 6154 |
6138 class _Float32ArrayJs extends _ArrayBufferViewJs implements Float32Array, List<n
um> native "*Float32Array" { | 6155 class _Float32ArrayImpl extends _ArrayBufferViewImpl implements Float32Array, Li
st<num> native "*Float32Array" { |
6139 | 6156 |
6140 factory Float32Array(int length) => _construct_Float32Array(length); | 6157 factory Float32Array(int length) => _construct_Float32Array(length); |
6141 | 6158 |
6142 factory Float32Array.fromList(List<num> list) => _construct_Float32Array(list)
; | 6159 factory Float32Array.fromList(List<num> list) => _construct_Float32Array(list)
; |
6143 | 6160 |
6144 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _construct_Float32Array
(buffer); | 6161 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _construct_Float32Array
(buffer); |
6145 | 6162 |
6146 static _construct_Float32Array(arg) native 'return new Float32Array(arg);'; | 6163 static _construct_Float32Array(arg) native 'return new Float32Array(arg);'; |
6147 | 6164 |
6148 static final int BYTES_PER_ELEMENT = 4; | 6165 static final int BYTES_PER_ELEMENT = 4; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6215 void insertRange(int start, int length, [num initialValue]) { | 6232 void insertRange(int start, int length, [num initialValue]) { |
6216 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 6233 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
6217 } | 6234 } |
6218 List<num> getRange(int start, int length) => | 6235 List<num> getRange(int start, int length) => |
6219 _Lists.getRange(this, start, length, <num>[]); | 6236 _Lists.getRange(this, start, length, <num>[]); |
6220 | 6237 |
6221 // -- end List<num> mixins. | 6238 // -- end List<num> mixins. |
6222 | 6239 |
6223 void setElements(Object array, [int offset = null]) native; | 6240 void setElements(Object array, [int offset = null]) native; |
6224 | 6241 |
6225 _Float32ArrayJs subarray(int start, [int end = null]) native; | 6242 _Float32ArrayImpl subarray(int start, [int end = null]) native; |
6226 } | 6243 } |
6227 | 6244 |
6228 class _Float64ArrayJs extends _ArrayBufferViewJs implements Float64Array, List<n
um> native "*Float64Array" { | 6245 class _Float64ArrayImpl extends _ArrayBufferViewImpl implements Float64Array, Li
st<num> native "*Float64Array" { |
6229 | 6246 |
6230 factory Float64Array(int length) => _construct_Float64Array(length); | 6247 factory Float64Array(int length) => _construct_Float64Array(length); |
6231 | 6248 |
6232 factory Float64Array.fromList(List<num> list) => _construct_Float64Array(list)
; | 6249 factory Float64Array.fromList(List<num> list) => _construct_Float64Array(list)
; |
6233 | 6250 |
6234 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct_Float64Array
(buffer); | 6251 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct_Float64Array
(buffer); |
6235 | 6252 |
6236 static _construct_Float64Array(arg) native 'return new Float64Array(arg);'; | 6253 static _construct_Float64Array(arg) native 'return new Float64Array(arg);'; |
6237 | 6254 |
6238 static final int BYTES_PER_ELEMENT = 8; | 6255 static final int BYTES_PER_ELEMENT = 8; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6305 void insertRange(int start, int length, [num initialValue]) { | 6322 void insertRange(int start, int length, [num initialValue]) { |
6306 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 6323 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
6307 } | 6324 } |
6308 List<num> getRange(int start, int length) => | 6325 List<num> getRange(int start, int length) => |
6309 _Lists.getRange(this, start, length, <num>[]); | 6326 _Lists.getRange(this, start, length, <num>[]); |
6310 | 6327 |
6311 // -- end List<num> mixins. | 6328 // -- end List<num> mixins. |
6312 | 6329 |
6313 void setElements(Object array, [int offset = null]) native; | 6330 void setElements(Object array, [int offset = null]) native; |
6314 | 6331 |
6315 _Float64ArrayJs subarray(int start, [int end = null]) native; | 6332 _Float64ArrayImpl subarray(int start, [int end = null]) native; |
6316 } | 6333 } |
6317 | 6334 |
6318 class _FontElementJs extends _ElementJs implements FontElement native "*HTMLFont
Element" { | 6335 class _FontElementImpl extends _ElementImpl implements FontElement native "*HTML
FontElement" { |
6319 | 6336 |
6320 String color; | 6337 String color; |
6321 | 6338 |
6322 String face; | 6339 String face; |
6323 | 6340 |
6324 String size; | 6341 String size; |
6325 } | 6342 } |
6326 | 6343 |
6327 class _FormElementJs extends _ElementJs implements FormElement native "*HTMLForm
Element" { | 6344 class _FormElementImpl extends _ElementImpl implements FormElement native "*HTML
FormElement" { |
6328 | 6345 |
6329 String acceptCharset; | 6346 String acceptCharset; |
6330 | 6347 |
6331 String action; | 6348 String action; |
6332 | 6349 |
6333 String autocomplete; | 6350 String autocomplete; |
6334 | 6351 |
6335 String encoding; | 6352 String encoding; |
6336 | 6353 |
6337 String enctype; | 6354 String enctype; |
6338 | 6355 |
6339 final int length; | 6356 final int length; |
6340 | 6357 |
6341 String method; | 6358 String method; |
6342 | 6359 |
6343 String name; | 6360 String name; |
6344 | 6361 |
6345 bool noValidate; | 6362 bool noValidate; |
6346 | 6363 |
6347 String target; | 6364 String target; |
6348 | 6365 |
6349 bool checkValidity() native; | 6366 bool checkValidity() native; |
6350 | 6367 |
6351 void reset() native; | 6368 void reset() native; |
6352 | 6369 |
6353 void submit() native; | 6370 void submit() native; |
6354 } | 6371 } |
6355 | 6372 |
6356 class _FrameElementJs extends _ElementJs implements FrameElement native "*HTMLFr
ameElement" { | 6373 class _FrameElementImpl extends _ElementImpl implements FrameElement native "*HT
MLFrameElement" { |
6357 | 6374 |
6358 final _DocumentJs contentDocument; | 6375 _DocumentImpl get contentDocument() => _FixHtmlDocumentReference(_contentDocum
ent); |
6359 | 6376 |
6360 final _WindowJs contentWindow; | 6377 _EventTargetImpl get _contentDocument() native "return this.contentDocument;"; |
| 6378 |
| 6379 final _WindowImpl contentWindow; |
6361 | 6380 |
6362 String frameBorder; | 6381 String frameBorder; |
6363 | 6382 |
6364 final int height; | 6383 final int height; |
6365 | 6384 |
6366 String location; | 6385 String location; |
6367 | 6386 |
6368 String longDesc; | 6387 String longDesc; |
6369 | 6388 |
6370 String marginHeight; | 6389 String marginHeight; |
6371 | 6390 |
6372 String marginWidth; | 6391 String marginWidth; |
6373 | 6392 |
6374 String name; | 6393 String name; |
6375 | 6394 |
6376 bool noResize; | 6395 bool noResize; |
6377 | 6396 |
6378 String scrolling; | 6397 String scrolling; |
6379 | 6398 |
6380 String src; | 6399 String src; |
6381 | 6400 |
6382 final int width; | 6401 final int width; |
6383 | 6402 |
6384 _SVGDocumentJs getSVGDocument() native; | 6403 _SVGDocumentImpl getSVGDocument() native; |
6385 } | 6404 } |
6386 | 6405 |
6387 class _FrameSetElementJs extends _ElementJs implements FrameSetElement native "*
HTMLFrameSetElement" { | 6406 class _FrameSetElementImpl extends _ElementImpl implements FrameSetElement nativ
e "*HTMLFrameSetElement" { |
6388 | 6407 |
6389 String cols; | 6408 String cols; |
6390 | 6409 |
6391 String rows; | 6410 String rows; |
6392 | 6411 |
6393 _FrameSetElementEventsImpl get on() => | 6412 _FrameSetElementEventsImpl get on() => |
6394 new _FrameSetElementEventsImpl(this); | 6413 new _FrameSetElementEventsImpl(this); |
6395 } | 6414 } |
6396 | 6415 |
6397 class _FrameSetElementEventsImpl extends _ElementEventsImpl implements FrameSetE
lementEvents { | 6416 class _FrameSetElementEventsImpl extends _ElementEventsImpl implements FrameSetE
lementEvents { |
(...skipping 19 matching lines...) Expand all Loading... |
6417 | 6436 |
6418 EventListenerList get popState() => _get('popstate'); | 6437 EventListenerList get popState() => _get('popstate'); |
6419 | 6438 |
6420 EventListenerList get resize() => _get('resize'); | 6439 EventListenerList get resize() => _get('resize'); |
6421 | 6440 |
6422 EventListenerList get storage() => _get('storage'); | 6441 EventListenerList get storage() => _get('storage'); |
6423 | 6442 |
6424 EventListenerList get unload() => _get('unload'); | 6443 EventListenerList get unload() => _get('unload'); |
6425 } | 6444 } |
6426 | 6445 |
6427 class _GeolocationJs implements Geolocation native "*Geolocation" { | 6446 class _GeolocationImpl implements Geolocation native "*Geolocation" { |
6428 | 6447 |
6429 void clearWatch(int watchId) native; | 6448 void clearWatch(int watchId) native; |
6430 | 6449 |
6431 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback = null]) native; | 6450 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback = null]) native; |
6432 | 6451 |
6433 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback = null]) native; | 6452 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback = null]) native; |
6434 } | 6453 } |
6435 | 6454 |
6436 class _GeopositionJs implements Geoposition native "*Geoposition" { | 6455 class _GeopositionImpl implements Geoposition native "*Geoposition" { |
6437 | 6456 |
6438 final _CoordinatesJs coords; | 6457 final _CoordinatesImpl coords; |
6439 | 6458 |
6440 final int timestamp; | 6459 final int timestamp; |
6441 } | 6460 } |
6442 | 6461 |
6443 class _HRElementJs extends _ElementJs implements HRElement native "*HTMLHRElemen
t" { | 6462 class _HRElementImpl extends _ElementImpl implements HRElement native "*HTMLHREl
ement" { |
6444 | 6463 |
6445 String align; | 6464 String align; |
6446 | 6465 |
6447 bool noShade; | 6466 bool noShade; |
6448 | 6467 |
6449 String size; | 6468 String size; |
6450 | 6469 |
6451 String width; | 6470 String width; |
6452 } | 6471 } |
6453 | 6472 |
6454 class _HTMLAllCollectionJs implements HTMLAllCollection native "*HTMLAllCollecti
on" { | 6473 class _HTMLAllCollectionImpl implements HTMLAllCollection native "*HTMLAllCollec
tion" { |
6455 | 6474 |
6456 final int length; | 6475 final int length; |
6457 | 6476 |
6458 _NodeJs item(int index) native; | 6477 _NodeImpl item(int index) native; |
6459 | 6478 |
6460 _NodeJs namedItem(String name) native; | 6479 _NodeImpl namedItem(String name) native; |
6461 | 6480 |
6462 _NodeListJs tags(String name) native; | 6481 _NodeListImpl tags(String name) native; |
6463 } | 6482 } |
6464 | 6483 |
6465 class _HTMLCollectionJs implements HTMLCollection native "*HTMLCollection" { | 6484 class _HTMLCollectionImpl implements HTMLCollection native "*HTMLCollection" { |
6466 | 6485 |
6467 final int length; | 6486 final int length; |
6468 | 6487 |
6469 _NodeJs operator[](int index) native "return this[index];"; | 6488 _NodeImpl operator[](int index) native "return this[index];"; |
6470 | 6489 |
6471 void operator[]=(int index, _NodeJs value) { | 6490 void operator[]=(int index, _NodeImpl value) { |
6472 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 6491 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); |
6473 } | 6492 } |
6474 // -- start List<Node> mixins. | 6493 // -- start List<Node> mixins. |
6475 // Node is the element type. | 6494 // Node is the element type. |
6476 | 6495 |
6477 // From Iterable<Node>: | 6496 // From Iterable<Node>: |
6478 | 6497 |
6479 Iterator<Node> iterator() { | 6498 Iterator<Node> iterator() { |
6480 // Note: NodeLists are not fixed size. And most probably length shouldn't | 6499 // Note: NodeLists are not fixed size. And most probably length shouldn't |
6481 // be cached in both iterator _and_ forEach method. For now caching it | 6500 // be cached in both iterator _and_ forEach method. For now caching it |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6532 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 6551 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
6533 } | 6552 } |
6534 void insertRange(int start, int length, [Node initialValue]) { | 6553 void insertRange(int start, int length, [Node initialValue]) { |
6535 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 6554 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
6536 } | 6555 } |
6537 List<Node> getRange(int start, int length) => | 6556 List<Node> getRange(int start, int length) => |
6538 _Lists.getRange(this, start, length, <Node>[]); | 6557 _Lists.getRange(this, start, length, <Node>[]); |
6539 | 6558 |
6540 // -- end List<Node> mixins. | 6559 // -- end List<Node> mixins. |
6541 | 6560 |
6542 _NodeJs item(int index) native; | 6561 _NodeImpl item(int index) native; |
6543 | 6562 |
6544 _NodeJs namedItem(String name) native; | 6563 _NodeImpl namedItem(String name) native; |
6545 } | 6564 } |
6546 | 6565 |
6547 class _HTMLOptionsCollectionJs extends _HTMLCollectionJs implements HTMLOptionsC
ollection native "*HTMLOptionsCollection" { | 6566 class _HTMLOptionsCollectionImpl extends _HTMLCollectionImpl implements HTMLOpti
onsCollection native "*HTMLOptionsCollection" { |
6548 | 6567 |
6549 // Shadowing definition. | 6568 // Shadowing definition. |
6550 int get length() native "return this.length;"; | 6569 int get length() native "return this.length;"; |
6551 | 6570 |
6552 void set length(int value) native "this.length = value;"; | 6571 void set length(int value) native "this.length = value;"; |
6553 | 6572 |
6554 int selectedIndex; | 6573 int selectedIndex; |
6555 | 6574 |
6556 void remove(int index) native; | 6575 void remove(int index) native; |
6557 } | 6576 } |
6558 | 6577 |
6559 class _HashChangeEventJs extends _EventJs implements HashChangeEvent native "*Ha
shChangeEvent" { | 6578 class _HashChangeEventImpl extends _EventImpl implements HashChangeEvent native
"*HashChangeEvent" { |
6560 | 6579 |
6561 final String newURL; | 6580 final String newURL; |
6562 | 6581 |
6563 final String oldURL; | 6582 final String oldURL; |
6564 | 6583 |
6565 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) native; | 6584 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) native; |
6566 } | 6585 } |
6567 | 6586 |
6568 class _HeadElementJs extends _ElementJs implements HeadElement native "*HTMLHead
Element" { | 6587 class _HeadElementImpl extends _ElementImpl implements HeadElement native "*HTML
HeadElement" { |
6569 | 6588 |
6570 String profile; | 6589 String profile; |
6571 } | 6590 } |
6572 | 6591 |
6573 class _HeadingElementJs extends _ElementJs implements HeadingElement native "*HT
MLHeadingElement" { | 6592 class _HeadingElementImpl extends _ElementImpl implements HeadingElement native
"*HTMLHeadingElement" { |
6574 | 6593 |
6575 String align; | 6594 String align; |
6576 } | 6595 } |
6577 | 6596 |
6578 class _HighPass2FilterNodeJs extends _AudioNodeJs implements HighPass2FilterNode
native "*HighPass2FilterNode" { | 6597 class _HighPass2FilterNodeImpl extends _AudioNodeImpl implements HighPass2Filter
Node native "*HighPass2FilterNode" { |
6579 | 6598 |
6580 final _AudioParamJs cutoff; | 6599 final _AudioParamImpl cutoff; |
6581 | 6600 |
6582 final _AudioParamJs resonance; | 6601 final _AudioParamImpl resonance; |
6583 } | 6602 } |
6584 | 6603 |
6585 class _HistoryJs implements History native "*History" { | 6604 class _HistoryImpl implements History native "*History" { |
6586 | 6605 |
6587 final int length; | 6606 final int length; |
6588 | 6607 |
6589 final Dynamic state; | 6608 final Dynamic state; |
6590 | 6609 |
6591 void back() native; | 6610 void back() native; |
6592 | 6611 |
6593 void forward() native; | 6612 void forward() native; |
6594 | 6613 |
6595 void go(int distance) native; | 6614 void go(int distance) native; |
6596 | 6615 |
6597 void pushState(Object data, String title, [String url = null]) native; | 6616 void pushState(Object data, String title, [String url = null]) native; |
6598 | 6617 |
6599 void replaceState(Object data, String title, [String url = null]) native; | 6618 void replaceState(Object data, String title, [String url = null]) native; |
6600 } | 6619 } |
6601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6602 // for details. All rights reserved. Use of this source code is governed by a | 6621 // for details. All rights reserved. Use of this source code is governed by a |
6603 // BSD-style license that can be found in the LICENSE file. | 6622 // BSD-style license that can be found in the LICENSE file. |
6604 | 6623 |
6605 class _HtmlElementJs extends _ElementJs implements HtmlElement | 6624 class _HtmlElementImpl extends _ElementImpl implements HtmlElement |
6606 native "*IntentionallyInvalid" { | 6625 native "*IntentionallyInvalid" { |
6607 | 6626 |
6608 String manifest; | 6627 String manifest; |
6609 | 6628 |
6610 String version; | 6629 String version; |
6611 | 6630 |
6612 } | 6631 } |
6613 | 6632 |
6614 class _IDBAnyJs implements IDBAny native "*IDBAny" { | 6633 class _IDBAnyImpl implements IDBAny native "*IDBAny" { |
6615 } | 6634 } |
6616 | 6635 |
6617 class _IDBCursorJs implements IDBCursor native "*IDBCursor" { | 6636 class _IDBCursorImpl implements IDBCursor native "*IDBCursor" { |
6618 | 6637 |
6619 static final int NEXT = 0; | 6638 static final int NEXT = 0; |
6620 | 6639 |
6621 static final int NEXT_NO_DUPLICATE = 1; | 6640 static final int NEXT_NO_DUPLICATE = 1; |
6622 | 6641 |
6623 static final int PREV = 2; | 6642 static final int PREV = 2; |
6624 | 6643 |
6625 static final int PREV_NO_DUPLICATE = 3; | 6644 static final int PREV_NO_DUPLICATE = 3; |
6626 | 6645 |
6627 final int direction; | 6646 final int direction; |
6628 | 6647 |
6629 final _IDBKeyJs key; | 6648 final _IDBKeyImpl key; |
6630 | 6649 |
6631 final _IDBKeyJs primaryKey; | 6650 final _IDBKeyImpl primaryKey; |
6632 | 6651 |
6633 final _IDBAnyJs source; | 6652 final _IDBAnyImpl source; |
6634 | 6653 |
6635 void continueFunction([_IDBKeyJs key = null]) native; | 6654 void continueFunction([_IDBKeyImpl key = null]) native; |
6636 | 6655 |
6637 _IDBRequestJs delete() native; | 6656 _IDBRequestImpl delete() native; |
6638 | 6657 |
6639 _IDBRequestJs update(Dynamic value) native; | 6658 _IDBRequestImpl update(Dynamic value) native; |
6640 } | 6659 } |
6641 | 6660 |
6642 class _IDBCursorWithValueJs extends _IDBCursorJs implements IDBCursorWithValue n
ative "*IDBCursorWithValue" { | 6661 class _IDBCursorWithValueImpl extends _IDBCursorImpl implements IDBCursorWithVal
ue native "*IDBCursorWithValue" { |
6643 | 6662 |
6644 final _IDBAnyJs value; | 6663 final _IDBAnyImpl value; |
6645 } | 6664 } |
6646 | 6665 |
6647 class _IDBDatabaseJs implements IDBDatabase native "*IDBDatabase" { | 6666 class _IDBDatabaseImpl implements IDBDatabase native "*IDBDatabase" { |
6648 | 6667 |
6649 final String name; | 6668 final String name; |
6650 | 6669 |
| 6670 final List<String> objectStoreNames; |
| 6671 |
6651 EventListener onabort; | 6672 EventListener onabort; |
6652 | 6673 |
6653 EventListener onerror; | 6674 EventListener onerror; |
6654 | 6675 |
6655 EventListener onversionchange; | 6676 EventListener onversionchange; |
6656 | 6677 |
6657 final String version; | 6678 final String version; |
6658 | 6679 |
6659 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 6680 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
6660 | 6681 |
6661 void close() native; | 6682 void close() native; |
6662 | 6683 |
6663 _IDBObjectStoreJs createObjectStore(String name) native; | 6684 _IDBObjectStoreImpl createObjectStore(String name) native; |
6664 | 6685 |
6665 void deleteObjectStore(String name) native; | 6686 void deleteObjectStore(String name) native; |
6666 | 6687 |
6667 bool dispatchEvent(_EventJs evt) native; | 6688 bool dispatchEvent(_EventImpl evt) native; |
6668 | 6689 |
6669 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 6690 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
6670 | 6691 |
6671 _IDBVersionChangeRequestJs setVersion(String version) native; | 6692 _IDBVersionChangeRequestImpl setVersion(String version) native; |
6672 | 6693 |
6673 _IDBTransactionJs transaction(String storeName, int mode) native; | 6694 _IDBTransactionImpl transaction(var storeName_OR_storeNames, int mode) native; |
6674 } | 6695 } |
6675 | 6696 |
6676 class _IDBDatabaseErrorJs implements IDBDatabaseError native "*IDBDatabaseError"
{ | 6697 class _IDBDatabaseErrorImpl implements IDBDatabaseError native "*IDBDatabaseErro
r" { |
6677 | 6698 |
6678 int code; | 6699 int code; |
6679 | 6700 |
6680 String message; | 6701 String message; |
6681 } | 6702 } |
6682 | 6703 |
6683 class _IDBDatabaseExceptionJs implements IDBDatabaseException native "*IDBDataba
seException" { | 6704 class _IDBDatabaseExceptionImpl implements IDBDatabaseException native "*IDBData
baseException" { |
6684 | 6705 |
6685 static final int ABORT_ERR = 8; | 6706 static final int ABORT_ERR = 8; |
6686 | 6707 |
6687 static final int CONSTRAINT_ERR = 4; | 6708 static final int CONSTRAINT_ERR = 4; |
6688 | 6709 |
6689 static final int DATA_ERR = 5; | 6710 static final int DATA_ERR = 5; |
6690 | 6711 |
6691 static final int NON_TRANSIENT_ERR = 2; | 6712 static final int NON_TRANSIENT_ERR = 2; |
6692 | 6713 |
6693 static final int NOT_ALLOWED_ERR = 6; | 6714 static final int NOT_ALLOWED_ERR = 6; |
(...skipping 16 matching lines...) Expand all Loading... |
6710 | 6731 |
6711 final int code; | 6732 final int code; |
6712 | 6733 |
6713 final String message; | 6734 final String message; |
6714 | 6735 |
6715 final String name; | 6736 final String name; |
6716 | 6737 |
6717 String toString() native; | 6738 String toString() native; |
6718 } | 6739 } |
6719 | 6740 |
6720 class _IDBFactoryJs implements IDBFactory native "*IDBFactory" { | 6741 class _IDBFactoryImpl implements IDBFactory native "*IDBFactory" { |
6721 | 6742 |
6722 int cmp(_IDBKeyJs first, _IDBKeyJs second) native; | 6743 int cmp(_IDBKeyImpl first, _IDBKeyImpl second) native; |
6723 | 6744 |
6724 _IDBVersionChangeRequestJs deleteDatabase(String name) native; | 6745 _IDBVersionChangeRequestImpl deleteDatabase(String name) native; |
6725 | 6746 |
6726 _IDBRequestJs getDatabaseNames() native; | 6747 _IDBRequestImpl getDatabaseNames() native; |
6727 | 6748 |
6728 _IDBRequestJs open(String name) native; | 6749 _IDBRequestImpl open(String name) native; |
6729 } | 6750 } |
6730 | 6751 |
6731 class _IDBIndexJs implements IDBIndex native "*IDBIndex" { | 6752 class _IDBIndexImpl implements IDBIndex native "*IDBIndex" { |
6732 | 6753 |
6733 final String keyPath; | 6754 final String keyPath; |
6734 | 6755 |
6735 final bool multiEntry; | 6756 final bool multiEntry; |
6736 | 6757 |
6737 final String name; | 6758 final String name; |
6738 | 6759 |
6739 final _IDBObjectStoreJs objectStore; | 6760 final _IDBObjectStoreImpl objectStore; |
6740 | 6761 |
6741 final bool unique; | 6762 final bool unique; |
6742 | 6763 |
6743 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native; | 6764 _IDBRequestImpl count([_IDBKeyRangeImpl range = null]) native; |
6744 | 6765 |
6745 _IDBRequestJs getObject(_IDBKeyJs key) native; | 6766 _IDBRequestImpl getObject(_IDBKeyImpl key) native; |
6746 | 6767 |
6747 _IDBRequestJs getKey(_IDBKeyJs key) native; | 6768 _IDBRequestImpl getKey(_IDBKeyImpl key) native; |
6748 | 6769 |
6749 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null])
native; | 6770 _IDBRequestImpl openCursor([_IDBKeyRangeImpl range = null, int direction = nul
l]) native; |
6750 | 6771 |
6751 _IDBRequestJs openKeyCursor([_IDBKeyRangeJs range = null, int direction = null
]) native; | 6772 _IDBRequestImpl openKeyCursor([_IDBKeyRangeImpl range = null, int direction =
null]) native; |
6752 } | 6773 } |
6753 | 6774 |
6754 class _IDBKeyJs implements IDBKey native "*IDBKey" { | 6775 class _IDBKeyImpl implements IDBKey native "*IDBKey" { |
6755 } | 6776 } |
6756 | 6777 |
6757 class _IDBKeyRangeJs implements IDBKeyRange native "*IDBKeyRange" { | 6778 class _IDBKeyRangeImpl implements IDBKeyRange native "*IDBKeyRange" { |
6758 | 6779 |
6759 final _IDBKeyJs lower; | 6780 final _IDBKeyImpl lower; |
6760 | 6781 |
6761 final bool lowerOpen; | 6782 final bool lowerOpen; |
6762 | 6783 |
6763 final _IDBKeyJs upper; | 6784 final _IDBKeyImpl upper; |
6764 | 6785 |
6765 final bool upperOpen; | 6786 final bool upperOpen; |
6766 | 6787 |
6767 _IDBKeyRangeJs bound(_IDBKeyJs lower, _IDBKeyJs upper, [bool lowerOpen = null,
bool upperOpen = null]) native; | 6788 _IDBKeyRangeImpl bound(_IDBKeyImpl lower, _IDBKeyImpl upper, [bool lowerOpen =
null, bool upperOpen = null]) native; |
6768 | 6789 |
6769 _IDBKeyRangeJs lowerBound(_IDBKeyJs bound, [bool open = null]) native; | 6790 _IDBKeyRangeImpl lowerBound(_IDBKeyImpl bound, [bool open = null]) native; |
6770 | 6791 |
6771 _IDBKeyRangeJs only(_IDBKeyJs value) native; | 6792 _IDBKeyRangeImpl only(_IDBKeyImpl value) native; |
6772 | 6793 |
6773 _IDBKeyRangeJs upperBound(_IDBKeyJs bound, [bool open = null]) native; | 6794 _IDBKeyRangeImpl upperBound(_IDBKeyImpl bound, [bool open = null]) native; |
6774 } | 6795 } |
6775 | 6796 |
6776 class _IDBObjectStoreJs implements IDBObjectStore native "*IDBObjectStore" { | 6797 class _IDBObjectStoreImpl implements IDBObjectStore native "*IDBObjectStore" { |
| 6798 |
| 6799 final List<String> indexNames; |
6777 | 6800 |
6778 final String keyPath; | 6801 final String keyPath; |
6779 | 6802 |
6780 final String name; | 6803 final String name; |
6781 | 6804 |
6782 final _IDBTransactionJs transaction; | 6805 final _IDBTransactionImpl transaction; |
6783 | 6806 |
6784 _IDBRequestJs add(Dynamic value, [_IDBKeyJs key = null]) native; | 6807 _IDBRequestImpl add(Dynamic value, [_IDBKeyImpl key = null]) native; |
6785 | 6808 |
6786 _IDBRequestJs clear() native; | 6809 _IDBRequestImpl clear() native; |
6787 | 6810 |
6788 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native; | 6811 _IDBRequestImpl count([_IDBKeyRangeImpl range = null]) native; |
6789 | 6812 |
6790 _IDBIndexJs createIndex(String name, String keyPath) native; | 6813 _IDBIndexImpl createIndex(String name, String keyPath) native; |
6791 | 6814 |
6792 _IDBRequestJs delete(_IDBKeyJs key) native; | 6815 _IDBRequestImpl delete(_IDBKeyImpl key) native; |
6793 | 6816 |
6794 void deleteIndex(String name) native; | 6817 void deleteIndex(String name) native; |
6795 | 6818 |
6796 _IDBRequestJs getObject(_IDBKeyJs key) native; | 6819 _IDBRequestImpl getObject(_IDBKeyImpl key) native; |
6797 | 6820 |
6798 _IDBIndexJs index(String name) native; | 6821 _IDBIndexImpl index(String name) native; |
6799 | 6822 |
6800 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null])
native; | 6823 _IDBRequestImpl openCursor([_IDBKeyRangeImpl range = null, int direction = nul
l]) native; |
6801 | 6824 |
6802 _IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native; | 6825 _IDBRequestImpl put(Dynamic value, [_IDBKeyImpl key = null]) native; |
6803 } | 6826 } |
6804 | 6827 |
6805 class _IDBRequestJs implements IDBRequest native "*IDBRequest" { | 6828 class _IDBRequestImpl implements IDBRequest native "*IDBRequest" { |
6806 | 6829 |
6807 static final int DONE = 2; | 6830 static final int DONE = 2; |
6808 | 6831 |
6809 static final int LOADING = 1; | 6832 static final int LOADING = 1; |
6810 | 6833 |
6811 final int errorCode; | 6834 final int errorCode; |
6812 | 6835 |
6813 EventListener onerror; | 6836 EventListener onerror; |
6814 | 6837 |
6815 EventListener onsuccess; | 6838 EventListener onsuccess; |
6816 | 6839 |
6817 final int readyState; | 6840 final int readyState; |
6818 | 6841 |
6819 final _IDBAnyJs result; | 6842 final _IDBAnyImpl result; |
6820 | 6843 |
6821 final _IDBAnyJs source; | 6844 final _IDBAnyImpl source; |
6822 | 6845 |
6823 final _IDBTransactionJs transaction; | 6846 final _IDBTransactionImpl transaction; |
6824 | 6847 |
6825 final String webkitErrorMessage; | 6848 final String webkitErrorMessage; |
6826 | 6849 |
6827 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 6850 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
6828 | 6851 |
6829 bool dispatchEvent(_EventJs evt) native; | 6852 bool dispatchEvent(_EventImpl evt) native; |
6830 | 6853 |
6831 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 6854 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
6832 } | 6855 } |
6833 | 6856 |
6834 class _IDBTransactionJs implements IDBTransaction native "*IDBTransaction" { | 6857 class _IDBTransactionImpl implements IDBTransaction native "*IDBTransaction" { |
6835 | 6858 |
6836 static final int READ_ONLY = 0; | 6859 static final int READ_ONLY = 0; |
6837 | 6860 |
6838 static final int READ_WRITE = 1; | 6861 static final int READ_WRITE = 1; |
6839 | 6862 |
6840 static final int VERSION_CHANGE = 2; | 6863 static final int VERSION_CHANGE = 2; |
6841 | 6864 |
6842 final _IDBDatabaseJs db; | 6865 final _IDBDatabaseImpl db; |
6843 | 6866 |
6844 final int mode; | 6867 final int mode; |
6845 | 6868 |
6846 EventListener onabort; | 6869 EventListener onabort; |
6847 | 6870 |
6848 EventListener oncomplete; | 6871 EventListener oncomplete; |
6849 | 6872 |
6850 EventListener onerror; | 6873 EventListener onerror; |
6851 | 6874 |
6852 void abort() native; | 6875 void abort() native; |
6853 | 6876 |
6854 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 6877 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
6855 | 6878 |
6856 bool dispatchEvent(_EventJs evt) native; | 6879 bool dispatchEvent(_EventImpl evt) native; |
6857 | 6880 |
6858 _IDBObjectStoreJs objectStore(String name) native; | 6881 _IDBObjectStoreImpl objectStore(String name) native; |
6859 | 6882 |
6860 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 6883 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
6861 } | 6884 } |
6862 | 6885 |
6863 class _IDBVersionChangeEventJs extends _EventJs implements IDBVersionChangeEvent
native "*IDBVersionChangeEvent" { | 6886 class _IDBVersionChangeEventImpl extends _EventImpl implements IDBVersionChangeE
vent native "*IDBVersionChangeEvent" { |
6864 | 6887 |
6865 final String version; | 6888 final String version; |
6866 } | 6889 } |
6867 | 6890 |
6868 class _IDBVersionChangeRequestJs extends _IDBRequestJs implements IDBVersionChan
geRequest native "*IDBVersionChangeRequest" { | 6891 class _IDBVersionChangeRequestImpl extends _IDBRequestImpl implements IDBVersion
ChangeRequest native "*IDBVersionChangeRequest" { |
6869 | 6892 |
6870 EventListener onblocked; | 6893 EventListener onblocked; |
6871 } | 6894 } |
6872 | 6895 |
6873 class _IFrameElementJs extends _ElementJs implements IFrameElement native "*HTML
IFrameElement" { | 6896 class _IFrameElementImpl extends _ElementImpl implements IFrameElement native "*
HTMLIFrameElement" { |
6874 | 6897 |
6875 String align; | 6898 String align; |
6876 | 6899 |
6877 final _DocumentJs contentDocument; | 6900 _DocumentImpl get contentDocument() => _FixHtmlDocumentReference(_contentDocum
ent); |
6878 | 6901 |
6879 final _WindowJs contentWindow; | 6902 _EventTargetImpl get _contentDocument() native "return this.contentDocument;"; |
| 6903 |
| 6904 final _WindowImpl contentWindow; |
6880 | 6905 |
6881 String frameBorder; | 6906 String frameBorder; |
6882 | 6907 |
6883 String height; | 6908 String height; |
6884 | 6909 |
6885 String longDesc; | 6910 String longDesc; |
6886 | 6911 |
6887 String marginHeight; | 6912 String marginHeight; |
6888 | 6913 |
6889 String marginWidth; | 6914 String marginWidth; |
6890 | 6915 |
6891 String name; | 6916 String name; |
6892 | 6917 |
6893 String sandbox; | 6918 String sandbox; |
6894 | 6919 |
6895 String scrolling; | 6920 String scrolling; |
6896 | 6921 |
6897 String src; | 6922 String src; |
6898 | 6923 |
6899 String width; | 6924 String width; |
6900 | 6925 |
6901 _SVGDocumentJs getSVGDocument() native; | 6926 _SVGDocumentImpl getSVGDocument() native; |
6902 } | 6927 } |
6903 | 6928 |
6904 class _ImageDataJs implements ImageData native "*ImageData" { | 6929 class _ImageDataImpl implements ImageData native "*ImageData" { |
6905 | 6930 |
6906 final _CanvasPixelArrayJs data; | 6931 final _CanvasPixelArrayImpl data; |
6907 | 6932 |
6908 final int height; | 6933 final int height; |
6909 | 6934 |
6910 final int width; | 6935 final int width; |
6911 } | 6936 } |
6912 | 6937 |
6913 class _ImageElementJs extends _ElementJs implements ImageElement native "*HTMLIm
ageElement" { | 6938 class _ImageElementImpl extends _ElementImpl implements ImageElement native "*HT
MLImageElement" { |
6914 | 6939 |
6915 String align; | 6940 String align; |
6916 | 6941 |
6917 String alt; | 6942 String alt; |
6918 | 6943 |
6919 String border; | 6944 String border; |
6920 | 6945 |
6921 final bool complete; | 6946 final bool complete; |
6922 | 6947 |
6923 String crossOrigin; | 6948 String crossOrigin; |
(...skipping 20 matching lines...) Expand all Loading... |
6944 | 6969 |
6945 int vspace; | 6970 int vspace; |
6946 | 6971 |
6947 int width; | 6972 int width; |
6948 | 6973 |
6949 final int x; | 6974 final int x; |
6950 | 6975 |
6951 final int y; | 6976 final int y; |
6952 } | 6977 } |
6953 | 6978 |
6954 class _InputElementJs extends _ElementJs implements InputElement native "*HTMLIn
putElement" { | 6979 class _InputElementImpl extends _ElementImpl implements InputElement native "*HT
MLInputElement" { |
6955 | 6980 |
6956 String accept; | 6981 String accept; |
6957 | 6982 |
6958 String align; | 6983 String align; |
6959 | 6984 |
6960 String alt; | 6985 String alt; |
6961 | 6986 |
6962 String autocomplete; | 6987 String autocomplete; |
6963 | 6988 |
6964 bool autofocus; | 6989 bool autofocus; |
6965 | 6990 |
6966 bool checked; | 6991 bool checked; |
6967 | 6992 |
6968 bool defaultChecked; | 6993 bool defaultChecked; |
6969 | 6994 |
6970 String defaultValue; | 6995 String defaultValue; |
6971 | 6996 |
6972 bool disabled; | 6997 bool disabled; |
6973 | 6998 |
6974 final _FileListJs files; | 6999 final _FileListImpl files; |
6975 | 7000 |
6976 final _FormElementJs form; | 7001 final _FormElementImpl form; |
6977 | 7002 |
6978 String formAction; | 7003 String formAction; |
6979 | 7004 |
6980 String formEnctype; | 7005 String formEnctype; |
6981 | 7006 |
6982 String formMethod; | 7007 String formMethod; |
6983 | 7008 |
6984 bool formNoValidate; | 7009 bool formNoValidate; |
6985 | 7010 |
6986 String formTarget; | 7011 String formTarget; |
6987 | 7012 |
6988 bool incremental; | 7013 bool incremental; |
6989 | 7014 |
6990 bool indeterminate; | 7015 bool indeterminate; |
6991 | 7016 |
6992 final _NodeListJs labels; | 7017 final _NodeListImpl labels; |
6993 | 7018 |
6994 String max; | 7019 String max; |
6995 | 7020 |
6996 int maxLength; | 7021 int maxLength; |
6997 | 7022 |
6998 String min; | 7023 String min; |
6999 | 7024 |
7000 bool multiple; | 7025 bool multiple; |
7001 | 7026 |
7002 String name; | 7027 String name; |
(...skipping 17 matching lines...) Expand all Loading... |
7020 String src; | 7045 String src; |
7021 | 7046 |
7022 String step; | 7047 String step; |
7023 | 7048 |
7024 String type; | 7049 String type; |
7025 | 7050 |
7026 String useMap; | 7051 String useMap; |
7027 | 7052 |
7028 final String validationMessage; | 7053 final String validationMessage; |
7029 | 7054 |
7030 final _ValidityStateJs validity; | 7055 final _ValidityStateImpl validity; |
7031 | 7056 |
7032 String value; | 7057 String value; |
7033 | 7058 |
7034 Date valueAsDate; | 7059 Date valueAsDate; |
7035 | 7060 |
7036 num valueAsNumber; | 7061 num valueAsNumber; |
7037 | 7062 |
7038 bool webkitGrammar; | 7063 bool webkitGrammar; |
7039 | 7064 |
7040 bool webkitSpeech; | 7065 bool webkitSpeech; |
(...skipping 17 matching lines...) Expand all Loading... |
7058 | 7083 |
7059 void stepUp([int n = null]) native; | 7084 void stepUp([int n = null]) native; |
7060 } | 7085 } |
7061 | 7086 |
7062 class _InputElementEventsImpl extends _ElementEventsImpl implements InputElement
Events { | 7087 class _InputElementEventsImpl extends _ElementEventsImpl implements InputElement
Events { |
7063 _InputElementEventsImpl(_ptr) : super(_ptr); | 7088 _InputElementEventsImpl(_ptr) : super(_ptr); |
7064 | 7089 |
7065 EventListenerList get speechChange() => _get('webkitSpeechChange'); | 7090 EventListenerList get speechChange() => _get('webkitSpeechChange'); |
7066 } | 7091 } |
7067 | 7092 |
7068 class _Int16ArrayJs extends _ArrayBufferViewJs implements Int16Array, List<int>
native "*Int16Array" { | 7093 class _Int16ArrayImpl extends _ArrayBufferViewImpl implements Int16Array, List<i
nt> native "*Int16Array" { |
7069 | 7094 |
7070 factory Int16Array(int length) => _construct_Int16Array(length); | 7095 factory Int16Array(int length) => _construct_Int16Array(length); |
7071 | 7096 |
7072 factory Int16Array.fromList(List<int> list) => _construct_Int16Array(list); | 7097 factory Int16Array.fromList(List<int> list) => _construct_Int16Array(list); |
7073 | 7098 |
7074 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _construct_Int16Array(buf
fer); | 7099 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _construct_Int16Array(buf
fer); |
7075 | 7100 |
7076 static _construct_Int16Array(arg) native 'return new Int16Array(arg);'; | 7101 static _construct_Int16Array(arg) native 'return new Int16Array(arg);'; |
7077 | 7102 |
7078 static final int BYTES_PER_ELEMENT = 2; | 7103 static final int BYTES_PER_ELEMENT = 2; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7145 void insertRange(int start, int length, [int initialValue]) { | 7170 void insertRange(int start, int length, [int initialValue]) { |
7146 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 7171 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
7147 } | 7172 } |
7148 List<int> getRange(int start, int length) => | 7173 List<int> getRange(int start, int length) => |
7149 _Lists.getRange(this, start, length, <int>[]); | 7174 _Lists.getRange(this, start, length, <int>[]); |
7150 | 7175 |
7151 // -- end List<int> mixins. | 7176 // -- end List<int> mixins. |
7152 | 7177 |
7153 void setElements(Object array, [int offset = null]) native; | 7178 void setElements(Object array, [int offset = null]) native; |
7154 | 7179 |
7155 _Int16ArrayJs subarray(int start, [int end = null]) native; | 7180 _Int16ArrayImpl subarray(int start, [int end = null]) native; |
7156 } | 7181 } |
7157 | 7182 |
7158 class _Int32ArrayJs extends _ArrayBufferViewJs implements Int32Array, List<int>
native "*Int32Array" { | 7183 class _Int32ArrayImpl extends _ArrayBufferViewImpl implements Int32Array, List<i
nt> native "*Int32Array" { |
7159 | 7184 |
7160 factory Int32Array(int length) => _construct_Int32Array(length); | 7185 factory Int32Array(int length) => _construct_Int32Array(length); |
7161 | 7186 |
7162 factory Int32Array.fromList(List<int> list) => _construct_Int32Array(list); | 7187 factory Int32Array.fromList(List<int> list) => _construct_Int32Array(list); |
7163 | 7188 |
7164 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _construct_Int32Array(buf
fer); | 7189 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _construct_Int32Array(buf
fer); |
7165 | 7190 |
7166 static _construct_Int32Array(arg) native 'return new Int32Array(arg);'; | 7191 static _construct_Int32Array(arg) native 'return new Int32Array(arg);'; |
7167 | 7192 |
7168 static final int BYTES_PER_ELEMENT = 4; | 7193 static final int BYTES_PER_ELEMENT = 4; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7235 void insertRange(int start, int length, [int initialValue]) { | 7260 void insertRange(int start, int length, [int initialValue]) { |
7236 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 7261 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
7237 } | 7262 } |
7238 List<int> getRange(int start, int length) => | 7263 List<int> getRange(int start, int length) => |
7239 _Lists.getRange(this, start, length, <int>[]); | 7264 _Lists.getRange(this, start, length, <int>[]); |
7240 | 7265 |
7241 // -- end List<int> mixins. | 7266 // -- end List<int> mixins. |
7242 | 7267 |
7243 void setElements(Object array, [int offset = null]) native; | 7268 void setElements(Object array, [int offset = null]) native; |
7244 | 7269 |
7245 _Int32ArrayJs subarray(int start, [int end = null]) native; | 7270 _Int32ArrayImpl subarray(int start, [int end = null]) native; |
7246 } | 7271 } |
7247 | 7272 |
7248 class _Int8ArrayJs extends _ArrayBufferViewJs implements Int8Array, List<int> na
tive "*Int8Array" { | 7273 class _Int8ArrayImpl extends _ArrayBufferViewImpl implements Int8Array, List<int
> native "*Int8Array" { |
7249 | 7274 |
7250 factory Int8Array(int length) => _construct_Int8Array(length); | 7275 factory Int8Array(int length) => _construct_Int8Array(length); |
7251 | 7276 |
7252 factory Int8Array.fromList(List<int> list) => _construct_Int8Array(list); | 7277 factory Int8Array.fromList(List<int> list) => _construct_Int8Array(list); |
7253 | 7278 |
7254 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _construct_Int8Array(buffe
r); | 7279 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _construct_Int8Array(buffe
r); |
7255 | 7280 |
7256 static _construct_Int8Array(arg) native 'return new Int8Array(arg);'; | 7281 static _construct_Int8Array(arg) native 'return new Int8Array(arg);'; |
7257 | 7282 |
7258 static final int BYTES_PER_ELEMENT = 1; | 7283 static final int BYTES_PER_ELEMENT = 1; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7325 void insertRange(int start, int length, [int initialValue]) { | 7350 void insertRange(int start, int length, [int initialValue]) { |
7326 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 7351 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
7327 } | 7352 } |
7328 List<int> getRange(int start, int length) => | 7353 List<int> getRange(int start, int length) => |
7329 _Lists.getRange(this, start, length, <int>[]); | 7354 _Lists.getRange(this, start, length, <int>[]); |
7330 | 7355 |
7331 // -- end List<int> mixins. | 7356 // -- end List<int> mixins. |
7332 | 7357 |
7333 void setElements(Object array, [int offset = null]) native; | 7358 void setElements(Object array, [int offset = null]) native; |
7334 | 7359 |
7335 _Int8ArrayJs subarray(int start, [int end = null]) native; | 7360 _Int8ArrayImpl subarray(int start, [int end = null]) native; |
7336 } | 7361 } |
7337 | 7362 |
7338 class _JavaScriptAudioNodeJs extends _AudioNodeJs implements JavaScriptAudioNode
native "*JavaScriptAudioNode" { | 7363 class _JavaScriptAudioNodeImpl extends _AudioNodeImpl implements JavaScriptAudio
Node native "*JavaScriptAudioNode" { |
7339 | 7364 |
7340 final int bufferSize; | 7365 final int bufferSize; |
7341 | 7366 |
7342 EventListener onaudioprocess; | 7367 EventListener onaudioprocess; |
7343 } | 7368 } |
7344 | 7369 |
7345 class _JavaScriptCallFrameJs implements JavaScriptCallFrame native "*JavaScriptC
allFrame" { | 7370 class _JavaScriptCallFrameImpl implements JavaScriptCallFrame native "*JavaScrip
tCallFrame" { |
7346 | 7371 |
7347 static final int CATCH_SCOPE = 4; | 7372 static final int CATCH_SCOPE = 4; |
7348 | 7373 |
7349 static final int CLOSURE_SCOPE = 3; | 7374 static final int CLOSURE_SCOPE = 3; |
7350 | 7375 |
7351 static final int GLOBAL_SCOPE = 0; | 7376 static final int GLOBAL_SCOPE = 0; |
7352 | 7377 |
7353 static final int LOCAL_SCOPE = 1; | 7378 static final int LOCAL_SCOPE = 1; |
7354 | 7379 |
7355 static final int WITH_SCOPE = 2; | 7380 static final int WITH_SCOPE = 2; |
7356 | 7381 |
7357 final _JavaScriptCallFrameJs caller; | 7382 final _JavaScriptCallFrameImpl caller; |
7358 | 7383 |
7359 final int column; | 7384 final int column; |
7360 | 7385 |
7361 final String functionName; | 7386 final String functionName; |
7362 | 7387 |
7363 final int line; | 7388 final int line; |
7364 | 7389 |
7365 final List scopeChain; | 7390 final List scopeChain; |
7366 | 7391 |
7367 final int sourceID; | 7392 final int sourceID; |
7368 | 7393 |
7369 final Object thisObject; | 7394 final Object thisObject; |
7370 | 7395 |
7371 final String type; | 7396 final String type; |
7372 | 7397 |
7373 void evaluate(String script) native; | 7398 void evaluate(String script) native; |
7374 | 7399 |
7375 int scopeType(int scopeIndex) native; | 7400 int scopeType(int scopeIndex) native; |
7376 } | 7401 } |
7377 | 7402 |
7378 class _KeyboardEventJs extends _UIEventJs implements KeyboardEvent native "*Keyb
oardEvent" { | 7403 class _KeyboardEventImpl extends _UIEventImpl implements KeyboardEvent native "*
KeyboardEvent" { |
7379 | 7404 |
7380 final bool altGraphKey; | 7405 final bool altGraphKey; |
7381 | 7406 |
7382 final bool altKey; | 7407 final bool altKey; |
7383 | 7408 |
7384 final bool ctrlKey; | 7409 final bool ctrlKey; |
7385 | 7410 |
7386 final String keyIdentifier; | 7411 final String keyIdentifier; |
7387 | 7412 |
7388 final int keyLocation; | 7413 final int keyLocation; |
7389 | 7414 |
7390 final bool metaKey; | 7415 final bool metaKey; |
7391 | 7416 |
7392 final bool shiftKey; | 7417 final bool shiftKey; |
7393 | 7418 |
7394 void initKeyboardEvent(String type, bool canBubble, bool cancelable, _WindowJs
view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh
iftKey, bool metaKey, bool altGraphKey) native; | 7419 void initKeyboardEvent(String type, bool canBubble, bool cancelable, _WindowIm
pl view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool
shiftKey, bool metaKey, bool altGraphKey) native; |
7395 } | 7420 } |
7396 | 7421 |
7397 class _KeygenElementJs extends _ElementJs implements KeygenElement native "*HTML
KeygenElement" { | 7422 class _KeygenElementImpl extends _ElementImpl implements KeygenElement native "*
HTMLKeygenElement" { |
7398 | 7423 |
7399 bool autofocus; | 7424 bool autofocus; |
7400 | 7425 |
7401 String challenge; | 7426 String challenge; |
7402 | 7427 |
7403 bool disabled; | 7428 bool disabled; |
7404 | 7429 |
7405 final _FormElementJs form; | 7430 final _FormElementImpl form; |
7406 | 7431 |
7407 String keytype; | 7432 String keytype; |
7408 | 7433 |
7409 final _NodeListJs labels; | 7434 final _NodeListImpl labels; |
7410 | 7435 |
7411 String name; | 7436 String name; |
7412 | 7437 |
7413 final String type; | 7438 final String type; |
7414 | 7439 |
7415 final String validationMessage; | 7440 final String validationMessage; |
7416 | 7441 |
7417 final _ValidityStateJs validity; | 7442 final _ValidityStateImpl validity; |
7418 | 7443 |
7419 final bool willValidate; | 7444 final bool willValidate; |
7420 | 7445 |
7421 bool checkValidity() native; | 7446 bool checkValidity() native; |
7422 | 7447 |
7423 void setCustomValidity(String error) native; | 7448 void setCustomValidity(String error) native; |
7424 } | 7449 } |
7425 | 7450 |
7426 class _LIElementJs extends _ElementJs implements LIElement native "*HTMLLIElemen
t" { | 7451 class _LIElementImpl extends _ElementImpl implements LIElement native "*HTMLLIEl
ement" { |
7427 | 7452 |
7428 String type; | 7453 String type; |
7429 | 7454 |
7430 int value; | 7455 int value; |
7431 } | 7456 } |
7432 | 7457 |
7433 class _LabelElementJs extends _ElementJs implements LabelElement native "*HTMLLa
belElement" { | 7458 class _LabelElementImpl extends _ElementImpl implements LabelElement native "*HT
MLLabelElement" { |
7434 | 7459 |
7435 final _ElementJs control; | 7460 final _ElementImpl control; |
7436 | 7461 |
7437 final _FormElementJs form; | 7462 final _FormElementImpl form; |
7438 | 7463 |
7439 String htmlFor; | 7464 String htmlFor; |
7440 } | 7465 } |
7441 | 7466 |
7442 class _LegendElementJs extends _ElementJs implements LegendElement native "*HTML
LegendElement" { | 7467 class _LegendElementImpl extends _ElementImpl implements LegendElement native "*
HTMLLegendElement" { |
7443 | 7468 |
7444 String align; | 7469 String align; |
7445 | 7470 |
7446 final _FormElementJs form; | 7471 final _FormElementImpl form; |
7447 } | 7472 } |
7448 | 7473 |
7449 class _LinkElementJs extends _ElementJs implements LinkElement native "*HTMLLink
Element" { | 7474 class _LinkElementImpl extends _ElementImpl implements LinkElement native "*HTML
LinkElement" { |
7450 | 7475 |
7451 String charset; | 7476 String charset; |
7452 | 7477 |
7453 bool disabled; | 7478 bool disabled; |
7454 | 7479 |
7455 String href; | 7480 String href; |
7456 | 7481 |
7457 String hreflang; | 7482 String hreflang; |
7458 | 7483 |
7459 String media; | 7484 String media; |
7460 | 7485 |
7461 String rel; | 7486 String rel; |
7462 | 7487 |
7463 String rev; | 7488 String rev; |
7464 | 7489 |
7465 final _StyleSheetJs sheet; | 7490 final _StyleSheetImpl sheet; |
7466 | 7491 |
7467 _DOMSettableTokenListJs sizes; | 7492 _DOMSettableTokenListImpl sizes; |
7468 | 7493 |
7469 String target; | 7494 String target; |
7470 | 7495 |
7471 String type; | 7496 String type; |
7472 } | 7497 } |
7473 | 7498 |
7474 class _LocalMediaStreamJs extends _MediaStreamJs implements LocalMediaStream nat
ive "*LocalMediaStream" { | 7499 class _LocalMediaStreamImpl extends _MediaStreamImpl implements LocalMediaStream
native "*LocalMediaStream" { |
7475 | 7500 |
7476 void stop() native; | 7501 void stop() native; |
7477 } | 7502 } |
7478 | 7503 |
7479 class _LocationJs implements Location native "*Location" { | 7504 class _LocationImpl implements Location native "*Location" { |
7480 | 7505 |
7481 String hash; | 7506 String hash; |
7482 | 7507 |
7483 String host; | 7508 String host; |
7484 | 7509 |
7485 String hostname; | 7510 String hostname; |
7486 | 7511 |
7487 String href; | 7512 String href; |
7488 | 7513 |
7489 final String origin; | 7514 final String origin; |
7490 | 7515 |
7491 String pathname; | 7516 String pathname; |
7492 | 7517 |
7493 String port; | 7518 String port; |
7494 | 7519 |
7495 String protocol; | 7520 String protocol; |
7496 | 7521 |
7497 String search; | 7522 String search; |
7498 | 7523 |
7499 void assign(String url) native; | 7524 void assign(String url) native; |
7500 | 7525 |
7501 void reload() native; | 7526 void reload() native; |
7502 | 7527 |
7503 void replace(String url) native; | 7528 void replace(String url) native; |
7504 | 7529 |
7505 String toString() native; | 7530 String toString() native; |
7506 } | 7531 } |
7507 | 7532 |
7508 class _LowPass2FilterNodeJs extends _AudioNodeJs implements LowPass2FilterNode n
ative "*LowPass2FilterNode" { | 7533 class _LowPass2FilterNodeImpl extends _AudioNodeImpl implements LowPass2FilterNo
de native "*LowPass2FilterNode" { |
7509 | 7534 |
7510 final _AudioParamJs cutoff; | 7535 final _AudioParamImpl cutoff; |
7511 | 7536 |
7512 final _AudioParamJs resonance; | 7537 final _AudioParamImpl resonance; |
7513 } | 7538 } |
7514 | 7539 |
7515 class _MapElementJs extends _ElementJs implements MapElement native "*HTMLMapEle
ment" { | 7540 class _MapElementImpl extends _ElementImpl implements MapElement native "*HTMLMa
pElement" { |
7516 | 7541 |
7517 final _HTMLCollectionJs areas; | 7542 final _HTMLCollectionImpl areas; |
7518 | 7543 |
7519 String name; | 7544 String name; |
7520 } | 7545 } |
7521 | 7546 |
7522 class _MarqueeElementJs extends _ElementJs implements MarqueeElement native "*HT
MLMarqueeElement" { | 7547 class _MarqueeElementImpl extends _ElementImpl implements MarqueeElement native
"*HTMLMarqueeElement" { |
7523 | 7548 |
7524 String behavior; | 7549 String behavior; |
7525 | 7550 |
7526 String bgColor; | 7551 String bgColor; |
7527 | 7552 |
7528 String direction; | 7553 String direction; |
7529 | 7554 |
7530 String height; | 7555 String height; |
7531 | 7556 |
7532 int hspace; | 7557 int hspace; |
7533 | 7558 |
7534 int loop; | 7559 int loop; |
7535 | 7560 |
7536 int scrollAmount; | 7561 int scrollAmount; |
7537 | 7562 |
7538 int scrollDelay; | 7563 int scrollDelay; |
7539 | 7564 |
7540 bool trueSpeed; | 7565 bool trueSpeed; |
7541 | 7566 |
7542 int vspace; | 7567 int vspace; |
7543 | 7568 |
7544 String width; | 7569 String width; |
7545 | 7570 |
7546 void start() native; | 7571 void start() native; |
7547 | 7572 |
7548 void stop() native; | 7573 void stop() native; |
7549 } | 7574 } |
7550 | 7575 |
7551 class _MediaControllerJs implements MediaController native "*MediaController" { | 7576 class _MediaControllerImpl implements MediaController native "*MediaController"
{ |
7552 | 7577 |
7553 final _TimeRangesJs buffered; | 7578 final _TimeRangesImpl buffered; |
7554 | 7579 |
7555 num currentTime; | 7580 num currentTime; |
7556 | 7581 |
7557 num defaultPlaybackRate; | 7582 num defaultPlaybackRate; |
7558 | 7583 |
7559 final num duration; | 7584 final num duration; |
7560 | 7585 |
7561 bool muted; | 7586 bool muted; |
7562 | 7587 |
7563 final bool paused; | 7588 final bool paused; |
7564 | 7589 |
7565 num playbackRate; | 7590 num playbackRate; |
7566 | 7591 |
7567 final _TimeRangesJs played; | 7592 final _TimeRangesImpl played; |
7568 | 7593 |
7569 final _TimeRangesJs seekable; | 7594 final _TimeRangesImpl seekable; |
7570 | 7595 |
7571 num volume; | 7596 num volume; |
7572 | 7597 |
7573 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 7598 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
7574 | 7599 |
7575 bool dispatchEvent(_EventJs evt) native; | 7600 bool dispatchEvent(_EventImpl evt) native; |
7576 | 7601 |
7577 void pause() native; | 7602 void pause() native; |
7578 | 7603 |
7579 void play() native; | 7604 void play() native; |
7580 | 7605 |
7581 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 7606 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
7582 } | 7607 } |
7583 | 7608 |
7584 class _MediaElementJs extends _ElementJs implements MediaElement native "*HTMLMe
diaElement" { | 7609 class _MediaElementImpl extends _ElementImpl implements MediaElement native "*HT
MLMediaElement" { |
7585 | 7610 |
7586 static final int EOS_DECODE_ERR = 2; | 7611 static final int EOS_DECODE_ERR = 2; |
7587 | 7612 |
7588 static final int EOS_NETWORK_ERR = 1; | 7613 static final int EOS_NETWORK_ERR = 1; |
7589 | 7614 |
7590 static final int EOS_NO_ERROR = 0; | 7615 static final int EOS_NO_ERROR = 0; |
7591 | 7616 |
7592 static final int HAVE_CURRENT_DATA = 2; | 7617 static final int HAVE_CURRENT_DATA = 2; |
7593 | 7618 |
7594 static final int HAVE_ENOUGH_DATA = 4; | 7619 static final int HAVE_ENOUGH_DATA = 4; |
(...skipping 13 matching lines...) Expand all Loading... |
7608 static final int NETWORK_NO_SOURCE = 3; | 7633 static final int NETWORK_NO_SOURCE = 3; |
7609 | 7634 |
7610 static final int SOURCE_CLOSED = 0; | 7635 static final int SOURCE_CLOSED = 0; |
7611 | 7636 |
7612 static final int SOURCE_ENDED = 2; | 7637 static final int SOURCE_ENDED = 2; |
7613 | 7638 |
7614 static final int SOURCE_OPEN = 1; | 7639 static final int SOURCE_OPEN = 1; |
7615 | 7640 |
7616 bool autoplay; | 7641 bool autoplay; |
7617 | 7642 |
7618 final _TimeRangesJs buffered; | 7643 final _TimeRangesImpl buffered; |
7619 | 7644 |
7620 _MediaControllerJs controller; | 7645 _MediaControllerImpl controller; |
7621 | 7646 |
7622 bool controls; | 7647 bool controls; |
7623 | 7648 |
7624 final String currentSrc; | 7649 final String currentSrc; |
7625 | 7650 |
7626 num currentTime; | 7651 num currentTime; |
7627 | 7652 |
7628 bool defaultMuted; | 7653 bool defaultMuted; |
7629 | 7654 |
7630 num defaultPlaybackRate; | 7655 num defaultPlaybackRate; |
7631 | 7656 |
7632 final num duration; | 7657 final num duration; |
7633 | 7658 |
7634 final bool ended; | 7659 final bool ended; |
7635 | 7660 |
7636 final _MediaErrorJs error; | 7661 final _MediaErrorImpl error; |
7637 | 7662 |
7638 final num initialTime; | 7663 final num initialTime; |
7639 | 7664 |
7640 bool loop; | 7665 bool loop; |
7641 | 7666 |
7642 String mediaGroup; | 7667 String mediaGroup; |
7643 | 7668 |
7644 bool muted; | 7669 bool muted; |
7645 | 7670 |
7646 final int networkState; | 7671 final int networkState; |
7647 | 7672 |
7648 final bool paused; | 7673 final bool paused; |
7649 | 7674 |
7650 num playbackRate; | 7675 num playbackRate; |
7651 | 7676 |
7652 final _TimeRangesJs played; | 7677 final _TimeRangesImpl played; |
7653 | 7678 |
7654 String preload; | 7679 String preload; |
7655 | 7680 |
7656 final int readyState; | 7681 final int readyState; |
7657 | 7682 |
7658 final _TimeRangesJs seekable; | 7683 final _TimeRangesImpl seekable; |
7659 | 7684 |
7660 final bool seeking; | 7685 final bool seeking; |
7661 | 7686 |
7662 String src; | 7687 String src; |
7663 | 7688 |
7664 final num startTime; | 7689 final num startTime; |
7665 | 7690 |
7666 final _TextTrackListJs textTracks; | 7691 final _TextTrackListImpl textTracks; |
7667 | 7692 |
7668 num volume; | 7693 num volume; |
7669 | 7694 |
7670 final int webkitAudioDecodedByteCount; | 7695 final int webkitAudioDecodedByteCount; |
7671 | 7696 |
7672 bool webkitClosedCaptionsVisible; | 7697 bool webkitClosedCaptionsVisible; |
7673 | 7698 |
7674 final bool webkitHasClosedCaptions; | 7699 final bool webkitHasClosedCaptions; |
7675 | 7700 |
7676 final String webkitMediaSourceURL; | 7701 final String webkitMediaSourceURL; |
7677 | 7702 |
7678 bool webkitPreservesPitch; | 7703 bool webkitPreservesPitch; |
7679 | 7704 |
7680 final int webkitSourceState; | 7705 final int webkitSourceState; |
7681 | 7706 |
7682 final int webkitVideoDecodedByteCount; | 7707 final int webkitVideoDecodedByteCount; |
7683 | 7708 |
7684 _TextTrackJs addTextTrack(String kind, [String label = null, String language =
null]) native; | 7709 _TextTrackImpl addTextTrack(String kind, [String label = null, String language
= null]) native; |
7685 | 7710 |
7686 String canPlayType(String type) native; | 7711 String canPlayType(String type) native; |
7687 | 7712 |
7688 void load() native; | 7713 void load() native; |
7689 | 7714 |
7690 void pause() native; | 7715 void pause() native; |
7691 | 7716 |
7692 void play() native; | 7717 void play() native; |
7693 | 7718 |
7694 void webkitSourceAppend(_Uint8ArrayJs data) native; | 7719 void webkitSourceAppend(_Uint8ArrayImpl data) native; |
7695 | 7720 |
7696 void webkitSourceEndOfStream(int status) native; | 7721 void webkitSourceEndOfStream(int status) native; |
7697 } | 7722 } |
7698 | 7723 |
7699 class _MediaElementAudioSourceNodeJs extends _AudioSourceNodeJs implements Media
ElementAudioSourceNode native "*MediaElementAudioSourceNode" { | 7724 class _MediaElementAudioSourceNodeImpl extends _AudioSourceNodeImpl implements M
ediaElementAudioSourceNode native "*MediaElementAudioSourceNode" { |
7700 | 7725 |
7701 final _MediaElementJs mediaElement; | 7726 final _MediaElementImpl mediaElement; |
7702 } | 7727 } |
7703 | 7728 |
7704 class _MediaErrorJs implements MediaError native "*MediaError" { | 7729 class _MediaErrorImpl implements MediaError native "*MediaError" { |
7705 | 7730 |
7706 static final int MEDIA_ERR_ABORTED = 1; | 7731 static final int MEDIA_ERR_ABORTED = 1; |
7707 | 7732 |
7708 static final int MEDIA_ERR_DECODE = 3; | 7733 static final int MEDIA_ERR_DECODE = 3; |
7709 | 7734 |
7710 static final int MEDIA_ERR_NETWORK = 2; | 7735 static final int MEDIA_ERR_NETWORK = 2; |
7711 | 7736 |
7712 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | 7737 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; |
7713 | 7738 |
7714 final int code; | 7739 final int code; |
7715 } | 7740 } |
7716 | 7741 |
7717 class _MediaListJs implements MediaList native "*MediaList" { | 7742 class _MediaListImpl implements MediaList native "*MediaList" { |
7718 | 7743 |
7719 final int length; | 7744 final int length; |
7720 | 7745 |
7721 String mediaText; | 7746 String mediaText; |
7722 | 7747 |
7723 String operator[](int index) native "return this[index];"; | 7748 String operator[](int index) native "return this[index];"; |
7724 | 7749 |
7725 void operator[]=(int index, String value) { | 7750 void operator[]=(int index, String value) { |
7726 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 7751 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); |
7727 } | 7752 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7793 | 7818 |
7794 // -- end List<String> mixins. | 7819 // -- end List<String> mixins. |
7795 | 7820 |
7796 void appendMedium(String newMedium) native; | 7821 void appendMedium(String newMedium) native; |
7797 | 7822 |
7798 void deleteMedium(String oldMedium) native; | 7823 void deleteMedium(String oldMedium) native; |
7799 | 7824 |
7800 String item(int index) native; | 7825 String item(int index) native; |
7801 } | 7826 } |
7802 | 7827 |
7803 class _MediaQueryListJs implements MediaQueryList native "*MediaQueryList" { | 7828 class _MediaQueryListImpl implements MediaQueryList native "*MediaQueryList" { |
7804 | 7829 |
7805 final bool matches; | 7830 final bool matches; |
7806 | 7831 |
7807 final String media; | 7832 final String media; |
7808 | 7833 |
7809 void addListener(_MediaQueryListListenerJs listener) native; | 7834 void addListener(_MediaQueryListListenerImpl listener) native; |
7810 | 7835 |
7811 void removeListener(_MediaQueryListListenerJs listener) native; | 7836 void removeListener(_MediaQueryListListenerImpl listener) native; |
7812 } | 7837 } |
7813 | 7838 |
7814 class _MediaQueryListListenerJs implements MediaQueryListListener native "*Media
QueryListListener" { | 7839 class _MediaQueryListListenerImpl implements MediaQueryListListener native "*Med
iaQueryListListener" { |
7815 | 7840 |
7816 void queryChanged(_MediaQueryListJs list) native; | 7841 void queryChanged(_MediaQueryListImpl list) native; |
7817 } | 7842 } |
7818 | 7843 |
7819 class _MediaStreamJs implements MediaStream native "*MediaStream" { | 7844 class _MediaStreamImpl implements MediaStream native "*MediaStream" { |
7820 | 7845 |
7821 static final int ENDED = 2; | 7846 static final int ENDED = 2; |
7822 | 7847 |
7823 static final int LIVE = 1; | 7848 static final int LIVE = 1; |
7824 | 7849 |
7825 final _MediaStreamTrackListJs audioTracks; | 7850 final _MediaStreamTrackListImpl audioTracks; |
7826 | 7851 |
7827 final String label; | 7852 final String label; |
7828 | 7853 |
7829 EventListener onended; | 7854 EventListener onended; |
7830 | 7855 |
7831 final int readyState; | 7856 final int readyState; |
7832 | 7857 |
7833 final _MediaStreamTrackListJs videoTracks; | 7858 final _MediaStreamTrackListImpl videoTracks; |
7834 | 7859 |
7835 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 7860 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
7836 | 7861 |
7837 bool dispatchEvent(_EventJs event) native; | 7862 bool dispatchEvent(_EventImpl event) native; |
7838 | 7863 |
7839 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 7864 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
7840 } | 7865 } |
7841 | 7866 |
7842 class _MediaStreamEventJs extends _EventJs implements MediaStreamEvent native "*
MediaStreamEvent" { | 7867 class _MediaStreamEventImpl extends _EventImpl implements MediaStreamEvent nativ
e "*MediaStreamEvent" { |
7843 | 7868 |
7844 final _MediaStreamJs stream; | 7869 final _MediaStreamImpl stream; |
7845 } | 7870 } |
7846 | 7871 |
7847 class _MediaStreamListJs implements MediaStreamList native "*MediaStreamList" { | 7872 class _MediaStreamListImpl implements MediaStreamList native "*MediaStreamList"
{ |
7848 | 7873 |
7849 final int length; | 7874 final int length; |
7850 | 7875 |
7851 _MediaStreamJs item(int index) native; | 7876 _MediaStreamImpl item(int index) native; |
7852 } | 7877 } |
7853 | 7878 |
7854 class _MediaStreamTrackJs implements MediaStreamTrack native "*MediaStreamTrack"
{ | 7879 class _MediaStreamTrackImpl implements MediaStreamTrack native "*MediaStreamTrac
k" { |
7855 | 7880 |
7856 bool enabled; | 7881 bool enabled; |
7857 | 7882 |
7858 final String kind; | 7883 final String kind; |
7859 | 7884 |
7860 final String label; | 7885 final String label; |
7861 } | 7886 } |
7862 | 7887 |
7863 class _MediaStreamTrackListJs implements MediaStreamTrackList native "*MediaStre
amTrackList" { | 7888 class _MediaStreamTrackListImpl implements MediaStreamTrackList native "*MediaSt
reamTrackList" { |
7864 | 7889 |
7865 final int length; | 7890 final int length; |
7866 | 7891 |
7867 _MediaStreamTrackJs item(int index) native; | 7892 _MediaStreamTrackImpl item(int index) native; |
7868 } | 7893 } |
7869 | 7894 |
7870 class _MemoryInfoJs implements MemoryInfo native "*MemoryInfo" { | 7895 class _MemoryInfoImpl implements MemoryInfo native "*MemoryInfo" { |
7871 | 7896 |
7872 final int jsHeapSizeLimit; | 7897 final int jsHeapSizeLimit; |
7873 | 7898 |
7874 final int totalJSHeapSize; | 7899 final int totalJSHeapSize; |
7875 | 7900 |
7876 final int usedJSHeapSize; | 7901 final int usedJSHeapSize; |
7877 } | 7902 } |
7878 | 7903 |
7879 class _MenuElementJs extends _ElementJs implements MenuElement native "*HTMLMenu
Element" { | 7904 class _MenuElementImpl extends _ElementImpl implements MenuElement native "*HTML
MenuElement" { |
7880 | 7905 |
7881 bool compact; | 7906 bool compact; |
7882 } | 7907 } |
7883 | 7908 |
7884 class _MessageChannelJs implements MessageChannel native "*MessageChannel" { | 7909 class _MessageChannelImpl implements MessageChannel native "*MessageChannel" { |
7885 | 7910 |
7886 final _MessagePortJs port1; | 7911 final _MessagePortImpl port1; |
7887 | 7912 |
7888 final _MessagePortJs port2; | 7913 final _MessagePortImpl port2; |
7889 } | 7914 } |
7890 | 7915 |
7891 class _MessageEventJs extends _EventJs implements MessageEvent native "*MessageE
vent" { | 7916 class _MessageEventImpl extends _EventImpl implements MessageEvent native "*Mess
ageEvent" { |
7892 | 7917 |
7893 final Object data; | 7918 final Object data; |
7894 | 7919 |
7895 final String lastEventId; | 7920 final String lastEventId; |
7896 | 7921 |
7897 final String origin; | 7922 final String origin; |
7898 | 7923 |
7899 final List ports; | 7924 final List ports; |
7900 | 7925 |
7901 final _WindowJs source; | 7926 final _WindowImpl source; |
7902 | 7927 |
7903 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, _WindowJs sourceArg, Lis
t messagePorts) native; | 7928 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, _WindowImpl sourceArg, L
ist messagePorts) native; |
7904 | 7929 |
7905 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, _WindowJs sourceAr
g, List transferables) native; | 7930 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, _WindowImpl source
Arg, List transferables) native; |
7906 } | 7931 } |
7907 | 7932 |
7908 class _MessagePortJs implements MessagePort native "*MessagePort" { | 7933 class _MessagePortImpl extends _EventTargetImpl implements MessagePort native "*
MessagePort" { |
7909 | 7934 |
7910 _MessagePortEventsImpl get on() => | 7935 _MessagePortEventsImpl get on() => |
7911 new _MessagePortEventsImpl(this); | 7936 new _MessagePortEventsImpl(this); |
7912 | 7937 |
7913 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 7938 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
7914 | 7939 |
7915 void close() native; | 7940 void close() native; |
7916 | 7941 |
7917 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | 7942 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
7918 | 7943 |
7919 void postMessage(String message, [List messagePorts = null]) native; | 7944 void postMessage(String message, [List messagePorts = null]) native; |
7920 | 7945 |
7921 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 7946 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
7922 | 7947 |
7923 void start() native; | 7948 void start() native; |
7924 | 7949 |
7925 void webkitPostMessage(String message, [List transfer = null]) native; | 7950 void webkitPostMessage(String message, [List transfer = null]) native; |
7926 } | 7951 } |
7927 | 7952 |
7928 class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents { | 7953 class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents { |
7929 _MessagePortEventsImpl(_ptr) : super(_ptr); | 7954 _MessagePortEventsImpl(_ptr) : super(_ptr); |
7930 | 7955 |
7931 EventListenerList get message() => _get('message'); | 7956 EventListenerList get message() => _get('message'); |
7932 } | 7957 } |
7933 | 7958 |
7934 class _MetaElementJs extends _ElementJs implements MetaElement native "*HTMLMeta
Element" { | 7959 class _MetaElementImpl extends _ElementImpl implements MetaElement native "*HTML
MetaElement" { |
7935 | 7960 |
7936 String content; | 7961 String content; |
7937 | 7962 |
7938 String httpEquiv; | 7963 String httpEquiv; |
7939 | 7964 |
7940 String name; | 7965 String name; |
7941 | 7966 |
7942 String scheme; | 7967 String scheme; |
7943 } | 7968 } |
7944 | 7969 |
7945 class _MetadataJs implements Metadata native "*Metadata" { | 7970 class _MetadataImpl implements Metadata native "*Metadata" { |
7946 | 7971 |
7947 final Date modificationTime; | 7972 final Date modificationTime; |
7948 } | 7973 } |
7949 | 7974 |
7950 class _MeterElementJs extends _ElementJs implements MeterElement native "*HTMLMe
terElement" { | 7975 class _MeterElementImpl extends _ElementImpl implements MeterElement native "*HT
MLMeterElement" { |
7951 | 7976 |
7952 final _FormElementJs form; | 7977 final _FormElementImpl form; |
7953 | 7978 |
7954 num high; | 7979 num high; |
7955 | 7980 |
7956 final _NodeListJs labels; | 7981 final _NodeListImpl labels; |
7957 | 7982 |
7958 num low; | 7983 num low; |
7959 | 7984 |
7960 num max; | 7985 num max; |
7961 | 7986 |
7962 num min; | 7987 num min; |
7963 | 7988 |
7964 num optimum; | 7989 num optimum; |
7965 | 7990 |
7966 num value; | 7991 num value; |
7967 } | 7992 } |
7968 | 7993 |
7969 class _ModElementJs extends _ElementJs implements ModElement native "*HTMLModEle
ment" { | 7994 class _ModElementImpl extends _ElementImpl implements ModElement native "*HTMLMo
dElement" { |
7970 | 7995 |
7971 String cite; | 7996 String cite; |
7972 | 7997 |
7973 String dateTime; | 7998 String dateTime; |
7974 } | 7999 } |
7975 | 8000 |
7976 class _MouseEventJs extends _UIEventJs implements MouseEvent native "*MouseEvent
" { | 8001 class _MouseEventImpl extends _UIEventImpl implements MouseEvent native "*MouseE
vent" { |
7977 | 8002 |
7978 final bool altKey; | 8003 final bool altKey; |
7979 | 8004 |
7980 final int button; | 8005 final int button; |
7981 | 8006 |
7982 final int clientX; | 8007 final int clientX; |
7983 | 8008 |
7984 final int clientY; | 8009 final int clientY; |
7985 | 8010 |
7986 final bool ctrlKey; | 8011 final bool ctrlKey; |
7987 | 8012 |
7988 final _ClipboardJs dataTransfer; | 8013 final _ClipboardImpl dataTransfer; |
7989 | 8014 |
7990 final _NodeJs fromElement; | 8015 final _NodeImpl fromElement; |
7991 | 8016 |
7992 final bool metaKey; | 8017 final bool metaKey; |
7993 | 8018 |
7994 final int offsetX; | 8019 final int offsetX; |
7995 | 8020 |
7996 final int offsetY; | 8021 final int offsetY; |
7997 | 8022 |
7998 final _EventTargetJs relatedTarget; | 8023 _EventTargetImpl get relatedTarget() => _FixHtmlDocumentReference(_relatedTarg
et); |
| 8024 |
| 8025 _EventTargetImpl get _relatedTarget() native "return this.relatedTarget;"; |
7999 | 8026 |
8000 final int screenX; | 8027 final int screenX; |
8001 | 8028 |
8002 final int screenY; | 8029 final int screenY; |
8003 | 8030 |
8004 final bool shiftKey; | 8031 final bool shiftKey; |
8005 | 8032 |
8006 final _NodeJs toElement; | 8033 final _NodeImpl toElement; |
8007 | 8034 |
8008 final int x; | 8035 final int x; |
8009 | 8036 |
8010 final int y; | 8037 final int y; |
8011 | 8038 |
8012 void initMouseEvent(String type, bool canBubble, bool cancelable, _WindowJs vi
ew, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey
, bool altKey, bool shiftKey, bool metaKey, int button, _EventTargetJs relatedTa
rget) native; | 8039 void _initMouseEvent(String type, bool canBubble, bool cancelable, _WindowImpl
view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrl
Key, bool altKey, bool shiftKey, bool metaKey, int button, _EventTargetImpl rela
tedTarget) native "this.initMouseEvent(type, canBubble, cancelable, view, detail
, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button
, relatedTarget);"; |
8013 } | 8040 } |
8014 | 8041 |
8015 class _MutationEventJs extends _EventJs implements MutationEvent native "*Mutati
onEvent" { | 8042 class _MutationEventImpl extends _EventImpl implements MutationEvent native "*Mu
tationEvent" { |
8016 | 8043 |
8017 static final int ADDITION = 2; | 8044 static final int ADDITION = 2; |
8018 | 8045 |
8019 static final int MODIFICATION = 1; | 8046 static final int MODIFICATION = 1; |
8020 | 8047 |
8021 static final int REMOVAL = 3; | 8048 static final int REMOVAL = 3; |
8022 | 8049 |
8023 final int attrChange; | 8050 final int attrChange; |
8024 | 8051 |
8025 final String attrName; | 8052 final String attrName; |
8026 | 8053 |
8027 final String newValue; | 8054 final String newValue; |
8028 | 8055 |
8029 final String prevValue; | 8056 final String prevValue; |
8030 | 8057 |
8031 final _NodeJs relatedNode; | 8058 final _NodeImpl relatedNode; |
8032 | 8059 |
8033 void initMutationEvent(String type, bool canBubble, bool cancelable, _NodeJs r
elatedNode, String prevValue, String newValue, String attrName, int attrChange)
native; | 8060 void initMutationEvent(String type, bool canBubble, bool cancelable, _NodeImpl
relatedNode, String prevValue, String newValue, String attrName, int attrChange
) native; |
8034 } | 8061 } |
8035 | 8062 |
8036 class _NamedNodeMapJs implements NamedNodeMap native "*NamedNodeMap" { | 8063 class _NamedNodeMapImpl implements NamedNodeMap native "*NamedNodeMap" { |
8037 | 8064 |
8038 final int length; | 8065 final int length; |
8039 | 8066 |
8040 _NodeJs operator[](int index) native "return this[index];"; | 8067 _NodeImpl operator[](int index) native "return this[index];"; |
8041 | 8068 |
8042 void operator[]=(int index, _NodeJs value) { | 8069 void operator[]=(int index, _NodeImpl value) { |
8043 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 8070 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); |
8044 } | 8071 } |
8045 // -- start List<Node> mixins. | 8072 // -- start List<Node> mixins. |
8046 // Node is the element type. | 8073 // Node is the element type. |
8047 | 8074 |
8048 // From Iterable<Node>: | 8075 // From Iterable<Node>: |
8049 | 8076 |
8050 Iterator<Node> iterator() { | 8077 Iterator<Node> iterator() { |
8051 // Note: NodeLists are not fixed size. And most probably length shouldn't | 8078 // Note: NodeLists are not fixed size. And most probably length shouldn't |
8052 // be cached in both iterator _and_ forEach method. For now caching it | 8079 // be cached in both iterator _and_ forEach method. For now caching it |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8103 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 8130 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
8104 } | 8131 } |
8105 void insertRange(int start, int length, [Node initialValue]) { | 8132 void insertRange(int start, int length, [Node initialValue]) { |
8106 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 8133 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
8107 } | 8134 } |
8108 List<Node> getRange(int start, int length) => | 8135 List<Node> getRange(int start, int length) => |
8109 _Lists.getRange(this, start, length, <Node>[]); | 8136 _Lists.getRange(this, start, length, <Node>[]); |
8110 | 8137 |
8111 // -- end List<Node> mixins. | 8138 // -- end List<Node> mixins. |
8112 | 8139 |
8113 _NodeJs getNamedItem(String name) native; | 8140 _NodeImpl getNamedItem(String name) native; |
8114 | 8141 |
8115 _NodeJs getNamedItemNS(String namespaceURI, String localName) native; | 8142 _NodeImpl getNamedItemNS(String namespaceURI, String localName) native; |
8116 | 8143 |
8117 _NodeJs item(int index) native; | 8144 _NodeImpl item(int index) native; |
8118 | 8145 |
8119 _NodeJs removeNamedItem(String name) native; | 8146 _NodeImpl removeNamedItem(String name) native; |
8120 | 8147 |
8121 _NodeJs removeNamedItemNS(String namespaceURI, String localName) native; | 8148 _NodeImpl removeNamedItemNS(String namespaceURI, String localName) native; |
8122 | 8149 |
8123 _NodeJs setNamedItem(_NodeJs node) native; | 8150 _NodeImpl setNamedItem(_NodeImpl node) native; |
8124 | 8151 |
8125 _NodeJs setNamedItemNS(_NodeJs node) native; | 8152 _NodeImpl setNamedItemNS(_NodeImpl node) native; |
8126 } | 8153 } |
8127 | 8154 |
8128 class _NavigatorJs implements Navigator native "*Navigator" { | 8155 class _NavigatorImpl implements Navigator native "*Navigator" { |
8129 | 8156 |
8130 final String appCodeName; | 8157 final String appCodeName; |
8131 | 8158 |
8132 final String appName; | 8159 final String appName; |
8133 | 8160 |
8134 final String appVersion; | 8161 final String appVersion; |
8135 | 8162 |
8136 final bool cookieEnabled; | 8163 final bool cookieEnabled; |
8137 | 8164 |
8138 final _GeolocationJs geolocation; | 8165 final _GeolocationImpl geolocation; |
8139 | 8166 |
8140 final String language; | 8167 final String language; |
8141 | 8168 |
8142 final _DOMMimeTypeArrayJs mimeTypes; | 8169 final _DOMMimeTypeArrayImpl mimeTypes; |
8143 | 8170 |
8144 final bool onLine; | 8171 final bool onLine; |
8145 | 8172 |
8146 final String platform; | 8173 final String platform; |
8147 | 8174 |
8148 final _DOMPluginArrayJs plugins; | 8175 final _DOMPluginArrayImpl plugins; |
8149 | 8176 |
8150 final String product; | 8177 final String product; |
8151 | 8178 |
8152 final String productSub; | 8179 final String productSub; |
8153 | 8180 |
8154 final String userAgent; | 8181 final String userAgent; |
8155 | 8182 |
8156 final String vendor; | 8183 final String vendor; |
8157 | 8184 |
8158 final String vendorSub; | 8185 final String vendorSub; |
8159 | 8186 |
8160 void getStorageUpdates() native; | 8187 void getStorageUpdates() native; |
8161 | 8188 |
8162 bool javaEnabled() native; | 8189 bool javaEnabled() native; |
8163 | 8190 |
8164 void registerProtocolHandler(String scheme, String url, String title) native; | 8191 void registerProtocolHandler(String scheme, String url, String title) native; |
8165 | 8192 |
8166 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ
essCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) native; | 8193 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ
essCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) native; |
8167 } | 8194 } |
8168 | 8195 |
8169 class _NavigatorUserMediaErrorJs implements NavigatorUserMediaError native "*Nav
igatorUserMediaError" { | 8196 class _NavigatorUserMediaErrorImpl implements NavigatorUserMediaError native "*N
avigatorUserMediaError" { |
8170 | 8197 |
8171 static final int PERMISSION_DENIED = 1; | 8198 static final int PERMISSION_DENIED = 1; |
8172 | 8199 |
8173 final int code; | 8200 final int code; |
8174 } | 8201 } |
8175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
8176 // for details. All rights reserved. Use of this source code is governed by a | 8203 // for details. All rights reserved. Use of this source code is governed by a |
8177 // BSD-style license that can be found in the LICENSE file. | 8204 // BSD-style license that can be found in the LICENSE file. |
8178 | 8205 |
8179 // TODO(nweiz): when all implementations we target have the same name for the | 8206 class _NodeImpl extends _EventTargetImpl implements Node native "*Node" { |
8180 // coreimpl implementation of List<E>, extend that rather than wrapping. | 8207 _NodeListImpl get nodes() { |
8181 class _ListWrapper<E> implements List<E> { | |
8182 List<E> _list; | |
8183 | |
8184 _ListWrapper(List<E> this._list); | |
8185 | |
8186 Iterator<E> iterator() => _list.iterator(); | |
8187 | |
8188 void forEach(void f(E element)) => _list.forEach(f); | |
8189 | |
8190 Collection map(f(E element)) => _list.map(f); | |
8191 | |
8192 List<E> filter(bool f(E element)) => _list.filter(f); | |
8193 | |
8194 bool every(bool f(E element)) => _list.every(f); | |
8195 | |
8196 bool some(bool f(E element)) => _list.some(f); | |
8197 | |
8198 bool isEmpty() => _list.isEmpty(); | |
8199 | |
8200 int get length() => _list.length; | |
8201 | |
8202 E operator [](int index) => _list[index]; | |
8203 | |
8204 void operator []=(int index, E value) { _list[index] = value; } | |
8205 | |
8206 void set length(int newLength) { _list.length = newLength; } | |
8207 | |
8208 void add(E value) => _list.add(value); | |
8209 | |
8210 void addLast(E value) => _list.addLast(value); | |
8211 | |
8212 void addAll(Collection<E> collection) => _list.addAll(collection); | |
8213 | |
8214 void sort(int compare(E a, E b)) => _list.sort(compare); | |
8215 | |
8216 int indexOf(E element, [int start = 0]) => _list.indexOf(element, start); | |
8217 | |
8218 int lastIndexOf(E element, [int start = 0]) => | |
8219 _list.lastIndexOf(element, start); | |
8220 | |
8221 void clear() => _list.clear(); | |
8222 | |
8223 E removeLast() => _list.removeLast(); | |
8224 | |
8225 E last() => _list.last(); | |
8226 | |
8227 List<E> getRange(int start, int length) => _list.getRange(start, length); | |
8228 | |
8229 void setRange(int start, int length, List<E> from, [int startFrom = 0]) => | |
8230 _list.setRange(start, length, from, startFrom); | |
8231 | |
8232 void removeRange(int start, int length) => _list.removeRange(start, length); | |
8233 | |
8234 void insertRange(int start, int length, [E initialValue = null]) => | |
8235 _list.insertRange(start, length, initialValue); | |
8236 | |
8237 E get first() => _list[0]; | |
8238 } | |
8239 | |
8240 class _NodeList extends _ListWrapper<Node> implements NodeList { | |
8241 _NodeList(List<Node> list) : super(list); | |
8242 | |
8243 NodeList filter(bool f(Node element)) => new _NodeList(super.filter(f)); | |
8244 | |
8245 NodeList getRange(int start, int length) => | |
8246 new _NodeList(super.getRange(start, length)); | |
8247 } | |
8248 | |
8249 class _NodeJs implements Node native "*Node" { | |
8250 _NodeListJs get nodes() { | |
8251 final list = _childNodes; | 8208 final list = _childNodes; |
8252 list._parent = this; | 8209 list._parent = this; |
8253 return list; | 8210 return list; |
8254 } | 8211 } |
8255 | 8212 |
8256 void set nodes(Collection<Node> value) { | 8213 void set nodes(Collection<Node> value) { |
8257 // Copy list first since we don't want liveness during iteration. | 8214 // Copy list first since we don't want liveness during iteration. |
8258 // TODO(jacobr): there is a better way to do this. | 8215 // TODO(jacobr): there is a better way to do this. |
8259 List copy = new List.from(value); | 8216 List copy = new List.from(value); |
8260 nodes.clear(); | 8217 nodes.clear(); |
8261 nodes.addAll(copy); | 8218 nodes.addAll(copy); |
8262 } | 8219 } |
8263 | 8220 |
8264 _NodeJs get nextNode() native "return this.nextSibling;"; | |
8265 | |
8266 _NodeJs get previousNode() native "return this.previousSibling;"; | |
8267 | |
8268 _DocumentJs get document() native "return this.ownerDocument;"; | |
8269 | |
8270 _NodeJs get parent() native "return this.parentNode;"; | |
8271 | |
8272 String get text() native "return this.textContent;"; | |
8273 | |
8274 void set text(String value) native "this.textContent = value;"; | |
8275 | |
8276 // TODO(jacobr): should we throw an exception if parent is already null? | 8221 // TODO(jacobr): should we throw an exception if parent is already null? |
8277 _NodeJs remove() { | 8222 _NodeImpl remove() { |
8278 if (this.parent != null) { | 8223 if (this.parent != null) { |
8279 this.parent._removeChild(this); | 8224 this.parent._removeChild(this); |
8280 } | 8225 } |
8281 return this; | 8226 return this; |
8282 } | 8227 } |
8283 | 8228 |
8284 _NodeJs replaceWith(Node otherNode) { | 8229 _NodeImpl replaceWith(Node otherNode) { |
8285 try { | 8230 try { |
8286 this.parent._replaceChild(otherNode, this); | 8231 this.parent._replaceChild(otherNode, this); |
8287 } catch(var e) { | 8232 } catch(var e) { |
8288 | 8233 |
8289 }; | 8234 }; |
8290 return this; | 8235 return this; |
8291 } | 8236 } |
8292 | 8237 |
8293 | 8238 |
8294 static final int ATTRIBUTE_NODE = 2; | 8239 static final int ATTRIBUTE_NODE = 2; |
(...skipping 25 matching lines...) Expand all Loading... |
8320 static final int ENTITY_NODE = 6; | 8265 static final int ENTITY_NODE = 6; |
8321 | 8266 |
8322 static final int ENTITY_REFERENCE_NODE = 5; | 8267 static final int ENTITY_REFERENCE_NODE = 5; |
8323 | 8268 |
8324 static final int NOTATION_NODE = 12; | 8269 static final int NOTATION_NODE = 12; |
8325 | 8270 |
8326 static final int PROCESSING_INSTRUCTION_NODE = 7; | 8271 static final int PROCESSING_INSTRUCTION_NODE = 7; |
8327 | 8272 |
8328 static final int TEXT_NODE = 3; | 8273 static final int TEXT_NODE = 3; |
8329 | 8274 |
8330 _NamedNodeMapJs get _attributes() native "return this.attributes;"; | 8275 _NamedNodeMapImpl get _attributes() native "return this.attributes;"; |
8331 | 8276 |
8332 _NodeListJs get _childNodes() native "return this.childNodes;"; | 8277 _NodeListImpl get _childNodes() native "return this.childNodes;"; |
8333 | 8278 |
8334 final _NodeJs nextSibling; | 8279 _NodeImpl get nextNode() native "return this.nextSibling;"; |
8335 | 8280 |
8336 final _DocumentJs ownerDocument; | 8281 _DocumentImpl get document() => _FixHtmlDocumentReference(_document); |
8337 | 8282 |
8338 final _NodeJs parentNode; | 8283 _EventTargetImpl get _document() native "return this.ownerDocument;"; |
8339 | 8284 |
8340 final _NodeJs previousSibling; | 8285 _NodeImpl get parent() native "return this.parentNode;"; |
8341 | 8286 |
8342 String textContent; | 8287 _NodeImpl get previousNode() native "return this.previousSibling;"; |
8343 | 8288 |
8344 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 8289 String get text() native "return this.textContent;"; |
8345 | 8290 |
8346 _NodeJs _appendChild(_NodeJs newChild) native "return this.appendChild(newChil
d);"; | 8291 void set text(String value) native "this.textContent = value;"; |
8347 | 8292 |
8348 _NodeJs cloneNode(bool deep) native; | 8293 _NodeImpl _appendChild(_NodeImpl newChild) native "return this.appendChild(new
Child);"; |
8349 | 8294 |
8350 bool contains(_NodeJs other) native; | 8295 _NodeImpl clone(bool deep) native "return this.cloneNode(deep);"; |
8351 | 8296 |
8352 bool _dispatchEvent(_EventJs event) native "return this.dispatchEvent(event);"
; | 8297 bool contains(_NodeImpl other) native; |
8353 | 8298 |
8354 bool hasChildNodes() native; | 8299 bool hasChildNodes() native; |
8355 | 8300 |
8356 _NodeJs insertBefore(_NodeJs newChild, _NodeJs refChild) native; | 8301 _NodeImpl insertBefore(_NodeImpl newChild, _NodeImpl refChild) native; |
8357 | 8302 |
8358 _NodeJs _removeChild(_NodeJs oldChild) native "return this.removeChild(oldChil
d);"; | 8303 _NodeImpl _removeChild(_NodeImpl oldChild) native "return this.removeChild(old
Child);"; |
8359 | 8304 |
8360 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 8305 _NodeImpl _replaceChild(_NodeImpl newChild, _NodeImpl oldChild) native "return
this.replaceChild(newChild, oldChild);"; |
8361 | |
8362 _NodeJs _replaceChild(_NodeJs newChild, _NodeJs oldChild) native "return this.
replaceChild(newChild, oldChild);"; | |
8363 | 8306 |
8364 } | 8307 } |
8365 | 8308 |
8366 class _NodeFilterJs implements NodeFilter native "*NodeFilter" { | 8309 class _NodeFilterImpl implements NodeFilter native "*NodeFilter" { |
8367 | 8310 |
8368 static final int FILTER_ACCEPT = 1; | 8311 static final int FILTER_ACCEPT = 1; |
8369 | 8312 |
8370 static final int FILTER_REJECT = 2; | 8313 static final int FILTER_REJECT = 2; |
8371 | 8314 |
8372 static final int FILTER_SKIP = 3; | 8315 static final int FILTER_SKIP = 3; |
8373 | 8316 |
8374 static final int SHOW_ALL = 0xFFFFFFFF; | 8317 static final int SHOW_ALL = 0xFFFFFFFF; |
8375 | 8318 |
8376 static final int SHOW_ATTRIBUTE = 0x00000002; | 8319 static final int SHOW_ATTRIBUTE = 0x00000002; |
(...skipping 13 matching lines...) Expand all Loading... |
8390 static final int SHOW_ENTITY = 0x00000020; | 8333 static final int SHOW_ENTITY = 0x00000020; |
8391 | 8334 |
8392 static final int SHOW_ENTITY_REFERENCE = 0x00000010; | 8335 static final int SHOW_ENTITY_REFERENCE = 0x00000010; |
8393 | 8336 |
8394 static final int SHOW_NOTATION = 0x00000800; | 8337 static final int SHOW_NOTATION = 0x00000800; |
8395 | 8338 |
8396 static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | 8339 static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040; |
8397 | 8340 |
8398 static final int SHOW_TEXT = 0x00000004; | 8341 static final int SHOW_TEXT = 0x00000004; |
8399 | 8342 |
8400 int acceptNode(_NodeJs n) native; | 8343 int acceptNode(_NodeImpl n) native; |
8401 } | 8344 } |
8402 | 8345 |
8403 class _NodeIteratorJs implements NodeIterator native "*NodeIterator" { | 8346 class _NodeIteratorImpl implements NodeIterator native "*NodeIterator" { |
8404 | 8347 |
8405 final bool expandEntityReferences; | 8348 final bool expandEntityReferences; |
8406 | 8349 |
8407 final _NodeFilterJs filter; | 8350 final _NodeFilterImpl filter; |
8408 | 8351 |
8409 final bool pointerBeforeReferenceNode; | 8352 final bool pointerBeforeReferenceNode; |
8410 | 8353 |
8411 final _NodeJs referenceNode; | 8354 final _NodeImpl referenceNode; |
8412 | 8355 |
8413 final _NodeJs root; | 8356 final _NodeImpl root; |
8414 | 8357 |
8415 final int whatToShow; | 8358 final int whatToShow; |
8416 | 8359 |
8417 void detach() native; | 8360 void detach() native; |
8418 | 8361 |
8419 _NodeJs nextNode() native; | 8362 _NodeImpl nextNode() native; |
8420 | 8363 |
8421 _NodeJs previousNode() native; | 8364 _NodeImpl previousNode() native; |
8422 } | 8365 } |
8423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8366 // 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 | 8367 // 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. | 8368 // BSD-style license that can be found in the LICENSE file. |
8426 | 8369 |
8427 class _NodeListJs implements NodeList native "*NodeList" { | 8370 // TODO(nweiz): when all implementations we target have the same name for the |
8428 _NodeJs _parent; | 8371 // coreimpl implementation of List<E>, extend that rather than wrapping. |
| 8372 class _ListWrapper<E> implements List<E> { |
| 8373 List _list; |
8429 | 8374 |
8430 int get length() native "return this.length;"; | 8375 _ListWrapper(List this._list); |
8431 | 8376 |
8432 _NodeJs operator[](int index) native "return this[index];"; | 8377 Iterator<E> iterator() => _list.iterator(); |
8433 | 8378 |
8434 void operator[]=(int index, _NodeJs value) { | 8379 void forEach(void f(E element)) => _list.forEach(f); |
8435 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 8380 |
8436 } | 8381 Collection map(f(E element)) => _list.map(f); |
| 8382 |
| 8383 List<E> filter(bool f(E element)) => _list.filter(f); |
| 8384 |
| 8385 bool every(bool f(E element)) => _list.every(f); |
| 8386 |
| 8387 bool some(bool f(E element)) => _list.some(f); |
| 8388 |
| 8389 bool isEmpty() => _list.isEmpty(); |
| 8390 |
| 8391 int get length() => _list.length; |
| 8392 |
| 8393 E operator [](int index) => _list[index]; |
| 8394 |
| 8395 void operator []=(int index, E value) { _list[index] = value; } |
| 8396 |
| 8397 void set length(int newLength) { _list.length = newLength; } |
| 8398 |
| 8399 void add(E value) => _list.add(value); |
| 8400 |
| 8401 void addLast(E value) => _list.addLast(value); |
| 8402 |
| 8403 void addAll(Collection<E> collection) => _list.addAll(collection); |
| 8404 |
| 8405 void sort(int compare(E a, E b)) => _list.sort(compare); |
| 8406 |
| 8407 int indexOf(E element, [int start = 0]) => _list.indexOf(element, start); |
| 8408 |
| 8409 int lastIndexOf(E element, [int start = 0]) => |
| 8410 _list.lastIndexOf(element, start); |
| 8411 |
| 8412 void clear() => _list.clear(); |
| 8413 |
| 8414 E removeLast() => _list.removeLast(); |
| 8415 |
| 8416 E last() => _list.last(); |
| 8417 |
| 8418 List<E> getRange(int start, int length) => _list.getRange(start, length); |
| 8419 |
| 8420 void setRange(int start, int length, List<E> from, [int startFrom = 0]) => |
| 8421 _list.setRange(start, length, from, startFrom); |
| 8422 |
| 8423 void removeRange(int start, int length) => _list.removeRange(start, length); |
| 8424 |
| 8425 void insertRange(int start, int length, [E initialValue = null]) => |
| 8426 _list.insertRange(start, length, initialValue); |
| 8427 |
| 8428 E get first() => _list[0]; |
| 8429 } |
| 8430 |
| 8431 /** |
| 8432 * This class is used to insure the results of list operations are NodeLists |
| 8433 * instead of lists. |
| 8434 */ |
| 8435 class _NodeListWrapper extends _ListWrapper<Node> implements NodeList { |
| 8436 _NodeListWrapper(List list) : super(list); |
| 8437 |
| 8438 NodeList filter(bool f(Node element)) => |
| 8439 new _NodeListWrapper(_list.filter(f)); |
| 8440 |
| 8441 NodeList getRange(int start, int length) => |
| 8442 new _NodeListWrapper(_list.getRange(start, length)); |
| 8443 } |
| 8444 |
| 8445 class _NodeListImpl implements NodeList native "*NodeList" { |
| 8446 _NodeImpl _parent; |
| 8447 |
8437 // -- start List<Node> mixins. | 8448 // -- start List<Node> mixins. |
8438 // Node is the element type. | 8449 // Node is the element type. |
8439 | 8450 |
8440 // From Iterable<Node>: | |
8441 | |
8442 Iterator<Node> iterator() { | |
8443 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
8444 // be cached in both iterator _and_ forEach method. For now caching it | |
8445 // for consistency. | |
8446 return new _FixedSizeListIterator<Node>(this); | |
8447 } | |
8448 | |
8449 // From Collection<Node>: | |
8450 | |
8451 void add(_NodeJs value) { | |
8452 _parent._appendChild(value); | |
8453 } | |
8454 | |
8455 void addLast(_NodeJs value) { | |
8456 _parent._appendChild(value); | |
8457 } | |
8458 | |
8459 void addAll(Collection<_NodeJs> collection) { | |
8460 for (_NodeJs node in collection) { | |
8461 _parent._appendChild(node); | |
8462 } | |
8463 } | |
8464 | |
8465 void forEach(void f(Node element)) => _Collections.forEach(this, f); | |
8466 | |
8467 Collection map(f(Node element)) => _Collections.map(this, [], f); | |
8468 | |
8469 Collection<Node> filter(bool f(Node element)) => | |
8470 _Collections.filter(this, <Node>[], f); | |
8471 | |
8472 bool every(bool f(Node element)) => _Collections.every(this, f); | |
8473 | |
8474 bool some(bool f(Node element)) => _Collections.some(this, f); | |
8475 | |
8476 bool isEmpty() => this.length == 0; | |
8477 | |
8478 // From List<Node>: | |
8479 | |
8480 void sort(int compare(Node a, Node b)) { | |
8481 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
8482 } | |
8483 | |
8484 int indexOf(Node element, [int start = 0]) => | |
8485 _Lists.indexOf(this, element, start, this.length); | |
8486 | |
8487 int lastIndexOf(Node element, [int start = 0]) => | |
8488 _Lists.lastIndexOf(this, element, start); | |
8489 | |
8490 Node last() => this[length - 1]; | |
8491 | |
8492 // FIXME: implement thesee. | |
8493 void setRange(int start, int length, List<Node> from, [int startFrom]) { | |
8494 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
8495 } | |
8496 void removeRange(int start, int length) { | |
8497 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
8498 } | |
8499 void insertRange(int start, int length, [Node initialValue]) { | |
8500 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
8501 } | |
8502 List<Node> getRange(int start, int length) => | |
8503 _Lists.getRange(this, start, length, <Node>[]); | |
8504 | |
8505 // -- end List<Node> mixins. | |
8506 | |
8507 /* | |
8508 Ignore members. TODO(jacobr): find a cleaner solution. | |
8509 | |
8510 final int length; | |
8511 | |
8512 _NodeJs operator[](int index) native "return this[index];"; | |
8513 | |
8514 void operator[]=(int index, _NodeJs value) { | |
8515 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
8516 } | |
8517 // -- start List<Node> mixins. | |
8518 // Node is the element type. | |
8519 | |
8520 // From Iterable<Node>: | 8451 // From Iterable<Node>: |
8521 | 8452 |
8522 Iterator<Node> iterator() { | 8453 Iterator<Node> iterator() { |
8523 // Note: NodeLists are not fixed size. And most probably length shouldn't | 8454 // Note: NodeLists are not fixed size. And most probably length shouldn't |
8524 // be cached in both iterator _and_ forEach method. For now caching it | 8455 // be cached in both iterator _and_ forEach method. For now caching it |
8525 // for consistency. | 8456 // for consistency. |
8526 return new _FixedSizeListIterator<Node>(this); | 8457 return new _FixedSizeListIterator<Node>(this); |
8527 } | 8458 } |
8528 | 8459 |
8529 // From Collection<Node>: | 8460 // From Collection<Node>: |
8530 | 8461 |
8531 void add(Node value) { | 8462 void add(_NodeImpl value) { |
8532 throw new UnsupportedOperationException("Cannot add to immutable List."); | 8463 _parent._appendChild(value); |
8533 } | 8464 } |
8534 | 8465 |
8535 void addLast(Node value) { | 8466 void addLast(_NodeImpl value) { |
8536 throw new UnsupportedOperationException("Cannot add to immutable List."); | 8467 _parent._appendChild(value); |
8537 } | 8468 } |
8538 | 8469 |
8539 void addAll(Collection<Node> collection) { | 8470 void addAll(Collection<_NodeImpl> collection) { |
8540 throw new UnsupportedOperationException("Cannot add to immutable List."); | 8471 for (_NodeImpl node in collection) { |
| 8472 _parent._appendChild(node); |
| 8473 } |
| 8474 } |
| 8475 |
| 8476 _NodeImpl removeLast() { |
| 8477 final last = this.last(); |
| 8478 if (last != null) { |
| 8479 _parent._removeChild(last); |
| 8480 } |
| 8481 return last; |
| 8482 } |
| 8483 |
| 8484 void clear() { |
| 8485 _parent.text = ''; |
| 8486 } |
| 8487 |
| 8488 void operator []=(int index, _NodeImpl value) { |
| 8489 _parent._replaceChild(value, this[index]); |
8541 } | 8490 } |
8542 | 8491 |
8543 void forEach(void f(Node element)) => _Collections.forEach(this, f); | 8492 void forEach(void f(Node element)) => _Collections.forEach(this, f); |
8544 | 8493 |
8545 Collection map(f(Node element)) => _Collections.map(this, [], f); | 8494 Collection map(f(Node element)) => _Collections.map(this, [], f); |
8546 | 8495 |
8547 Collection<Node> filter(bool f(Node element)) => | 8496 Collection<Node> filter(bool f(Node element)) => |
8548 _Collections.filter(this, <Node>[], f); | 8497 new _NodeListWrapper(_Collections.filter(this, <Node>[], f)); |
8549 | 8498 |
8550 bool every(bool f(Node element)) => _Collections.every(this, f); | 8499 bool every(bool f(Node element)) => _Collections.every(this, f); |
8551 | 8500 |
8552 bool some(bool f(Node element)) => _Collections.some(this, f); | 8501 bool some(bool f(Node element)) => _Collections.some(this, f); |
8553 | 8502 |
8554 bool isEmpty() => this.length == 0; | 8503 bool isEmpty() => this.length == 0; |
8555 | 8504 |
8556 // From List<Node>: | 8505 // From List<Node>: |
8557 | 8506 |
8558 void sort(int compare(Node a, Node b)) { | 8507 void sort(int compare(Node a, Node b)) { |
8559 throw new UnsupportedOperationException("Cannot sort immutable List."); | 8508 throw new UnsupportedOperationException("Cannot sort immutable List."); |
8560 } | 8509 } |
8561 | 8510 |
8562 int indexOf(Node element, [int start = 0]) => | 8511 int indexOf(Node element, [int start = 0]) => |
8563 _Lists.indexOf(this, element, start, this.length); | 8512 _Lists.indexOf(this, element, start, this.length); |
8564 | 8513 |
8565 int lastIndexOf(Node element, [int start = 0]) => | 8514 int lastIndexOf(Node element, [int start = 0]) => |
8566 _Lists.lastIndexOf(this, element, start); | 8515 _Lists.lastIndexOf(this, element, start); |
8567 | 8516 |
8568 Node last() => this[length - 1]; | 8517 Node last() => this[length - 1]; |
| 8518 Node get first() => this[0]; |
8569 | 8519 |
8570 // FIXME: implement thesee. | 8520 // FIXME: implement thesee. |
8571 void setRange(int start, int length, List<Node> from, [int startFrom]) { | 8521 void setRange(int start, int length, List<Node> from, [int startFrom]) { |
8572 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 8522 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
8573 } | 8523 } |
8574 void removeRange(int start, int length) { | 8524 void removeRange(int start, int length) { |
8575 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 8525 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
8576 } | 8526 } |
8577 void insertRange(int start, int length, [Node initialValue]) { | 8527 void insertRange(int start, int length, [Node initialValue]) { |
8578 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 8528 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
8579 } | 8529 } |
8580 List<Node> getRange(int start, int length) => | 8530 NodeList getRange(int start, int length) => |
8581 _Lists.getRange(this, start, length, <Node>[]); | 8531 new _NodeListWrapper(_Lists.getRange(this, start, length, <Node>[])); |
8582 | 8532 |
8583 // -- end List<Node> mixins. | 8533 // -- end List<Node> mixins. |
8584 | 8534 |
8585 */ | 8535 |
| 8536 final int length; |
| 8537 |
| 8538 _NodeImpl operator[](int index) native "return this[index];"; |
| 8539 |
8586 } | 8540 } |
8587 | 8541 |
8588 class _NodeSelectorJs implements NodeSelector native "*NodeSelector" { | 8542 class _NodeSelectorImpl implements NodeSelector native "*NodeSelector" { |
8589 | 8543 |
8590 _ElementJs querySelector(String selectors) native; | 8544 _ElementImpl querySelector(String selectors) native; |
8591 | 8545 |
8592 _NodeListJs querySelectorAll(String selectors) native; | 8546 _NodeListImpl querySelectorAll(String selectors) native; |
8593 } | 8547 } |
8594 | 8548 |
8595 class _NotationJs extends _NodeJs implements Notation native "*Notation" { | 8549 class _NotationImpl extends _NodeImpl implements Notation native "*Notation" { |
8596 | 8550 |
8597 final String publicId; | 8551 final String publicId; |
8598 | 8552 |
8599 final String systemId; | 8553 final String systemId; |
8600 } | 8554 } |
8601 | 8555 |
8602 class _NotificationJs implements Notification native "*Notification" { | 8556 class _NotificationImpl extends _EventTargetImpl implements Notification native
"*Notification" { |
8603 | 8557 |
8604 String dir; | 8558 String dir; |
8605 | 8559 |
8606 String replaceId; | 8560 String replaceId; |
8607 | 8561 |
8608 _NotificationEventsImpl get on() => | 8562 _NotificationEventsImpl get on() => |
8609 new _NotificationEventsImpl(this); | 8563 new _NotificationEventsImpl(this); |
8610 | 8564 |
8611 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | |
8612 | |
8613 void cancel() native; | 8565 void cancel() native; |
8614 | 8566 |
8615 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | |
8616 | |
8617 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | |
8618 | |
8619 void show() native; | 8567 void show() native; |
8620 } | 8568 } |
8621 | 8569 |
8622 class _NotificationEventsImpl extends _EventsImpl implements NotificationEvents
{ | 8570 class _NotificationEventsImpl extends _EventsImpl implements NotificationEvents
{ |
8623 _NotificationEventsImpl(_ptr) : super(_ptr); | 8571 _NotificationEventsImpl(_ptr) : super(_ptr); |
8624 | 8572 |
8625 EventListenerList get click() => _get('click'); | 8573 EventListenerList get click() => _get('click'); |
8626 | 8574 |
8627 EventListenerList get close() => _get('close'); | 8575 EventListenerList get close() => _get('close'); |
8628 | 8576 |
8629 EventListenerList get display() => _get('display'); | 8577 EventListenerList get display() => _get('display'); |
8630 | 8578 |
8631 EventListenerList get error() => _get('error'); | 8579 EventListenerList get error() => _get('error'); |
8632 | 8580 |
8633 EventListenerList get show() => _get('show'); | 8581 EventListenerList get show() => _get('show'); |
8634 } | 8582 } |
8635 | 8583 |
8636 class _NotificationCenterJs implements NotificationCenter native "*NotificationC
enter" { | 8584 class _NotificationCenterImpl implements NotificationCenter native "*Notificatio
nCenter" { |
8637 | 8585 |
8638 int checkPermission() native; | 8586 int checkPermission() native; |
8639 | 8587 |
8640 _NotificationJs createHTMLNotification(String url) native; | 8588 _NotificationImpl createHTMLNotification(String url) native; |
8641 | 8589 |
8642 _NotificationJs createNotification(String iconUrl, String title, String body)
native; | 8590 _NotificationImpl createNotification(String iconUrl, String title, String body
) native; |
8643 | 8591 |
8644 void requestPermission(VoidCallback callback) native; | 8592 void requestPermission(VoidCallback callback) native; |
8645 } | 8593 } |
8646 | 8594 |
8647 class _OESStandardDerivativesJs implements OESStandardDerivatives native "*OESSt
andardDerivatives" { | 8595 class _OESStandardDerivativesImpl implements OESStandardDerivatives native "*OES
StandardDerivatives" { |
8648 | 8596 |
8649 static final int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | 8597 static final int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; |
8650 } | 8598 } |
8651 | 8599 |
8652 class _OESTextureFloatJs implements OESTextureFloat native "*OESTextureFloat" { | 8600 class _OESTextureFloatImpl implements OESTextureFloat native "*OESTextureFloat"
{ |
8653 } | 8601 } |
8654 | 8602 |
8655 class _OESVertexArrayObjectJs implements OESVertexArrayObject native "*OESVertex
ArrayObject" { | 8603 class _OESVertexArrayObjectImpl implements OESVertexArrayObject native "*OESVert
exArrayObject" { |
8656 | 8604 |
8657 static final int VERTEX_ARRAY_BINDING_OES = 0x85B5; | 8605 static final int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
8658 | 8606 |
8659 void bindVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | 8607 void bindVertexArrayOES(_WebGLVertexArrayObjectOESImpl arrayObject) native; |
8660 | 8608 |
8661 _WebGLVertexArrayObjectOESJs createVertexArrayOES() native; | 8609 _WebGLVertexArrayObjectOESImpl createVertexArrayOES() native; |
8662 | 8610 |
8663 void deleteVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | 8611 void deleteVertexArrayOES(_WebGLVertexArrayObjectOESImpl arrayObject) native; |
8664 | 8612 |
8665 bool isVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | 8613 bool isVertexArrayOES(_WebGLVertexArrayObjectOESImpl arrayObject) native; |
8666 } | 8614 } |
8667 | 8615 |
8668 class _OListElementJs extends _ElementJs implements OListElement native "*HTMLOL
istElement" { | 8616 class _OListElementImpl extends _ElementImpl implements OListElement native "*HT
MLOListElement" { |
8669 | 8617 |
8670 bool compact; | 8618 bool compact; |
8671 | 8619 |
8672 bool reversed; | 8620 bool reversed; |
8673 | 8621 |
8674 int start; | 8622 int start; |
8675 | 8623 |
8676 String type; | 8624 String type; |
8677 } | 8625 } |
8678 | 8626 |
8679 class _ObjectElementJs extends _ElementJs implements ObjectElement native "*HTML
ObjectElement" { | 8627 class _ObjectElementImpl extends _ElementImpl implements ObjectElement native "*
HTMLObjectElement" { |
8680 | 8628 |
8681 String align; | 8629 String align; |
8682 | 8630 |
8683 String archive; | 8631 String archive; |
8684 | 8632 |
8685 String border; | 8633 String border; |
8686 | 8634 |
8687 String code; | 8635 String code; |
8688 | 8636 |
8689 String codeBase; | 8637 String codeBase; |
8690 | 8638 |
8691 String codeType; | 8639 String codeType; |
8692 | 8640 |
8693 final _DocumentJs contentDocument; | 8641 _DocumentImpl get contentDocument() => _FixHtmlDocumentReference(_contentDocum
ent); |
| 8642 |
| 8643 _EventTargetImpl get _contentDocument() native "return this.contentDocument;"; |
8694 | 8644 |
8695 String data; | 8645 String data; |
8696 | 8646 |
8697 bool declare; | 8647 bool declare; |
8698 | 8648 |
8699 final _FormElementJs form; | 8649 final _FormElementImpl form; |
8700 | 8650 |
8701 String height; | 8651 String height; |
8702 | 8652 |
8703 int hspace; | 8653 int hspace; |
8704 | 8654 |
8705 String name; | 8655 String name; |
8706 | 8656 |
8707 String standby; | 8657 String standby; |
8708 | 8658 |
8709 String type; | 8659 String type; |
8710 | 8660 |
8711 String useMap; | 8661 String useMap; |
8712 | 8662 |
8713 final String validationMessage; | 8663 final String validationMessage; |
8714 | 8664 |
8715 final _ValidityStateJs validity; | 8665 final _ValidityStateImpl validity; |
8716 | 8666 |
8717 int vspace; | 8667 int vspace; |
8718 | 8668 |
8719 String width; | 8669 String width; |
8720 | 8670 |
8721 final bool willValidate; | 8671 final bool willValidate; |
8722 | 8672 |
8723 bool checkValidity() native; | 8673 bool checkValidity() native; |
8724 | 8674 |
8725 void setCustomValidity(String error) native; | 8675 void setCustomValidity(String error) native; |
8726 } | 8676 } |
8727 | 8677 |
8728 class _OfflineAudioCompletionEventJs extends _EventJs implements OfflineAudioCom
pletionEvent native "*OfflineAudioCompletionEvent" { | 8678 class _OfflineAudioCompletionEventImpl extends _EventImpl implements OfflineAudi
oCompletionEvent native "*OfflineAudioCompletionEvent" { |
8729 | 8679 |
8730 final _AudioBufferJs renderedBuffer; | 8680 final _AudioBufferImpl renderedBuffer; |
8731 } | 8681 } |
8732 | 8682 |
8733 class _OperationNotAllowedExceptionJs implements OperationNotAllowedException na
tive "*OperationNotAllowedException" { | 8683 class _OperationNotAllowedExceptionImpl implements OperationNotAllowedException
native "*OperationNotAllowedException" { |
8734 | 8684 |
8735 static final int NOT_ALLOWED_ERR = 1; | 8685 static final int NOT_ALLOWED_ERR = 1; |
8736 | 8686 |
8737 final int code; | 8687 final int code; |
8738 | 8688 |
8739 final String message; | 8689 final String message; |
8740 | 8690 |
8741 final String name; | 8691 final String name; |
8742 | 8692 |
8743 String toString() native; | 8693 String toString() native; |
8744 } | 8694 } |
8745 | 8695 |
8746 class _OptGroupElementJs extends _ElementJs implements OptGroupElement native "*
HTMLOptGroupElement" { | 8696 class _OptGroupElementImpl extends _ElementImpl implements OptGroupElement nativ
e "*HTMLOptGroupElement" { |
8747 | 8697 |
8748 bool disabled; | 8698 bool disabled; |
8749 | 8699 |
8750 String label; | 8700 String label; |
8751 } | 8701 } |
8752 | 8702 |
8753 class _OptionElementJs extends _ElementJs implements OptionElement native "*HTML
OptionElement" { | 8703 class _OptionElementImpl extends _ElementImpl implements OptionElement native "*
HTMLOptionElement" { |
8754 | 8704 |
8755 bool defaultSelected; | 8705 bool defaultSelected; |
8756 | 8706 |
8757 bool disabled; | 8707 bool disabled; |
8758 | 8708 |
8759 final _FormElementJs form; | 8709 final _FormElementImpl form; |
8760 | 8710 |
8761 final int index; | 8711 final int index; |
8762 | 8712 |
8763 String label; | 8713 String label; |
8764 | 8714 |
8765 bool selected; | 8715 bool selected; |
8766 | 8716 |
8767 String text; | |
8768 | |
8769 String value; | 8717 String value; |
8770 } | 8718 } |
8771 | 8719 |
8772 class _OutputElementJs extends _ElementJs implements OutputElement native "*HTML
OutputElement" { | 8720 class _OutputElementImpl extends _ElementImpl implements OutputElement native "*
HTMLOutputElement" { |
8773 | 8721 |
8774 String defaultValue; | 8722 String defaultValue; |
8775 | 8723 |
8776 final _FormElementJs form; | 8724 final _FormElementImpl form; |
8777 | 8725 |
8778 _DOMSettableTokenListJs htmlFor; | 8726 _DOMSettableTokenListImpl htmlFor; |
8779 | 8727 |
8780 final _NodeListJs labels; | 8728 final _NodeListImpl labels; |
8781 | 8729 |
8782 String name; | 8730 String name; |
8783 | 8731 |
8784 final String type; | 8732 final String type; |
8785 | 8733 |
8786 final String validationMessage; | 8734 final String validationMessage; |
8787 | 8735 |
8788 final _ValidityStateJs validity; | 8736 final _ValidityStateImpl validity; |
8789 | 8737 |
8790 String value; | 8738 String value; |
8791 | 8739 |
8792 final bool willValidate; | 8740 final bool willValidate; |
8793 | 8741 |
8794 bool checkValidity() native; | 8742 bool checkValidity() native; |
8795 | 8743 |
8796 void setCustomValidity(String error) native; | 8744 void setCustomValidity(String error) native; |
8797 } | 8745 } |
8798 | 8746 |
8799 class _OverflowEventJs extends _EventJs implements OverflowEvent native "*Overfl
owEvent" { | 8747 class _OverflowEventImpl extends _EventImpl implements OverflowEvent native "*Ov
erflowEvent" { |
8800 | 8748 |
8801 static final int BOTH = 2; | 8749 static final int BOTH = 2; |
8802 | 8750 |
8803 static final int HORIZONTAL = 0; | 8751 static final int HORIZONTAL = 0; |
8804 | 8752 |
8805 static final int VERTICAL = 1; | 8753 static final int VERTICAL = 1; |
8806 | 8754 |
8807 final bool horizontalOverflow; | 8755 final bool horizontalOverflow; |
8808 | 8756 |
8809 final int orient; | 8757 final int orient; |
8810 | 8758 |
8811 final bool verticalOverflow; | 8759 final bool verticalOverflow; |
8812 } | 8760 } |
8813 | 8761 |
8814 class _PageTransitionEventJs extends _EventJs implements PageTransitionEvent nat
ive "*PageTransitionEvent" { | 8762 class _PageTransitionEventImpl extends _EventImpl implements PageTransitionEvent
native "*PageTransitionEvent" { |
8815 | 8763 |
8816 final bool persisted; | 8764 final bool persisted; |
8817 } | 8765 } |
8818 | 8766 |
8819 class _ParagraphElementJs extends _ElementJs implements ParagraphElement native
"*HTMLParagraphElement" { | 8767 class _ParagraphElementImpl extends _ElementImpl implements ParagraphElement nat
ive "*HTMLParagraphElement" { |
8820 | 8768 |
8821 String align; | 8769 String align; |
8822 } | 8770 } |
8823 | 8771 |
8824 class _ParamElementJs extends _ElementJs implements ParamElement native "*HTMLPa
ramElement" { | 8772 class _ParamElementImpl extends _ElementImpl implements ParamElement native "*HT
MLParamElement" { |
8825 | 8773 |
8826 String name; | 8774 String name; |
8827 | 8775 |
8828 String type; | 8776 String type; |
8829 | 8777 |
8830 String value; | 8778 String value; |
8831 | 8779 |
8832 String valueType; | 8780 String valueType; |
8833 } | 8781 } |
8834 | 8782 |
8835 class _PeerConnectionJs implements PeerConnection native "*PeerConnection" { | 8783 class _PeerConnectionImpl implements PeerConnection native "*PeerConnection" { |
8836 | 8784 |
8837 static final int ACTIVE = 2; | 8785 static final int ACTIVE = 2; |
8838 | 8786 |
8839 static final int CLOSED = 3; | 8787 static final int CLOSED = 3; |
8840 | 8788 |
8841 static final int NEGOTIATING = 1; | 8789 static final int NEGOTIATING = 1; |
8842 | 8790 |
8843 static final int NEW = 0; | 8791 static final int NEW = 0; |
8844 | 8792 |
8845 final _MediaStreamListJs localStreams; | 8793 final _MediaStreamListImpl localStreams; |
8846 | 8794 |
8847 EventListener onaddstream; | 8795 EventListener onaddstream; |
8848 | 8796 |
8849 EventListener onconnecting; | 8797 EventListener onconnecting; |
8850 | 8798 |
8851 EventListener onmessage; | 8799 EventListener onmessage; |
8852 | 8800 |
8853 EventListener onopen; | 8801 EventListener onopen; |
8854 | 8802 |
8855 EventListener onremovestream; | 8803 EventListener onremovestream; |
8856 | 8804 |
8857 EventListener onstatechange; | 8805 EventListener onstatechange; |
8858 | 8806 |
8859 final int readyState; | 8807 final int readyState; |
8860 | 8808 |
8861 final _MediaStreamListJs remoteStreams; | 8809 final _MediaStreamListImpl remoteStreams; |
8862 | 8810 |
8863 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 8811 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
8864 | 8812 |
8865 void addStream(_MediaStreamJs stream) native; | 8813 void addStream(_MediaStreamImpl stream) native; |
8866 | 8814 |
8867 void close() native; | 8815 void close() native; |
8868 | 8816 |
8869 bool dispatchEvent(_EventJs event) native; | 8817 bool dispatchEvent(_EventImpl event) native; |
8870 | 8818 |
8871 void processSignalingMessage(String message) native; | 8819 void processSignalingMessage(String message) native; |
8872 | 8820 |
8873 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 8821 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
8874 | 8822 |
8875 void removeStream(_MediaStreamJs stream) native; | 8823 void removeStream(_MediaStreamImpl stream) native; |
8876 | 8824 |
8877 void send(String text) native; | 8825 void send(String text) native; |
8878 } | 8826 } |
8879 | 8827 |
8880 class _PerformanceJs implements Performance native "*Performance" { | 8828 class _PerformanceImpl implements Performance native "*Performance" { |
8881 | 8829 |
8882 final _MemoryInfoJs memory; | 8830 final _MemoryInfoImpl memory; |
8883 | 8831 |
8884 final _PerformanceNavigationJs navigation; | 8832 final _PerformanceNavigationImpl navigation; |
8885 | 8833 |
8886 final _PerformanceTimingJs timing; | 8834 final _PerformanceTimingImpl timing; |
8887 } | 8835 } |
8888 | 8836 |
8889 class _PerformanceNavigationJs implements PerformanceNavigation native "*Perform
anceNavigation" { | 8837 class _PerformanceNavigationImpl implements PerformanceNavigation native "*Perfo
rmanceNavigation" { |
8890 | 8838 |
8891 static final int TYPE_BACK_FORWARD = 2; | 8839 static final int TYPE_BACK_FORWARD = 2; |
8892 | 8840 |
8893 static final int TYPE_NAVIGATE = 0; | 8841 static final int TYPE_NAVIGATE = 0; |
8894 | 8842 |
8895 static final int TYPE_RELOAD = 1; | 8843 static final int TYPE_RELOAD = 1; |
8896 | 8844 |
8897 static final int TYPE_RESERVED = 255; | 8845 static final int TYPE_RESERVED = 255; |
8898 | 8846 |
8899 final int redirectCount; | 8847 final int redirectCount; |
8900 | 8848 |
8901 final int type; | 8849 final int type; |
8902 } | 8850 } |
8903 | 8851 |
8904 class _PerformanceTimingJs implements PerformanceTiming native "*PerformanceTimi
ng" { | 8852 class _PerformanceTimingImpl implements PerformanceTiming native "*PerformanceTi
ming" { |
8905 | 8853 |
8906 final int connectEnd; | 8854 final int connectEnd; |
8907 | 8855 |
8908 final int connectStart; | 8856 final int connectStart; |
8909 | 8857 |
8910 final int domComplete; | 8858 final int domComplete; |
8911 | 8859 |
8912 final int domContentLoadedEventEnd; | 8860 final int domContentLoadedEventEnd; |
8913 | 8861 |
8914 final int domContentLoadedEventStart; | 8862 final int domContentLoadedEventStart; |
(...skipping 24 matching lines...) Expand all Loading... |
8939 | 8887 |
8940 final int responseStart; | 8888 final int responseStart; |
8941 | 8889 |
8942 final int secureConnectionStart; | 8890 final int secureConnectionStart; |
8943 | 8891 |
8944 final int unloadEventEnd; | 8892 final int unloadEventEnd; |
8945 | 8893 |
8946 final int unloadEventStart; | 8894 final int unloadEventStart; |
8947 } | 8895 } |
8948 | 8896 |
8949 class _PointJs implements Point native "*WebKitPoint" { | 8897 class _PointImpl implements Point native "*WebKitPoint" { |
8950 | 8898 |
8951 num x; | 8899 num x; |
8952 | 8900 |
8953 num y; | 8901 num y; |
8954 } | 8902 } |
8955 | 8903 |
8956 class _PopStateEventJs extends _EventJs implements PopStateEvent native "*PopSta
teEvent" { | 8904 class _PopStateEventImpl extends _EventImpl implements PopStateEvent native "*Po
pStateEvent" { |
8957 | 8905 |
8958 final Object state; | 8906 final Object state; |
8959 } | 8907 } |
8960 | 8908 |
8961 class _PositionErrorJs implements PositionError native "*PositionError" { | 8909 class _PositionErrorImpl implements PositionError native "*PositionError" { |
8962 | 8910 |
8963 static final int PERMISSION_DENIED = 1; | 8911 static final int PERMISSION_DENIED = 1; |
8964 | 8912 |
8965 static final int POSITION_UNAVAILABLE = 2; | 8913 static final int POSITION_UNAVAILABLE = 2; |
8966 | 8914 |
8967 static final int TIMEOUT = 3; | 8915 static final int TIMEOUT = 3; |
8968 | 8916 |
8969 final int code; | 8917 final int code; |
8970 | 8918 |
8971 final String message; | 8919 final String message; |
8972 } | 8920 } |
8973 | 8921 |
8974 class _PreElementJs extends _ElementJs implements PreElement native "*HTMLPreEle
ment" { | 8922 class _PreElementImpl extends _ElementImpl implements PreElement native "*HTMLPr
eElement" { |
8975 | 8923 |
8976 int width; | 8924 int width; |
8977 | 8925 |
8978 bool wrap; | 8926 bool wrap; |
8979 } | 8927 } |
8980 | 8928 |
8981 class _ProcessingInstructionJs extends _NodeJs implements ProcessingInstruction
native "*ProcessingInstruction" { | 8929 class _ProcessingInstructionImpl extends _NodeImpl implements ProcessingInstruct
ion native "*ProcessingInstruction" { |
8982 | 8930 |
8983 String data; | 8931 String data; |
8984 | 8932 |
8985 final _StyleSheetJs sheet; | 8933 final _StyleSheetImpl sheet; |
8986 | 8934 |
8987 final String target; | 8935 final String target; |
8988 } | 8936 } |
8989 | 8937 |
8990 class _ProgressElementJs extends _ElementJs implements ProgressElement native "*
HTMLProgressElement" { | 8938 class _ProgressElementImpl extends _ElementImpl implements ProgressElement nativ
e "*HTMLProgressElement" { |
8991 | 8939 |
8992 final _FormElementJs form; | 8940 final _FormElementImpl form; |
8993 | 8941 |
8994 final _NodeListJs labels; | 8942 final _NodeListImpl labels; |
8995 | 8943 |
8996 num max; | 8944 num max; |
8997 | 8945 |
8998 final num position; | 8946 final num position; |
8999 | 8947 |
9000 num value; | 8948 num value; |
9001 } | 8949 } |
9002 | 8950 |
9003 class _ProgressEventJs extends _EventJs implements ProgressEvent native "*Progre
ssEvent" { | 8951 class _ProgressEventImpl extends _EventImpl implements ProgressEvent native "*Pr
ogressEvent" { |
9004 | 8952 |
9005 final bool lengthComputable; | 8953 final bool lengthComputable; |
9006 | 8954 |
9007 final int loaded; | 8955 final int loaded; |
9008 | 8956 |
9009 final int total; | 8957 final int total; |
9010 } | 8958 } |
9011 | 8959 |
9012 class _QuoteElementJs extends _ElementJs implements QuoteElement native "*HTMLQu
oteElement" { | 8960 class _QuoteElementImpl extends _ElementImpl implements QuoteElement native "*HT
MLQuoteElement" { |
9013 | 8961 |
9014 String cite; | 8962 String cite; |
9015 } | 8963 } |
9016 | 8964 |
9017 class _RGBColorJs implements RGBColor native "*RGBColor" { | 8965 class _RGBColorImpl implements RGBColor native "*RGBColor" { |
9018 | 8966 |
9019 final _CSSPrimitiveValueJs blue; | 8967 final _CSSPrimitiveValueImpl blue; |
9020 | 8968 |
9021 final _CSSPrimitiveValueJs green; | 8969 final _CSSPrimitiveValueImpl green; |
9022 | 8970 |
9023 final _CSSPrimitiveValueJs red; | 8971 final _CSSPrimitiveValueImpl red; |
9024 } | 8972 } |
9025 | 8973 |
9026 class _RangeJs implements Range native "*Range" { | 8974 class _RangeImpl implements Range native "*Range" { |
9027 | 8975 |
9028 static final int END_TO_END = 2; | 8976 static final int END_TO_END = 2; |
9029 | 8977 |
9030 static final int END_TO_START = 3; | 8978 static final int END_TO_START = 3; |
9031 | 8979 |
9032 static final int NODE_AFTER = 1; | 8980 static final int NODE_AFTER = 1; |
9033 | 8981 |
9034 static final int NODE_BEFORE = 0; | 8982 static final int NODE_BEFORE = 0; |
9035 | 8983 |
9036 static final int NODE_BEFORE_AND_AFTER = 2; | 8984 static final int NODE_BEFORE_AND_AFTER = 2; |
9037 | 8985 |
9038 static final int NODE_INSIDE = 3; | 8986 static final int NODE_INSIDE = 3; |
9039 | 8987 |
9040 static final int START_TO_END = 1; | 8988 static final int START_TO_END = 1; |
9041 | 8989 |
9042 static final int START_TO_START = 0; | 8990 static final int START_TO_START = 0; |
9043 | 8991 |
9044 final bool collapsed; | 8992 final bool collapsed; |
9045 | 8993 |
9046 final _NodeJs commonAncestorContainer; | 8994 final _NodeImpl commonAncestorContainer; |
9047 | 8995 |
9048 final _NodeJs endContainer; | 8996 final _NodeImpl endContainer; |
9049 | 8997 |
9050 final int endOffset; | 8998 final int endOffset; |
9051 | 8999 |
9052 final _NodeJs startContainer; | 9000 final _NodeImpl startContainer; |
9053 | 9001 |
9054 final int startOffset; | 9002 final int startOffset; |
9055 | 9003 |
9056 _DocumentFragmentJs cloneContents() native; | 9004 _DocumentFragmentImpl cloneContents() native; |
9057 | 9005 |
9058 _RangeJs cloneRange() native; | 9006 _RangeImpl cloneRange() native; |
9059 | 9007 |
9060 void collapse(bool toStart) native; | 9008 void collapse(bool toStart) native; |
9061 | 9009 |
9062 int compareNode(_NodeJs refNode) native; | 9010 int compareNode(_NodeImpl refNode) native; |
9063 | 9011 |
9064 int comparePoint(_NodeJs refNode, int offset) native; | 9012 int comparePoint(_NodeImpl refNode, int offset) native; |
9065 | 9013 |
9066 _DocumentFragmentJs createContextualFragment(String html) native; | 9014 _DocumentFragmentImpl createContextualFragment(String html) native; |
9067 | 9015 |
9068 void deleteContents() native; | 9016 void deleteContents() native; |
9069 | 9017 |
9070 void detach() native; | 9018 void detach() native; |
9071 | 9019 |
9072 void expand(String unit) native; | 9020 void expand(String unit) native; |
9073 | 9021 |
9074 _DocumentFragmentJs extractContents() native; | 9022 _DocumentFragmentImpl extractContents() native; |
9075 | 9023 |
9076 _ClientRectJs getBoundingClientRect() native; | 9024 _ClientRectImpl getBoundingClientRect() native; |
9077 | 9025 |
9078 _ClientRectListJs getClientRects() native; | 9026 _ClientRectListImpl getClientRects() native; |
9079 | 9027 |
9080 void insertNode(_NodeJs newNode) native; | 9028 void insertNode(_NodeImpl newNode) native; |
9081 | 9029 |
9082 bool intersectsNode(_NodeJs refNode) native; | 9030 bool intersectsNode(_NodeImpl refNode) native; |
9083 | 9031 |
9084 bool isPointInRange(_NodeJs refNode, int offset) native; | 9032 bool isPointInRange(_NodeImpl refNode, int offset) native; |
9085 | 9033 |
9086 void selectNode(_NodeJs refNode) native; | 9034 void selectNode(_NodeImpl refNode) native; |
9087 | 9035 |
9088 void selectNodeContents(_NodeJs refNode) native; | 9036 void selectNodeContents(_NodeImpl refNode) native; |
9089 | 9037 |
9090 void setEnd(_NodeJs refNode, int offset) native; | 9038 void setEnd(_NodeImpl refNode, int offset) native; |
9091 | 9039 |
9092 void setEndAfter(_NodeJs refNode) native; | 9040 void setEndAfter(_NodeImpl refNode) native; |
9093 | 9041 |
9094 void setEndBefore(_NodeJs refNode) native; | 9042 void setEndBefore(_NodeImpl refNode) native; |
9095 | 9043 |
9096 void setStart(_NodeJs refNode, int offset) native; | 9044 void setStart(_NodeImpl refNode, int offset) native; |
9097 | 9045 |
9098 void setStartAfter(_NodeJs refNode) native; | 9046 void setStartAfter(_NodeImpl refNode) native; |
9099 | 9047 |
9100 void setStartBefore(_NodeJs refNode) native; | 9048 void setStartBefore(_NodeImpl refNode) native; |
9101 | 9049 |
9102 void surroundContents(_NodeJs newParent) native; | 9050 void surroundContents(_NodeImpl newParent) native; |
9103 | 9051 |
9104 String toString() native; | 9052 String toString() native; |
9105 } | 9053 } |
9106 | 9054 |
9107 class _RangeExceptionJs implements RangeException native "*RangeException" { | 9055 class _RangeExceptionImpl implements RangeException native "*RangeException" { |
9108 | 9056 |
9109 static final int BAD_BOUNDARYPOINTS_ERR = 1; | 9057 static final int BAD_BOUNDARYPOINTS_ERR = 1; |
9110 | 9058 |
9111 static final int INVALID_NODE_TYPE_ERR = 2; | 9059 static final int INVALID_NODE_TYPE_ERR = 2; |
9112 | 9060 |
9113 final int code; | 9061 final int code; |
9114 | 9062 |
9115 final String message; | 9063 final String message; |
9116 | 9064 |
9117 final String name; | 9065 final String name; |
9118 | 9066 |
9119 String toString() native; | 9067 String toString() native; |
9120 } | 9068 } |
9121 | 9069 |
9122 class _RealtimeAnalyserNodeJs extends _AudioNodeJs implements RealtimeAnalyserNo
de native "*RealtimeAnalyserNode" { | 9070 class _RealtimeAnalyserNodeImpl extends _AudioNodeImpl implements RealtimeAnalys
erNode native "*RealtimeAnalyserNode" { |
9123 | 9071 |
9124 int fftSize; | 9072 int fftSize; |
9125 | 9073 |
9126 final int frequencyBinCount; | 9074 final int frequencyBinCount; |
9127 | 9075 |
9128 num maxDecibels; | 9076 num maxDecibels; |
9129 | 9077 |
9130 num minDecibels; | 9078 num minDecibels; |
9131 | 9079 |
9132 num smoothingTimeConstant; | 9080 num smoothingTimeConstant; |
9133 | 9081 |
9134 void getByteFrequencyData(_Uint8ArrayJs array) native; | 9082 void getByteFrequencyData(_Uint8ArrayImpl array) native; |
9135 | 9083 |
9136 void getByteTimeDomainData(_Uint8ArrayJs array) native; | 9084 void getByteTimeDomainData(_Uint8ArrayImpl array) native; |
9137 | 9085 |
9138 void getFloatFrequencyData(_Float32ArrayJs array) native; | 9086 void getFloatFrequencyData(_Float32ArrayImpl array) native; |
9139 } | 9087 } |
9140 | 9088 |
9141 class _RectJs implements Rect native "*Rect" { | 9089 class _RectImpl implements Rect native "*Rect" { |
9142 | 9090 |
9143 final _CSSPrimitiveValueJs bottom; | 9091 final _CSSPrimitiveValueImpl bottom; |
9144 | 9092 |
9145 final _CSSPrimitiveValueJs left; | 9093 final _CSSPrimitiveValueImpl left; |
9146 | 9094 |
9147 final _CSSPrimitiveValueJs right; | 9095 final _CSSPrimitiveValueImpl right; |
9148 | 9096 |
9149 final _CSSPrimitiveValueJs top; | 9097 final _CSSPrimitiveValueImpl top; |
9150 } | 9098 } |
9151 | 9099 |
9152 class _SQLErrorJs implements SQLError native "*SQLError" { | 9100 class _SQLErrorImpl implements SQLError native "*SQLError" { |
9153 | 9101 |
9154 static final int CONSTRAINT_ERR = 6; | 9102 static final int CONSTRAINT_ERR = 6; |
9155 | 9103 |
9156 static final int DATABASE_ERR = 1; | 9104 static final int DATABASE_ERR = 1; |
9157 | 9105 |
9158 static final int QUOTA_ERR = 4; | 9106 static final int QUOTA_ERR = 4; |
9159 | 9107 |
9160 static final int SYNTAX_ERR = 5; | 9108 static final int SYNTAX_ERR = 5; |
9161 | 9109 |
9162 static final int TIMEOUT_ERR = 7; | 9110 static final int TIMEOUT_ERR = 7; |
9163 | 9111 |
9164 static final int TOO_LARGE_ERR = 3; | 9112 static final int TOO_LARGE_ERR = 3; |
9165 | 9113 |
9166 static final int UNKNOWN_ERR = 0; | 9114 static final int UNKNOWN_ERR = 0; |
9167 | 9115 |
9168 static final int VERSION_ERR = 2; | 9116 static final int VERSION_ERR = 2; |
9169 | 9117 |
9170 final int code; | 9118 final int code; |
9171 | 9119 |
9172 final String message; | 9120 final String message; |
9173 } | 9121 } |
9174 | 9122 |
9175 class _SQLExceptionJs implements SQLException native "*SQLException" { | 9123 class _SQLExceptionImpl implements SQLException native "*SQLException" { |
9176 | 9124 |
9177 static final int CONSTRAINT_ERR = 6; | 9125 static final int CONSTRAINT_ERR = 6; |
9178 | 9126 |
9179 static final int DATABASE_ERR = 1; | 9127 static final int DATABASE_ERR = 1; |
9180 | 9128 |
9181 static final int QUOTA_ERR = 4; | 9129 static final int QUOTA_ERR = 4; |
9182 | 9130 |
9183 static final int SYNTAX_ERR = 5; | 9131 static final int SYNTAX_ERR = 5; |
9184 | 9132 |
9185 static final int TIMEOUT_ERR = 7; | 9133 static final int TIMEOUT_ERR = 7; |
9186 | 9134 |
9187 static final int TOO_LARGE_ERR = 3; | 9135 static final int TOO_LARGE_ERR = 3; |
9188 | 9136 |
9189 static final int UNKNOWN_ERR = 0; | 9137 static final int UNKNOWN_ERR = 0; |
9190 | 9138 |
9191 static final int VERSION_ERR = 2; | 9139 static final int VERSION_ERR = 2; |
9192 | 9140 |
9193 final int code; | 9141 final int code; |
9194 | 9142 |
9195 final String message; | 9143 final String message; |
9196 } | 9144 } |
9197 | 9145 |
9198 class _SQLResultSetJs implements SQLResultSet native "*SQLResultSet" { | 9146 class _SQLResultSetImpl implements SQLResultSet native "*SQLResultSet" { |
9199 | 9147 |
9200 final int insertId; | 9148 final int insertId; |
9201 | 9149 |
9202 final _SQLResultSetRowListJs rows; | 9150 final _SQLResultSetRowListImpl rows; |
9203 | 9151 |
9204 final int rowsAffected; | 9152 final int rowsAffected; |
9205 } | 9153 } |
9206 | 9154 |
9207 class _SQLResultSetRowListJs implements SQLResultSetRowList native "*SQLResultSe
tRowList" { | 9155 class _SQLResultSetRowListImpl implements SQLResultSetRowList native "*SQLResult
SetRowList" { |
9208 | 9156 |
9209 final int length; | 9157 final int length; |
9210 | 9158 |
9211 Object item(int index) native; | 9159 Object item(int index) native; |
9212 } | 9160 } |
9213 | 9161 |
9214 class _SQLTransactionJs implements SQLTransaction native "*SQLTransaction" { | 9162 class _SQLTransactionImpl implements SQLTransaction native "*SQLTransaction" { |
9215 } | 9163 } |
9216 | 9164 |
9217 class _SQLTransactionSyncJs implements SQLTransactionSync native "*SQLTransactio
nSync" { | 9165 class _SQLTransactionSyncImpl implements SQLTransactionSync native "*SQLTransact
ionSync" { |
9218 } | 9166 } |
9219 | 9167 |
9220 class _SVGAElementJs extends _SVGElementJs implements SVGAElement native "*SVGAE
lement" { | 9168 class _SVGAElementImpl extends _SVGElementImpl implements SVGAElement native "*S
VGAElement" { |
9221 | 9169 |
9222 final _SVGAnimatedStringJs target; | 9170 final _SVGAnimatedStringImpl target; |
9223 | 9171 |
9224 // From SVGURIReference | 9172 // From SVGURIReference |
9225 | 9173 |
9226 final _SVGAnimatedStringJs href; | 9174 final _SVGAnimatedStringImpl href; |
9227 | 9175 |
9228 // From SVGTests | 9176 // From SVGTests |
9229 | 9177 |
9230 final _SVGStringListJs requiredExtensions; | 9178 final _SVGStringListImpl requiredExtensions; |
9231 | 9179 |
9232 final _SVGStringListJs requiredFeatures; | 9180 final _SVGStringListImpl requiredFeatures; |
9233 | 9181 |
9234 final _SVGStringListJs systemLanguage; | 9182 final _SVGStringListImpl systemLanguage; |
9235 | 9183 |
9236 bool hasExtension(String extension) native; | 9184 bool hasExtension(String extension) native; |
9237 | 9185 |
9238 // From SVGLangSpace | 9186 // From SVGLangSpace |
9239 | 9187 |
9240 String xmllang; | 9188 String xmllang; |
9241 | 9189 |
9242 String xmlspace; | 9190 String xmlspace; |
9243 | 9191 |
9244 // From SVGExternalResourcesRequired | 9192 // From SVGExternalResourcesRequired |
9245 | 9193 |
9246 final _SVGAnimatedBooleanJs externalResourcesRequired; | 9194 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9247 | 9195 |
9248 // From SVGStylable | 9196 // From SVGStylable |
9249 | 9197 |
9250 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9198 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
9251 | 9199 |
9252 // Use implementation from Element. | 9200 // Use implementation from Element. |
9253 // final _CSSStyleDeclarationJs style; | 9201 // final _CSSStyleDeclarationImpl style; |
9254 | 9202 |
9255 _CSSValueJs getPresentationAttribute(String name) native; | 9203 _CSSValueImpl getPresentationAttribute(String name) native; |
9256 | 9204 |
9257 // From SVGTransformable | 9205 // From SVGTransformable |
9258 | 9206 |
9259 final _SVGAnimatedTransformListJs transform; | 9207 final _SVGAnimatedTransformListImpl transform; |
9260 | 9208 |
9261 // From SVGLocatable | 9209 // From SVGLocatable |
9262 | 9210 |
9263 final _SVGElementJs farthestViewportElement; | 9211 final _SVGElementImpl farthestViewportElement; |
9264 | 9212 |
9265 final _SVGElementJs nearestViewportElement; | 9213 final _SVGElementImpl nearestViewportElement; |
9266 | 9214 |
9267 _SVGRectJs getBBox() native; | 9215 _SVGRectImpl getBBox() native; |
9268 | 9216 |
9269 _SVGMatrixJs getCTM() native; | 9217 _SVGMatrixImpl getCTM() native; |
9270 | 9218 |
9271 _SVGMatrixJs getScreenCTM() native; | 9219 _SVGMatrixImpl getScreenCTM() native; |
9272 | 9220 |
9273 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 9221 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
9274 } | 9222 } |
9275 | 9223 |
9276 class _SVGAltGlyphDefElementJs extends _SVGElementJs implements SVGAltGlyphDefEl
ement native "*SVGAltGlyphDefElement" { | 9224 class _SVGAltGlyphDefElementImpl extends _SVGElementImpl implements SVGAltGlyphD
efElement native "*SVGAltGlyphDefElement" { |
9277 } | 9225 } |
9278 | 9226 |
9279 class _SVGAltGlyphElementJs extends _SVGTextPositioningElementJs implements SVGA
ltGlyphElement native "*SVGAltGlyphElement" { | 9227 class _SVGAltGlyphElementImpl extends _SVGTextPositioningElementImpl implements
SVGAltGlyphElement native "*SVGAltGlyphElement" { |
9280 | 9228 |
9281 String format; | 9229 String format; |
9282 | 9230 |
9283 String glyphRef; | 9231 String glyphRef; |
9284 | 9232 |
9285 // From SVGURIReference | 9233 // From SVGURIReference |
9286 | 9234 |
9287 final _SVGAnimatedStringJs href; | 9235 final _SVGAnimatedStringImpl href; |
9288 } | 9236 } |
9289 | 9237 |
9290 class _SVGAltGlyphItemElementJs extends _SVGElementJs implements SVGAltGlyphItem
Element native "*SVGAltGlyphItemElement" { | 9238 class _SVGAltGlyphItemElementImpl extends _SVGElementImpl implements SVGAltGlyph
ItemElement native "*SVGAltGlyphItemElement" { |
9291 } | 9239 } |
9292 | 9240 |
9293 class _SVGAngleJs implements SVGAngle native "*SVGAngle" { | 9241 class _SVGAngleImpl implements SVGAngle native "*SVGAngle" { |
9294 | 9242 |
9295 static final int SVG_ANGLETYPE_DEG = 2; | 9243 static final int SVG_ANGLETYPE_DEG = 2; |
9296 | 9244 |
9297 static final int SVG_ANGLETYPE_GRAD = 4; | 9245 static final int SVG_ANGLETYPE_GRAD = 4; |
9298 | 9246 |
9299 static final int SVG_ANGLETYPE_RAD = 3; | 9247 static final int SVG_ANGLETYPE_RAD = 3; |
9300 | 9248 |
9301 static final int SVG_ANGLETYPE_UNKNOWN = 0; | 9249 static final int SVG_ANGLETYPE_UNKNOWN = 0; |
9302 | 9250 |
9303 static final int SVG_ANGLETYPE_UNSPECIFIED = 1; | 9251 static final int SVG_ANGLETYPE_UNSPECIFIED = 1; |
9304 | 9252 |
9305 final int unitType; | 9253 final int unitType; |
9306 | 9254 |
9307 num value; | 9255 num value; |
9308 | 9256 |
9309 String valueAsString; | 9257 String valueAsString; |
9310 | 9258 |
9311 num valueInSpecifiedUnits; | 9259 num valueInSpecifiedUnits; |
9312 | 9260 |
9313 void convertToSpecifiedUnits(int unitType) native; | 9261 void convertToSpecifiedUnits(int unitType) native; |
9314 | 9262 |
9315 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | 9263 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; |
9316 } | 9264 } |
9317 | 9265 |
9318 class _SVGAnimateColorElementJs extends _SVGAnimationElementJs implements SVGAni
mateColorElement native "*SVGAnimateColorElement" { | 9266 class _SVGAnimateColorElementImpl extends _SVGAnimationElementImpl implements SV
GAnimateColorElement native "*SVGAnimateColorElement" { |
9319 } | 9267 } |
9320 | 9268 |
9321 class _SVGAnimateElementJs extends _SVGAnimationElementJs implements SVGAnimateE
lement native "*SVGAnimateElement" { | 9269 class _SVGAnimateElementImpl extends _SVGAnimationElementImpl implements SVGAnim
ateElement native "*SVGAnimateElement" { |
9322 } | 9270 } |
9323 | 9271 |
9324 class _SVGAnimateMotionElementJs extends _SVGAnimationElementJs implements SVGAn
imateMotionElement native "*SVGAnimateMotionElement" { | 9272 class _SVGAnimateMotionElementImpl extends _SVGAnimationElementImpl implements S
VGAnimateMotionElement native "*SVGAnimateMotionElement" { |
9325 } | 9273 } |
9326 | 9274 |
9327 class _SVGAnimateTransformElementJs extends _SVGAnimationElementJs implements SV
GAnimateTransformElement native "*SVGAnimateTransformElement" { | 9275 class _SVGAnimateTransformElementImpl extends _SVGAnimationElementImpl implement
s SVGAnimateTransformElement native "*SVGAnimateTransformElement" { |
9328 } | 9276 } |
9329 | 9277 |
9330 class _SVGAnimatedAngleJs implements SVGAnimatedAngle native "*SVGAnimatedAngle"
{ | 9278 class _SVGAnimatedAngleImpl implements SVGAnimatedAngle native "*SVGAnimatedAngl
e" { |
9331 | 9279 |
9332 final _SVGAngleJs animVal; | 9280 final _SVGAngleImpl animVal; |
9333 | 9281 |
9334 final _SVGAngleJs baseVal; | 9282 final _SVGAngleImpl baseVal; |
9335 } | 9283 } |
9336 | 9284 |
9337 class _SVGAnimatedBooleanJs implements SVGAnimatedBoolean native "*SVGAnimatedBo
olean" { | 9285 class _SVGAnimatedBooleanImpl implements SVGAnimatedBoolean native "*SVGAnimated
Boolean" { |
9338 | 9286 |
9339 final bool animVal; | 9287 final bool animVal; |
9340 | 9288 |
9341 bool baseVal; | 9289 bool baseVal; |
9342 } | 9290 } |
9343 | 9291 |
9344 class _SVGAnimatedEnumerationJs implements SVGAnimatedEnumeration native "*SVGAn
imatedEnumeration" { | 9292 class _SVGAnimatedEnumerationImpl implements SVGAnimatedEnumeration native "*SVG
AnimatedEnumeration" { |
9345 | 9293 |
9346 final int animVal; | 9294 final int animVal; |
9347 | 9295 |
9348 int baseVal; | 9296 int baseVal; |
9349 } | 9297 } |
9350 | 9298 |
9351 class _SVGAnimatedIntegerJs implements SVGAnimatedInteger native "*SVGAnimatedIn
teger" { | 9299 class _SVGAnimatedIntegerImpl implements SVGAnimatedInteger native "*SVGAnimated
Integer" { |
9352 | 9300 |
9353 final int animVal; | 9301 final int animVal; |
9354 | 9302 |
9355 int baseVal; | 9303 int baseVal; |
9356 } | 9304 } |
9357 | 9305 |
9358 class _SVGAnimatedLengthJs implements SVGAnimatedLength native "*SVGAnimatedLeng
th" { | 9306 class _SVGAnimatedLengthImpl implements SVGAnimatedLength native "*SVGAnimatedLe
ngth" { |
9359 | 9307 |
9360 final _SVGLengthJs animVal; | 9308 final _SVGLengthImpl animVal; |
9361 | 9309 |
9362 final _SVGLengthJs baseVal; | 9310 final _SVGLengthImpl baseVal; |
9363 } | 9311 } |
9364 | 9312 |
9365 class _SVGAnimatedLengthListJs implements SVGAnimatedLengthList native "*SVGAnim
atedLengthList" { | 9313 class _SVGAnimatedLengthListImpl implements SVGAnimatedLengthList native "*SVGAn
imatedLengthList" { |
9366 | 9314 |
9367 final _SVGLengthListJs animVal; | 9315 final _SVGLengthListImpl animVal; |
9368 | 9316 |
9369 final _SVGLengthListJs baseVal; | 9317 final _SVGLengthListImpl baseVal; |
9370 } | 9318 } |
9371 | 9319 |
9372 class _SVGAnimatedNumberJs implements SVGAnimatedNumber native "*SVGAnimatedNumb
er" { | 9320 class _SVGAnimatedNumberImpl implements SVGAnimatedNumber native "*SVGAnimatedNu
mber" { |
9373 | 9321 |
9374 final num animVal; | 9322 final num animVal; |
9375 | 9323 |
9376 num baseVal; | 9324 num baseVal; |
9377 } | 9325 } |
9378 | 9326 |
9379 class _SVGAnimatedNumberListJs implements SVGAnimatedNumberList native "*SVGAnim
atedNumberList" { | 9327 class _SVGAnimatedNumberListImpl implements SVGAnimatedNumberList native "*SVGAn
imatedNumberList" { |
9380 | 9328 |
9381 final _SVGNumberListJs animVal; | 9329 final _SVGNumberListImpl animVal; |
9382 | 9330 |
9383 final _SVGNumberListJs baseVal; | 9331 final _SVGNumberListImpl baseVal; |
9384 } | 9332 } |
9385 | 9333 |
9386 class _SVGAnimatedPreserveAspectRatioJs implements SVGAnimatedPreserveAspectRati
o native "*SVGAnimatedPreserveAspectRatio" { | 9334 class _SVGAnimatedPreserveAspectRatioImpl implements SVGAnimatedPreserveAspectRa
tio native "*SVGAnimatedPreserveAspectRatio" { |
9387 | 9335 |
9388 final _SVGPreserveAspectRatioJs animVal; | 9336 final _SVGPreserveAspectRatioImpl animVal; |
9389 | 9337 |
9390 final _SVGPreserveAspectRatioJs baseVal; | 9338 final _SVGPreserveAspectRatioImpl baseVal; |
9391 } | 9339 } |
9392 | 9340 |
9393 class _SVGAnimatedRectJs implements SVGAnimatedRect native "*SVGAnimatedRect" { | 9341 class _SVGAnimatedRectImpl implements SVGAnimatedRect native "*SVGAnimatedRect"
{ |
9394 | 9342 |
9395 final _SVGRectJs animVal; | 9343 final _SVGRectImpl animVal; |
9396 | 9344 |
9397 final _SVGRectJs baseVal; | 9345 final _SVGRectImpl baseVal; |
9398 } | 9346 } |
9399 | 9347 |
9400 class _SVGAnimatedStringJs implements SVGAnimatedString native "*SVGAnimatedStri
ng" { | 9348 class _SVGAnimatedStringImpl implements SVGAnimatedString native "*SVGAnimatedSt
ring" { |
9401 | 9349 |
9402 final String animVal; | 9350 final String animVal; |
9403 | 9351 |
9404 String baseVal; | 9352 String baseVal; |
9405 } | 9353 } |
9406 | 9354 |
9407 class _SVGAnimatedTransformListJs implements SVGAnimatedTransformList native "*S
VGAnimatedTransformList" { | 9355 class _SVGAnimatedTransformListImpl implements SVGAnimatedTransformList native "
*SVGAnimatedTransformList" { |
9408 | 9356 |
9409 final _SVGTransformListJs animVal; | 9357 final _SVGTransformListImpl animVal; |
9410 | 9358 |
9411 final _SVGTransformListJs baseVal; | 9359 final _SVGTransformListImpl baseVal; |
9412 } | 9360 } |
9413 | 9361 |
9414 class _SVGAnimationElementJs extends _SVGElementJs implements SVGAnimationElemen
t native "*SVGAnimationElement" { | 9362 class _SVGAnimationElementImpl extends _SVGElementImpl implements SVGAnimationEl
ement native "*SVGAnimationElement" { |
9415 | 9363 |
9416 final _SVGElementJs targetElement; | 9364 final _SVGElementImpl targetElement; |
9417 | 9365 |
9418 num getCurrentTime() native; | 9366 num getCurrentTime() native; |
9419 | 9367 |
9420 num getSimpleDuration() native; | 9368 num getSimpleDuration() native; |
9421 | 9369 |
9422 num getStartTime() native; | 9370 num getStartTime() native; |
9423 | 9371 |
9424 // From SVGTests | 9372 // From SVGTests |
9425 | 9373 |
9426 final _SVGStringListJs requiredExtensions; | 9374 final _SVGStringListImpl requiredExtensions; |
9427 | 9375 |
9428 final _SVGStringListJs requiredFeatures; | 9376 final _SVGStringListImpl requiredFeatures; |
9429 | 9377 |
9430 final _SVGStringListJs systemLanguage; | 9378 final _SVGStringListImpl systemLanguage; |
9431 | 9379 |
9432 bool hasExtension(String extension) native; | 9380 bool hasExtension(String extension) native; |
9433 | 9381 |
9434 // From SVGExternalResourcesRequired | 9382 // From SVGExternalResourcesRequired |
9435 | 9383 |
9436 final _SVGAnimatedBooleanJs externalResourcesRequired; | 9384 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9437 | 9385 |
9438 // From ElementTimeControl | 9386 // From ElementTimeControl |
9439 | 9387 |
9440 void beginElement() native; | 9388 void beginElement() native; |
9441 | 9389 |
9442 void beginElementAt(num offset) native; | 9390 void beginElementAt(num offset) native; |
9443 | 9391 |
9444 void endElement() native; | 9392 void endElement() native; |
9445 | 9393 |
9446 void endElementAt(num offset) native; | 9394 void endElementAt(num offset) native; |
9447 } | 9395 } |
9448 | 9396 |
9449 class _SVGCircleElementJs extends _SVGElementJs implements SVGCircleElement nati
ve "*SVGCircleElement" { | 9397 class _SVGCircleElementImpl extends _SVGElementImpl implements SVGCircleElement
native "*SVGCircleElement" { |
9450 | 9398 |
9451 final _SVGAnimatedLengthJs cx; | 9399 final _SVGAnimatedLengthImpl cx; |
9452 | 9400 |
9453 final _SVGAnimatedLengthJs cy; | 9401 final _SVGAnimatedLengthImpl cy; |
9454 | 9402 |
9455 final _SVGAnimatedLengthJs r; | 9403 final _SVGAnimatedLengthImpl r; |
9456 | 9404 |
9457 // From SVGTests | 9405 // From SVGTests |
9458 | 9406 |
9459 final _SVGStringListJs requiredExtensions; | 9407 final _SVGStringListImpl requiredExtensions; |
9460 | 9408 |
9461 final _SVGStringListJs requiredFeatures; | 9409 final _SVGStringListImpl requiredFeatures; |
9462 | 9410 |
9463 final _SVGStringListJs systemLanguage; | 9411 final _SVGStringListImpl systemLanguage; |
9464 | 9412 |
9465 bool hasExtension(String extension) native; | 9413 bool hasExtension(String extension) native; |
9466 | 9414 |
9467 // From SVGLangSpace | 9415 // From SVGLangSpace |
9468 | 9416 |
9469 String xmllang; | 9417 String xmllang; |
9470 | 9418 |
9471 String xmlspace; | 9419 String xmlspace; |
9472 | 9420 |
9473 // From SVGExternalResourcesRequired | 9421 // From SVGExternalResourcesRequired |
9474 | 9422 |
9475 final _SVGAnimatedBooleanJs externalResourcesRequired; | 9423 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9476 | 9424 |
9477 // From SVGStylable | 9425 // From SVGStylable |
9478 | 9426 |
9479 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9427 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
9480 | 9428 |
9481 // Use implementation from Element. | 9429 // Use implementation from Element. |
9482 // final _CSSStyleDeclarationJs style; | 9430 // final _CSSStyleDeclarationImpl style; |
9483 | 9431 |
9484 _CSSValueJs getPresentationAttribute(String name) native; | 9432 _CSSValueImpl getPresentationAttribute(String name) native; |
9485 | 9433 |
9486 // From SVGTransformable | 9434 // From SVGTransformable |
9487 | 9435 |
9488 final _SVGAnimatedTransformListJs transform; | 9436 final _SVGAnimatedTransformListImpl transform; |
9489 | 9437 |
9490 // From SVGLocatable | 9438 // From SVGLocatable |
9491 | 9439 |
9492 final _SVGElementJs farthestViewportElement; | 9440 final _SVGElementImpl farthestViewportElement; |
9493 | 9441 |
9494 final _SVGElementJs nearestViewportElement; | 9442 final _SVGElementImpl nearestViewportElement; |
9495 | 9443 |
9496 _SVGRectJs getBBox() native; | 9444 _SVGRectImpl getBBox() native; |
9497 | 9445 |
9498 _SVGMatrixJs getCTM() native; | 9446 _SVGMatrixImpl getCTM() native; |
9499 | 9447 |
9500 _SVGMatrixJs getScreenCTM() native; | 9448 _SVGMatrixImpl getScreenCTM() native; |
9501 | 9449 |
9502 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 9450 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
9503 } | 9451 } |
9504 | 9452 |
9505 class _SVGClipPathElementJs extends _SVGElementJs implements SVGClipPathElement
native "*SVGClipPathElement" { | 9453 class _SVGClipPathElementImpl extends _SVGElementImpl implements SVGClipPathElem
ent native "*SVGClipPathElement" { |
9506 | 9454 |
9507 final _SVGAnimatedEnumerationJs clipPathUnits; | 9455 final _SVGAnimatedEnumerationImpl clipPathUnits; |
9508 | 9456 |
9509 // From SVGTests | 9457 // From SVGTests |
9510 | 9458 |
9511 final _SVGStringListJs requiredExtensions; | 9459 final _SVGStringListImpl requiredExtensions; |
9512 | 9460 |
9513 final _SVGStringListJs requiredFeatures; | 9461 final _SVGStringListImpl requiredFeatures; |
9514 | 9462 |
9515 final _SVGStringListJs systemLanguage; | 9463 final _SVGStringListImpl systemLanguage; |
9516 | 9464 |
9517 bool hasExtension(String extension) native; | 9465 bool hasExtension(String extension) native; |
9518 | 9466 |
9519 // From SVGLangSpace | 9467 // From SVGLangSpace |
9520 | 9468 |
9521 String xmllang; | 9469 String xmllang; |
9522 | 9470 |
9523 String xmlspace; | 9471 String xmlspace; |
9524 | 9472 |
9525 // From SVGExternalResourcesRequired | 9473 // From SVGExternalResourcesRequired |
9526 | 9474 |
9527 final _SVGAnimatedBooleanJs externalResourcesRequired; | 9475 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9528 | 9476 |
9529 // From SVGStylable | 9477 // From SVGStylable |
9530 | 9478 |
9531 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9479 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
9532 | 9480 |
9533 // Use implementation from Element. | 9481 // Use implementation from Element. |
9534 // final _CSSStyleDeclarationJs style; | 9482 // final _CSSStyleDeclarationImpl style; |
9535 | 9483 |
9536 _CSSValueJs getPresentationAttribute(String name) native; | 9484 _CSSValueImpl getPresentationAttribute(String name) native; |
9537 | 9485 |
9538 // From SVGTransformable | 9486 // From SVGTransformable |
9539 | 9487 |
9540 final _SVGAnimatedTransformListJs transform; | 9488 final _SVGAnimatedTransformListImpl transform; |
9541 | 9489 |
9542 // From SVGLocatable | 9490 // From SVGLocatable |
9543 | 9491 |
9544 final _SVGElementJs farthestViewportElement; | 9492 final _SVGElementImpl farthestViewportElement; |
9545 | 9493 |
9546 final _SVGElementJs nearestViewportElement; | 9494 final _SVGElementImpl nearestViewportElement; |
9547 | 9495 |
9548 _SVGRectJs getBBox() native; | 9496 _SVGRectImpl getBBox() native; |
9549 | 9497 |
9550 _SVGMatrixJs getCTM() native; | 9498 _SVGMatrixImpl getCTM() native; |
9551 | 9499 |
9552 _SVGMatrixJs getScreenCTM() native; | 9500 _SVGMatrixImpl getScreenCTM() native; |
9553 | 9501 |
9554 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 9502 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
9555 } | 9503 } |
9556 | 9504 |
9557 class _SVGColorJs extends _CSSValueJs implements SVGColor native "*SVGColor" { | 9505 class _SVGColorImpl extends _CSSValueImpl implements SVGColor native "*SVGColor"
{ |
9558 | 9506 |
9559 static final int SVG_COLORTYPE_CURRENTCOLOR = 3; | 9507 static final int SVG_COLORTYPE_CURRENTCOLOR = 3; |
9560 | 9508 |
9561 static final int SVG_COLORTYPE_RGBCOLOR = 1; | 9509 static final int SVG_COLORTYPE_RGBCOLOR = 1; |
9562 | 9510 |
9563 static final int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; | 9511 static final int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; |
9564 | 9512 |
9565 static final int SVG_COLORTYPE_UNKNOWN = 0; | 9513 static final int SVG_COLORTYPE_UNKNOWN = 0; |
9566 | 9514 |
9567 final int colorType; | 9515 final int colorType; |
9568 | 9516 |
9569 final _RGBColorJs rgbColor; | 9517 final _RGBColorImpl rgbColor; |
9570 | 9518 |
9571 void setColor(int colorType, String rgbColor, String iccColor) native; | 9519 void setColor(int colorType, String rgbColor, String iccColor) native; |
9572 | 9520 |
9573 void setRGBColor(String rgbColor) native; | 9521 void setRGBColor(String rgbColor) native; |
9574 | 9522 |
9575 void setRGBColorICCColor(String rgbColor, String iccColor) native; | 9523 void setRGBColorICCColor(String rgbColor, String iccColor) native; |
9576 } | 9524 } |
9577 | 9525 |
9578 class _SVGComponentTransferFunctionElementJs extends _SVGElementJs implements SV
GComponentTransferFunctionElement native "*SVGComponentTransferFunctionElement"
{ | 9526 class _SVGComponentTransferFunctionElementImpl extends _SVGElementImpl implement
s SVGComponentTransferFunctionElement native "*SVGComponentTransferFunctionEleme
nt" { |
9579 | 9527 |
9580 static final int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; | 9528 static final int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; |
9581 | 9529 |
9582 static final int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; | 9530 static final int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; |
9583 | 9531 |
9584 static final int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; | 9532 static final int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; |
9585 | 9533 |
9586 static final int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; | 9534 static final int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; |
9587 | 9535 |
9588 static final int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; | 9536 static final int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; |
9589 | 9537 |
9590 static final int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; | 9538 static final int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; |
9591 | 9539 |
9592 final _SVGAnimatedNumberJs amplitude; | 9540 final _SVGAnimatedNumberImpl amplitude; |
9593 | 9541 |
9594 final _SVGAnimatedNumberJs exponent; | 9542 final _SVGAnimatedNumberImpl exponent; |
9595 | 9543 |
9596 final _SVGAnimatedNumberJs intercept; | 9544 final _SVGAnimatedNumberImpl intercept; |
9597 | 9545 |
9598 final _SVGAnimatedNumberJs offset; | 9546 final _SVGAnimatedNumberImpl offset; |
9599 | 9547 |
9600 final _SVGAnimatedNumberJs slope; | 9548 final _SVGAnimatedNumberImpl slope; |
9601 | 9549 |
9602 final _SVGAnimatedNumberListJs tableValues; | 9550 final _SVGAnimatedNumberListImpl tableValues; |
9603 | 9551 |
9604 final _SVGAnimatedEnumerationJs type; | 9552 final _SVGAnimatedEnumerationImpl type; |
9605 } | 9553 } |
9606 | 9554 |
9607 class _SVGCursorElementJs extends _SVGElementJs implements SVGCursorElement nati
ve "*SVGCursorElement" { | 9555 class _SVGCursorElementImpl extends _SVGElementImpl implements SVGCursorElement
native "*SVGCursorElement" { |
9608 | 9556 |
9609 final _SVGAnimatedLengthJs x; | 9557 final _SVGAnimatedLengthImpl x; |
9610 | 9558 |
9611 final _SVGAnimatedLengthJs y; | 9559 final _SVGAnimatedLengthImpl y; |
9612 | 9560 |
9613 // From SVGURIReference | 9561 // From SVGURIReference |
9614 | 9562 |
9615 final _SVGAnimatedStringJs href; | 9563 final _SVGAnimatedStringImpl href; |
9616 | 9564 |
9617 // From SVGTests | 9565 // From SVGTests |
9618 | 9566 |
9619 final _SVGStringListJs requiredExtensions; | 9567 final _SVGStringListImpl requiredExtensions; |
9620 | 9568 |
9621 final _SVGStringListJs requiredFeatures; | 9569 final _SVGStringListImpl requiredFeatures; |
9622 | 9570 |
9623 final _SVGStringListJs systemLanguage; | 9571 final _SVGStringListImpl systemLanguage; |
9624 | 9572 |
9625 bool hasExtension(String extension) native; | 9573 bool hasExtension(String extension) native; |
9626 | 9574 |
9627 // From SVGExternalResourcesRequired | 9575 // From SVGExternalResourcesRequired |
9628 | 9576 |
9629 final _SVGAnimatedBooleanJs externalResourcesRequired; | 9577 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9630 } | 9578 } |
9631 | 9579 |
9632 class _SVGDefsElementJs extends _SVGElementJs implements SVGDefsElement native "
*SVGDefsElement" { | 9580 class _SVGDefsElementImpl extends _SVGElementImpl implements SVGDefsElement nati
ve "*SVGDefsElement" { |
9633 | 9581 |
9634 // From SVGTests | 9582 // From SVGTests |
9635 | 9583 |
9636 final _SVGStringListJs requiredExtensions; | 9584 final _SVGStringListImpl requiredExtensions; |
9637 | 9585 |
9638 final _SVGStringListJs requiredFeatures; | 9586 final _SVGStringListImpl requiredFeatures; |
9639 | 9587 |
9640 final _SVGStringListJs systemLanguage; | 9588 final _SVGStringListImpl systemLanguage; |
9641 | 9589 |
9642 bool hasExtension(String extension) native; | 9590 bool hasExtension(String extension) native; |
9643 | 9591 |
9644 // From SVGLangSpace | 9592 // From SVGLangSpace |
9645 | 9593 |
9646 String xmllang; | 9594 String xmllang; |
9647 | 9595 |
9648 String xmlspace; | 9596 String xmlspace; |
9649 | 9597 |
9650 // From SVGExternalResourcesRequired | 9598 // From SVGExternalResourcesRequired |
9651 | 9599 |
9652 final _SVGAnimatedBooleanJs externalResourcesRequired; | 9600 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9653 | 9601 |
9654 // From SVGStylable | 9602 // From SVGStylable |
9655 | 9603 |
9656 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9604 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
9657 | 9605 |
9658 // Use implementation from Element. | 9606 // Use implementation from Element. |
9659 // final _CSSStyleDeclarationJs style; | 9607 // final _CSSStyleDeclarationImpl style; |
9660 | 9608 |
9661 _CSSValueJs getPresentationAttribute(String name) native; | 9609 _CSSValueImpl getPresentationAttribute(String name) native; |
9662 | 9610 |
9663 // From SVGTransformable | 9611 // From SVGTransformable |
9664 | 9612 |
9665 final _SVGAnimatedTransformListJs transform; | 9613 final _SVGAnimatedTransformListImpl transform; |
9666 | 9614 |
9667 // From SVGLocatable | 9615 // From SVGLocatable |
9668 | 9616 |
9669 final _SVGElementJs farthestViewportElement; | 9617 final _SVGElementImpl farthestViewportElement; |
9670 | 9618 |
9671 final _SVGElementJs nearestViewportElement; | 9619 final _SVGElementImpl nearestViewportElement; |
9672 | 9620 |
9673 _SVGRectJs getBBox() native; | 9621 _SVGRectImpl getBBox() native; |
9674 | 9622 |
9675 _SVGMatrixJs getCTM() native; | 9623 _SVGMatrixImpl getCTM() native; |
9676 | 9624 |
9677 _SVGMatrixJs getScreenCTM() native; | 9625 _SVGMatrixImpl getScreenCTM() native; |
9678 | 9626 |
9679 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 9627 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
9680 } | 9628 } |
9681 | 9629 |
9682 class _SVGDescElementJs extends _SVGElementJs implements SVGDescElement native "
*SVGDescElement" { | 9630 class _SVGDescElementImpl extends _SVGElementImpl implements SVGDescElement nati
ve "*SVGDescElement" { |
9683 | 9631 |
9684 // From SVGLangSpace | 9632 // From SVGLangSpace |
9685 | 9633 |
9686 String xmllang; | 9634 String xmllang; |
9687 | 9635 |
9688 String xmlspace; | 9636 String xmlspace; |
9689 | 9637 |
9690 // From SVGStylable | 9638 // From SVGStylable |
9691 | 9639 |
9692 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9640 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
9693 | 9641 |
9694 // Use implementation from Element. | 9642 // Use implementation from Element. |
9695 // final _CSSStyleDeclarationJs style; | 9643 // final _CSSStyleDeclarationImpl style; |
9696 | 9644 |
9697 _CSSValueJs getPresentationAttribute(String name) native; | 9645 _CSSValueImpl getPresentationAttribute(String name) native; |
9698 } | 9646 } |
9699 | 9647 |
9700 class _SVGDocumentJs extends _DocumentJs implements SVGDocument native "*SVGDocu
ment" { | 9648 class _SVGDocumentImpl extends _DocumentImpl implements SVGDocument native "*SVG
Document" { |
9701 | 9649 |
9702 final _SVGSVGElementJs rootElement; | 9650 final _SVGSVGElementImpl rootElement; |
9703 | 9651 |
9704 _EventJs _createEvent(String eventType) native "return this.createEvent(eventT
ype);"; | 9652 _EventImpl _createEvent(String eventType) native "return this.createEvent(even
tType);"; |
9705 } | 9653 } |
9706 | 9654 |
9707 class _SVGElementJs extends _ElementJs implements SVGElement native "*SVGElement
" { | 9655 class _SVGElementImpl extends _ElementImpl implements SVGElement native "*SVGEle
ment" { |
9708 | 9656 |
9709 // Shadowing definition. | 9657 // Shadowing definition. |
9710 String get id() native "return this.id;"; | 9658 String get id() native "return this.id;"; |
9711 | 9659 |
9712 void set id(String value) native "this.id = value;"; | 9660 void set id(String value) native "this.id = value;"; |
9713 | 9661 |
9714 final _SVGSVGElementJs ownerSVGElement; | 9662 final _SVGSVGElementImpl ownerSVGElement; |
9715 | 9663 |
9716 final _SVGElementJs viewportElement; | 9664 final _SVGElementImpl viewportElement; |
9717 | 9665 |
9718 String xmlbase; | 9666 String xmlbase; |
9719 } | 9667 } |
9720 | 9668 |
9721 class _SVGElementInstanceJs implements SVGElementInstance native "*SVGElementIns
tance" { | 9669 class _SVGElementInstanceImpl extends _EventTargetImpl implements SVGElementInst
ance native "*SVGElementInstance" { |
9722 | 9670 |
9723 final _SVGElementInstanceListJs childNodes; | 9671 final _SVGElementInstanceListImpl childNodes; |
9724 | 9672 |
9725 final _SVGElementJs correspondingElement; | 9673 final _SVGElementImpl correspondingElement; |
9726 | 9674 |
9727 final _SVGUseElementJs correspondingUseElement; | 9675 final _SVGUseElementImpl correspondingUseElement; |
9728 | 9676 |
9729 final _SVGElementInstanceJs firstChild; | 9677 final _SVGElementInstanceImpl firstChild; |
9730 | 9678 |
9731 final _SVGElementInstanceJs lastChild; | 9679 final _SVGElementInstanceImpl lastChild; |
9732 | 9680 |
9733 final _SVGElementInstanceJs nextSibling; | 9681 final _SVGElementInstanceImpl nextSibling; |
9734 | 9682 |
9735 final _SVGElementInstanceJs parentNode; | 9683 final _SVGElementInstanceImpl parentNode; |
9736 | 9684 |
9737 final _SVGElementInstanceJs previousSibling; | 9685 final _SVGElementInstanceImpl previousSibling; |
9738 | 9686 |
9739 _SVGElementInstanceEventsImpl get on() => | 9687 _SVGElementInstanceEventsImpl get on() => |
9740 new _SVGElementInstanceEventsImpl(this); | 9688 new _SVGElementInstanceEventsImpl(this); |
9741 | 9689 |
9742 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 9690 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
9743 | 9691 |
9744 bool _dispatchEvent(_EventJs event) native "return this.dispatchEvent(event);"
; | 9692 bool _dispatchEvent(_EventImpl event) native "return this.dispatchEvent(event)
;"; |
9745 | 9693 |
9746 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 9694 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
9747 } | 9695 } |
9748 | 9696 |
9749 class _SVGElementInstanceEventsImpl extends _EventsImpl implements SVGElementIns
tanceEvents { | 9697 class _SVGElementInstanceEventsImpl extends _EventsImpl implements SVGElementIns
tanceEvents { |
9750 _SVGElementInstanceEventsImpl(_ptr) : super(_ptr); | 9698 _SVGElementInstanceEventsImpl(_ptr) : super(_ptr); |
9751 | 9699 |
9752 EventListenerList get abort() => _get('abort'); | 9700 EventListenerList get abort() => _get('abort'); |
9753 | 9701 |
9754 EventListenerList get beforeCopy() => _get('beforecopy'); | 9702 EventListenerList get beforeCopy() => _get('beforecopy'); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9823 | 9771 |
9824 EventListenerList get select() => _get('select'); | 9772 EventListenerList get select() => _get('select'); |
9825 | 9773 |
9826 EventListenerList get selectStart() => _get('selectstart'); | 9774 EventListenerList get selectStart() => _get('selectstart'); |
9827 | 9775 |
9828 EventListenerList get submit() => _get('submit'); | 9776 EventListenerList get submit() => _get('submit'); |
9829 | 9777 |
9830 EventListenerList get unload() => _get('unload'); | 9778 EventListenerList get unload() => _get('unload'); |
9831 } | 9779 } |
9832 | 9780 |
9833 class _SVGElementInstanceListJs implements SVGElementInstanceList native "*SVGEl
ementInstanceList" { | 9781 class _SVGElementInstanceListImpl implements SVGElementInstanceList native "*SVG
ElementInstanceList" { |
9834 | 9782 |
9835 final int length; | 9783 final int length; |
9836 | 9784 |
9837 _SVGElementInstanceJs item(int index) native; | 9785 _SVGElementInstanceImpl item(int index) native; |
9838 } | 9786 } |
9839 | 9787 |
9840 class _SVGEllipseElementJs extends _SVGElementJs implements SVGEllipseElement na
tive "*SVGEllipseElement" { | 9788 class _SVGEllipseElementImpl extends _SVGElementImpl implements SVGEllipseElemen
t native "*SVGEllipseElement" { |
9841 | 9789 |
9842 final _SVGAnimatedLengthJs cx; | 9790 final _SVGAnimatedLengthImpl cx; |
9843 | 9791 |
9844 final _SVGAnimatedLengthJs cy; | 9792 final _SVGAnimatedLengthImpl cy; |
9845 | 9793 |
9846 final _SVGAnimatedLengthJs rx; | 9794 final _SVGAnimatedLengthImpl rx; |
9847 | 9795 |
9848 final _SVGAnimatedLengthJs ry; | 9796 final _SVGAnimatedLengthImpl ry; |
9849 | 9797 |
9850 // From SVGTests | 9798 // From SVGTests |
9851 | 9799 |
9852 final _SVGStringListJs requiredExtensions; | 9800 final _SVGStringListImpl requiredExtensions; |
9853 | 9801 |
9854 final _SVGStringListJs requiredFeatures; | 9802 final _SVGStringListImpl requiredFeatures; |
9855 | 9803 |
9856 final _SVGStringListJs systemLanguage; | 9804 final _SVGStringListImpl systemLanguage; |
9857 | 9805 |
9858 bool hasExtension(String extension) native; | 9806 bool hasExtension(String extension) native; |
9859 | 9807 |
9860 // From SVGLangSpace | 9808 // From SVGLangSpace |
9861 | 9809 |
9862 String xmllang; | 9810 String xmllang; |
9863 | 9811 |
9864 String xmlspace; | 9812 String xmlspace; |
9865 | 9813 |
9866 // From SVGExternalResourcesRequired | 9814 // From SVGExternalResourcesRequired |
9867 | 9815 |
9868 final _SVGAnimatedBooleanJs externalResourcesRequired; | 9816 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9869 | 9817 |
9870 // From SVGStylable | 9818 // From SVGStylable |
9871 | 9819 |
9872 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9820 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
9873 | 9821 |
9874 // Use implementation from Element. | 9822 // Use implementation from Element. |
9875 // final _CSSStyleDeclarationJs style; | 9823 // final _CSSStyleDeclarationImpl style; |
9876 | 9824 |
9877 _CSSValueJs getPresentationAttribute(String name) native; | 9825 _CSSValueImpl getPresentationAttribute(String name) native; |
9878 | 9826 |
9879 // From SVGTransformable | 9827 // From SVGTransformable |
9880 | 9828 |
9881 final _SVGAnimatedTransformListJs transform; | 9829 final _SVGAnimatedTransformListImpl transform; |
9882 | 9830 |
9883 // From SVGLocatable | 9831 // From SVGLocatable |
9884 | 9832 |
9885 final _SVGElementJs farthestViewportElement; | 9833 final _SVGElementImpl farthestViewportElement; |
9886 | 9834 |
9887 final _SVGElementJs nearestViewportElement; | 9835 final _SVGElementImpl nearestViewportElement; |
9888 | 9836 |
9889 _SVGRectJs getBBox() native; | 9837 _SVGRectImpl getBBox() native; |
9890 | 9838 |
9891 _SVGMatrixJs getCTM() native; | 9839 _SVGMatrixImpl getCTM() native; |
9892 | 9840 |
9893 _SVGMatrixJs getScreenCTM() native; | 9841 _SVGMatrixImpl getScreenCTM() native; |
9894 | 9842 |
9895 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 9843 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
9896 } | 9844 } |
9897 | 9845 |
9898 class _SVGExceptionJs implements SVGException native "*SVGException" { | 9846 class _SVGExceptionImpl implements SVGException native "*SVGException" { |
9899 | 9847 |
9900 static final int SVG_INVALID_VALUE_ERR = 1; | 9848 static final int SVG_INVALID_VALUE_ERR = 1; |
9901 | 9849 |
9902 static final int SVG_MATRIX_NOT_INVERTABLE = 2; | 9850 static final int SVG_MATRIX_NOT_INVERTABLE = 2; |
9903 | 9851 |
9904 static final int SVG_WRONG_TYPE_ERR = 0; | 9852 static final int SVG_WRONG_TYPE_ERR = 0; |
9905 | 9853 |
9906 final int code; | 9854 final int code; |
9907 | 9855 |
9908 final String message; | 9856 final String message; |
9909 | 9857 |
9910 final String name; | 9858 final String name; |
9911 | 9859 |
9912 String toString() native; | 9860 String toString() native; |
9913 } | 9861 } |
9914 | 9862 |
9915 class _SVGExternalResourcesRequiredJs implements SVGExternalResourcesRequired na
tive "*SVGExternalResourcesRequired" { | 9863 class _SVGExternalResourcesRequiredImpl implements SVGExternalResourcesRequired
native "*SVGExternalResourcesRequired" { |
9916 | 9864 |
9917 final _SVGAnimatedBooleanJs externalResourcesRequired; | 9865 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
9918 } | 9866 } |
9919 | 9867 |
9920 class _SVGFEBlendElementJs extends _SVGElementJs implements SVGFEBlendElement na
tive "*SVGFEBlendElement" { | 9868 class _SVGFEBlendElementImpl extends _SVGElementImpl implements SVGFEBlendElemen
t native "*SVGFEBlendElement" { |
9921 | 9869 |
9922 static final int SVG_FEBLEND_MODE_DARKEN = 4; | 9870 static final int SVG_FEBLEND_MODE_DARKEN = 4; |
9923 | 9871 |
9924 static final int SVG_FEBLEND_MODE_LIGHTEN = 5; | 9872 static final int SVG_FEBLEND_MODE_LIGHTEN = 5; |
9925 | 9873 |
9926 static final int SVG_FEBLEND_MODE_MULTIPLY = 2; | 9874 static final int SVG_FEBLEND_MODE_MULTIPLY = 2; |
9927 | 9875 |
9928 static final int SVG_FEBLEND_MODE_NORMAL = 1; | 9876 static final int SVG_FEBLEND_MODE_NORMAL = 1; |
9929 | 9877 |
9930 static final int SVG_FEBLEND_MODE_SCREEN = 3; | 9878 static final int SVG_FEBLEND_MODE_SCREEN = 3; |
9931 | 9879 |
9932 static final int SVG_FEBLEND_MODE_UNKNOWN = 0; | 9880 static final int SVG_FEBLEND_MODE_UNKNOWN = 0; |
9933 | 9881 |
9934 final _SVGAnimatedStringJs in1; | 9882 final _SVGAnimatedStringImpl in1; |
9935 | 9883 |
9936 final _SVGAnimatedStringJs in2; | 9884 final _SVGAnimatedStringImpl in2; |
9937 | 9885 |
9938 final _SVGAnimatedEnumerationJs mode; | 9886 final _SVGAnimatedEnumerationImpl mode; |
9939 | 9887 |
9940 // From SVGFilterPrimitiveStandardAttributes | 9888 // From SVGFilterPrimitiveStandardAttributes |
9941 | 9889 |
9942 final _SVGAnimatedLengthJs height; | 9890 final _SVGAnimatedLengthImpl height; |
9943 | 9891 |
9944 final _SVGAnimatedStringJs result; | 9892 final _SVGAnimatedStringImpl result; |
9945 | 9893 |
9946 final _SVGAnimatedLengthJs width; | 9894 final _SVGAnimatedLengthImpl width; |
9947 | 9895 |
9948 final _SVGAnimatedLengthJs x; | 9896 final _SVGAnimatedLengthImpl x; |
9949 | 9897 |
9950 final _SVGAnimatedLengthJs y; | 9898 final _SVGAnimatedLengthImpl y; |
9951 | 9899 |
9952 // From SVGStylable | 9900 // From SVGStylable |
9953 | 9901 |
9954 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9902 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
9955 | 9903 |
9956 // Use implementation from Element. | 9904 // Use implementation from Element. |
9957 // final _CSSStyleDeclarationJs style; | 9905 // final _CSSStyleDeclarationImpl style; |
9958 | 9906 |
9959 _CSSValueJs getPresentationAttribute(String name) native; | 9907 _CSSValueImpl getPresentationAttribute(String name) native; |
9960 } | 9908 } |
9961 | 9909 |
9962 class _SVGFEColorMatrixElementJs extends _SVGElementJs implements SVGFEColorMatr
ixElement native "*SVGFEColorMatrixElement" { | 9910 class _SVGFEColorMatrixElementImpl extends _SVGElementImpl implements SVGFEColor
MatrixElement native "*SVGFEColorMatrixElement" { |
9963 | 9911 |
9964 static final int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; | 9912 static final int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; |
9965 | 9913 |
9966 static final int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; | 9914 static final int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; |
9967 | 9915 |
9968 static final int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; | 9916 static final int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; |
9969 | 9917 |
9970 static final int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; | 9918 static final int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; |
9971 | 9919 |
9972 static final int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; | 9920 static final int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; |
9973 | 9921 |
9974 final _SVGAnimatedStringJs in1; | 9922 final _SVGAnimatedStringImpl in1; |
9975 | 9923 |
9976 final _SVGAnimatedEnumerationJs type; | 9924 final _SVGAnimatedEnumerationImpl type; |
9977 | 9925 |
9978 final _SVGAnimatedNumberListJs values; | 9926 final _SVGAnimatedNumberListImpl values; |
9979 | 9927 |
9980 // From SVGFilterPrimitiveStandardAttributes | 9928 // From SVGFilterPrimitiveStandardAttributes |
9981 | 9929 |
9982 final _SVGAnimatedLengthJs height; | 9930 final _SVGAnimatedLengthImpl height; |
9983 | 9931 |
9984 final _SVGAnimatedStringJs result; | 9932 final _SVGAnimatedStringImpl result; |
9985 | 9933 |
9986 final _SVGAnimatedLengthJs width; | 9934 final _SVGAnimatedLengthImpl width; |
9987 | 9935 |
9988 final _SVGAnimatedLengthJs x; | 9936 final _SVGAnimatedLengthImpl x; |
9989 | 9937 |
9990 final _SVGAnimatedLengthJs y; | 9938 final _SVGAnimatedLengthImpl y; |
9991 | 9939 |
9992 // From SVGStylable | 9940 // From SVGStylable |
9993 | 9941 |
9994 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9942 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
9995 | 9943 |
9996 // Use implementation from Element. | 9944 // Use implementation from Element. |
9997 // final _CSSStyleDeclarationJs style; | 9945 // final _CSSStyleDeclarationImpl style; |
9998 | 9946 |
9999 _CSSValueJs getPresentationAttribute(String name) native; | 9947 _CSSValueImpl getPresentationAttribute(String name) native; |
10000 } | 9948 } |
10001 | 9949 |
10002 class _SVGFEComponentTransferElementJs extends _SVGElementJs implements SVGFECom
ponentTransferElement native "*SVGFEComponentTransferElement" { | 9950 class _SVGFEComponentTransferElementImpl extends _SVGElementImpl implements SVGF
EComponentTransferElement native "*SVGFEComponentTransferElement" { |
10003 | 9951 |
10004 final _SVGAnimatedStringJs in1; | 9952 final _SVGAnimatedStringImpl in1; |
10005 | 9953 |
10006 // From SVGFilterPrimitiveStandardAttributes | 9954 // From SVGFilterPrimitiveStandardAttributes |
10007 | 9955 |
10008 final _SVGAnimatedLengthJs height; | 9956 final _SVGAnimatedLengthImpl height; |
10009 | 9957 |
10010 final _SVGAnimatedStringJs result; | 9958 final _SVGAnimatedStringImpl result; |
10011 | 9959 |
10012 final _SVGAnimatedLengthJs width; | 9960 final _SVGAnimatedLengthImpl width; |
10013 | 9961 |
10014 final _SVGAnimatedLengthJs x; | 9962 final _SVGAnimatedLengthImpl x; |
10015 | 9963 |
10016 final _SVGAnimatedLengthJs y; | 9964 final _SVGAnimatedLengthImpl y; |
10017 | 9965 |
10018 // From SVGStylable | 9966 // From SVGStylable |
10019 | 9967 |
10020 _SVGAnimatedStringJs get _className() native "return this.className;"; | 9968 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10021 | 9969 |
10022 // Use implementation from Element. | 9970 // Use implementation from Element. |
10023 // final _CSSStyleDeclarationJs style; | 9971 // final _CSSStyleDeclarationImpl style; |
10024 | 9972 |
10025 _CSSValueJs getPresentationAttribute(String name) native; | 9973 _CSSValueImpl getPresentationAttribute(String name) native; |
10026 } | 9974 } |
10027 | 9975 |
10028 class _SVGFECompositeElementJs extends _SVGElementJs implements SVGFECompositeEl
ement native "*SVGFECompositeElement" { | 9976 class _SVGFECompositeElementImpl extends _SVGElementImpl implements SVGFEComposi
teElement native "*SVGFECompositeElement" { |
10029 | 9977 |
10030 static final int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; | 9978 static final int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; |
10031 | 9979 |
10032 static final int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; | 9980 static final int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; |
10033 | 9981 |
10034 static final int SVG_FECOMPOSITE_OPERATOR_IN = 2; | 9982 static final int SVG_FECOMPOSITE_OPERATOR_IN = 2; |
10035 | 9983 |
10036 static final int SVG_FECOMPOSITE_OPERATOR_OUT = 3; | 9984 static final int SVG_FECOMPOSITE_OPERATOR_OUT = 3; |
10037 | 9985 |
10038 static final int SVG_FECOMPOSITE_OPERATOR_OVER = 1; | 9986 static final int SVG_FECOMPOSITE_OPERATOR_OVER = 1; |
10039 | 9987 |
10040 static final int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; | 9988 static final int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; |
10041 | 9989 |
10042 static final int SVG_FECOMPOSITE_OPERATOR_XOR = 5; | 9990 static final int SVG_FECOMPOSITE_OPERATOR_XOR = 5; |
10043 | 9991 |
10044 final _SVGAnimatedStringJs in1; | 9992 final _SVGAnimatedStringImpl in1; |
10045 | 9993 |
10046 final _SVGAnimatedStringJs in2; | 9994 final _SVGAnimatedStringImpl in2; |
10047 | 9995 |
10048 final _SVGAnimatedNumberJs k1; | 9996 final _SVGAnimatedNumberImpl k1; |
10049 | 9997 |
10050 final _SVGAnimatedNumberJs k2; | 9998 final _SVGAnimatedNumberImpl k2; |
10051 | 9999 |
10052 final _SVGAnimatedNumberJs k3; | 10000 final _SVGAnimatedNumberImpl k3; |
10053 | 10001 |
10054 final _SVGAnimatedNumberJs k4; | 10002 final _SVGAnimatedNumberImpl k4; |
10055 | 10003 |
10056 final _SVGAnimatedEnumerationJs operator; | 10004 final _SVGAnimatedEnumerationImpl operator; |
10057 | 10005 |
10058 // From SVGFilterPrimitiveStandardAttributes | 10006 // From SVGFilterPrimitiveStandardAttributes |
10059 | 10007 |
10060 final _SVGAnimatedLengthJs height; | 10008 final _SVGAnimatedLengthImpl height; |
10061 | 10009 |
10062 final _SVGAnimatedStringJs result; | 10010 final _SVGAnimatedStringImpl result; |
10063 | 10011 |
10064 final _SVGAnimatedLengthJs width; | 10012 final _SVGAnimatedLengthImpl width; |
10065 | 10013 |
10066 final _SVGAnimatedLengthJs x; | 10014 final _SVGAnimatedLengthImpl x; |
10067 | 10015 |
10068 final _SVGAnimatedLengthJs y; | 10016 final _SVGAnimatedLengthImpl y; |
10069 | 10017 |
10070 // From SVGStylable | 10018 // From SVGStylable |
10071 | 10019 |
10072 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10020 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10073 | 10021 |
10074 // Use implementation from Element. | 10022 // Use implementation from Element. |
10075 // final _CSSStyleDeclarationJs style; | 10023 // final _CSSStyleDeclarationImpl style; |
10076 | 10024 |
10077 _CSSValueJs getPresentationAttribute(String name) native; | 10025 _CSSValueImpl getPresentationAttribute(String name) native; |
10078 } | 10026 } |
10079 | 10027 |
10080 class _SVGFEConvolveMatrixElementJs extends _SVGElementJs implements SVGFEConvol
veMatrixElement native "*SVGFEConvolveMatrixElement" { | 10028 class _SVGFEConvolveMatrixElementImpl extends _SVGElementImpl implements SVGFECo
nvolveMatrixElement native "*SVGFEConvolveMatrixElement" { |
10081 | 10029 |
10082 static final int SVG_EDGEMODE_DUPLICATE = 1; | 10030 static final int SVG_EDGEMODE_DUPLICATE = 1; |
10083 | 10031 |
10084 static final int SVG_EDGEMODE_NONE = 3; | 10032 static final int SVG_EDGEMODE_NONE = 3; |
10085 | 10033 |
10086 static final int SVG_EDGEMODE_UNKNOWN = 0; | 10034 static final int SVG_EDGEMODE_UNKNOWN = 0; |
10087 | 10035 |
10088 static final int SVG_EDGEMODE_WRAP = 2; | 10036 static final int SVG_EDGEMODE_WRAP = 2; |
10089 | 10037 |
10090 final _SVGAnimatedNumberJs bias; | 10038 final _SVGAnimatedNumberImpl bias; |
10091 | 10039 |
10092 final _SVGAnimatedNumberJs divisor; | 10040 final _SVGAnimatedNumberImpl divisor; |
10093 | 10041 |
10094 final _SVGAnimatedEnumerationJs edgeMode; | 10042 final _SVGAnimatedEnumerationImpl edgeMode; |
10095 | 10043 |
10096 final _SVGAnimatedStringJs in1; | 10044 final _SVGAnimatedStringImpl in1; |
10097 | 10045 |
10098 final _SVGAnimatedNumberListJs kernelMatrix; | 10046 final _SVGAnimatedNumberListImpl kernelMatrix; |
10099 | 10047 |
10100 final _SVGAnimatedNumberJs kernelUnitLengthX; | 10048 final _SVGAnimatedNumberImpl kernelUnitLengthX; |
10101 | 10049 |
10102 final _SVGAnimatedNumberJs kernelUnitLengthY; | 10050 final _SVGAnimatedNumberImpl kernelUnitLengthY; |
10103 | 10051 |
10104 final _SVGAnimatedIntegerJs orderX; | 10052 final _SVGAnimatedIntegerImpl orderX; |
10105 | 10053 |
10106 final _SVGAnimatedIntegerJs orderY; | 10054 final _SVGAnimatedIntegerImpl orderY; |
10107 | 10055 |
10108 final _SVGAnimatedBooleanJs preserveAlpha; | 10056 final _SVGAnimatedBooleanImpl preserveAlpha; |
10109 | 10057 |
10110 final _SVGAnimatedIntegerJs targetX; | 10058 final _SVGAnimatedIntegerImpl targetX; |
10111 | 10059 |
10112 final _SVGAnimatedIntegerJs targetY; | 10060 final _SVGAnimatedIntegerImpl targetY; |
10113 | 10061 |
10114 // From SVGFilterPrimitiveStandardAttributes | 10062 // From SVGFilterPrimitiveStandardAttributes |
10115 | 10063 |
10116 final _SVGAnimatedLengthJs height; | 10064 final _SVGAnimatedLengthImpl height; |
10117 | 10065 |
10118 final _SVGAnimatedStringJs result; | 10066 final _SVGAnimatedStringImpl result; |
10119 | 10067 |
10120 final _SVGAnimatedLengthJs width; | 10068 final _SVGAnimatedLengthImpl width; |
10121 | 10069 |
10122 final _SVGAnimatedLengthJs x; | 10070 final _SVGAnimatedLengthImpl x; |
10123 | 10071 |
10124 final _SVGAnimatedLengthJs y; | 10072 final _SVGAnimatedLengthImpl y; |
10125 | 10073 |
10126 // From SVGStylable | 10074 // From SVGStylable |
10127 | 10075 |
10128 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10076 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10129 | 10077 |
10130 // Use implementation from Element. | 10078 // Use implementation from Element. |
10131 // final _CSSStyleDeclarationJs style; | 10079 // final _CSSStyleDeclarationImpl style; |
10132 | 10080 |
10133 _CSSValueJs getPresentationAttribute(String name) native; | 10081 _CSSValueImpl getPresentationAttribute(String name) native; |
10134 } | 10082 } |
10135 | 10083 |
10136 class _SVGFEDiffuseLightingElementJs extends _SVGElementJs implements SVGFEDiffu
seLightingElement native "*SVGFEDiffuseLightingElement" { | 10084 class _SVGFEDiffuseLightingElementImpl extends _SVGElementImpl implements SVGFED
iffuseLightingElement native "*SVGFEDiffuseLightingElement" { |
10137 | 10085 |
10138 final _SVGAnimatedNumberJs diffuseConstant; | 10086 final _SVGAnimatedNumberImpl diffuseConstant; |
10139 | 10087 |
10140 final _SVGAnimatedStringJs in1; | 10088 final _SVGAnimatedStringImpl in1; |
10141 | 10089 |
10142 final _SVGAnimatedNumberJs kernelUnitLengthX; | 10090 final _SVGAnimatedNumberImpl kernelUnitLengthX; |
10143 | 10091 |
10144 final _SVGAnimatedNumberJs kernelUnitLengthY; | 10092 final _SVGAnimatedNumberImpl kernelUnitLengthY; |
10145 | 10093 |
10146 final _SVGAnimatedNumberJs surfaceScale; | 10094 final _SVGAnimatedNumberImpl surfaceScale; |
10147 | 10095 |
10148 // From SVGFilterPrimitiveStandardAttributes | 10096 // From SVGFilterPrimitiveStandardAttributes |
10149 | 10097 |
10150 final _SVGAnimatedLengthJs height; | 10098 final _SVGAnimatedLengthImpl height; |
10151 | 10099 |
10152 final _SVGAnimatedStringJs result; | 10100 final _SVGAnimatedStringImpl result; |
10153 | 10101 |
10154 final _SVGAnimatedLengthJs width; | 10102 final _SVGAnimatedLengthImpl width; |
10155 | 10103 |
10156 final _SVGAnimatedLengthJs x; | 10104 final _SVGAnimatedLengthImpl x; |
10157 | 10105 |
10158 final _SVGAnimatedLengthJs y; | 10106 final _SVGAnimatedLengthImpl y; |
10159 | 10107 |
10160 // From SVGStylable | 10108 // From SVGStylable |
10161 | 10109 |
10162 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10110 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10163 | 10111 |
10164 // Use implementation from Element. | 10112 // Use implementation from Element. |
10165 // final _CSSStyleDeclarationJs style; | 10113 // final _CSSStyleDeclarationImpl style; |
10166 | 10114 |
10167 _CSSValueJs getPresentationAttribute(String name) native; | 10115 _CSSValueImpl getPresentationAttribute(String name) native; |
10168 } | 10116 } |
10169 | 10117 |
10170 class _SVGFEDisplacementMapElementJs extends _SVGElementJs implements SVGFEDispl
acementMapElement native "*SVGFEDisplacementMapElement" { | 10118 class _SVGFEDisplacementMapElementImpl extends _SVGElementImpl implements SVGFED
isplacementMapElement native "*SVGFEDisplacementMapElement" { |
10171 | 10119 |
10172 static final int SVG_CHANNEL_A = 4; | 10120 static final int SVG_CHANNEL_A = 4; |
10173 | 10121 |
10174 static final int SVG_CHANNEL_B = 3; | 10122 static final int SVG_CHANNEL_B = 3; |
10175 | 10123 |
10176 static final int SVG_CHANNEL_G = 2; | 10124 static final int SVG_CHANNEL_G = 2; |
10177 | 10125 |
10178 static final int SVG_CHANNEL_R = 1; | 10126 static final int SVG_CHANNEL_R = 1; |
10179 | 10127 |
10180 static final int SVG_CHANNEL_UNKNOWN = 0; | 10128 static final int SVG_CHANNEL_UNKNOWN = 0; |
10181 | 10129 |
10182 final _SVGAnimatedStringJs in1; | 10130 final _SVGAnimatedStringImpl in1; |
10183 | 10131 |
10184 final _SVGAnimatedStringJs in2; | 10132 final _SVGAnimatedStringImpl in2; |
10185 | 10133 |
10186 final _SVGAnimatedNumberJs scale; | 10134 final _SVGAnimatedNumberImpl scale; |
10187 | 10135 |
10188 final _SVGAnimatedEnumerationJs xChannelSelector; | 10136 final _SVGAnimatedEnumerationImpl xChannelSelector; |
10189 | 10137 |
10190 final _SVGAnimatedEnumerationJs yChannelSelector; | 10138 final _SVGAnimatedEnumerationImpl yChannelSelector; |
10191 | 10139 |
10192 // From SVGFilterPrimitiveStandardAttributes | 10140 // From SVGFilterPrimitiveStandardAttributes |
10193 | 10141 |
10194 final _SVGAnimatedLengthJs height; | 10142 final _SVGAnimatedLengthImpl height; |
10195 | 10143 |
10196 final _SVGAnimatedStringJs result; | 10144 final _SVGAnimatedStringImpl result; |
10197 | 10145 |
10198 final _SVGAnimatedLengthJs width; | 10146 final _SVGAnimatedLengthImpl width; |
10199 | 10147 |
10200 final _SVGAnimatedLengthJs x; | 10148 final _SVGAnimatedLengthImpl x; |
10201 | 10149 |
10202 final _SVGAnimatedLengthJs y; | 10150 final _SVGAnimatedLengthImpl y; |
10203 | 10151 |
10204 // From SVGStylable | 10152 // From SVGStylable |
10205 | 10153 |
10206 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10154 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10207 | 10155 |
10208 // Use implementation from Element. | 10156 // Use implementation from Element. |
10209 // final _CSSStyleDeclarationJs style; | 10157 // final _CSSStyleDeclarationImpl style; |
10210 | 10158 |
10211 _CSSValueJs getPresentationAttribute(String name) native; | 10159 _CSSValueImpl getPresentationAttribute(String name) native; |
10212 } | 10160 } |
10213 | 10161 |
10214 class _SVGFEDistantLightElementJs extends _SVGElementJs implements SVGFEDistantL
ightElement native "*SVGFEDistantLightElement" { | 10162 class _SVGFEDistantLightElementImpl extends _SVGElementImpl implements SVGFEDist
antLightElement native "*SVGFEDistantLightElement" { |
10215 | 10163 |
10216 final _SVGAnimatedNumberJs azimuth; | 10164 final _SVGAnimatedNumberImpl azimuth; |
10217 | 10165 |
10218 final _SVGAnimatedNumberJs elevation; | 10166 final _SVGAnimatedNumberImpl elevation; |
10219 } | 10167 } |
10220 | 10168 |
10221 class _SVGFEDropShadowElementJs extends _SVGElementJs implements SVGFEDropShadow
Element native "*SVGFEDropShadowElement" { | 10169 class _SVGFEDropShadowElementImpl extends _SVGElementImpl implements SVGFEDropSh
adowElement native "*SVGFEDropShadowElement" { |
10222 | 10170 |
10223 final _SVGAnimatedNumberJs dx; | 10171 final _SVGAnimatedNumberImpl dx; |
10224 | 10172 |
10225 final _SVGAnimatedNumberJs dy; | 10173 final _SVGAnimatedNumberImpl dy; |
10226 | 10174 |
10227 final _SVGAnimatedStringJs in1; | 10175 final _SVGAnimatedStringImpl in1; |
10228 | 10176 |
10229 final _SVGAnimatedNumberJs stdDeviationX; | 10177 final _SVGAnimatedNumberImpl stdDeviationX; |
10230 | 10178 |
10231 final _SVGAnimatedNumberJs stdDeviationY; | 10179 final _SVGAnimatedNumberImpl stdDeviationY; |
10232 | 10180 |
10233 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; | 10181 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
10234 | 10182 |
10235 // From SVGFilterPrimitiveStandardAttributes | 10183 // From SVGFilterPrimitiveStandardAttributes |
10236 | 10184 |
10237 final _SVGAnimatedLengthJs height; | 10185 final _SVGAnimatedLengthImpl height; |
10238 | 10186 |
10239 final _SVGAnimatedStringJs result; | 10187 final _SVGAnimatedStringImpl result; |
10240 | 10188 |
10241 final _SVGAnimatedLengthJs width; | 10189 final _SVGAnimatedLengthImpl width; |
10242 | 10190 |
10243 final _SVGAnimatedLengthJs x; | 10191 final _SVGAnimatedLengthImpl x; |
10244 | 10192 |
10245 final _SVGAnimatedLengthJs y; | 10193 final _SVGAnimatedLengthImpl y; |
10246 | 10194 |
10247 // From SVGStylable | 10195 // From SVGStylable |
10248 | 10196 |
10249 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10197 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10250 | 10198 |
10251 // Use implementation from Element. | 10199 // Use implementation from Element. |
10252 // final _CSSStyleDeclarationJs style; | 10200 // final _CSSStyleDeclarationImpl style; |
10253 | 10201 |
10254 _CSSValueJs getPresentationAttribute(String name) native; | 10202 _CSSValueImpl getPresentationAttribute(String name) native; |
10255 } | 10203 } |
10256 | 10204 |
10257 class _SVGFEFloodElementJs extends _SVGElementJs implements SVGFEFloodElement na
tive "*SVGFEFloodElement" { | 10205 class _SVGFEFloodElementImpl extends _SVGElementImpl implements SVGFEFloodElemen
t native "*SVGFEFloodElement" { |
10258 | 10206 |
10259 // From SVGFilterPrimitiveStandardAttributes | 10207 // From SVGFilterPrimitiveStandardAttributes |
10260 | 10208 |
10261 final _SVGAnimatedLengthJs height; | 10209 final _SVGAnimatedLengthImpl height; |
10262 | 10210 |
10263 final _SVGAnimatedStringJs result; | 10211 final _SVGAnimatedStringImpl result; |
10264 | 10212 |
10265 final _SVGAnimatedLengthJs width; | 10213 final _SVGAnimatedLengthImpl width; |
10266 | 10214 |
10267 final _SVGAnimatedLengthJs x; | 10215 final _SVGAnimatedLengthImpl x; |
10268 | 10216 |
10269 final _SVGAnimatedLengthJs y; | 10217 final _SVGAnimatedLengthImpl y; |
10270 | 10218 |
10271 // From SVGStylable | 10219 // From SVGStylable |
10272 | 10220 |
10273 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10221 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10274 | 10222 |
10275 // Use implementation from Element. | 10223 // Use implementation from Element. |
10276 // final _CSSStyleDeclarationJs style; | 10224 // final _CSSStyleDeclarationImpl style; |
10277 | 10225 |
10278 _CSSValueJs getPresentationAttribute(String name) native; | 10226 _CSSValueImpl getPresentationAttribute(String name) native; |
10279 } | 10227 } |
10280 | 10228 |
10281 class _SVGFEFuncAElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncAElement native "*SVGFEFuncAElement" { | 10229 class _SVGFEFuncAElementImpl extends _SVGComponentTransferFunctionElementImpl im
plements SVGFEFuncAElement native "*SVGFEFuncAElement" { |
10282 } | 10230 } |
10283 | 10231 |
10284 class _SVGFEFuncBElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncBElement native "*SVGFEFuncBElement" { | 10232 class _SVGFEFuncBElementImpl extends _SVGComponentTransferFunctionElementImpl im
plements SVGFEFuncBElement native "*SVGFEFuncBElement" { |
10285 } | 10233 } |
10286 | 10234 |
10287 class _SVGFEFuncGElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncGElement native "*SVGFEFuncGElement" { | 10235 class _SVGFEFuncGElementImpl extends _SVGComponentTransferFunctionElementImpl im
plements SVGFEFuncGElement native "*SVGFEFuncGElement" { |
10288 } | 10236 } |
10289 | 10237 |
10290 class _SVGFEFuncRElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncRElement native "*SVGFEFuncRElement" { | 10238 class _SVGFEFuncRElementImpl extends _SVGComponentTransferFunctionElementImpl im
plements SVGFEFuncRElement native "*SVGFEFuncRElement" { |
10291 } | 10239 } |
10292 | 10240 |
10293 class _SVGFEGaussianBlurElementJs extends _SVGElementJs implements SVGFEGaussian
BlurElement native "*SVGFEGaussianBlurElement" { | 10241 class _SVGFEGaussianBlurElementImpl extends _SVGElementImpl implements SVGFEGaus
sianBlurElement native "*SVGFEGaussianBlurElement" { |
10294 | 10242 |
10295 final _SVGAnimatedStringJs in1; | 10243 final _SVGAnimatedStringImpl in1; |
10296 | 10244 |
10297 final _SVGAnimatedNumberJs stdDeviationX; | 10245 final _SVGAnimatedNumberImpl stdDeviationX; |
10298 | 10246 |
10299 final _SVGAnimatedNumberJs stdDeviationY; | 10247 final _SVGAnimatedNumberImpl stdDeviationY; |
10300 | 10248 |
10301 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; | 10249 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; |
10302 | 10250 |
10303 // From SVGFilterPrimitiveStandardAttributes | 10251 // From SVGFilterPrimitiveStandardAttributes |
10304 | 10252 |
10305 final _SVGAnimatedLengthJs height; | 10253 final _SVGAnimatedLengthImpl height; |
10306 | 10254 |
10307 final _SVGAnimatedStringJs result; | 10255 final _SVGAnimatedStringImpl result; |
10308 | 10256 |
10309 final _SVGAnimatedLengthJs width; | 10257 final _SVGAnimatedLengthImpl width; |
10310 | 10258 |
10311 final _SVGAnimatedLengthJs x; | 10259 final _SVGAnimatedLengthImpl x; |
10312 | 10260 |
10313 final _SVGAnimatedLengthJs y; | 10261 final _SVGAnimatedLengthImpl y; |
10314 | 10262 |
10315 // From SVGStylable | 10263 // From SVGStylable |
10316 | 10264 |
10317 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10265 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10318 | 10266 |
10319 // Use implementation from Element. | 10267 // Use implementation from Element. |
10320 // final _CSSStyleDeclarationJs style; | 10268 // final _CSSStyleDeclarationImpl style; |
10321 | 10269 |
10322 _CSSValueJs getPresentationAttribute(String name) native; | 10270 _CSSValueImpl getPresentationAttribute(String name) native; |
10323 } | 10271 } |
10324 | 10272 |
10325 class _SVGFEImageElementJs extends _SVGElementJs implements SVGFEImageElement na
tive "*SVGFEImageElement" { | 10273 class _SVGFEImageElementImpl extends _SVGElementImpl implements SVGFEImageElemen
t native "*SVGFEImageElement" { |
10326 | 10274 |
10327 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 10275 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
10328 | 10276 |
10329 // From SVGURIReference | 10277 // From SVGURIReference |
10330 | 10278 |
10331 final _SVGAnimatedStringJs href; | 10279 final _SVGAnimatedStringImpl href; |
10332 | 10280 |
10333 // From SVGLangSpace | 10281 // From SVGLangSpace |
10334 | 10282 |
10335 String xmllang; | 10283 String xmllang; |
10336 | 10284 |
10337 String xmlspace; | 10285 String xmlspace; |
10338 | 10286 |
10339 // From SVGExternalResourcesRequired | 10287 // From SVGExternalResourcesRequired |
10340 | 10288 |
10341 final _SVGAnimatedBooleanJs externalResourcesRequired; | 10289 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
10342 | 10290 |
10343 // From SVGFilterPrimitiveStandardAttributes | 10291 // From SVGFilterPrimitiveStandardAttributes |
10344 | 10292 |
10345 final _SVGAnimatedLengthJs height; | 10293 final _SVGAnimatedLengthImpl height; |
10346 | 10294 |
10347 final _SVGAnimatedStringJs result; | 10295 final _SVGAnimatedStringImpl result; |
10348 | 10296 |
10349 final _SVGAnimatedLengthJs width; | 10297 final _SVGAnimatedLengthImpl width; |
10350 | 10298 |
10351 final _SVGAnimatedLengthJs x; | 10299 final _SVGAnimatedLengthImpl x; |
10352 | 10300 |
10353 final _SVGAnimatedLengthJs y; | 10301 final _SVGAnimatedLengthImpl y; |
10354 | 10302 |
10355 // From SVGStylable | 10303 // From SVGStylable |
10356 | 10304 |
10357 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10305 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10358 | 10306 |
10359 // Use implementation from Element. | 10307 // Use implementation from Element. |
10360 // final _CSSStyleDeclarationJs style; | 10308 // final _CSSStyleDeclarationImpl style; |
10361 | 10309 |
10362 _CSSValueJs getPresentationAttribute(String name) native; | 10310 _CSSValueImpl getPresentationAttribute(String name) native; |
10363 } | 10311 } |
10364 | 10312 |
10365 class _SVGFEMergeElementJs extends _SVGElementJs implements SVGFEMergeElement na
tive "*SVGFEMergeElement" { | 10313 class _SVGFEMergeElementImpl extends _SVGElementImpl implements SVGFEMergeElemen
t native "*SVGFEMergeElement" { |
10366 | 10314 |
10367 // From SVGFilterPrimitiveStandardAttributes | 10315 // From SVGFilterPrimitiveStandardAttributes |
10368 | 10316 |
10369 final _SVGAnimatedLengthJs height; | 10317 final _SVGAnimatedLengthImpl height; |
10370 | 10318 |
10371 final _SVGAnimatedStringJs result; | 10319 final _SVGAnimatedStringImpl result; |
10372 | 10320 |
10373 final _SVGAnimatedLengthJs width; | 10321 final _SVGAnimatedLengthImpl width; |
10374 | 10322 |
10375 final _SVGAnimatedLengthJs x; | 10323 final _SVGAnimatedLengthImpl x; |
10376 | 10324 |
10377 final _SVGAnimatedLengthJs y; | 10325 final _SVGAnimatedLengthImpl y; |
10378 | 10326 |
10379 // From SVGStylable | 10327 // From SVGStylable |
10380 | 10328 |
10381 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10329 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10382 | 10330 |
10383 // Use implementation from Element. | 10331 // Use implementation from Element. |
10384 // final _CSSStyleDeclarationJs style; | 10332 // final _CSSStyleDeclarationImpl style; |
10385 | 10333 |
10386 _CSSValueJs getPresentationAttribute(String name) native; | 10334 _CSSValueImpl getPresentationAttribute(String name) native; |
10387 } | 10335 } |
10388 | 10336 |
10389 class _SVGFEMergeNodeElementJs extends _SVGElementJs implements SVGFEMergeNodeEl
ement native "*SVGFEMergeNodeElement" { | 10337 class _SVGFEMergeNodeElementImpl extends _SVGElementImpl implements SVGFEMergeNo
deElement native "*SVGFEMergeNodeElement" { |
10390 | 10338 |
10391 final _SVGAnimatedStringJs in1; | 10339 final _SVGAnimatedStringImpl in1; |
10392 } | 10340 } |
10393 | 10341 |
10394 class _SVGFEMorphologyElementJs extends _SVGElementJs implements SVGFEMorphology
Element native "*SVGFEMorphologyElement" { | 10342 class _SVGFEMorphologyElementImpl extends _SVGElementImpl implements SVGFEMorpho
logyElement native "*SVGFEMorphologyElement" { |
10395 | 10343 |
10396 static final int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; | 10344 static final int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; |
10397 | 10345 |
10398 static final int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; | 10346 static final int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; |
10399 | 10347 |
10400 static final int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; | 10348 static final int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; |
10401 | 10349 |
10402 final _SVGAnimatedStringJs in1; | 10350 final _SVGAnimatedStringImpl in1; |
10403 | 10351 |
10404 final _SVGAnimatedEnumerationJs operator; | 10352 final _SVGAnimatedEnumerationImpl operator; |
10405 | 10353 |
10406 final _SVGAnimatedNumberJs radiusX; | 10354 final _SVGAnimatedNumberImpl radiusX; |
10407 | 10355 |
10408 final _SVGAnimatedNumberJs radiusY; | 10356 final _SVGAnimatedNumberImpl radiusY; |
10409 | 10357 |
10410 void setRadius(num radiusX, num radiusY) native; | 10358 void setRadius(num radiusX, num radiusY) native; |
10411 | 10359 |
10412 // From SVGFilterPrimitiveStandardAttributes | 10360 // From SVGFilterPrimitiveStandardAttributes |
10413 | 10361 |
10414 final _SVGAnimatedLengthJs height; | 10362 final _SVGAnimatedLengthImpl height; |
10415 | 10363 |
10416 final _SVGAnimatedStringJs result; | 10364 final _SVGAnimatedStringImpl result; |
10417 | 10365 |
10418 final _SVGAnimatedLengthJs width; | 10366 final _SVGAnimatedLengthImpl width; |
10419 | 10367 |
10420 final _SVGAnimatedLengthJs x; | 10368 final _SVGAnimatedLengthImpl x; |
10421 | 10369 |
10422 final _SVGAnimatedLengthJs y; | 10370 final _SVGAnimatedLengthImpl y; |
10423 | 10371 |
10424 // From SVGStylable | 10372 // From SVGStylable |
10425 | 10373 |
10426 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10374 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10427 | 10375 |
10428 // Use implementation from Element. | 10376 // Use implementation from Element. |
10429 // final _CSSStyleDeclarationJs style; | 10377 // final _CSSStyleDeclarationImpl style; |
10430 | 10378 |
10431 _CSSValueJs getPresentationAttribute(String name) native; | 10379 _CSSValueImpl getPresentationAttribute(String name) native; |
10432 } | 10380 } |
10433 | 10381 |
10434 class _SVGFEOffsetElementJs extends _SVGElementJs implements SVGFEOffsetElement
native "*SVGFEOffsetElement" { | 10382 class _SVGFEOffsetElementImpl extends _SVGElementImpl implements SVGFEOffsetElem
ent native "*SVGFEOffsetElement" { |
10435 | 10383 |
10436 final _SVGAnimatedNumberJs dx; | 10384 final _SVGAnimatedNumberImpl dx; |
10437 | 10385 |
10438 final _SVGAnimatedNumberJs dy; | 10386 final _SVGAnimatedNumberImpl dy; |
10439 | 10387 |
10440 final _SVGAnimatedStringJs in1; | 10388 final _SVGAnimatedStringImpl in1; |
10441 | 10389 |
10442 // From SVGFilterPrimitiveStandardAttributes | 10390 // From SVGFilterPrimitiveStandardAttributes |
10443 | 10391 |
10444 final _SVGAnimatedLengthJs height; | 10392 final _SVGAnimatedLengthImpl height; |
10445 | 10393 |
10446 final _SVGAnimatedStringJs result; | 10394 final _SVGAnimatedStringImpl result; |
10447 | 10395 |
10448 final _SVGAnimatedLengthJs width; | 10396 final _SVGAnimatedLengthImpl width; |
10449 | 10397 |
10450 final _SVGAnimatedLengthJs x; | 10398 final _SVGAnimatedLengthImpl x; |
10451 | 10399 |
10452 final _SVGAnimatedLengthJs y; | 10400 final _SVGAnimatedLengthImpl y; |
10453 | 10401 |
10454 // From SVGStylable | 10402 // From SVGStylable |
10455 | 10403 |
10456 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10404 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10457 | 10405 |
10458 // Use implementation from Element. | 10406 // Use implementation from Element. |
10459 // final _CSSStyleDeclarationJs style; | 10407 // final _CSSStyleDeclarationImpl style; |
10460 | 10408 |
10461 _CSSValueJs getPresentationAttribute(String name) native; | 10409 _CSSValueImpl getPresentationAttribute(String name) native; |
10462 } | 10410 } |
10463 | 10411 |
10464 class _SVGFEPointLightElementJs extends _SVGElementJs implements SVGFEPointLight
Element native "*SVGFEPointLightElement" { | 10412 class _SVGFEPointLightElementImpl extends _SVGElementImpl implements SVGFEPointL
ightElement native "*SVGFEPointLightElement" { |
10465 | 10413 |
10466 final _SVGAnimatedNumberJs x; | 10414 final _SVGAnimatedNumberImpl x; |
10467 | 10415 |
10468 final _SVGAnimatedNumberJs y; | 10416 final _SVGAnimatedNumberImpl y; |
10469 | 10417 |
10470 final _SVGAnimatedNumberJs z; | 10418 final _SVGAnimatedNumberImpl z; |
10471 } | 10419 } |
10472 | 10420 |
10473 class _SVGFESpecularLightingElementJs extends _SVGElementJs implements SVGFESpec
ularLightingElement native "*SVGFESpecularLightingElement" { | 10421 class _SVGFESpecularLightingElementImpl extends _SVGElementImpl implements SVGFE
SpecularLightingElement native "*SVGFESpecularLightingElement" { |
10474 | 10422 |
10475 final _SVGAnimatedStringJs in1; | 10423 final _SVGAnimatedStringImpl in1; |
10476 | 10424 |
10477 final _SVGAnimatedNumberJs specularConstant; | 10425 final _SVGAnimatedNumberImpl specularConstant; |
10478 | 10426 |
10479 final _SVGAnimatedNumberJs specularExponent; | 10427 final _SVGAnimatedNumberImpl specularExponent; |
10480 | 10428 |
10481 final _SVGAnimatedNumberJs surfaceScale; | 10429 final _SVGAnimatedNumberImpl surfaceScale; |
10482 | 10430 |
10483 // From SVGFilterPrimitiveStandardAttributes | 10431 // From SVGFilterPrimitiveStandardAttributes |
10484 | 10432 |
10485 final _SVGAnimatedLengthJs height; | 10433 final _SVGAnimatedLengthImpl height; |
10486 | 10434 |
10487 final _SVGAnimatedStringJs result; | 10435 final _SVGAnimatedStringImpl result; |
10488 | 10436 |
10489 final _SVGAnimatedLengthJs width; | 10437 final _SVGAnimatedLengthImpl width; |
10490 | 10438 |
10491 final _SVGAnimatedLengthJs x; | 10439 final _SVGAnimatedLengthImpl x; |
10492 | 10440 |
10493 final _SVGAnimatedLengthJs y; | 10441 final _SVGAnimatedLengthImpl y; |
10494 | 10442 |
10495 // From SVGStylable | 10443 // From SVGStylable |
10496 | 10444 |
10497 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10445 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10498 | 10446 |
10499 // Use implementation from Element. | 10447 // Use implementation from Element. |
10500 // final _CSSStyleDeclarationJs style; | 10448 // final _CSSStyleDeclarationImpl style; |
10501 | 10449 |
10502 _CSSValueJs getPresentationAttribute(String name) native; | 10450 _CSSValueImpl getPresentationAttribute(String name) native; |
10503 } | 10451 } |
10504 | 10452 |
10505 class _SVGFESpotLightElementJs extends _SVGElementJs implements SVGFESpotLightEl
ement native "*SVGFESpotLightElement" { | 10453 class _SVGFESpotLightElementImpl extends _SVGElementImpl implements SVGFESpotLig
htElement native "*SVGFESpotLightElement" { |
10506 | 10454 |
10507 final _SVGAnimatedNumberJs limitingConeAngle; | 10455 final _SVGAnimatedNumberImpl limitingConeAngle; |
10508 | 10456 |
10509 final _SVGAnimatedNumberJs pointsAtX; | 10457 final _SVGAnimatedNumberImpl pointsAtX; |
10510 | 10458 |
10511 final _SVGAnimatedNumberJs pointsAtY; | 10459 final _SVGAnimatedNumberImpl pointsAtY; |
10512 | 10460 |
10513 final _SVGAnimatedNumberJs pointsAtZ; | 10461 final _SVGAnimatedNumberImpl pointsAtZ; |
10514 | 10462 |
10515 final _SVGAnimatedNumberJs specularExponent; | 10463 final _SVGAnimatedNumberImpl specularExponent; |
10516 | 10464 |
10517 final _SVGAnimatedNumberJs x; | 10465 final _SVGAnimatedNumberImpl x; |
10518 | 10466 |
10519 final _SVGAnimatedNumberJs y; | 10467 final _SVGAnimatedNumberImpl y; |
10520 | 10468 |
10521 final _SVGAnimatedNumberJs z; | 10469 final _SVGAnimatedNumberImpl z; |
10522 } | 10470 } |
10523 | 10471 |
10524 class _SVGFETileElementJs extends _SVGElementJs implements SVGFETileElement nati
ve "*SVGFETileElement" { | 10472 class _SVGFETileElementImpl extends _SVGElementImpl implements SVGFETileElement
native "*SVGFETileElement" { |
10525 | 10473 |
10526 final _SVGAnimatedStringJs in1; | 10474 final _SVGAnimatedStringImpl in1; |
10527 | 10475 |
10528 // From SVGFilterPrimitiveStandardAttributes | 10476 // From SVGFilterPrimitiveStandardAttributes |
10529 | 10477 |
10530 final _SVGAnimatedLengthJs height; | 10478 final _SVGAnimatedLengthImpl height; |
10531 | 10479 |
10532 final _SVGAnimatedStringJs result; | 10480 final _SVGAnimatedStringImpl result; |
10533 | 10481 |
10534 final _SVGAnimatedLengthJs width; | 10482 final _SVGAnimatedLengthImpl width; |
10535 | 10483 |
10536 final _SVGAnimatedLengthJs x; | 10484 final _SVGAnimatedLengthImpl x; |
10537 | 10485 |
10538 final _SVGAnimatedLengthJs y; | 10486 final _SVGAnimatedLengthImpl y; |
10539 | 10487 |
10540 // From SVGStylable | 10488 // From SVGStylable |
10541 | 10489 |
10542 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10490 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10543 | 10491 |
10544 // Use implementation from Element. | 10492 // Use implementation from Element. |
10545 // final _CSSStyleDeclarationJs style; | 10493 // final _CSSStyleDeclarationImpl style; |
10546 | 10494 |
10547 _CSSValueJs getPresentationAttribute(String name) native; | 10495 _CSSValueImpl getPresentationAttribute(String name) native; |
10548 } | 10496 } |
10549 | 10497 |
10550 class _SVGFETurbulenceElementJs extends _SVGElementJs implements SVGFETurbulence
Element native "*SVGFETurbulenceElement" { | 10498 class _SVGFETurbulenceElementImpl extends _SVGElementImpl implements SVGFETurbul
enceElement native "*SVGFETurbulenceElement" { |
10551 | 10499 |
10552 static final int SVG_STITCHTYPE_NOSTITCH = 2; | 10500 static final int SVG_STITCHTYPE_NOSTITCH = 2; |
10553 | 10501 |
10554 static final int SVG_STITCHTYPE_STITCH = 1; | 10502 static final int SVG_STITCHTYPE_STITCH = 1; |
10555 | 10503 |
10556 static final int SVG_STITCHTYPE_UNKNOWN = 0; | 10504 static final int SVG_STITCHTYPE_UNKNOWN = 0; |
10557 | 10505 |
10558 static final int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; | 10506 static final int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; |
10559 | 10507 |
10560 static final int SVG_TURBULENCE_TYPE_TURBULENCE = 2; | 10508 static final int SVG_TURBULENCE_TYPE_TURBULENCE = 2; |
10561 | 10509 |
10562 static final int SVG_TURBULENCE_TYPE_UNKNOWN = 0; | 10510 static final int SVG_TURBULENCE_TYPE_UNKNOWN = 0; |
10563 | 10511 |
10564 final _SVGAnimatedNumberJs baseFrequencyX; | 10512 final _SVGAnimatedNumberImpl baseFrequencyX; |
10565 | 10513 |
10566 final _SVGAnimatedNumberJs baseFrequencyY; | 10514 final _SVGAnimatedNumberImpl baseFrequencyY; |
10567 | 10515 |
10568 final _SVGAnimatedIntegerJs numOctaves; | 10516 final _SVGAnimatedIntegerImpl numOctaves; |
10569 | 10517 |
10570 final _SVGAnimatedNumberJs seed; | 10518 final _SVGAnimatedNumberImpl seed; |
10571 | 10519 |
10572 final _SVGAnimatedEnumerationJs stitchTiles; | 10520 final _SVGAnimatedEnumerationImpl stitchTiles; |
10573 | 10521 |
10574 final _SVGAnimatedEnumerationJs type; | 10522 final _SVGAnimatedEnumerationImpl type; |
10575 | 10523 |
10576 // From SVGFilterPrimitiveStandardAttributes | 10524 // From SVGFilterPrimitiveStandardAttributes |
10577 | 10525 |
10578 final _SVGAnimatedLengthJs height; | 10526 final _SVGAnimatedLengthImpl height; |
10579 | 10527 |
10580 final _SVGAnimatedStringJs result; | 10528 final _SVGAnimatedStringImpl result; |
10581 | 10529 |
10582 final _SVGAnimatedLengthJs width; | 10530 final _SVGAnimatedLengthImpl width; |
10583 | 10531 |
10584 final _SVGAnimatedLengthJs x; | 10532 final _SVGAnimatedLengthImpl x; |
10585 | 10533 |
10586 final _SVGAnimatedLengthJs y; | 10534 final _SVGAnimatedLengthImpl y; |
10587 | 10535 |
10588 // From SVGStylable | 10536 // From SVGStylable |
10589 | 10537 |
10590 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10538 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10591 | 10539 |
10592 // Use implementation from Element. | 10540 // Use implementation from Element. |
10593 // final _CSSStyleDeclarationJs style; | 10541 // final _CSSStyleDeclarationImpl style; |
10594 | 10542 |
10595 _CSSValueJs getPresentationAttribute(String name) native; | 10543 _CSSValueImpl getPresentationAttribute(String name) native; |
10596 } | 10544 } |
10597 | 10545 |
10598 class _SVGFilterElementJs extends _SVGElementJs implements SVGFilterElement nati
ve "*SVGFilterElement" { | 10546 class _SVGFilterElementImpl extends _SVGElementImpl implements SVGFilterElement
native "*SVGFilterElement" { |
10599 | 10547 |
10600 final _SVGAnimatedIntegerJs filterResX; | 10548 final _SVGAnimatedIntegerImpl filterResX; |
10601 | 10549 |
10602 final _SVGAnimatedIntegerJs filterResY; | 10550 final _SVGAnimatedIntegerImpl filterResY; |
10603 | 10551 |
10604 final _SVGAnimatedEnumerationJs filterUnits; | 10552 final _SVGAnimatedEnumerationImpl filterUnits; |
10605 | 10553 |
10606 final _SVGAnimatedLengthJs height; | 10554 final _SVGAnimatedLengthImpl height; |
10607 | 10555 |
10608 final _SVGAnimatedEnumerationJs primitiveUnits; | 10556 final _SVGAnimatedEnumerationImpl primitiveUnits; |
10609 | 10557 |
10610 final _SVGAnimatedLengthJs width; | 10558 final _SVGAnimatedLengthImpl width; |
10611 | 10559 |
10612 final _SVGAnimatedLengthJs x; | 10560 final _SVGAnimatedLengthImpl x; |
10613 | 10561 |
10614 final _SVGAnimatedLengthJs y; | 10562 final _SVGAnimatedLengthImpl y; |
10615 | 10563 |
10616 void setFilterRes(int filterResX, int filterResY) native; | 10564 void setFilterRes(int filterResX, int filterResY) native; |
10617 | 10565 |
10618 // From SVGURIReference | 10566 // From SVGURIReference |
10619 | 10567 |
10620 final _SVGAnimatedStringJs href; | 10568 final _SVGAnimatedStringImpl href; |
10621 | 10569 |
10622 // From SVGLangSpace | 10570 // From SVGLangSpace |
10623 | 10571 |
10624 String xmllang; | 10572 String xmllang; |
10625 | 10573 |
10626 String xmlspace; | 10574 String xmlspace; |
10627 | 10575 |
10628 // From SVGExternalResourcesRequired | 10576 // From SVGExternalResourcesRequired |
10629 | 10577 |
10630 final _SVGAnimatedBooleanJs externalResourcesRequired; | 10578 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
10631 | 10579 |
10632 // From SVGStylable | 10580 // From SVGStylable |
10633 | 10581 |
10634 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10582 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10635 | 10583 |
10636 // Use implementation from Element. | 10584 // Use implementation from Element. |
10637 // final _CSSStyleDeclarationJs style; | 10585 // final _CSSStyleDeclarationImpl style; |
10638 | 10586 |
10639 _CSSValueJs getPresentationAttribute(String name) native; | 10587 _CSSValueImpl getPresentationAttribute(String name) native; |
10640 } | 10588 } |
10641 | 10589 |
10642 class _SVGFilterPrimitiveStandardAttributesJs extends _SVGStylableJs implements
SVGFilterPrimitiveStandardAttributes native "*SVGFilterPrimitiveStandardAttribut
es" { | 10590 class _SVGFilterPrimitiveStandardAttributesImpl extends _SVGStylableImpl impleme
nts SVGFilterPrimitiveStandardAttributes native "*SVGFilterPrimitiveStandardAttr
ibutes" { |
10643 | 10591 |
10644 final _SVGAnimatedLengthJs height; | 10592 final _SVGAnimatedLengthImpl height; |
10645 | 10593 |
10646 final _SVGAnimatedStringJs result; | 10594 final _SVGAnimatedStringImpl result; |
10647 | 10595 |
10648 final _SVGAnimatedLengthJs width; | 10596 final _SVGAnimatedLengthImpl width; |
10649 | 10597 |
10650 final _SVGAnimatedLengthJs x; | 10598 final _SVGAnimatedLengthImpl x; |
10651 | 10599 |
10652 final _SVGAnimatedLengthJs y; | 10600 final _SVGAnimatedLengthImpl y; |
10653 } | 10601 } |
10654 | 10602 |
10655 class _SVGFitToViewBoxJs implements SVGFitToViewBox native "*SVGFitToViewBox" { | 10603 class _SVGFitToViewBoxImpl implements SVGFitToViewBox native "*SVGFitToViewBox"
{ |
10656 | 10604 |
10657 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 10605 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
10658 | 10606 |
10659 final _SVGAnimatedRectJs viewBox; | 10607 final _SVGAnimatedRectImpl viewBox; |
10660 } | 10608 } |
10661 | 10609 |
10662 class _SVGFontElementJs extends _SVGElementJs implements SVGFontElement native "
*SVGFontElement" { | 10610 class _SVGFontElementImpl extends _SVGElementImpl implements SVGFontElement nati
ve "*SVGFontElement" { |
10663 } | 10611 } |
10664 | 10612 |
10665 class _SVGFontFaceElementJs extends _SVGElementJs implements SVGFontFaceElement
native "*SVGFontFaceElement" { | 10613 class _SVGFontFaceElementImpl extends _SVGElementImpl implements SVGFontFaceElem
ent native "*SVGFontFaceElement" { |
10666 } | 10614 } |
10667 | 10615 |
10668 class _SVGFontFaceFormatElementJs extends _SVGElementJs implements SVGFontFaceFo
rmatElement native "*SVGFontFaceFormatElement" { | 10616 class _SVGFontFaceFormatElementImpl extends _SVGElementImpl implements SVGFontFa
ceFormatElement native "*SVGFontFaceFormatElement" { |
10669 } | 10617 } |
10670 | 10618 |
10671 class _SVGFontFaceNameElementJs extends _SVGElementJs implements SVGFontFaceName
Element native "*SVGFontFaceNameElement" { | 10619 class _SVGFontFaceNameElementImpl extends _SVGElementImpl implements SVGFontFace
NameElement native "*SVGFontFaceNameElement" { |
10672 } | 10620 } |
10673 | 10621 |
10674 class _SVGFontFaceSrcElementJs extends _SVGElementJs implements SVGFontFaceSrcEl
ement native "*SVGFontFaceSrcElement" { | 10622 class _SVGFontFaceSrcElementImpl extends _SVGElementImpl implements SVGFontFaceS
rcElement native "*SVGFontFaceSrcElement" { |
10675 } | 10623 } |
10676 | 10624 |
10677 class _SVGFontFaceUriElementJs extends _SVGElementJs implements SVGFontFaceUriEl
ement native "*SVGFontFaceUriElement" { | 10625 class _SVGFontFaceUriElementImpl extends _SVGElementImpl implements SVGFontFaceU
riElement native "*SVGFontFaceUriElement" { |
10678 } | 10626 } |
10679 | 10627 |
10680 class _SVGForeignObjectElementJs extends _SVGElementJs implements SVGForeignObje
ctElement native "*SVGForeignObjectElement" { | 10628 class _SVGForeignObjectElementImpl extends _SVGElementImpl implements SVGForeign
ObjectElement native "*SVGForeignObjectElement" { |
10681 | 10629 |
10682 final _SVGAnimatedLengthJs height; | 10630 final _SVGAnimatedLengthImpl height; |
10683 | 10631 |
10684 final _SVGAnimatedLengthJs width; | 10632 final _SVGAnimatedLengthImpl width; |
10685 | 10633 |
10686 final _SVGAnimatedLengthJs x; | 10634 final _SVGAnimatedLengthImpl x; |
10687 | 10635 |
10688 final _SVGAnimatedLengthJs y; | 10636 final _SVGAnimatedLengthImpl y; |
10689 | 10637 |
10690 // From SVGTests | 10638 // From SVGTests |
10691 | 10639 |
10692 final _SVGStringListJs requiredExtensions; | 10640 final _SVGStringListImpl requiredExtensions; |
10693 | 10641 |
10694 final _SVGStringListJs requiredFeatures; | 10642 final _SVGStringListImpl requiredFeatures; |
10695 | 10643 |
10696 final _SVGStringListJs systemLanguage; | 10644 final _SVGStringListImpl systemLanguage; |
10697 | 10645 |
10698 bool hasExtension(String extension) native; | 10646 bool hasExtension(String extension) native; |
10699 | 10647 |
10700 // From SVGLangSpace | 10648 // From SVGLangSpace |
10701 | 10649 |
10702 String xmllang; | 10650 String xmllang; |
10703 | 10651 |
10704 String xmlspace; | 10652 String xmlspace; |
10705 | 10653 |
10706 // From SVGExternalResourcesRequired | 10654 // From SVGExternalResourcesRequired |
10707 | 10655 |
10708 final _SVGAnimatedBooleanJs externalResourcesRequired; | 10656 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
10709 | 10657 |
10710 // From SVGStylable | 10658 // From SVGStylable |
10711 | 10659 |
10712 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10660 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10713 | 10661 |
10714 // Use implementation from Element. | 10662 // Use implementation from Element. |
10715 // final _CSSStyleDeclarationJs style; | 10663 // final _CSSStyleDeclarationImpl style; |
10716 | 10664 |
10717 _CSSValueJs getPresentationAttribute(String name) native; | 10665 _CSSValueImpl getPresentationAttribute(String name) native; |
10718 | 10666 |
10719 // From SVGTransformable | 10667 // From SVGTransformable |
10720 | 10668 |
10721 final _SVGAnimatedTransformListJs transform; | 10669 final _SVGAnimatedTransformListImpl transform; |
10722 | 10670 |
10723 // From SVGLocatable | 10671 // From SVGLocatable |
10724 | 10672 |
10725 final _SVGElementJs farthestViewportElement; | 10673 final _SVGElementImpl farthestViewportElement; |
10726 | 10674 |
10727 final _SVGElementJs nearestViewportElement; | 10675 final _SVGElementImpl nearestViewportElement; |
10728 | 10676 |
10729 _SVGRectJs getBBox() native; | 10677 _SVGRectImpl getBBox() native; |
10730 | 10678 |
10731 _SVGMatrixJs getCTM() native; | 10679 _SVGMatrixImpl getCTM() native; |
10732 | 10680 |
10733 _SVGMatrixJs getScreenCTM() native; | 10681 _SVGMatrixImpl getScreenCTM() native; |
10734 | 10682 |
10735 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 10683 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
10736 } | 10684 } |
10737 | 10685 |
10738 class _SVGGElementJs extends _SVGElementJs implements SVGGElement native "*SVGGE
lement" { | 10686 class _SVGGElementImpl extends _SVGElementImpl implements SVGGElement native "*S
VGGElement" { |
10739 | 10687 |
10740 // From SVGTests | 10688 // From SVGTests |
10741 | 10689 |
10742 final _SVGStringListJs requiredExtensions; | 10690 final _SVGStringListImpl requiredExtensions; |
10743 | 10691 |
10744 final _SVGStringListJs requiredFeatures; | 10692 final _SVGStringListImpl requiredFeatures; |
10745 | 10693 |
10746 final _SVGStringListJs systemLanguage; | 10694 final _SVGStringListImpl systemLanguage; |
10747 | 10695 |
10748 bool hasExtension(String extension) native; | 10696 bool hasExtension(String extension) native; |
10749 | 10697 |
10750 // From SVGLangSpace | 10698 // From SVGLangSpace |
10751 | 10699 |
10752 String xmllang; | 10700 String xmllang; |
10753 | 10701 |
10754 String xmlspace; | 10702 String xmlspace; |
10755 | 10703 |
10756 // From SVGExternalResourcesRequired | 10704 // From SVGExternalResourcesRequired |
10757 | 10705 |
10758 final _SVGAnimatedBooleanJs externalResourcesRequired; | 10706 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
10759 | 10707 |
10760 // From SVGStylable | 10708 // From SVGStylable |
10761 | 10709 |
10762 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10710 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10763 | 10711 |
10764 // Use implementation from Element. | 10712 // Use implementation from Element. |
10765 // final _CSSStyleDeclarationJs style; | 10713 // final _CSSStyleDeclarationImpl style; |
10766 | 10714 |
10767 _CSSValueJs getPresentationAttribute(String name) native; | 10715 _CSSValueImpl getPresentationAttribute(String name) native; |
10768 | 10716 |
10769 // From SVGTransformable | 10717 // From SVGTransformable |
10770 | 10718 |
10771 final _SVGAnimatedTransformListJs transform; | 10719 final _SVGAnimatedTransformListImpl transform; |
10772 | 10720 |
10773 // From SVGLocatable | 10721 // From SVGLocatable |
10774 | 10722 |
10775 final _SVGElementJs farthestViewportElement; | 10723 final _SVGElementImpl farthestViewportElement; |
10776 | 10724 |
10777 final _SVGElementJs nearestViewportElement; | 10725 final _SVGElementImpl nearestViewportElement; |
10778 | 10726 |
10779 _SVGRectJs getBBox() native; | 10727 _SVGRectImpl getBBox() native; |
10780 | 10728 |
10781 _SVGMatrixJs getCTM() native; | 10729 _SVGMatrixImpl getCTM() native; |
10782 | 10730 |
10783 _SVGMatrixJs getScreenCTM() native; | 10731 _SVGMatrixImpl getScreenCTM() native; |
10784 | 10732 |
10785 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 10733 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
10786 } | 10734 } |
10787 | 10735 |
10788 class _SVGGlyphElementJs extends _SVGElementJs implements SVGGlyphElement native
"*SVGGlyphElement" { | 10736 class _SVGGlyphElementImpl extends _SVGElementImpl implements SVGGlyphElement na
tive "*SVGGlyphElement" { |
10789 } | 10737 } |
10790 | 10738 |
10791 class _SVGGlyphRefElementJs extends _SVGElementJs implements SVGGlyphRefElement
native "*SVGGlyphRefElement" { | 10739 class _SVGGlyphRefElementImpl extends _SVGElementImpl implements SVGGlyphRefElem
ent native "*SVGGlyphRefElement" { |
10792 | 10740 |
10793 num dx; | 10741 num dx; |
10794 | 10742 |
10795 num dy; | 10743 num dy; |
10796 | 10744 |
10797 String format; | 10745 String format; |
10798 | 10746 |
10799 String glyphRef; | 10747 String glyphRef; |
10800 | 10748 |
10801 num x; | 10749 num x; |
10802 | 10750 |
10803 num y; | 10751 num y; |
10804 | 10752 |
10805 // From SVGURIReference | 10753 // From SVGURIReference |
10806 | 10754 |
10807 final _SVGAnimatedStringJs href; | 10755 final _SVGAnimatedStringImpl href; |
10808 | 10756 |
10809 // From SVGStylable | 10757 // From SVGStylable |
10810 | 10758 |
10811 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10759 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10812 | 10760 |
10813 // Use implementation from Element. | 10761 // Use implementation from Element. |
10814 // final _CSSStyleDeclarationJs style; | 10762 // final _CSSStyleDeclarationImpl style; |
10815 | 10763 |
10816 _CSSValueJs getPresentationAttribute(String name) native; | 10764 _CSSValueImpl getPresentationAttribute(String name) native; |
10817 } | 10765 } |
10818 | 10766 |
10819 class _SVGGradientElementJs extends _SVGElementJs implements SVGGradientElement
native "*SVGGradientElement" { | 10767 class _SVGGradientElementImpl extends _SVGElementImpl implements SVGGradientElem
ent native "*SVGGradientElement" { |
10820 | 10768 |
10821 static final int SVG_SPREADMETHOD_PAD = 1; | 10769 static final int SVG_SPREADMETHOD_PAD = 1; |
10822 | 10770 |
10823 static final int SVG_SPREADMETHOD_REFLECT = 2; | 10771 static final int SVG_SPREADMETHOD_REFLECT = 2; |
10824 | 10772 |
10825 static final int SVG_SPREADMETHOD_REPEAT = 3; | 10773 static final int SVG_SPREADMETHOD_REPEAT = 3; |
10826 | 10774 |
10827 static final int SVG_SPREADMETHOD_UNKNOWN = 0; | 10775 static final int SVG_SPREADMETHOD_UNKNOWN = 0; |
10828 | 10776 |
10829 final _SVGAnimatedTransformListJs gradientTransform; | 10777 final _SVGAnimatedTransformListImpl gradientTransform; |
10830 | 10778 |
10831 final _SVGAnimatedEnumerationJs gradientUnits; | 10779 final _SVGAnimatedEnumerationImpl gradientUnits; |
10832 | 10780 |
10833 final _SVGAnimatedEnumerationJs spreadMethod; | 10781 final _SVGAnimatedEnumerationImpl spreadMethod; |
10834 | 10782 |
10835 // From SVGURIReference | 10783 // From SVGURIReference |
10836 | 10784 |
10837 final _SVGAnimatedStringJs href; | 10785 final _SVGAnimatedStringImpl href; |
10838 | 10786 |
10839 // From SVGExternalResourcesRequired | 10787 // From SVGExternalResourcesRequired |
10840 | 10788 |
10841 final _SVGAnimatedBooleanJs externalResourcesRequired; | 10789 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
10842 | 10790 |
10843 // From SVGStylable | 10791 // From SVGStylable |
10844 | 10792 |
10845 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10793 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10846 | 10794 |
10847 // Use implementation from Element. | 10795 // Use implementation from Element. |
10848 // final _CSSStyleDeclarationJs style; | 10796 // final _CSSStyleDeclarationImpl style; |
10849 | 10797 |
10850 _CSSValueJs getPresentationAttribute(String name) native; | 10798 _CSSValueImpl getPresentationAttribute(String name) native; |
10851 } | 10799 } |
10852 | 10800 |
10853 class _SVGHKernElementJs extends _SVGElementJs implements SVGHKernElement native
"*SVGHKernElement" { | 10801 class _SVGHKernElementImpl extends _SVGElementImpl implements SVGHKernElement na
tive "*SVGHKernElement" { |
10854 } | 10802 } |
10855 | 10803 |
10856 class _SVGImageElementJs extends _SVGElementJs implements SVGImageElement native
"*SVGImageElement" { | 10804 class _SVGImageElementImpl extends _SVGElementImpl implements SVGImageElement na
tive "*SVGImageElement" { |
10857 | 10805 |
10858 final _SVGAnimatedLengthJs height; | 10806 final _SVGAnimatedLengthImpl height; |
10859 | 10807 |
10860 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 10808 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
10861 | 10809 |
10862 final _SVGAnimatedLengthJs width; | 10810 final _SVGAnimatedLengthImpl width; |
10863 | 10811 |
10864 final _SVGAnimatedLengthJs x; | 10812 final _SVGAnimatedLengthImpl x; |
10865 | 10813 |
10866 final _SVGAnimatedLengthJs y; | 10814 final _SVGAnimatedLengthImpl y; |
10867 | 10815 |
10868 // From SVGURIReference | 10816 // From SVGURIReference |
10869 | 10817 |
10870 final _SVGAnimatedStringJs href; | 10818 final _SVGAnimatedStringImpl href; |
10871 | 10819 |
10872 // From SVGTests | 10820 // From SVGTests |
10873 | 10821 |
10874 final _SVGStringListJs requiredExtensions; | 10822 final _SVGStringListImpl requiredExtensions; |
10875 | 10823 |
10876 final _SVGStringListJs requiredFeatures; | 10824 final _SVGStringListImpl requiredFeatures; |
10877 | 10825 |
10878 final _SVGStringListJs systemLanguage; | 10826 final _SVGStringListImpl systemLanguage; |
10879 | 10827 |
10880 bool hasExtension(String extension) native; | 10828 bool hasExtension(String extension) native; |
10881 | 10829 |
10882 // From SVGLangSpace | 10830 // From SVGLangSpace |
10883 | 10831 |
10884 String xmllang; | 10832 String xmllang; |
10885 | 10833 |
10886 String xmlspace; | 10834 String xmlspace; |
10887 | 10835 |
10888 // From SVGExternalResourcesRequired | 10836 // From SVGExternalResourcesRequired |
10889 | 10837 |
10890 final _SVGAnimatedBooleanJs externalResourcesRequired; | 10838 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
10891 | 10839 |
10892 // From SVGStylable | 10840 // From SVGStylable |
10893 | 10841 |
10894 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10842 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
10895 | 10843 |
10896 // Use implementation from Element. | 10844 // Use implementation from Element. |
10897 // final _CSSStyleDeclarationJs style; | 10845 // final _CSSStyleDeclarationImpl style; |
10898 | 10846 |
10899 _CSSValueJs getPresentationAttribute(String name) native; | 10847 _CSSValueImpl getPresentationAttribute(String name) native; |
10900 | 10848 |
10901 // From SVGTransformable | 10849 // From SVGTransformable |
10902 | 10850 |
10903 final _SVGAnimatedTransformListJs transform; | 10851 final _SVGAnimatedTransformListImpl transform; |
10904 | 10852 |
10905 // From SVGLocatable | 10853 // From SVGLocatable |
10906 | 10854 |
10907 final _SVGElementJs farthestViewportElement; | 10855 final _SVGElementImpl farthestViewportElement; |
10908 | 10856 |
10909 final _SVGElementJs nearestViewportElement; | 10857 final _SVGElementImpl nearestViewportElement; |
10910 | 10858 |
10911 _SVGRectJs getBBox() native; | 10859 _SVGRectImpl getBBox() native; |
10912 | 10860 |
10913 _SVGMatrixJs getCTM() native; | 10861 _SVGMatrixImpl getCTM() native; |
10914 | 10862 |
10915 _SVGMatrixJs getScreenCTM() native; | 10863 _SVGMatrixImpl getScreenCTM() native; |
10916 | 10864 |
10917 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 10865 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
10918 } | 10866 } |
10919 | 10867 |
10920 class _SVGLangSpaceJs implements SVGLangSpace native "*SVGLangSpace" { | 10868 class _SVGLangSpaceImpl implements SVGLangSpace native "*SVGLangSpace" { |
10921 | 10869 |
10922 String xmllang; | 10870 String xmllang; |
10923 | 10871 |
10924 String xmlspace; | 10872 String xmlspace; |
10925 } | 10873 } |
10926 | 10874 |
10927 class _SVGLengthJs implements SVGLength native "*SVGLength" { | 10875 class _SVGLengthImpl implements SVGLength native "*SVGLength" { |
10928 | 10876 |
10929 static final int SVG_LENGTHTYPE_CM = 6; | 10877 static final int SVG_LENGTHTYPE_CM = 6; |
10930 | 10878 |
10931 static final int SVG_LENGTHTYPE_EMS = 3; | 10879 static final int SVG_LENGTHTYPE_EMS = 3; |
10932 | 10880 |
10933 static final int SVG_LENGTHTYPE_EXS = 4; | 10881 static final int SVG_LENGTHTYPE_EXS = 4; |
10934 | 10882 |
10935 static final int SVG_LENGTHTYPE_IN = 8; | 10883 static final int SVG_LENGTHTYPE_IN = 8; |
10936 | 10884 |
10937 static final int SVG_LENGTHTYPE_MM = 7; | 10885 static final int SVG_LENGTHTYPE_MM = 7; |
(...skipping 16 matching lines...) Expand all Loading... |
10954 | 10902 |
10955 String valueAsString; | 10903 String valueAsString; |
10956 | 10904 |
10957 num valueInSpecifiedUnits; | 10905 num valueInSpecifiedUnits; |
10958 | 10906 |
10959 void convertToSpecifiedUnits(int unitType) native; | 10907 void convertToSpecifiedUnits(int unitType) native; |
10960 | 10908 |
10961 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | 10909 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; |
10962 } | 10910 } |
10963 | 10911 |
10964 class _SVGLengthListJs implements SVGLengthList native "*SVGLengthList" { | 10912 class _SVGLengthListImpl implements SVGLengthList native "*SVGLengthList" { |
10965 | 10913 |
10966 final int numberOfItems; | 10914 final int numberOfItems; |
10967 | 10915 |
10968 _SVGLengthJs appendItem(_SVGLengthJs item) native; | 10916 _SVGLengthImpl appendItem(_SVGLengthImpl item) native; |
10969 | 10917 |
10970 void clear() native; | 10918 void clear() native; |
10971 | 10919 |
10972 _SVGLengthJs getItem(int index) native; | 10920 _SVGLengthImpl getItem(int index) native; |
10973 | 10921 |
10974 _SVGLengthJs initialize(_SVGLengthJs item) native; | 10922 _SVGLengthImpl initialize(_SVGLengthImpl item) native; |
10975 | 10923 |
10976 _SVGLengthJs insertItemBefore(_SVGLengthJs item, int index) native; | 10924 _SVGLengthImpl insertItemBefore(_SVGLengthImpl item, int index) native; |
10977 | 10925 |
10978 _SVGLengthJs removeItem(int index) native; | 10926 _SVGLengthImpl removeItem(int index) native; |
10979 | 10927 |
10980 _SVGLengthJs replaceItem(_SVGLengthJs item, int index) native; | 10928 _SVGLengthImpl replaceItem(_SVGLengthImpl item, int index) native; |
10981 } | 10929 } |
10982 | 10930 |
10983 class _SVGLineElementJs extends _SVGElementJs implements SVGLineElement native "
*SVGLineElement" { | 10931 class _SVGLineElementImpl extends _SVGElementImpl implements SVGLineElement nati
ve "*SVGLineElement" { |
10984 | 10932 |
10985 final _SVGAnimatedLengthJs x1; | 10933 final _SVGAnimatedLengthImpl x1; |
10986 | 10934 |
10987 final _SVGAnimatedLengthJs x2; | 10935 final _SVGAnimatedLengthImpl x2; |
10988 | 10936 |
10989 final _SVGAnimatedLengthJs y1; | 10937 final _SVGAnimatedLengthImpl y1; |
10990 | 10938 |
10991 final _SVGAnimatedLengthJs y2; | 10939 final _SVGAnimatedLengthImpl y2; |
10992 | 10940 |
10993 // From SVGTests | 10941 // From SVGTests |
10994 | 10942 |
10995 final _SVGStringListJs requiredExtensions; | 10943 final _SVGStringListImpl requiredExtensions; |
10996 | 10944 |
10997 final _SVGStringListJs requiredFeatures; | 10945 final _SVGStringListImpl requiredFeatures; |
10998 | 10946 |
10999 final _SVGStringListJs systemLanguage; | 10947 final _SVGStringListImpl systemLanguage; |
11000 | 10948 |
11001 bool hasExtension(String extension) native; | 10949 bool hasExtension(String extension) native; |
11002 | 10950 |
11003 // From SVGLangSpace | 10951 // From SVGLangSpace |
11004 | 10952 |
11005 String xmllang; | 10953 String xmllang; |
11006 | 10954 |
11007 String xmlspace; | 10955 String xmlspace; |
11008 | 10956 |
11009 // From SVGExternalResourcesRequired | 10957 // From SVGExternalResourcesRequired |
11010 | 10958 |
11011 final _SVGAnimatedBooleanJs externalResourcesRequired; | 10959 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11012 | 10960 |
11013 // From SVGStylable | 10961 // From SVGStylable |
11014 | 10962 |
11015 _SVGAnimatedStringJs get _className() native "return this.className;"; | 10963 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
11016 | 10964 |
11017 // Use implementation from Element. | 10965 // Use implementation from Element. |
11018 // final _CSSStyleDeclarationJs style; | 10966 // final _CSSStyleDeclarationImpl style; |
11019 | 10967 |
11020 _CSSValueJs getPresentationAttribute(String name) native; | 10968 _CSSValueImpl getPresentationAttribute(String name) native; |
11021 | 10969 |
11022 // From SVGTransformable | 10970 // From SVGTransformable |
11023 | 10971 |
11024 final _SVGAnimatedTransformListJs transform; | 10972 final _SVGAnimatedTransformListImpl transform; |
11025 | 10973 |
11026 // From SVGLocatable | 10974 // From SVGLocatable |
11027 | 10975 |
11028 final _SVGElementJs farthestViewportElement; | 10976 final _SVGElementImpl farthestViewportElement; |
11029 | 10977 |
11030 final _SVGElementJs nearestViewportElement; | 10978 final _SVGElementImpl nearestViewportElement; |
11031 | 10979 |
11032 _SVGRectJs getBBox() native; | 10980 _SVGRectImpl getBBox() native; |
11033 | 10981 |
11034 _SVGMatrixJs getCTM() native; | 10982 _SVGMatrixImpl getCTM() native; |
11035 | 10983 |
11036 _SVGMatrixJs getScreenCTM() native; | 10984 _SVGMatrixImpl getScreenCTM() native; |
11037 | 10985 |
11038 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 10986 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
11039 } | 10987 } |
11040 | 10988 |
11041 class _SVGLinearGradientElementJs extends _SVGGradientElementJs implements SVGLi
nearGradientElement native "*SVGLinearGradientElement" { | 10989 class _SVGLinearGradientElementImpl extends _SVGGradientElementImpl implements S
VGLinearGradientElement native "*SVGLinearGradientElement" { |
11042 | 10990 |
11043 final _SVGAnimatedLengthJs x1; | 10991 final _SVGAnimatedLengthImpl x1; |
11044 | 10992 |
11045 final _SVGAnimatedLengthJs x2; | 10993 final _SVGAnimatedLengthImpl x2; |
11046 | 10994 |
11047 final _SVGAnimatedLengthJs y1; | 10995 final _SVGAnimatedLengthImpl y1; |
11048 | 10996 |
11049 final _SVGAnimatedLengthJs y2; | 10997 final _SVGAnimatedLengthImpl y2; |
11050 } | 10998 } |
11051 | 10999 |
11052 class _SVGLocatableJs implements SVGLocatable native "*SVGLocatable" { | 11000 class _SVGLocatableImpl implements SVGLocatable native "*SVGLocatable" { |
11053 | 11001 |
11054 final _SVGElementJs farthestViewportElement; | 11002 final _SVGElementImpl farthestViewportElement; |
11055 | 11003 |
11056 final _SVGElementJs nearestViewportElement; | 11004 final _SVGElementImpl nearestViewportElement; |
11057 | 11005 |
11058 _SVGRectJs getBBox() native; | 11006 _SVGRectImpl getBBox() native; |
11059 | 11007 |
11060 _SVGMatrixJs getCTM() native; | 11008 _SVGMatrixImpl getCTM() native; |
11061 | 11009 |
11062 _SVGMatrixJs getScreenCTM() native; | 11010 _SVGMatrixImpl getScreenCTM() native; |
11063 | 11011 |
11064 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 11012 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
11065 } | 11013 } |
11066 | 11014 |
11067 class _SVGMPathElementJs extends _SVGElementJs implements SVGMPathElement native
"*SVGMPathElement" { | 11015 class _SVGMPathElementImpl extends _SVGElementImpl implements SVGMPathElement na
tive "*SVGMPathElement" { |
11068 | 11016 |
11069 // From SVGURIReference | 11017 // From SVGURIReference |
11070 | 11018 |
11071 final _SVGAnimatedStringJs href; | 11019 final _SVGAnimatedStringImpl href; |
11072 | 11020 |
11073 // From SVGExternalResourcesRequired | 11021 // From SVGExternalResourcesRequired |
11074 | 11022 |
11075 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11023 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11076 } | 11024 } |
11077 | 11025 |
11078 class _SVGMarkerElementJs extends _SVGElementJs implements SVGMarkerElement nati
ve "*SVGMarkerElement" { | 11026 class _SVGMarkerElementImpl extends _SVGElementImpl implements SVGMarkerElement
native "*SVGMarkerElement" { |
11079 | 11027 |
11080 static final int SVG_MARKERUNITS_STROKEWIDTH = 2; | 11028 static final int SVG_MARKERUNITS_STROKEWIDTH = 2; |
11081 | 11029 |
11082 static final int SVG_MARKERUNITS_UNKNOWN = 0; | 11030 static final int SVG_MARKERUNITS_UNKNOWN = 0; |
11083 | 11031 |
11084 static final int SVG_MARKERUNITS_USERSPACEONUSE = 1; | 11032 static final int SVG_MARKERUNITS_USERSPACEONUSE = 1; |
11085 | 11033 |
11086 static final int SVG_MARKER_ORIENT_ANGLE = 2; | 11034 static final int SVG_MARKER_ORIENT_ANGLE = 2; |
11087 | 11035 |
11088 static final int SVG_MARKER_ORIENT_AUTO = 1; | 11036 static final int SVG_MARKER_ORIENT_AUTO = 1; |
11089 | 11037 |
11090 static final int SVG_MARKER_ORIENT_UNKNOWN = 0; | 11038 static final int SVG_MARKER_ORIENT_UNKNOWN = 0; |
11091 | 11039 |
11092 final _SVGAnimatedLengthJs markerHeight; | 11040 final _SVGAnimatedLengthImpl markerHeight; |
11093 | 11041 |
11094 final _SVGAnimatedEnumerationJs markerUnits; | 11042 final _SVGAnimatedEnumerationImpl markerUnits; |
11095 | 11043 |
11096 final _SVGAnimatedLengthJs markerWidth; | 11044 final _SVGAnimatedLengthImpl markerWidth; |
11097 | 11045 |
11098 final _SVGAnimatedAngleJs orientAngle; | 11046 final _SVGAnimatedAngleImpl orientAngle; |
11099 | 11047 |
11100 final _SVGAnimatedEnumerationJs orientType; | 11048 final _SVGAnimatedEnumerationImpl orientType; |
11101 | 11049 |
11102 final _SVGAnimatedLengthJs refX; | 11050 final _SVGAnimatedLengthImpl refX; |
11103 | 11051 |
11104 final _SVGAnimatedLengthJs refY; | 11052 final _SVGAnimatedLengthImpl refY; |
11105 | 11053 |
11106 void setOrientToAngle(_SVGAngleJs angle) native; | 11054 void setOrientToAngle(_SVGAngleImpl angle) native; |
11107 | 11055 |
11108 void setOrientToAuto() native; | 11056 void setOrientToAuto() native; |
11109 | 11057 |
11110 // From SVGLangSpace | 11058 // From SVGLangSpace |
11111 | 11059 |
11112 String xmllang; | 11060 String xmllang; |
11113 | 11061 |
11114 String xmlspace; | 11062 String xmlspace; |
11115 | 11063 |
11116 // From SVGExternalResourcesRequired | 11064 // From SVGExternalResourcesRequired |
11117 | 11065 |
11118 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11066 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11119 | 11067 |
11120 // From SVGStylable | 11068 // From SVGStylable |
11121 | 11069 |
11122 _SVGAnimatedStringJs get _className() native "return this.className;"; | 11070 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
11123 | 11071 |
11124 // Use implementation from Element. | 11072 // Use implementation from Element. |
11125 // final _CSSStyleDeclarationJs style; | 11073 // final _CSSStyleDeclarationImpl style; |
11126 | 11074 |
11127 _CSSValueJs getPresentationAttribute(String name) native; | 11075 _CSSValueImpl getPresentationAttribute(String name) native; |
11128 | 11076 |
11129 // From SVGFitToViewBox | 11077 // From SVGFitToViewBox |
11130 | 11078 |
11131 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 11079 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
11132 | 11080 |
11133 final _SVGAnimatedRectJs viewBox; | 11081 final _SVGAnimatedRectImpl viewBox; |
11134 } | 11082 } |
11135 | 11083 |
11136 class _SVGMaskElementJs extends _SVGElementJs implements SVGMaskElement native "
*SVGMaskElement" { | 11084 class _SVGMaskElementImpl extends _SVGElementImpl implements SVGMaskElement nati
ve "*SVGMaskElement" { |
11137 | 11085 |
11138 final _SVGAnimatedLengthJs height; | 11086 final _SVGAnimatedLengthImpl height; |
11139 | 11087 |
11140 final _SVGAnimatedEnumerationJs maskContentUnits; | 11088 final _SVGAnimatedEnumerationImpl maskContentUnits; |
11141 | 11089 |
11142 final _SVGAnimatedEnumerationJs maskUnits; | 11090 final _SVGAnimatedEnumerationImpl maskUnits; |
11143 | 11091 |
11144 final _SVGAnimatedLengthJs width; | 11092 final _SVGAnimatedLengthImpl width; |
11145 | 11093 |
11146 final _SVGAnimatedLengthJs x; | 11094 final _SVGAnimatedLengthImpl x; |
11147 | 11095 |
11148 final _SVGAnimatedLengthJs y; | 11096 final _SVGAnimatedLengthImpl y; |
11149 | 11097 |
11150 // From SVGTests | 11098 // From SVGTests |
11151 | 11099 |
11152 final _SVGStringListJs requiredExtensions; | 11100 final _SVGStringListImpl requiredExtensions; |
11153 | 11101 |
11154 final _SVGStringListJs requiredFeatures; | 11102 final _SVGStringListImpl requiredFeatures; |
11155 | 11103 |
11156 final _SVGStringListJs systemLanguage; | 11104 final _SVGStringListImpl systemLanguage; |
11157 | 11105 |
11158 bool hasExtension(String extension) native; | 11106 bool hasExtension(String extension) native; |
11159 | 11107 |
11160 // From SVGLangSpace | 11108 // From SVGLangSpace |
11161 | 11109 |
11162 String xmllang; | 11110 String xmllang; |
11163 | 11111 |
11164 String xmlspace; | 11112 String xmlspace; |
11165 | 11113 |
11166 // From SVGExternalResourcesRequired | 11114 // From SVGExternalResourcesRequired |
11167 | 11115 |
11168 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11116 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11169 | 11117 |
11170 // From SVGStylable | 11118 // From SVGStylable |
11171 | 11119 |
11172 _SVGAnimatedStringJs get _className() native "return this.className;"; | 11120 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
11173 | 11121 |
11174 // Use implementation from Element. | 11122 // Use implementation from Element. |
11175 // final _CSSStyleDeclarationJs style; | 11123 // final _CSSStyleDeclarationImpl style; |
11176 | 11124 |
11177 _CSSValueJs getPresentationAttribute(String name) native; | 11125 _CSSValueImpl getPresentationAttribute(String name) native; |
11178 } | 11126 } |
11179 | 11127 |
11180 class _SVGMatrixJs implements SVGMatrix native "*SVGMatrix" { | 11128 class _SVGMatrixImpl implements SVGMatrix native "*SVGMatrix" { |
11181 | 11129 |
11182 num a; | 11130 num a; |
11183 | 11131 |
11184 num b; | 11132 num b; |
11185 | 11133 |
11186 num c; | 11134 num c; |
11187 | 11135 |
11188 num d; | 11136 num d; |
11189 | 11137 |
11190 num e; | 11138 num e; |
11191 | 11139 |
11192 num f; | 11140 num f; |
11193 | 11141 |
11194 _SVGMatrixJs flipX() native; | 11142 _SVGMatrixImpl flipX() native; |
11195 | 11143 |
11196 _SVGMatrixJs flipY() native; | 11144 _SVGMatrixImpl flipY() native; |
11197 | 11145 |
11198 _SVGMatrixJs inverse() native; | 11146 _SVGMatrixImpl inverse() native; |
11199 | 11147 |
11200 _SVGMatrixJs multiply(_SVGMatrixJs secondMatrix) native; | 11148 _SVGMatrixImpl multiply(_SVGMatrixImpl secondMatrix) native; |
11201 | 11149 |
11202 _SVGMatrixJs rotate(num angle) native; | 11150 _SVGMatrixImpl rotate(num angle) native; |
11203 | 11151 |
11204 _SVGMatrixJs rotateFromVector(num x, num y) native; | 11152 _SVGMatrixImpl rotateFromVector(num x, num y) native; |
11205 | 11153 |
11206 _SVGMatrixJs scale(num scaleFactor) native; | 11154 _SVGMatrixImpl scale(num scaleFactor) native; |
11207 | 11155 |
11208 _SVGMatrixJs scaleNonUniform(num scaleFactorX, num scaleFactorY) native; | 11156 _SVGMatrixImpl scaleNonUniform(num scaleFactorX, num scaleFactorY) native; |
11209 | 11157 |
11210 _SVGMatrixJs skewX(num angle) native; | 11158 _SVGMatrixImpl skewX(num angle) native; |
11211 | 11159 |
11212 _SVGMatrixJs skewY(num angle) native; | 11160 _SVGMatrixImpl skewY(num angle) native; |
11213 | 11161 |
11214 _SVGMatrixJs translate(num x, num y) native; | 11162 _SVGMatrixImpl translate(num x, num y) native; |
11215 } | 11163 } |
11216 | 11164 |
11217 class _SVGMetadataElementJs extends _SVGElementJs implements SVGMetadataElement
native "*SVGMetadataElement" { | 11165 class _SVGMetadataElementImpl extends _SVGElementImpl implements SVGMetadataElem
ent native "*SVGMetadataElement" { |
11218 } | 11166 } |
11219 | 11167 |
11220 class _SVGMissingGlyphElementJs extends _SVGElementJs implements SVGMissingGlyph
Element native "*SVGMissingGlyphElement" { | 11168 class _SVGMissingGlyphElementImpl extends _SVGElementImpl implements SVGMissingG
lyphElement native "*SVGMissingGlyphElement" { |
11221 } | 11169 } |
11222 | 11170 |
11223 class _SVGNumberJs implements SVGNumber native "*SVGNumber" { | 11171 class _SVGNumberImpl implements SVGNumber native "*SVGNumber" { |
11224 | 11172 |
11225 num value; | 11173 num value; |
11226 } | 11174 } |
11227 | 11175 |
11228 class _SVGNumberListJs implements SVGNumberList native "*SVGNumberList" { | 11176 class _SVGNumberListImpl implements SVGNumberList native "*SVGNumberList" { |
11229 | 11177 |
11230 final int numberOfItems; | 11178 final int numberOfItems; |
11231 | 11179 |
11232 _SVGNumberJs appendItem(_SVGNumberJs item) native; | 11180 _SVGNumberImpl appendItem(_SVGNumberImpl item) native; |
11233 | 11181 |
11234 void clear() native; | 11182 void clear() native; |
11235 | 11183 |
11236 _SVGNumberJs getItem(int index) native; | 11184 _SVGNumberImpl getItem(int index) native; |
11237 | 11185 |
11238 _SVGNumberJs initialize(_SVGNumberJs item) native; | 11186 _SVGNumberImpl initialize(_SVGNumberImpl item) native; |
11239 | 11187 |
11240 _SVGNumberJs insertItemBefore(_SVGNumberJs item, int index) native; | 11188 _SVGNumberImpl insertItemBefore(_SVGNumberImpl item, int index) native; |
11241 | 11189 |
11242 _SVGNumberJs removeItem(int index) native; | 11190 _SVGNumberImpl removeItem(int index) native; |
11243 | 11191 |
11244 _SVGNumberJs replaceItem(_SVGNumberJs item, int index) native; | 11192 _SVGNumberImpl replaceItem(_SVGNumberImpl item, int index) native; |
11245 } | 11193 } |
11246 | 11194 |
11247 class _SVGPaintJs extends _SVGColorJs implements SVGPaint native "*SVGPaint" { | 11195 class _SVGPaintImpl extends _SVGColorImpl implements SVGPaint native "*SVGPaint"
{ |
11248 | 11196 |
11249 static final int SVG_PAINTTYPE_CURRENTCOLOR = 102; | 11197 static final int SVG_PAINTTYPE_CURRENTCOLOR = 102; |
11250 | 11198 |
11251 static final int SVG_PAINTTYPE_NONE = 101; | 11199 static final int SVG_PAINTTYPE_NONE = 101; |
11252 | 11200 |
11253 static final int SVG_PAINTTYPE_RGBCOLOR = 1; | 11201 static final int SVG_PAINTTYPE_RGBCOLOR = 1; |
11254 | 11202 |
11255 static final int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; | 11203 static final int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; |
11256 | 11204 |
11257 static final int SVG_PAINTTYPE_UNKNOWN = 0; | 11205 static final int SVG_PAINTTYPE_UNKNOWN = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
11268 | 11216 |
11269 final int paintType; | 11217 final int paintType; |
11270 | 11218 |
11271 final String uri; | 11219 final String uri; |
11272 | 11220 |
11273 void setPaint(int paintType, String uri, String rgbColor, String iccColor) nat
ive; | 11221 void setPaint(int paintType, String uri, String rgbColor, String iccColor) nat
ive; |
11274 | 11222 |
11275 void setUri(String uri) native; | 11223 void setUri(String uri) native; |
11276 } | 11224 } |
11277 | 11225 |
11278 class _SVGPathElementJs extends _SVGElementJs implements SVGPathElement native "
*SVGPathElement" { | 11226 class _SVGPathElementImpl extends _SVGElementImpl implements SVGPathElement nati
ve "*SVGPathElement" { |
11279 | 11227 |
11280 final _SVGPathSegListJs animatedNormalizedPathSegList; | 11228 final _SVGPathSegListImpl animatedNormalizedPathSegList; |
11281 | 11229 |
11282 final _SVGPathSegListJs animatedPathSegList; | 11230 final _SVGPathSegListImpl animatedPathSegList; |
11283 | 11231 |
11284 final _SVGPathSegListJs normalizedPathSegList; | 11232 final _SVGPathSegListImpl normalizedPathSegList; |
11285 | 11233 |
11286 final _SVGAnimatedNumberJs pathLength; | 11234 final _SVGAnimatedNumberImpl pathLength; |
11287 | 11235 |
11288 final _SVGPathSegListJs pathSegList; | 11236 final _SVGPathSegListImpl pathSegList; |
11289 | 11237 |
11290 _SVGPathSegArcAbsJs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num a
ngle, bool largeArcFlag, bool sweepFlag) native; | 11238 _SVGPathSegArcAbsImpl createSVGPathSegArcAbs(num x, num y, num r1, num r2, num
angle, bool largeArcFlag, bool sweepFlag) native; |
11291 | 11239 |
11292 _SVGPathSegArcRelJs createSVGPathSegArcRel(num x, num y, num r1, num r2, num a
ngle, bool largeArcFlag, bool sweepFlag) native; | 11240 _SVGPathSegArcRelImpl createSVGPathSegArcRel(num x, num y, num r1, num r2, num
angle, bool largeArcFlag, bool sweepFlag) native; |
11293 | 11241 |
11294 _SVGPathSegClosePathJs createSVGPathSegClosePath() native; | 11242 _SVGPathSegClosePathImpl createSVGPathSegClosePath() native; |
11295 | 11243 |
11296 _SVGPathSegCurvetoCubicAbsJs createSVGPathSegCurvetoCubicAbs(num x, num y, num
x1, num y1, num x2, num y2) native; | 11244 _SVGPathSegCurvetoCubicAbsImpl createSVGPathSegCurvetoCubicAbs(num x, num y, n
um x1, num y1, num x2, num y2) native; |
11297 | 11245 |
11298 _SVGPathSegCurvetoCubicRelJs createSVGPathSegCurvetoCubicRel(num x, num y, num
x1, num y1, num x2, num y2) native; | 11246 _SVGPathSegCurvetoCubicRelImpl createSVGPathSegCurvetoCubicRel(num x, num y, n
um x1, num y1, num x2, num y2) native; |
11299 | 11247 |
11300 _SVGPathSegCurvetoCubicSmoothAbsJs createSVGPathSegCurvetoCubicSmoothAbs(num x
, num y, num x2, num y2) native; | 11248 _SVGPathSegCurvetoCubicSmoothAbsImpl createSVGPathSegCurvetoCubicSmoothAbs(num
x, num y, num x2, num y2) native; |
11301 | 11249 |
11302 _SVGPathSegCurvetoCubicSmoothRelJs createSVGPathSegCurvetoCubicSmoothRel(num x
, num y, num x2, num y2) native; | 11250 _SVGPathSegCurvetoCubicSmoothRelImpl createSVGPathSegCurvetoCubicSmoothRel(num
x, num y, num x2, num y2) native; |
11303 | 11251 |
11304 _SVGPathSegCurvetoQuadraticAbsJs createSVGPathSegCurvetoQuadraticAbs(num x, nu
m y, num x1, num y1) native; | 11252 _SVGPathSegCurvetoQuadraticAbsImpl createSVGPathSegCurvetoQuadraticAbs(num x,
num y, num x1, num y1) native; |
11305 | 11253 |
11306 _SVGPathSegCurvetoQuadraticRelJs createSVGPathSegCurvetoQuadraticRel(num x, nu
m y, num x1, num y1) native; | 11254 _SVGPathSegCurvetoQuadraticRelImpl createSVGPathSegCurvetoQuadraticRel(num x,
num y, num x1, num y1) native; |
11307 | 11255 |
11308 _SVGPathSegCurvetoQuadraticSmoothAbsJs createSVGPathSegCurvetoQuadraticSmoothA
bs(num x, num y) native; | 11256 _SVGPathSegCurvetoQuadraticSmoothAbsImpl createSVGPathSegCurvetoQuadraticSmoot
hAbs(num x, num y) native; |
11309 | 11257 |
11310 _SVGPathSegCurvetoQuadraticSmoothRelJs createSVGPathSegCurvetoQuadraticSmoothR
el(num x, num y) native; | 11258 _SVGPathSegCurvetoQuadraticSmoothRelImpl createSVGPathSegCurvetoQuadraticSmoot
hRel(num x, num y) native; |
11311 | 11259 |
11312 _SVGPathSegLinetoAbsJs createSVGPathSegLinetoAbs(num x, num y) native; | 11260 _SVGPathSegLinetoAbsImpl createSVGPathSegLinetoAbs(num x, num y) native; |
11313 | 11261 |
11314 _SVGPathSegLinetoHorizontalAbsJs createSVGPathSegLinetoHorizontalAbs(num x) na
tive; | 11262 _SVGPathSegLinetoHorizontalAbsImpl createSVGPathSegLinetoHorizontalAbs(num x)
native; |
11315 | 11263 |
11316 _SVGPathSegLinetoHorizontalRelJs createSVGPathSegLinetoHorizontalRel(num x) na
tive; | 11264 _SVGPathSegLinetoHorizontalRelImpl createSVGPathSegLinetoHorizontalRel(num x)
native; |
11317 | 11265 |
11318 _SVGPathSegLinetoRelJs createSVGPathSegLinetoRel(num x, num y) native; | 11266 _SVGPathSegLinetoRelImpl createSVGPathSegLinetoRel(num x, num y) native; |
11319 | 11267 |
11320 _SVGPathSegLinetoVerticalAbsJs createSVGPathSegLinetoVerticalAbs(num y) native
; | 11268 _SVGPathSegLinetoVerticalAbsImpl createSVGPathSegLinetoVerticalAbs(num y) nati
ve; |
11321 | 11269 |
11322 _SVGPathSegLinetoVerticalRelJs createSVGPathSegLinetoVerticalRel(num y) native
; | 11270 _SVGPathSegLinetoVerticalRelImpl createSVGPathSegLinetoVerticalRel(num y) nati
ve; |
11323 | 11271 |
11324 _SVGPathSegMovetoAbsJs createSVGPathSegMovetoAbs(num x, num y) native; | 11272 _SVGPathSegMovetoAbsImpl createSVGPathSegMovetoAbs(num x, num y) native; |
11325 | 11273 |
11326 _SVGPathSegMovetoRelJs createSVGPathSegMovetoRel(num x, num y) native; | 11274 _SVGPathSegMovetoRelImpl createSVGPathSegMovetoRel(num x, num y) native; |
11327 | 11275 |
11328 int getPathSegAtLength(num distance) native; | 11276 int getPathSegAtLength(num distance) native; |
11329 | 11277 |
11330 _SVGPointJs getPointAtLength(num distance) native; | 11278 _SVGPointImpl getPointAtLength(num distance) native; |
11331 | 11279 |
11332 num getTotalLength() native; | 11280 num getTotalLength() native; |
11333 | 11281 |
11334 // From SVGTests | 11282 // From SVGTests |
11335 | 11283 |
11336 final _SVGStringListJs requiredExtensions; | 11284 final _SVGStringListImpl requiredExtensions; |
11337 | 11285 |
11338 final _SVGStringListJs requiredFeatures; | 11286 final _SVGStringListImpl requiredFeatures; |
11339 | 11287 |
11340 final _SVGStringListJs systemLanguage; | 11288 final _SVGStringListImpl systemLanguage; |
11341 | 11289 |
11342 bool hasExtension(String extension) native; | 11290 bool hasExtension(String extension) native; |
11343 | 11291 |
11344 // From SVGLangSpace | 11292 // From SVGLangSpace |
11345 | 11293 |
11346 String xmllang; | 11294 String xmllang; |
11347 | 11295 |
11348 String xmlspace; | 11296 String xmlspace; |
11349 | 11297 |
11350 // From SVGExternalResourcesRequired | 11298 // From SVGExternalResourcesRequired |
11351 | 11299 |
11352 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11300 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11353 | 11301 |
11354 // From SVGStylable | 11302 // From SVGStylable |
11355 | 11303 |
11356 _SVGAnimatedStringJs get _className() native "return this.className;"; | 11304 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
11357 | 11305 |
11358 // Use implementation from Element. | 11306 // Use implementation from Element. |
11359 // final _CSSStyleDeclarationJs style; | 11307 // final _CSSStyleDeclarationImpl style; |
11360 | 11308 |
11361 _CSSValueJs getPresentationAttribute(String name) native; | 11309 _CSSValueImpl getPresentationAttribute(String name) native; |
11362 | 11310 |
11363 // From SVGTransformable | 11311 // From SVGTransformable |
11364 | 11312 |
11365 final _SVGAnimatedTransformListJs transform; | 11313 final _SVGAnimatedTransformListImpl transform; |
11366 | 11314 |
11367 // From SVGLocatable | 11315 // From SVGLocatable |
11368 | 11316 |
11369 final _SVGElementJs farthestViewportElement; | 11317 final _SVGElementImpl farthestViewportElement; |
11370 | 11318 |
11371 final _SVGElementJs nearestViewportElement; | 11319 final _SVGElementImpl nearestViewportElement; |
11372 | 11320 |
11373 _SVGRectJs getBBox() native; | 11321 _SVGRectImpl getBBox() native; |
11374 | 11322 |
11375 _SVGMatrixJs getCTM() native; | 11323 _SVGMatrixImpl getCTM() native; |
11376 | 11324 |
11377 _SVGMatrixJs getScreenCTM() native; | 11325 _SVGMatrixImpl getScreenCTM() native; |
11378 | 11326 |
11379 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 11327 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
11380 } | 11328 } |
11381 | 11329 |
11382 class _SVGPathSegJs implements SVGPathSeg native "*SVGPathSeg" { | 11330 class _SVGPathSegImpl implements SVGPathSeg native "*SVGPathSeg" { |
11383 | 11331 |
11384 static final int PATHSEG_ARC_ABS = 10; | 11332 static final int PATHSEG_ARC_ABS = 10; |
11385 | 11333 |
11386 static final int PATHSEG_ARC_REL = 11; | 11334 static final int PATHSEG_ARC_REL = 11; |
11387 | 11335 |
11388 static final int PATHSEG_CLOSEPATH = 1; | 11336 static final int PATHSEG_CLOSEPATH = 1; |
11389 | 11337 |
11390 static final int PATHSEG_CURVETO_CUBIC_ABS = 6; | 11338 static final int PATHSEG_CURVETO_CUBIC_ABS = 6; |
11391 | 11339 |
11392 static final int PATHSEG_CURVETO_CUBIC_REL = 7; | 11340 static final int PATHSEG_CURVETO_CUBIC_REL = 7; |
(...skipping 26 matching lines...) Expand all Loading... |
11419 | 11367 |
11420 static final int PATHSEG_MOVETO_REL = 3; | 11368 static final int PATHSEG_MOVETO_REL = 3; |
11421 | 11369 |
11422 static final int PATHSEG_UNKNOWN = 0; | 11370 static final int PATHSEG_UNKNOWN = 0; |
11423 | 11371 |
11424 final int pathSegType; | 11372 final int pathSegType; |
11425 | 11373 |
11426 final String pathSegTypeAsLetter; | 11374 final String pathSegTypeAsLetter; |
11427 } | 11375 } |
11428 | 11376 |
11429 class _SVGPathSegArcAbsJs extends _SVGPathSegJs implements SVGPathSegArcAbs nati
ve "*SVGPathSegArcAbs" { | 11377 class _SVGPathSegArcAbsImpl extends _SVGPathSegImpl implements SVGPathSegArcAbs
native "*SVGPathSegArcAbs" { |
11430 | 11378 |
11431 num angle; | 11379 num angle; |
11432 | 11380 |
11433 bool largeArcFlag; | 11381 bool largeArcFlag; |
11434 | 11382 |
11435 num r1; | 11383 num r1; |
11436 | 11384 |
11437 num r2; | 11385 num r2; |
11438 | 11386 |
11439 bool sweepFlag; | 11387 bool sweepFlag; |
11440 | 11388 |
11441 num x; | 11389 num x; |
11442 | 11390 |
11443 num y; | 11391 num y; |
11444 } | 11392 } |
11445 | 11393 |
11446 class _SVGPathSegArcRelJs extends _SVGPathSegJs implements SVGPathSegArcRel nati
ve "*SVGPathSegArcRel" { | 11394 class _SVGPathSegArcRelImpl extends _SVGPathSegImpl implements SVGPathSegArcRel
native "*SVGPathSegArcRel" { |
11447 | 11395 |
11448 num angle; | 11396 num angle; |
11449 | 11397 |
11450 bool largeArcFlag; | 11398 bool largeArcFlag; |
11451 | 11399 |
11452 num r1; | 11400 num r1; |
11453 | 11401 |
11454 num r2; | 11402 num r2; |
11455 | 11403 |
11456 bool sweepFlag; | 11404 bool sweepFlag; |
11457 | 11405 |
11458 num x; | 11406 num x; |
11459 | 11407 |
11460 num y; | 11408 num y; |
11461 } | 11409 } |
11462 | 11410 |
11463 class _SVGPathSegClosePathJs extends _SVGPathSegJs implements SVGPathSegClosePat
h native "*SVGPathSegClosePath" { | 11411 class _SVGPathSegClosePathImpl extends _SVGPathSegImpl implements SVGPathSegClos
ePath native "*SVGPathSegClosePath" { |
11464 } | 11412 } |
11465 | 11413 |
11466 class _SVGPathSegCurvetoCubicAbsJs extends _SVGPathSegJs implements SVGPathSegCu
rvetoCubicAbs native "*SVGPathSegCurvetoCubicAbs" { | 11414 class _SVGPathSegCurvetoCubicAbsImpl extends _SVGPathSegImpl implements SVGPathS
egCurvetoCubicAbs native "*SVGPathSegCurvetoCubicAbs" { |
11467 | 11415 |
11468 num x; | 11416 num x; |
11469 | 11417 |
11470 num x1; | 11418 num x1; |
11471 | 11419 |
11472 num x2; | 11420 num x2; |
11473 | 11421 |
11474 num y; | 11422 num y; |
11475 | 11423 |
11476 num y1; | 11424 num y1; |
11477 | 11425 |
11478 num y2; | 11426 num y2; |
11479 } | 11427 } |
11480 | 11428 |
11481 class _SVGPathSegCurvetoCubicRelJs extends _SVGPathSegJs implements SVGPathSegCu
rvetoCubicRel native "*SVGPathSegCurvetoCubicRel" { | 11429 class _SVGPathSegCurvetoCubicRelImpl extends _SVGPathSegImpl implements SVGPathS
egCurvetoCubicRel native "*SVGPathSegCurvetoCubicRel" { |
11482 | 11430 |
11483 num x; | 11431 num x; |
11484 | 11432 |
11485 num x1; | 11433 num x1; |
11486 | 11434 |
11487 num x2; | 11435 num x2; |
11488 | 11436 |
11489 num y; | 11437 num y; |
11490 | 11438 |
11491 num y1; | 11439 num y1; |
11492 | 11440 |
11493 num y2; | 11441 num y2; |
11494 } | 11442 } |
11495 | 11443 |
11496 class _SVGPathSegCurvetoCubicSmoothAbsJs extends _SVGPathSegJs implements SVGPat
hSegCurvetoCubicSmoothAbs native "*SVGPathSegCurvetoCubicSmoothAbs" { | 11444 class _SVGPathSegCurvetoCubicSmoothAbsImpl extends _SVGPathSegImpl implements SV
GPathSegCurvetoCubicSmoothAbs native "*SVGPathSegCurvetoCubicSmoothAbs" { |
11497 | 11445 |
11498 num x; | 11446 num x; |
11499 | 11447 |
11500 num x2; | 11448 num x2; |
11501 | 11449 |
11502 num y; | 11450 num y; |
11503 | 11451 |
11504 num y2; | 11452 num y2; |
11505 } | 11453 } |
11506 | 11454 |
11507 class _SVGPathSegCurvetoCubicSmoothRelJs extends _SVGPathSegJs implements SVGPat
hSegCurvetoCubicSmoothRel native "*SVGPathSegCurvetoCubicSmoothRel" { | 11455 class _SVGPathSegCurvetoCubicSmoothRelImpl extends _SVGPathSegImpl implements SV
GPathSegCurvetoCubicSmoothRel native "*SVGPathSegCurvetoCubicSmoothRel" { |
11508 | 11456 |
11509 num x; | 11457 num x; |
11510 | 11458 |
11511 num x2; | 11459 num x2; |
11512 | 11460 |
11513 num y; | 11461 num y; |
11514 | 11462 |
11515 num y2; | 11463 num y2; |
11516 } | 11464 } |
11517 | 11465 |
11518 class _SVGPathSegCurvetoQuadraticAbsJs extends _SVGPathSegJs implements SVGPathS
egCurvetoQuadraticAbs native "*SVGPathSegCurvetoQuadraticAbs" { | 11466 class _SVGPathSegCurvetoQuadraticAbsImpl extends _SVGPathSegImpl implements SVGP
athSegCurvetoQuadraticAbs native "*SVGPathSegCurvetoQuadraticAbs" { |
11519 | 11467 |
11520 num x; | 11468 num x; |
11521 | 11469 |
11522 num x1; | 11470 num x1; |
11523 | 11471 |
11524 num y; | 11472 num y; |
11525 | 11473 |
11526 num y1; | 11474 num y1; |
11527 } | 11475 } |
11528 | 11476 |
11529 class _SVGPathSegCurvetoQuadraticRelJs extends _SVGPathSegJs implements SVGPathS
egCurvetoQuadraticRel native "*SVGPathSegCurvetoQuadraticRel" { | 11477 class _SVGPathSegCurvetoQuadraticRelImpl extends _SVGPathSegImpl implements SVGP
athSegCurvetoQuadraticRel native "*SVGPathSegCurvetoQuadraticRel" { |
11530 | 11478 |
11531 num x; | 11479 num x; |
11532 | 11480 |
11533 num x1; | 11481 num x1; |
11534 | 11482 |
11535 num y; | 11483 num y; |
11536 | 11484 |
11537 num y1; | 11485 num y1; |
11538 } | 11486 } |
11539 | 11487 |
11540 class _SVGPathSegCurvetoQuadraticSmoothAbsJs extends _SVGPathSegJs implements SV
GPathSegCurvetoQuadraticSmoothAbs native "*SVGPathSegCurvetoQuadraticSmoothAbs"
{ | 11488 class _SVGPathSegCurvetoQuadraticSmoothAbsImpl extends _SVGPathSegImpl implement
s SVGPathSegCurvetoQuadraticSmoothAbs native "*SVGPathSegCurvetoQuadraticSmoothA
bs" { |
11541 | 11489 |
11542 num x; | 11490 num x; |
11543 | 11491 |
11544 num y; | 11492 num y; |
11545 } | 11493 } |
11546 | 11494 |
11547 class _SVGPathSegCurvetoQuadraticSmoothRelJs extends _SVGPathSegJs implements SV
GPathSegCurvetoQuadraticSmoothRel native "*SVGPathSegCurvetoQuadraticSmoothRel"
{ | 11495 class _SVGPathSegCurvetoQuadraticSmoothRelImpl extends _SVGPathSegImpl implement
s SVGPathSegCurvetoQuadraticSmoothRel native "*SVGPathSegCurvetoQuadraticSmoothR
el" { |
11548 | 11496 |
11549 num x; | 11497 num x; |
11550 | 11498 |
11551 num y; | 11499 num y; |
11552 } | 11500 } |
11553 | 11501 |
11554 class _SVGPathSegLinetoAbsJs extends _SVGPathSegJs implements SVGPathSegLinetoAb
s native "*SVGPathSegLinetoAbs" { | 11502 class _SVGPathSegLinetoAbsImpl extends _SVGPathSegImpl implements SVGPathSegLine
toAbs native "*SVGPathSegLinetoAbs" { |
11555 | 11503 |
11556 num x; | 11504 num x; |
11557 | 11505 |
11558 num y; | 11506 num y; |
11559 } | 11507 } |
11560 | 11508 |
11561 class _SVGPathSegLinetoHorizontalAbsJs extends _SVGPathSegJs implements SVGPathS
egLinetoHorizontalAbs native "*SVGPathSegLinetoHorizontalAbs" { | 11509 class _SVGPathSegLinetoHorizontalAbsImpl extends _SVGPathSegImpl implements SVGP
athSegLinetoHorizontalAbs native "*SVGPathSegLinetoHorizontalAbs" { |
11562 | 11510 |
11563 num x; | 11511 num x; |
11564 } | 11512 } |
11565 | 11513 |
11566 class _SVGPathSegLinetoHorizontalRelJs extends _SVGPathSegJs implements SVGPathS
egLinetoHorizontalRel native "*SVGPathSegLinetoHorizontalRel" { | 11514 class _SVGPathSegLinetoHorizontalRelImpl extends _SVGPathSegImpl implements SVGP
athSegLinetoHorizontalRel native "*SVGPathSegLinetoHorizontalRel" { |
11567 | 11515 |
11568 num x; | 11516 num x; |
11569 } | 11517 } |
11570 | 11518 |
11571 class _SVGPathSegLinetoRelJs extends _SVGPathSegJs implements SVGPathSegLinetoRe
l native "*SVGPathSegLinetoRel" { | 11519 class _SVGPathSegLinetoRelImpl extends _SVGPathSegImpl implements SVGPathSegLine
toRel native "*SVGPathSegLinetoRel" { |
11572 | 11520 |
11573 num x; | 11521 num x; |
11574 | 11522 |
11575 num y; | 11523 num y; |
11576 } | 11524 } |
11577 | 11525 |
11578 class _SVGPathSegLinetoVerticalAbsJs extends _SVGPathSegJs implements SVGPathSeg
LinetoVerticalAbs native "*SVGPathSegLinetoVerticalAbs" { | 11526 class _SVGPathSegLinetoVerticalAbsImpl extends _SVGPathSegImpl implements SVGPat
hSegLinetoVerticalAbs native "*SVGPathSegLinetoVerticalAbs" { |
11579 | 11527 |
11580 num y; | 11528 num y; |
11581 } | 11529 } |
11582 | 11530 |
11583 class _SVGPathSegLinetoVerticalRelJs extends _SVGPathSegJs implements SVGPathSeg
LinetoVerticalRel native "*SVGPathSegLinetoVerticalRel" { | 11531 class _SVGPathSegLinetoVerticalRelImpl extends _SVGPathSegImpl implements SVGPat
hSegLinetoVerticalRel native "*SVGPathSegLinetoVerticalRel" { |
11584 | 11532 |
11585 num y; | 11533 num y; |
11586 } | 11534 } |
11587 | 11535 |
11588 class _SVGPathSegListJs implements SVGPathSegList native "*SVGPathSegList" { | 11536 class _SVGPathSegListImpl implements SVGPathSegList native "*SVGPathSegList" { |
11589 | 11537 |
11590 final int numberOfItems; | 11538 final int numberOfItems; |
11591 | 11539 |
11592 _SVGPathSegJs appendItem(_SVGPathSegJs newItem) native; | 11540 _SVGPathSegImpl appendItem(_SVGPathSegImpl newItem) native; |
11593 | 11541 |
11594 void clear() native; | 11542 void clear() native; |
11595 | 11543 |
11596 _SVGPathSegJs getItem(int index) native; | 11544 _SVGPathSegImpl getItem(int index) native; |
11597 | 11545 |
11598 _SVGPathSegJs initialize(_SVGPathSegJs newItem) native; | 11546 _SVGPathSegImpl initialize(_SVGPathSegImpl newItem) native; |
11599 | 11547 |
11600 _SVGPathSegJs insertItemBefore(_SVGPathSegJs newItem, int index) native; | 11548 _SVGPathSegImpl insertItemBefore(_SVGPathSegImpl newItem, int index) native; |
11601 | 11549 |
11602 _SVGPathSegJs removeItem(int index) native; | 11550 _SVGPathSegImpl removeItem(int index) native; |
11603 | 11551 |
11604 _SVGPathSegJs replaceItem(_SVGPathSegJs newItem, int index) native; | 11552 _SVGPathSegImpl replaceItem(_SVGPathSegImpl newItem, int index) native; |
11605 } | 11553 } |
11606 | 11554 |
11607 class _SVGPathSegMovetoAbsJs extends _SVGPathSegJs implements SVGPathSegMovetoAb
s native "*SVGPathSegMovetoAbs" { | 11555 class _SVGPathSegMovetoAbsImpl extends _SVGPathSegImpl implements SVGPathSegMove
toAbs native "*SVGPathSegMovetoAbs" { |
11608 | 11556 |
11609 num x; | 11557 num x; |
11610 | 11558 |
11611 num y; | 11559 num y; |
11612 } | 11560 } |
11613 | 11561 |
11614 class _SVGPathSegMovetoRelJs extends _SVGPathSegJs implements SVGPathSegMovetoRe
l native "*SVGPathSegMovetoRel" { | 11562 class _SVGPathSegMovetoRelImpl extends _SVGPathSegImpl implements SVGPathSegMove
toRel native "*SVGPathSegMovetoRel" { |
11615 | 11563 |
11616 num x; | 11564 num x; |
11617 | 11565 |
11618 num y; | 11566 num y; |
11619 } | 11567 } |
11620 | 11568 |
11621 class _SVGPatternElementJs extends _SVGElementJs implements SVGPatternElement na
tive "*SVGPatternElement" { | 11569 class _SVGPatternElementImpl extends _SVGElementImpl implements SVGPatternElemen
t native "*SVGPatternElement" { |
11622 | 11570 |
11623 final _SVGAnimatedLengthJs height; | 11571 final _SVGAnimatedLengthImpl height; |
11624 | 11572 |
11625 final _SVGAnimatedEnumerationJs patternContentUnits; | 11573 final _SVGAnimatedEnumerationImpl patternContentUnits; |
11626 | 11574 |
11627 final _SVGAnimatedTransformListJs patternTransform; | 11575 final _SVGAnimatedTransformListImpl patternTransform; |
11628 | 11576 |
11629 final _SVGAnimatedEnumerationJs patternUnits; | 11577 final _SVGAnimatedEnumerationImpl patternUnits; |
11630 | 11578 |
11631 final _SVGAnimatedLengthJs width; | 11579 final _SVGAnimatedLengthImpl width; |
11632 | 11580 |
11633 final _SVGAnimatedLengthJs x; | 11581 final _SVGAnimatedLengthImpl x; |
11634 | 11582 |
11635 final _SVGAnimatedLengthJs y; | 11583 final _SVGAnimatedLengthImpl y; |
11636 | 11584 |
11637 // From SVGURIReference | 11585 // From SVGURIReference |
11638 | 11586 |
11639 final _SVGAnimatedStringJs href; | 11587 final _SVGAnimatedStringImpl href; |
11640 | 11588 |
11641 // From SVGTests | 11589 // From SVGTests |
11642 | 11590 |
11643 final _SVGStringListJs requiredExtensions; | 11591 final _SVGStringListImpl requiredExtensions; |
11644 | 11592 |
11645 final _SVGStringListJs requiredFeatures; | 11593 final _SVGStringListImpl requiredFeatures; |
11646 | 11594 |
11647 final _SVGStringListJs systemLanguage; | 11595 final _SVGStringListImpl systemLanguage; |
11648 | 11596 |
11649 bool hasExtension(String extension) native; | 11597 bool hasExtension(String extension) native; |
11650 | 11598 |
11651 // From SVGLangSpace | 11599 // From SVGLangSpace |
11652 | 11600 |
11653 String xmllang; | 11601 String xmllang; |
11654 | 11602 |
11655 String xmlspace; | 11603 String xmlspace; |
11656 | 11604 |
11657 // From SVGExternalResourcesRequired | 11605 // From SVGExternalResourcesRequired |
11658 | 11606 |
11659 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11607 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11660 | 11608 |
11661 // From SVGStylable | 11609 // From SVGStylable |
11662 | 11610 |
11663 _SVGAnimatedStringJs get _className() native "return this.className;"; | 11611 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
11664 | 11612 |
11665 // Use implementation from Element. | 11613 // Use implementation from Element. |
11666 // final _CSSStyleDeclarationJs style; | 11614 // final _CSSStyleDeclarationImpl style; |
11667 | 11615 |
11668 _CSSValueJs getPresentationAttribute(String name) native; | 11616 _CSSValueImpl getPresentationAttribute(String name) native; |
11669 | 11617 |
11670 // From SVGFitToViewBox | 11618 // From SVGFitToViewBox |
11671 | 11619 |
11672 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 11620 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
11673 | 11621 |
11674 final _SVGAnimatedRectJs viewBox; | 11622 final _SVGAnimatedRectImpl viewBox; |
11675 } | 11623 } |
11676 | 11624 |
11677 class _SVGPointJs implements SVGPoint native "*SVGPoint" { | 11625 class _SVGPointImpl implements SVGPoint native "*SVGPoint" { |
11678 | 11626 |
11679 num x; | 11627 num x; |
11680 | 11628 |
11681 num y; | 11629 num y; |
11682 | 11630 |
11683 _SVGPointJs matrixTransform(_SVGMatrixJs matrix) native; | 11631 _SVGPointImpl matrixTransform(_SVGMatrixImpl matrix) native; |
11684 } | 11632 } |
11685 | 11633 |
11686 class _SVGPointListJs implements SVGPointList native "*SVGPointList" { | 11634 class _SVGPointListImpl implements SVGPointList native "*SVGPointList" { |
11687 | 11635 |
11688 final int numberOfItems; | 11636 final int numberOfItems; |
11689 | 11637 |
11690 _SVGPointJs appendItem(_SVGPointJs item) native; | 11638 _SVGPointImpl appendItem(_SVGPointImpl item) native; |
11691 | 11639 |
11692 void clear() native; | 11640 void clear() native; |
11693 | 11641 |
11694 _SVGPointJs getItem(int index) native; | 11642 _SVGPointImpl getItem(int index) native; |
11695 | 11643 |
11696 _SVGPointJs initialize(_SVGPointJs item) native; | 11644 _SVGPointImpl initialize(_SVGPointImpl item) native; |
11697 | 11645 |
11698 _SVGPointJs insertItemBefore(_SVGPointJs item, int index) native; | 11646 _SVGPointImpl insertItemBefore(_SVGPointImpl item, int index) native; |
11699 | 11647 |
11700 _SVGPointJs removeItem(int index) native; | 11648 _SVGPointImpl removeItem(int index) native; |
11701 | 11649 |
11702 _SVGPointJs replaceItem(_SVGPointJs item, int index) native; | 11650 _SVGPointImpl replaceItem(_SVGPointImpl item, int index) native; |
11703 } | 11651 } |
11704 | 11652 |
11705 class _SVGPolygonElementJs extends _SVGElementJs implements SVGPolygonElement na
tive "*SVGPolygonElement" { | 11653 class _SVGPolygonElementImpl extends _SVGElementImpl implements SVGPolygonElemen
t native "*SVGPolygonElement" { |
11706 | 11654 |
11707 final _SVGPointListJs animatedPoints; | 11655 final _SVGPointListImpl animatedPoints; |
11708 | 11656 |
11709 final _SVGPointListJs points; | 11657 final _SVGPointListImpl points; |
11710 | 11658 |
11711 // From SVGTests | 11659 // From SVGTests |
11712 | 11660 |
11713 final _SVGStringListJs requiredExtensions; | 11661 final _SVGStringListImpl requiredExtensions; |
11714 | 11662 |
11715 final _SVGStringListJs requiredFeatures; | 11663 final _SVGStringListImpl requiredFeatures; |
11716 | 11664 |
11717 final _SVGStringListJs systemLanguage; | 11665 final _SVGStringListImpl systemLanguage; |
11718 | 11666 |
11719 bool hasExtension(String extension) native; | 11667 bool hasExtension(String extension) native; |
11720 | 11668 |
11721 // From SVGLangSpace | 11669 // From SVGLangSpace |
11722 | 11670 |
11723 String xmllang; | 11671 String xmllang; |
11724 | 11672 |
11725 String xmlspace; | 11673 String xmlspace; |
11726 | 11674 |
11727 // From SVGExternalResourcesRequired | 11675 // From SVGExternalResourcesRequired |
11728 | 11676 |
11729 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11677 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11730 | 11678 |
11731 // From SVGStylable | 11679 // From SVGStylable |
11732 | 11680 |
11733 _SVGAnimatedStringJs get _className() native "return this.className;"; | 11681 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
11734 | 11682 |
11735 // Use implementation from Element. | 11683 // Use implementation from Element. |
11736 // final _CSSStyleDeclarationJs style; | 11684 // final _CSSStyleDeclarationImpl style; |
11737 | 11685 |
11738 _CSSValueJs getPresentationAttribute(String name) native; | 11686 _CSSValueImpl getPresentationAttribute(String name) native; |
11739 | 11687 |
11740 // From SVGTransformable | 11688 // From SVGTransformable |
11741 | 11689 |
11742 final _SVGAnimatedTransformListJs transform; | 11690 final _SVGAnimatedTransformListImpl transform; |
11743 | 11691 |
11744 // From SVGLocatable | 11692 // From SVGLocatable |
11745 | 11693 |
11746 final _SVGElementJs farthestViewportElement; | 11694 final _SVGElementImpl farthestViewportElement; |
11747 | 11695 |
11748 final _SVGElementJs nearestViewportElement; | 11696 final _SVGElementImpl nearestViewportElement; |
11749 | 11697 |
11750 _SVGRectJs getBBox() native; | 11698 _SVGRectImpl getBBox() native; |
11751 | 11699 |
11752 _SVGMatrixJs getCTM() native; | 11700 _SVGMatrixImpl getCTM() native; |
11753 | 11701 |
11754 _SVGMatrixJs getScreenCTM() native; | 11702 _SVGMatrixImpl getScreenCTM() native; |
11755 | 11703 |
11756 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 11704 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
11757 } | 11705 } |
11758 | 11706 |
11759 class _SVGPolylineElementJs extends _SVGElementJs implements SVGPolylineElement
native "*SVGPolylineElement" { | 11707 class _SVGPolylineElementImpl extends _SVGElementImpl implements SVGPolylineElem
ent native "*SVGPolylineElement" { |
11760 | 11708 |
11761 final _SVGPointListJs animatedPoints; | 11709 final _SVGPointListImpl animatedPoints; |
11762 | 11710 |
11763 final _SVGPointListJs points; | 11711 final _SVGPointListImpl points; |
11764 | 11712 |
11765 // From SVGTests | 11713 // From SVGTests |
11766 | 11714 |
11767 final _SVGStringListJs requiredExtensions; | 11715 final _SVGStringListImpl requiredExtensions; |
11768 | 11716 |
11769 final _SVGStringListJs requiredFeatures; | 11717 final _SVGStringListImpl requiredFeatures; |
11770 | 11718 |
11771 final _SVGStringListJs systemLanguage; | 11719 final _SVGStringListImpl systemLanguage; |
11772 | 11720 |
11773 bool hasExtension(String extension) native; | 11721 bool hasExtension(String extension) native; |
11774 | 11722 |
11775 // From SVGLangSpace | 11723 // From SVGLangSpace |
11776 | 11724 |
11777 String xmllang; | 11725 String xmllang; |
11778 | 11726 |
11779 String xmlspace; | 11727 String xmlspace; |
11780 | 11728 |
11781 // From SVGExternalResourcesRequired | 11729 // From SVGExternalResourcesRequired |
11782 | 11730 |
11783 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11731 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11784 | 11732 |
11785 // From SVGStylable | 11733 // From SVGStylable |
11786 | 11734 |
11787 _SVGAnimatedStringJs get _className() native "return this.className;"; | 11735 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
11788 | 11736 |
11789 // Use implementation from Element. | 11737 // Use implementation from Element. |
11790 // final _CSSStyleDeclarationJs style; | 11738 // final _CSSStyleDeclarationImpl style; |
11791 | 11739 |
11792 _CSSValueJs getPresentationAttribute(String name) native; | 11740 _CSSValueImpl getPresentationAttribute(String name) native; |
11793 | 11741 |
11794 // From SVGTransformable | 11742 // From SVGTransformable |
11795 | 11743 |
11796 final _SVGAnimatedTransformListJs transform; | 11744 final _SVGAnimatedTransformListImpl transform; |
11797 | 11745 |
11798 // From SVGLocatable | 11746 // From SVGLocatable |
11799 | 11747 |
11800 final _SVGElementJs farthestViewportElement; | 11748 final _SVGElementImpl farthestViewportElement; |
11801 | 11749 |
11802 final _SVGElementJs nearestViewportElement; | 11750 final _SVGElementImpl nearestViewportElement; |
11803 | 11751 |
11804 _SVGRectJs getBBox() native; | 11752 _SVGRectImpl getBBox() native; |
11805 | 11753 |
11806 _SVGMatrixJs getCTM() native; | 11754 _SVGMatrixImpl getCTM() native; |
11807 | 11755 |
11808 _SVGMatrixJs getScreenCTM() native; | 11756 _SVGMatrixImpl getScreenCTM() native; |
11809 | 11757 |
11810 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 11758 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
11811 } | 11759 } |
11812 | 11760 |
11813 class _SVGPreserveAspectRatioJs implements SVGPreserveAspectRatio native "*SVGPr
eserveAspectRatio" { | 11761 class _SVGPreserveAspectRatioImpl implements SVGPreserveAspectRatio native "*SVG
PreserveAspectRatio" { |
11814 | 11762 |
11815 static final int SVG_MEETORSLICE_MEET = 1; | 11763 static final int SVG_MEETORSLICE_MEET = 1; |
11816 | 11764 |
11817 static final int SVG_MEETORSLICE_SLICE = 2; | 11765 static final int SVG_MEETORSLICE_SLICE = 2; |
11818 | 11766 |
11819 static final int SVG_MEETORSLICE_UNKNOWN = 0; | 11767 static final int SVG_MEETORSLICE_UNKNOWN = 0; |
11820 | 11768 |
11821 static final int SVG_PRESERVEASPECTRATIO_NONE = 1; | 11769 static final int SVG_PRESERVEASPECTRATIO_NONE = 1; |
11822 | 11770 |
11823 static final int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; | 11771 static final int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; |
(...skipping 14 matching lines...) Expand all Loading... |
11838 | 11786 |
11839 static final int SVG_PRESERVEASPECTRATIO_XMINYMID = 5; | 11787 static final int SVG_PRESERVEASPECTRATIO_XMINYMID = 5; |
11840 | 11788 |
11841 static final int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; | 11789 static final int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; |
11842 | 11790 |
11843 int align; | 11791 int align; |
11844 | 11792 |
11845 int meetOrSlice; | 11793 int meetOrSlice; |
11846 } | 11794 } |
11847 | 11795 |
11848 class _SVGRadialGradientElementJs extends _SVGGradientElementJs implements SVGRa
dialGradientElement native "*SVGRadialGradientElement" { | 11796 class _SVGRadialGradientElementImpl extends _SVGGradientElementImpl implements S
VGRadialGradientElement native "*SVGRadialGradientElement" { |
11849 | 11797 |
11850 final _SVGAnimatedLengthJs cx; | 11798 final _SVGAnimatedLengthImpl cx; |
11851 | 11799 |
11852 final _SVGAnimatedLengthJs cy; | 11800 final _SVGAnimatedLengthImpl cy; |
11853 | 11801 |
11854 final _SVGAnimatedLengthJs fx; | 11802 final _SVGAnimatedLengthImpl fx; |
11855 | 11803 |
11856 final _SVGAnimatedLengthJs fy; | 11804 final _SVGAnimatedLengthImpl fy; |
11857 | 11805 |
11858 final _SVGAnimatedLengthJs r; | 11806 final _SVGAnimatedLengthImpl r; |
11859 } | 11807 } |
11860 | 11808 |
11861 class _SVGRectJs implements SVGRect native "*SVGRect" { | 11809 class _SVGRectImpl implements SVGRect native "*SVGRect" { |
11862 | 11810 |
11863 num height; | 11811 num height; |
11864 | 11812 |
11865 num width; | 11813 num width; |
11866 | 11814 |
11867 num x; | 11815 num x; |
11868 | 11816 |
11869 num y; | 11817 num y; |
11870 } | 11818 } |
11871 | 11819 |
11872 class _SVGRectElementJs extends _SVGElementJs implements SVGRectElement native "
*SVGRectElement" { | 11820 class _SVGRectElementImpl extends _SVGElementImpl implements SVGRectElement nati
ve "*SVGRectElement" { |
11873 | 11821 |
11874 final _SVGAnimatedLengthJs height; | 11822 final _SVGAnimatedLengthImpl height; |
11875 | 11823 |
11876 final _SVGAnimatedLengthJs rx; | 11824 final _SVGAnimatedLengthImpl rx; |
11877 | 11825 |
11878 final _SVGAnimatedLengthJs ry; | 11826 final _SVGAnimatedLengthImpl ry; |
11879 | 11827 |
11880 final _SVGAnimatedLengthJs width; | 11828 final _SVGAnimatedLengthImpl width; |
11881 | 11829 |
11882 final _SVGAnimatedLengthJs x; | 11830 final _SVGAnimatedLengthImpl x; |
11883 | 11831 |
11884 final _SVGAnimatedLengthJs y; | 11832 final _SVGAnimatedLengthImpl y; |
11885 | 11833 |
11886 // From SVGTests | 11834 // From SVGTests |
11887 | 11835 |
11888 final _SVGStringListJs requiredExtensions; | 11836 final _SVGStringListImpl requiredExtensions; |
11889 | 11837 |
11890 final _SVGStringListJs requiredFeatures; | 11838 final _SVGStringListImpl requiredFeatures; |
11891 | 11839 |
11892 final _SVGStringListJs systemLanguage; | 11840 final _SVGStringListImpl systemLanguage; |
11893 | 11841 |
11894 bool hasExtension(String extension) native; | 11842 bool hasExtension(String extension) native; |
11895 | 11843 |
11896 // From SVGLangSpace | 11844 // From SVGLangSpace |
11897 | 11845 |
11898 String xmllang; | 11846 String xmllang; |
11899 | 11847 |
11900 String xmlspace; | 11848 String xmlspace; |
11901 | 11849 |
11902 // From SVGExternalResourcesRequired | 11850 // From SVGExternalResourcesRequired |
11903 | 11851 |
11904 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11852 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
11905 | 11853 |
11906 // From SVGStylable | 11854 // From SVGStylable |
11907 | 11855 |
11908 _SVGAnimatedStringJs get _className() native "return this.className;"; | 11856 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
11909 | 11857 |
11910 // Use implementation from Element. | 11858 // Use implementation from Element. |
11911 // final _CSSStyleDeclarationJs style; | 11859 // final _CSSStyleDeclarationImpl style; |
11912 | 11860 |
11913 _CSSValueJs getPresentationAttribute(String name) native; | 11861 _CSSValueImpl getPresentationAttribute(String name) native; |
11914 | 11862 |
11915 // From SVGTransformable | 11863 // From SVGTransformable |
11916 | 11864 |
11917 final _SVGAnimatedTransformListJs transform; | 11865 final _SVGAnimatedTransformListImpl transform; |
11918 | 11866 |
11919 // From SVGLocatable | 11867 // From SVGLocatable |
11920 | 11868 |
11921 final _SVGElementJs farthestViewportElement; | 11869 final _SVGElementImpl farthestViewportElement; |
11922 | 11870 |
11923 final _SVGElementJs nearestViewportElement; | 11871 final _SVGElementImpl nearestViewportElement; |
11924 | 11872 |
11925 _SVGRectJs getBBox() native; | 11873 _SVGRectImpl getBBox() native; |
11926 | 11874 |
11927 _SVGMatrixJs getCTM() native; | 11875 _SVGMatrixImpl getCTM() native; |
11928 | 11876 |
11929 _SVGMatrixJs getScreenCTM() native; | 11877 _SVGMatrixImpl getScreenCTM() native; |
11930 | 11878 |
11931 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 11879 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
11932 } | 11880 } |
11933 | 11881 |
11934 class _SVGRenderingIntentJs implements SVGRenderingIntent native "*SVGRenderingI
ntent" { | 11882 class _SVGRenderingIntentImpl implements SVGRenderingIntent native "*SVGRenderin
gIntent" { |
11935 | 11883 |
11936 static final int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; | 11884 static final int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; |
11937 | 11885 |
11938 static final int RENDERING_INTENT_AUTO = 1; | 11886 static final int RENDERING_INTENT_AUTO = 1; |
11939 | 11887 |
11940 static final int RENDERING_INTENT_PERCEPTUAL = 2; | 11888 static final int RENDERING_INTENT_PERCEPTUAL = 2; |
11941 | 11889 |
11942 static final int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; | 11890 static final int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; |
11943 | 11891 |
11944 static final int RENDERING_INTENT_SATURATION = 4; | 11892 static final int RENDERING_INTENT_SATURATION = 4; |
11945 | 11893 |
11946 static final int RENDERING_INTENT_UNKNOWN = 0; | 11894 static final int RENDERING_INTENT_UNKNOWN = 0; |
11947 } | 11895 } |
11948 | 11896 |
11949 class _SVGSVGElementJs extends _SVGElementJs implements SVGSVGElement native "*S
VGSVGElement" { | 11897 class _SVGSVGElementImpl extends _SVGElementImpl implements SVGSVGElement native
"*SVGSVGElement" { |
11950 | 11898 |
11951 String contentScriptType; | 11899 String contentScriptType; |
11952 | 11900 |
11953 String contentStyleType; | 11901 String contentStyleType; |
11954 | 11902 |
11955 num currentScale; | 11903 num currentScale; |
11956 | 11904 |
11957 final _SVGPointJs currentTranslate; | 11905 final _SVGPointImpl currentTranslate; |
11958 | 11906 |
11959 final _SVGAnimatedLengthJs height; | 11907 final _SVGAnimatedLengthImpl height; |
11960 | 11908 |
11961 final num pixelUnitToMillimeterX; | 11909 final num pixelUnitToMillimeterX; |
11962 | 11910 |
11963 final num pixelUnitToMillimeterY; | 11911 final num pixelUnitToMillimeterY; |
11964 | 11912 |
11965 final num screenPixelToMillimeterX; | 11913 final num screenPixelToMillimeterX; |
11966 | 11914 |
11967 final num screenPixelToMillimeterY; | 11915 final num screenPixelToMillimeterY; |
11968 | 11916 |
11969 bool useCurrentView; | 11917 bool useCurrentView; |
11970 | 11918 |
11971 final _SVGRectJs viewport; | 11919 final _SVGRectImpl viewport; |
11972 | 11920 |
11973 final _SVGAnimatedLengthJs width; | 11921 final _SVGAnimatedLengthImpl width; |
11974 | 11922 |
11975 final _SVGAnimatedLengthJs x; | 11923 final _SVGAnimatedLengthImpl x; |
11976 | 11924 |
11977 final _SVGAnimatedLengthJs y; | 11925 final _SVGAnimatedLengthImpl y; |
11978 | 11926 |
11979 bool animationsPaused() native; | 11927 bool animationsPaused() native; |
11980 | 11928 |
11981 bool checkEnclosure(_SVGElementJs element, _SVGRectJs rect) native; | 11929 bool checkEnclosure(_SVGElementImpl element, _SVGRectImpl rect) native; |
11982 | 11930 |
11983 bool checkIntersection(_SVGElementJs element, _SVGRectJs rect) native; | 11931 bool checkIntersection(_SVGElementImpl element, _SVGRectImpl rect) native; |
11984 | 11932 |
11985 _SVGAngleJs createSVGAngle() native; | 11933 _SVGAngleImpl createSVGAngle() native; |
11986 | 11934 |
11987 _SVGLengthJs createSVGLength() native; | 11935 _SVGLengthImpl createSVGLength() native; |
11988 | 11936 |
11989 _SVGMatrixJs createSVGMatrix() native; | 11937 _SVGMatrixImpl createSVGMatrix() native; |
11990 | 11938 |
11991 _SVGNumberJs createSVGNumber() native; | 11939 _SVGNumberImpl createSVGNumber() native; |
11992 | 11940 |
11993 _SVGPointJs createSVGPoint() native; | 11941 _SVGPointImpl createSVGPoint() native; |
11994 | 11942 |
11995 _SVGRectJs createSVGRect() native; | 11943 _SVGRectImpl createSVGRect() native; |
11996 | 11944 |
11997 _SVGTransformJs createSVGTransform() native; | 11945 _SVGTransformImpl createSVGTransform() native; |
11998 | 11946 |
11999 _SVGTransformJs createSVGTransformFromMatrix(_SVGMatrixJs matrix) native; | 11947 _SVGTransformImpl createSVGTransformFromMatrix(_SVGMatrixImpl matrix) native; |
12000 | 11948 |
12001 void deselectAll() native; | 11949 void deselectAll() native; |
12002 | 11950 |
12003 void forceRedraw() native; | 11951 void forceRedraw() native; |
12004 | 11952 |
12005 num getCurrentTime() native; | 11953 num getCurrentTime() native; |
12006 | 11954 |
12007 _ElementJs getElementById(String elementId) native; | 11955 _ElementImpl getElementById(String elementId) native; |
12008 | 11956 |
12009 _NodeListJs getEnclosureList(_SVGRectJs rect, _SVGElementJs referenceElement)
native; | 11957 _NodeListImpl getEnclosureList(_SVGRectImpl rect, _SVGElementImpl referenceEle
ment) native; |
12010 | 11958 |
12011 _NodeListJs getIntersectionList(_SVGRectJs rect, _SVGElementJs referenceElemen
t) native; | 11959 _NodeListImpl getIntersectionList(_SVGRectImpl rect, _SVGElementImpl reference
Element) native; |
12012 | 11960 |
12013 void pauseAnimations() native; | 11961 void pauseAnimations() native; |
12014 | 11962 |
12015 void setCurrentTime(num seconds) native; | 11963 void setCurrentTime(num seconds) native; |
12016 | 11964 |
12017 int suspendRedraw(int maxWaitMilliseconds) native; | 11965 int suspendRedraw(int maxWaitMilliseconds) native; |
12018 | 11966 |
12019 void unpauseAnimations() native; | 11967 void unpauseAnimations() native; |
12020 | 11968 |
12021 void unsuspendRedraw(int suspendHandleId) native; | 11969 void unsuspendRedraw(int suspendHandleId) native; |
12022 | 11970 |
12023 void unsuspendRedrawAll() native; | 11971 void unsuspendRedrawAll() native; |
12024 | 11972 |
12025 // From SVGTests | 11973 // From SVGTests |
12026 | 11974 |
12027 final _SVGStringListJs requiredExtensions; | 11975 final _SVGStringListImpl requiredExtensions; |
12028 | 11976 |
12029 final _SVGStringListJs requiredFeatures; | 11977 final _SVGStringListImpl requiredFeatures; |
12030 | 11978 |
12031 final _SVGStringListJs systemLanguage; | 11979 final _SVGStringListImpl systemLanguage; |
12032 | 11980 |
12033 bool hasExtension(String extension) native; | 11981 bool hasExtension(String extension) native; |
12034 | 11982 |
12035 // From SVGLangSpace | 11983 // From SVGLangSpace |
12036 | 11984 |
12037 String xmllang; | 11985 String xmllang; |
12038 | 11986 |
12039 String xmlspace; | 11987 String xmlspace; |
12040 | 11988 |
12041 // From SVGExternalResourcesRequired | 11989 // From SVGExternalResourcesRequired |
12042 | 11990 |
12043 final _SVGAnimatedBooleanJs externalResourcesRequired; | 11991 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12044 | 11992 |
12045 // From SVGStylable | 11993 // From SVGStylable |
12046 | 11994 |
12047 _SVGAnimatedStringJs get _className() native "return this.className;"; | 11995 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
12048 | 11996 |
12049 // Use implementation from Element. | 11997 // Use implementation from Element. |
12050 // final _CSSStyleDeclarationJs style; | 11998 // final _CSSStyleDeclarationImpl style; |
12051 | 11999 |
12052 _CSSValueJs getPresentationAttribute(String name) native; | 12000 _CSSValueImpl getPresentationAttribute(String name) native; |
12053 | 12001 |
12054 // From SVGLocatable | 12002 // From SVGLocatable |
12055 | 12003 |
12056 final _SVGElementJs farthestViewportElement; | 12004 final _SVGElementImpl farthestViewportElement; |
12057 | 12005 |
12058 final _SVGElementJs nearestViewportElement; | 12006 final _SVGElementImpl nearestViewportElement; |
12059 | 12007 |
12060 _SVGRectJs getBBox() native; | 12008 _SVGRectImpl getBBox() native; |
12061 | 12009 |
12062 _SVGMatrixJs getCTM() native; | 12010 _SVGMatrixImpl getCTM() native; |
12063 | 12011 |
12064 _SVGMatrixJs getScreenCTM() native; | 12012 _SVGMatrixImpl getScreenCTM() native; |
12065 | 12013 |
12066 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 12014 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
12067 | 12015 |
12068 // From SVGFitToViewBox | 12016 // From SVGFitToViewBox |
12069 | 12017 |
12070 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 12018 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
12071 | 12019 |
12072 final _SVGAnimatedRectJs viewBox; | 12020 final _SVGAnimatedRectImpl viewBox; |
12073 | 12021 |
12074 // From SVGZoomAndPan | 12022 // From SVGZoomAndPan |
12075 | 12023 |
12076 int zoomAndPan; | 12024 int zoomAndPan; |
12077 } | 12025 } |
12078 | 12026 |
12079 class _SVGScriptElementJs extends _SVGElementJs implements SVGScriptElement nati
ve "*SVGScriptElement" { | 12027 class _SVGScriptElementImpl extends _SVGElementImpl implements SVGScriptElement
native "*SVGScriptElement" { |
12080 | 12028 |
12081 String type; | 12029 String type; |
12082 | 12030 |
12083 // From SVGURIReference | 12031 // From SVGURIReference |
12084 | 12032 |
12085 final _SVGAnimatedStringJs href; | 12033 final _SVGAnimatedStringImpl href; |
12086 | 12034 |
12087 // From SVGExternalResourcesRequired | 12035 // From SVGExternalResourcesRequired |
12088 | 12036 |
12089 final _SVGAnimatedBooleanJs externalResourcesRequired; | 12037 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12090 } | 12038 } |
12091 | 12039 |
12092 class _SVGSetElementJs extends _SVGAnimationElementJs implements SVGSetElement n
ative "*SVGSetElement" { | 12040 class _SVGSetElementImpl extends _SVGAnimationElementImpl implements SVGSetEleme
nt native "*SVGSetElement" { |
12093 } | 12041 } |
12094 | 12042 |
12095 class _SVGStopElementJs extends _SVGElementJs implements SVGStopElement native "
*SVGStopElement" { | 12043 class _SVGStopElementImpl extends _SVGElementImpl implements SVGStopElement nati
ve "*SVGStopElement" { |
12096 | 12044 |
12097 final _SVGAnimatedNumberJs offset; | 12045 final _SVGAnimatedNumberImpl offset; |
12098 | 12046 |
12099 // From SVGStylable | 12047 // From SVGStylable |
12100 | 12048 |
12101 _SVGAnimatedStringJs get _className() native "return this.className;"; | 12049 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
12102 | 12050 |
12103 // Use implementation from Element. | 12051 // Use implementation from Element. |
12104 // final _CSSStyleDeclarationJs style; | 12052 // final _CSSStyleDeclarationImpl style; |
12105 | 12053 |
12106 _CSSValueJs getPresentationAttribute(String name) native; | 12054 _CSSValueImpl getPresentationAttribute(String name) native; |
12107 } | 12055 } |
12108 | 12056 |
12109 class _SVGStringListJs implements SVGStringList native "*SVGStringList" { | 12057 class _SVGStringListImpl implements SVGStringList native "*SVGStringList" { |
12110 | 12058 |
12111 final int numberOfItems; | 12059 final int numberOfItems; |
12112 | 12060 |
12113 String appendItem(String item) native; | 12061 String appendItem(String item) native; |
12114 | 12062 |
12115 void clear() native; | 12063 void clear() native; |
12116 | 12064 |
12117 String getItem(int index) native; | 12065 String getItem(int index) native; |
12118 | 12066 |
12119 String initialize(String item) native; | 12067 String initialize(String item) native; |
12120 | 12068 |
12121 String insertItemBefore(String item, int index) native; | 12069 String insertItemBefore(String item, int index) native; |
12122 | 12070 |
12123 String removeItem(int index) native; | 12071 String removeItem(int index) native; |
12124 | 12072 |
12125 String replaceItem(String item, int index) native; | 12073 String replaceItem(String item, int index) native; |
12126 } | 12074 } |
12127 | 12075 |
12128 class _SVGStylableJs implements SVGStylable native "*SVGStylable" { | 12076 class _SVGStylableImpl implements SVGStylable native "*SVGStylable" { |
12129 | 12077 |
12130 final _SVGAnimatedStringJs className; | 12078 final _SVGAnimatedStringImpl className; |
12131 | 12079 |
12132 final _CSSStyleDeclarationJs style; | 12080 final _CSSStyleDeclarationImpl style; |
12133 | 12081 |
12134 _CSSValueJs getPresentationAttribute(String name) native; | 12082 _CSSValueImpl getPresentationAttribute(String name) native; |
12135 } | 12083 } |
12136 | 12084 |
12137 class _SVGStyleElementJs extends _SVGElementJs implements SVGStyleElement native
"*SVGStyleElement" { | 12085 class _SVGStyleElementImpl extends _SVGElementImpl implements SVGStyleElement na
tive "*SVGStyleElement" { |
12138 | 12086 |
12139 bool disabled; | 12087 bool disabled; |
12140 | 12088 |
12141 String media; | 12089 String media; |
12142 | 12090 |
12143 // Shadowing definition. | |
12144 String get title() native "return this.title;"; | |
12145 | |
12146 void set title(String value) native "this.title = value;"; | |
12147 | |
12148 String type; | 12091 String type; |
12149 | 12092 |
12150 // From SVGLangSpace | 12093 // From SVGLangSpace |
12151 | 12094 |
12152 String xmllang; | 12095 String xmllang; |
12153 | 12096 |
12154 String xmlspace; | 12097 String xmlspace; |
12155 } | 12098 } |
12156 | 12099 |
12157 class _SVGSwitchElementJs extends _SVGElementJs implements SVGSwitchElement nati
ve "*SVGSwitchElement" { | 12100 class _SVGSwitchElementImpl extends _SVGElementImpl implements SVGSwitchElement
native "*SVGSwitchElement" { |
12158 | 12101 |
12159 // From SVGTests | 12102 // From SVGTests |
12160 | 12103 |
12161 final _SVGStringListJs requiredExtensions; | 12104 final _SVGStringListImpl requiredExtensions; |
12162 | 12105 |
12163 final _SVGStringListJs requiredFeatures; | 12106 final _SVGStringListImpl requiredFeatures; |
12164 | 12107 |
12165 final _SVGStringListJs systemLanguage; | 12108 final _SVGStringListImpl systemLanguage; |
12166 | 12109 |
12167 bool hasExtension(String extension) native; | 12110 bool hasExtension(String extension) native; |
12168 | 12111 |
12169 // From SVGLangSpace | 12112 // From SVGLangSpace |
12170 | 12113 |
12171 String xmllang; | 12114 String xmllang; |
12172 | 12115 |
12173 String xmlspace; | 12116 String xmlspace; |
12174 | 12117 |
12175 // From SVGExternalResourcesRequired | 12118 // From SVGExternalResourcesRequired |
12176 | 12119 |
12177 final _SVGAnimatedBooleanJs externalResourcesRequired; | 12120 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12178 | 12121 |
12179 // From SVGStylable | 12122 // From SVGStylable |
12180 | 12123 |
12181 _SVGAnimatedStringJs get _className() native "return this.className;"; | 12124 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
12182 | 12125 |
12183 // Use implementation from Element. | 12126 // Use implementation from Element. |
12184 // final _CSSStyleDeclarationJs style; | 12127 // final _CSSStyleDeclarationImpl style; |
12185 | 12128 |
12186 _CSSValueJs getPresentationAttribute(String name) native; | 12129 _CSSValueImpl getPresentationAttribute(String name) native; |
12187 | 12130 |
12188 // From SVGTransformable | 12131 // From SVGTransformable |
12189 | 12132 |
12190 final _SVGAnimatedTransformListJs transform; | 12133 final _SVGAnimatedTransformListImpl transform; |
12191 | 12134 |
12192 // From SVGLocatable | 12135 // From SVGLocatable |
12193 | 12136 |
12194 final _SVGElementJs farthestViewportElement; | 12137 final _SVGElementImpl farthestViewportElement; |
12195 | 12138 |
12196 final _SVGElementJs nearestViewportElement; | 12139 final _SVGElementImpl nearestViewportElement; |
12197 | 12140 |
12198 _SVGRectJs getBBox() native; | 12141 _SVGRectImpl getBBox() native; |
12199 | 12142 |
12200 _SVGMatrixJs getCTM() native; | 12143 _SVGMatrixImpl getCTM() native; |
12201 | 12144 |
12202 _SVGMatrixJs getScreenCTM() native; | 12145 _SVGMatrixImpl getScreenCTM() native; |
12203 | 12146 |
12204 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 12147 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
12205 } | 12148 } |
12206 | 12149 |
12207 class _SVGSymbolElementJs extends _SVGElementJs implements SVGSymbolElement nati
ve "*SVGSymbolElement" { | 12150 class _SVGSymbolElementImpl extends _SVGElementImpl implements SVGSymbolElement
native "*SVGSymbolElement" { |
12208 | 12151 |
12209 // From SVGLangSpace | 12152 // From SVGLangSpace |
12210 | 12153 |
12211 String xmllang; | 12154 String xmllang; |
12212 | 12155 |
12213 String xmlspace; | 12156 String xmlspace; |
12214 | 12157 |
12215 // From SVGExternalResourcesRequired | 12158 // From SVGExternalResourcesRequired |
12216 | 12159 |
12217 final _SVGAnimatedBooleanJs externalResourcesRequired; | 12160 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12218 | 12161 |
12219 // From SVGStylable | 12162 // From SVGStylable |
12220 | 12163 |
12221 _SVGAnimatedStringJs get _className() native "return this.className;"; | 12164 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
12222 | 12165 |
12223 // Use implementation from Element. | 12166 // Use implementation from Element. |
12224 // final _CSSStyleDeclarationJs style; | 12167 // final _CSSStyleDeclarationImpl style; |
12225 | 12168 |
12226 _CSSValueJs getPresentationAttribute(String name) native; | 12169 _CSSValueImpl getPresentationAttribute(String name) native; |
12227 | 12170 |
12228 // From SVGFitToViewBox | 12171 // From SVGFitToViewBox |
12229 | 12172 |
12230 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 12173 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
12231 | 12174 |
12232 final _SVGAnimatedRectJs viewBox; | 12175 final _SVGAnimatedRectImpl viewBox; |
12233 } | 12176 } |
12234 | 12177 |
12235 class _SVGTRefElementJs extends _SVGTextPositioningElementJs implements SVGTRefE
lement native "*SVGTRefElement" { | 12178 class _SVGTRefElementImpl extends _SVGTextPositioningElementImpl implements SVGT
RefElement native "*SVGTRefElement" { |
12236 | 12179 |
12237 // From SVGURIReference | 12180 // From SVGURIReference |
12238 | 12181 |
12239 final _SVGAnimatedStringJs href; | 12182 final _SVGAnimatedStringImpl href; |
12240 } | 12183 } |
12241 | 12184 |
12242 class _SVGTSpanElementJs extends _SVGTextPositioningElementJs implements SVGTSpa
nElement native "*SVGTSpanElement" { | 12185 class _SVGTSpanElementImpl extends _SVGTextPositioningElementImpl implements SVG
TSpanElement native "*SVGTSpanElement" { |
12243 } | 12186 } |
12244 | 12187 |
12245 class _SVGTestsJs implements SVGTests native "*SVGTests" { | 12188 class _SVGTestsImpl implements SVGTests native "*SVGTests" { |
12246 | 12189 |
12247 final _SVGStringListJs requiredExtensions; | 12190 final _SVGStringListImpl requiredExtensions; |
12248 | 12191 |
12249 final _SVGStringListJs requiredFeatures; | 12192 final _SVGStringListImpl requiredFeatures; |
12250 | 12193 |
12251 final _SVGStringListJs systemLanguage; | 12194 final _SVGStringListImpl systemLanguage; |
12252 | 12195 |
12253 bool hasExtension(String extension) native; | 12196 bool hasExtension(String extension) native; |
12254 } | 12197 } |
12255 | 12198 |
12256 class _SVGTextContentElementJs extends _SVGElementJs implements SVGTextContentEl
ement native "*SVGTextContentElement" { | 12199 class _SVGTextContentElementImpl extends _SVGElementImpl implements SVGTextConte
ntElement native "*SVGTextContentElement" { |
12257 | 12200 |
12258 static final int LENGTHADJUST_SPACING = 1; | 12201 static final int LENGTHADJUST_SPACING = 1; |
12259 | 12202 |
12260 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2; | 12203 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2; |
12261 | 12204 |
12262 static final int LENGTHADJUST_UNKNOWN = 0; | 12205 static final int LENGTHADJUST_UNKNOWN = 0; |
12263 | 12206 |
12264 final _SVGAnimatedEnumerationJs lengthAdjust; | 12207 final _SVGAnimatedEnumerationImpl lengthAdjust; |
12265 | 12208 |
12266 final _SVGAnimatedLengthJs textLength; | 12209 final _SVGAnimatedLengthImpl textLength; |
12267 | 12210 |
12268 int getCharNumAtPosition(_SVGPointJs point) native; | 12211 int getCharNumAtPosition(_SVGPointImpl point) native; |
12269 | 12212 |
12270 num getComputedTextLength() native; | 12213 num getComputedTextLength() native; |
12271 | 12214 |
12272 _SVGPointJs getEndPositionOfChar(int offset) native; | 12215 _SVGPointImpl getEndPositionOfChar(int offset) native; |
12273 | 12216 |
12274 _SVGRectJs getExtentOfChar(int offset) native; | 12217 _SVGRectImpl getExtentOfChar(int offset) native; |
12275 | 12218 |
12276 int getNumberOfChars() native; | 12219 int getNumberOfChars() native; |
12277 | 12220 |
12278 num getRotationOfChar(int offset) native; | 12221 num getRotationOfChar(int offset) native; |
12279 | 12222 |
12280 _SVGPointJs getStartPositionOfChar(int offset) native; | 12223 _SVGPointImpl getStartPositionOfChar(int offset) native; |
12281 | 12224 |
12282 num getSubStringLength(int offset, int length) native; | 12225 num getSubStringLength(int offset, int length) native; |
12283 | 12226 |
12284 void selectSubString(int offset, int length) native; | 12227 void selectSubString(int offset, int length) native; |
12285 | 12228 |
12286 // From SVGTests | 12229 // From SVGTests |
12287 | 12230 |
12288 final _SVGStringListJs requiredExtensions; | 12231 final _SVGStringListImpl requiredExtensions; |
12289 | 12232 |
12290 final _SVGStringListJs requiredFeatures; | 12233 final _SVGStringListImpl requiredFeatures; |
12291 | 12234 |
12292 final _SVGStringListJs systemLanguage; | 12235 final _SVGStringListImpl systemLanguage; |
12293 | 12236 |
12294 bool hasExtension(String extension) native; | 12237 bool hasExtension(String extension) native; |
12295 | 12238 |
12296 // From SVGLangSpace | 12239 // From SVGLangSpace |
12297 | 12240 |
12298 String xmllang; | 12241 String xmllang; |
12299 | 12242 |
12300 String xmlspace; | 12243 String xmlspace; |
12301 | 12244 |
12302 // From SVGExternalResourcesRequired | 12245 // From SVGExternalResourcesRequired |
12303 | 12246 |
12304 final _SVGAnimatedBooleanJs externalResourcesRequired; | 12247 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12305 | 12248 |
12306 // From SVGStylable | 12249 // From SVGStylable |
12307 | 12250 |
12308 _SVGAnimatedStringJs get _className() native "return this.className;"; | 12251 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
12309 | 12252 |
12310 // Use implementation from Element. | 12253 // Use implementation from Element. |
12311 // final _CSSStyleDeclarationJs style; | 12254 // final _CSSStyleDeclarationImpl style; |
12312 | 12255 |
12313 _CSSValueJs getPresentationAttribute(String name) native; | 12256 _CSSValueImpl getPresentationAttribute(String name) native; |
12314 } | 12257 } |
12315 | 12258 |
12316 class _SVGTextElementJs extends _SVGTextPositioningElementJs implements SVGTextE
lement native "*SVGTextElement" { | 12259 class _SVGTextElementImpl extends _SVGTextPositioningElementImpl implements SVGT
extElement native "*SVGTextElement" { |
12317 | 12260 |
12318 // From SVGTransformable | 12261 // From SVGTransformable |
12319 | 12262 |
12320 final _SVGAnimatedTransformListJs transform; | 12263 final _SVGAnimatedTransformListImpl transform; |
12321 | 12264 |
12322 // From SVGLocatable | 12265 // From SVGLocatable |
12323 | 12266 |
12324 final _SVGElementJs farthestViewportElement; | 12267 final _SVGElementImpl farthestViewportElement; |
12325 | 12268 |
12326 final _SVGElementJs nearestViewportElement; | 12269 final _SVGElementImpl nearestViewportElement; |
12327 | 12270 |
12328 _SVGRectJs getBBox() native; | 12271 _SVGRectImpl getBBox() native; |
12329 | 12272 |
12330 _SVGMatrixJs getCTM() native; | 12273 _SVGMatrixImpl getCTM() native; |
12331 | 12274 |
12332 _SVGMatrixJs getScreenCTM() native; | 12275 _SVGMatrixImpl getScreenCTM() native; |
12333 | 12276 |
12334 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 12277 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
12335 } | 12278 } |
12336 | 12279 |
12337 class _SVGTextPathElementJs extends _SVGTextContentElementJs implements SVGTextP
athElement native "*SVGTextPathElement" { | 12280 class _SVGTextPathElementImpl extends _SVGTextContentElementImpl implements SVGT
extPathElement native "*SVGTextPathElement" { |
12338 | 12281 |
12339 static final int TEXTPATH_METHODTYPE_ALIGN = 1; | 12282 static final int TEXTPATH_METHODTYPE_ALIGN = 1; |
12340 | 12283 |
12341 static final int TEXTPATH_METHODTYPE_STRETCH = 2; | 12284 static final int TEXTPATH_METHODTYPE_STRETCH = 2; |
12342 | 12285 |
12343 static final int TEXTPATH_METHODTYPE_UNKNOWN = 0; | 12286 static final int TEXTPATH_METHODTYPE_UNKNOWN = 0; |
12344 | 12287 |
12345 static final int TEXTPATH_SPACINGTYPE_AUTO = 1; | 12288 static final int TEXTPATH_SPACINGTYPE_AUTO = 1; |
12346 | 12289 |
12347 static final int TEXTPATH_SPACINGTYPE_EXACT = 2; | 12290 static final int TEXTPATH_SPACINGTYPE_EXACT = 2; |
12348 | 12291 |
12349 static final int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; | 12292 static final int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; |
12350 | 12293 |
12351 final _SVGAnimatedEnumerationJs method; | 12294 final _SVGAnimatedEnumerationImpl method; |
12352 | 12295 |
12353 final _SVGAnimatedEnumerationJs spacing; | 12296 final _SVGAnimatedEnumerationImpl spacing; |
12354 | 12297 |
12355 final _SVGAnimatedLengthJs startOffset; | 12298 final _SVGAnimatedLengthImpl startOffset; |
12356 | 12299 |
12357 // From SVGURIReference | 12300 // From SVGURIReference |
12358 | 12301 |
12359 final _SVGAnimatedStringJs href; | 12302 final _SVGAnimatedStringImpl href; |
12360 } | 12303 } |
12361 | 12304 |
12362 class _SVGTextPositioningElementJs extends _SVGTextContentElementJs implements S
VGTextPositioningElement native "*SVGTextPositioningElement" { | 12305 class _SVGTextPositioningElementImpl extends _SVGTextContentElementImpl implemen
ts SVGTextPositioningElement native "*SVGTextPositioningElement" { |
12363 | 12306 |
12364 final _SVGAnimatedLengthListJs dx; | 12307 final _SVGAnimatedLengthListImpl dx; |
12365 | 12308 |
12366 final _SVGAnimatedLengthListJs dy; | 12309 final _SVGAnimatedLengthListImpl dy; |
12367 | 12310 |
12368 final _SVGAnimatedNumberListJs rotate; | 12311 final _SVGAnimatedNumberListImpl rotate; |
12369 | 12312 |
12370 final _SVGAnimatedLengthListJs x; | 12313 final _SVGAnimatedLengthListImpl x; |
12371 | 12314 |
12372 final _SVGAnimatedLengthListJs y; | 12315 final _SVGAnimatedLengthListImpl y; |
12373 } | 12316 } |
12374 | 12317 |
12375 class _SVGTitleElementJs extends _SVGElementJs implements SVGTitleElement native
"*SVGTitleElement" { | 12318 class _SVGTitleElementImpl extends _SVGElementImpl implements SVGTitleElement na
tive "*SVGTitleElement" { |
12376 | 12319 |
12377 // From SVGLangSpace | 12320 // From SVGLangSpace |
12378 | 12321 |
12379 String xmllang; | 12322 String xmllang; |
12380 | 12323 |
12381 String xmlspace; | 12324 String xmlspace; |
12382 | 12325 |
12383 // From SVGStylable | 12326 // From SVGStylable |
12384 | 12327 |
12385 _SVGAnimatedStringJs get _className() native "return this.className;"; | 12328 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
12386 | 12329 |
12387 // Use implementation from Element. | 12330 // Use implementation from Element. |
12388 // final _CSSStyleDeclarationJs style; | 12331 // final _CSSStyleDeclarationImpl style; |
12389 | 12332 |
12390 _CSSValueJs getPresentationAttribute(String name) native; | 12333 _CSSValueImpl getPresentationAttribute(String name) native; |
12391 } | 12334 } |
12392 | 12335 |
12393 class _SVGTransformJs implements SVGTransform native "*SVGTransform" { | 12336 class _SVGTransformImpl implements SVGTransform native "*SVGTransform" { |
12394 | 12337 |
12395 static final int SVG_TRANSFORM_MATRIX = 1; | 12338 static final int SVG_TRANSFORM_MATRIX = 1; |
12396 | 12339 |
12397 static final int SVG_TRANSFORM_ROTATE = 4; | 12340 static final int SVG_TRANSFORM_ROTATE = 4; |
12398 | 12341 |
12399 static final int SVG_TRANSFORM_SCALE = 3; | 12342 static final int SVG_TRANSFORM_SCALE = 3; |
12400 | 12343 |
12401 static final int SVG_TRANSFORM_SKEWX = 5; | 12344 static final int SVG_TRANSFORM_SKEWX = 5; |
12402 | 12345 |
12403 static final int SVG_TRANSFORM_SKEWY = 6; | 12346 static final int SVG_TRANSFORM_SKEWY = 6; |
12404 | 12347 |
12405 static final int SVG_TRANSFORM_TRANSLATE = 2; | 12348 static final int SVG_TRANSFORM_TRANSLATE = 2; |
12406 | 12349 |
12407 static final int SVG_TRANSFORM_UNKNOWN = 0; | 12350 static final int SVG_TRANSFORM_UNKNOWN = 0; |
12408 | 12351 |
12409 final num angle; | 12352 final num angle; |
12410 | 12353 |
12411 final _SVGMatrixJs matrix; | 12354 final _SVGMatrixImpl matrix; |
12412 | 12355 |
12413 final int type; | 12356 final int type; |
12414 | 12357 |
12415 void setMatrix(_SVGMatrixJs matrix) native; | 12358 void setMatrix(_SVGMatrixImpl matrix) native; |
12416 | 12359 |
12417 void setRotate(num angle, num cx, num cy) native; | 12360 void setRotate(num angle, num cx, num cy) native; |
12418 | 12361 |
12419 void setScale(num sx, num sy) native; | 12362 void setScale(num sx, num sy) native; |
12420 | 12363 |
12421 void setSkewX(num angle) native; | 12364 void setSkewX(num angle) native; |
12422 | 12365 |
12423 void setSkewY(num angle) native; | 12366 void setSkewY(num angle) native; |
12424 | 12367 |
12425 void setTranslate(num tx, num ty) native; | 12368 void setTranslate(num tx, num ty) native; |
12426 } | 12369 } |
12427 | 12370 |
12428 class _SVGTransformListJs implements SVGTransformList native "*SVGTransformList"
{ | 12371 class _SVGTransformListImpl implements SVGTransformList native "*SVGTransformLis
t" { |
12429 | 12372 |
12430 final int numberOfItems; | 12373 final int numberOfItems; |
12431 | 12374 |
12432 _SVGTransformJs appendItem(_SVGTransformJs item) native; | 12375 _SVGTransformImpl appendItem(_SVGTransformImpl item) native; |
12433 | 12376 |
12434 void clear() native; | 12377 void clear() native; |
12435 | 12378 |
12436 _SVGTransformJs consolidate() native; | 12379 _SVGTransformImpl consolidate() native; |
12437 | 12380 |
12438 _SVGTransformJs createSVGTransformFromMatrix(_SVGMatrixJs matrix) native; | 12381 _SVGTransformImpl createSVGTransformFromMatrix(_SVGMatrixImpl matrix) native; |
12439 | 12382 |
12440 _SVGTransformJs getItem(int index) native; | 12383 _SVGTransformImpl getItem(int index) native; |
12441 | 12384 |
12442 _SVGTransformJs initialize(_SVGTransformJs item) native; | 12385 _SVGTransformImpl initialize(_SVGTransformImpl item) native; |
12443 | 12386 |
12444 _SVGTransformJs insertItemBefore(_SVGTransformJs item, int index) native; | 12387 _SVGTransformImpl insertItemBefore(_SVGTransformImpl item, int index) native; |
12445 | 12388 |
12446 _SVGTransformJs removeItem(int index) native; | 12389 _SVGTransformImpl removeItem(int index) native; |
12447 | 12390 |
12448 _SVGTransformJs replaceItem(_SVGTransformJs item, int index) native; | 12391 _SVGTransformImpl replaceItem(_SVGTransformImpl item, int index) native; |
12449 } | 12392 } |
12450 | 12393 |
12451 class _SVGTransformableJs extends _SVGLocatableJs implements SVGTransformable na
tive "*SVGTransformable" { | 12394 class _SVGTransformableImpl extends _SVGLocatableImpl implements SVGTransformabl
e native "*SVGTransformable" { |
12452 | 12395 |
12453 final _SVGAnimatedTransformListJs transform; | 12396 final _SVGAnimatedTransformListImpl transform; |
12454 } | 12397 } |
12455 | 12398 |
12456 class _SVGURIReferenceJs implements SVGURIReference native "*SVGURIReference" { | 12399 class _SVGURIReferenceImpl implements SVGURIReference native "*SVGURIReference"
{ |
12457 | 12400 |
12458 final _SVGAnimatedStringJs href; | 12401 final _SVGAnimatedStringImpl href; |
12459 } | 12402 } |
12460 | 12403 |
12461 class _SVGUnitTypesJs implements SVGUnitTypes native "*SVGUnitTypes" { | 12404 class _SVGUnitTypesImpl implements SVGUnitTypes native "*SVGUnitTypes" { |
12462 | 12405 |
12463 static final int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; | 12406 static final int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; |
12464 | 12407 |
12465 static final int SVG_UNIT_TYPE_UNKNOWN = 0; | 12408 static final int SVG_UNIT_TYPE_UNKNOWN = 0; |
12466 | 12409 |
12467 static final int SVG_UNIT_TYPE_USERSPACEONUSE = 1; | 12410 static final int SVG_UNIT_TYPE_USERSPACEONUSE = 1; |
12468 } | 12411 } |
12469 | 12412 |
12470 class _SVGUseElementJs extends _SVGElementJs implements SVGUseElement native "*S
VGUseElement" { | 12413 class _SVGUseElementImpl extends _SVGElementImpl implements SVGUseElement native
"*SVGUseElement" { |
12471 | 12414 |
12472 final _SVGElementInstanceJs animatedInstanceRoot; | 12415 final _SVGElementInstanceImpl animatedInstanceRoot; |
12473 | 12416 |
12474 final _SVGAnimatedLengthJs height; | 12417 final _SVGAnimatedLengthImpl height; |
12475 | 12418 |
12476 final _SVGElementInstanceJs instanceRoot; | 12419 final _SVGElementInstanceImpl instanceRoot; |
12477 | 12420 |
12478 final _SVGAnimatedLengthJs width; | 12421 final _SVGAnimatedLengthImpl width; |
12479 | 12422 |
12480 final _SVGAnimatedLengthJs x; | 12423 final _SVGAnimatedLengthImpl x; |
12481 | 12424 |
12482 final _SVGAnimatedLengthJs y; | 12425 final _SVGAnimatedLengthImpl y; |
12483 | 12426 |
12484 // From SVGURIReference | 12427 // From SVGURIReference |
12485 | 12428 |
12486 final _SVGAnimatedStringJs href; | 12429 final _SVGAnimatedStringImpl href; |
12487 | 12430 |
12488 // From SVGTests | 12431 // From SVGTests |
12489 | 12432 |
12490 final _SVGStringListJs requiredExtensions; | 12433 final _SVGStringListImpl requiredExtensions; |
12491 | 12434 |
12492 final _SVGStringListJs requiredFeatures; | 12435 final _SVGStringListImpl requiredFeatures; |
12493 | 12436 |
12494 final _SVGStringListJs systemLanguage; | 12437 final _SVGStringListImpl systemLanguage; |
12495 | 12438 |
12496 bool hasExtension(String extension) native; | 12439 bool hasExtension(String extension) native; |
12497 | 12440 |
12498 // From SVGLangSpace | 12441 // From SVGLangSpace |
12499 | 12442 |
12500 String xmllang; | 12443 String xmllang; |
12501 | 12444 |
12502 String xmlspace; | 12445 String xmlspace; |
12503 | 12446 |
12504 // From SVGExternalResourcesRequired | 12447 // From SVGExternalResourcesRequired |
12505 | 12448 |
12506 final _SVGAnimatedBooleanJs externalResourcesRequired; | 12449 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12507 | 12450 |
12508 // From SVGStylable | 12451 // From SVGStylable |
12509 | 12452 |
12510 _SVGAnimatedStringJs get _className() native "return this.className;"; | 12453 _SVGAnimatedStringImpl get _className() native "return this.className;"; |
12511 | 12454 |
12512 // Use implementation from Element. | 12455 // Use implementation from Element. |
12513 // final _CSSStyleDeclarationJs style; | 12456 // final _CSSStyleDeclarationImpl style; |
12514 | 12457 |
12515 _CSSValueJs getPresentationAttribute(String name) native; | 12458 _CSSValueImpl getPresentationAttribute(String name) native; |
12516 | 12459 |
12517 // From SVGTransformable | 12460 // From SVGTransformable |
12518 | 12461 |
12519 final _SVGAnimatedTransformListJs transform; | 12462 final _SVGAnimatedTransformListImpl transform; |
12520 | 12463 |
12521 // From SVGLocatable | 12464 // From SVGLocatable |
12522 | 12465 |
12523 final _SVGElementJs farthestViewportElement; | 12466 final _SVGElementImpl farthestViewportElement; |
12524 | 12467 |
12525 final _SVGElementJs nearestViewportElement; | 12468 final _SVGElementImpl nearestViewportElement; |
12526 | 12469 |
12527 _SVGRectJs getBBox() native; | 12470 _SVGRectImpl getBBox() native; |
12528 | 12471 |
12529 _SVGMatrixJs getCTM() native; | 12472 _SVGMatrixImpl getCTM() native; |
12530 | 12473 |
12531 _SVGMatrixJs getScreenCTM() native; | 12474 _SVGMatrixImpl getScreenCTM() native; |
12532 | 12475 |
12533 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | 12476 _SVGMatrixImpl getTransformToElement(_SVGElementImpl element) native; |
12534 } | 12477 } |
12535 | 12478 |
12536 class _SVGVKernElementJs extends _SVGElementJs implements SVGVKernElement native
"*SVGVKernElement" { | 12479 class _SVGVKernElementImpl extends _SVGElementImpl implements SVGVKernElement na
tive "*SVGVKernElement" { |
12537 } | 12480 } |
12538 | 12481 |
12539 class _SVGViewElementJs extends _SVGElementJs implements SVGViewElement native "
*SVGViewElement" { | 12482 class _SVGViewElementImpl extends _SVGElementImpl implements SVGViewElement nati
ve "*SVGViewElement" { |
12540 | 12483 |
12541 final _SVGStringListJs viewTarget; | 12484 final _SVGStringListImpl viewTarget; |
12542 | 12485 |
12543 // From SVGExternalResourcesRequired | 12486 // From SVGExternalResourcesRequired |
12544 | 12487 |
12545 final _SVGAnimatedBooleanJs externalResourcesRequired; | 12488 final _SVGAnimatedBooleanImpl externalResourcesRequired; |
12546 | 12489 |
12547 // From SVGFitToViewBox | 12490 // From SVGFitToViewBox |
12548 | 12491 |
12549 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 12492 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
12550 | 12493 |
12551 final _SVGAnimatedRectJs viewBox; | 12494 final _SVGAnimatedRectImpl viewBox; |
12552 | 12495 |
12553 // From SVGZoomAndPan | 12496 // From SVGZoomAndPan |
12554 | 12497 |
12555 int zoomAndPan; | 12498 int zoomAndPan; |
12556 } | 12499 } |
12557 | 12500 |
12558 class _SVGViewSpecJs extends _SVGZoomAndPanJs implements SVGViewSpec native "*SV
GViewSpec" { | 12501 class _SVGViewSpecImpl extends _SVGZoomAndPanImpl implements SVGViewSpec native
"*SVGViewSpec" { |
12559 | 12502 |
12560 final String preserveAspectRatioString; | 12503 final String preserveAspectRatioString; |
12561 | 12504 |
12562 final _SVGTransformListJs transform; | 12505 final _SVGTransformListImpl transform; |
12563 | 12506 |
12564 final String transformString; | 12507 final String transformString; |
12565 | 12508 |
12566 final String viewBoxString; | 12509 final String viewBoxString; |
12567 | 12510 |
12568 final _SVGElementJs viewTarget; | 12511 final _SVGElementImpl viewTarget; |
12569 | 12512 |
12570 final String viewTargetString; | 12513 final String viewTargetString; |
12571 | 12514 |
12572 // From SVGFitToViewBox | 12515 // From SVGFitToViewBox |
12573 | 12516 |
12574 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | 12517 final _SVGAnimatedPreserveAspectRatioImpl preserveAspectRatio; |
12575 | 12518 |
12576 final _SVGAnimatedRectJs viewBox; | 12519 final _SVGAnimatedRectImpl viewBox; |
12577 } | 12520 } |
12578 | 12521 |
12579 class _SVGZoomAndPanJs implements SVGZoomAndPan native "*SVGZoomAndPan" { | 12522 class _SVGZoomAndPanImpl implements SVGZoomAndPan native "*SVGZoomAndPan" { |
12580 | 12523 |
12581 static final int SVG_ZOOMANDPAN_DISABLE = 1; | 12524 static final int SVG_ZOOMANDPAN_DISABLE = 1; |
12582 | 12525 |
12583 static final int SVG_ZOOMANDPAN_MAGNIFY = 2; | 12526 static final int SVG_ZOOMANDPAN_MAGNIFY = 2; |
12584 | 12527 |
12585 static final int SVG_ZOOMANDPAN_UNKNOWN = 0; | 12528 static final int SVG_ZOOMANDPAN_UNKNOWN = 0; |
12586 | 12529 |
12587 int zoomAndPan; | 12530 int zoomAndPan; |
12588 } | 12531 } |
12589 | 12532 |
12590 class _SVGZoomEventJs extends _UIEventJs implements SVGZoomEvent native "*SVGZoo
mEvent" { | 12533 class _SVGZoomEventImpl extends _UIEventImpl implements SVGZoomEvent native "*SV
GZoomEvent" { |
12591 | 12534 |
12592 final num newScale; | 12535 final num newScale; |
12593 | 12536 |
12594 final _SVGPointJs newTranslate; | 12537 final _SVGPointImpl newTranslate; |
12595 | 12538 |
12596 final num previousScale; | 12539 final num previousScale; |
12597 | 12540 |
12598 final _SVGPointJs previousTranslate; | 12541 final _SVGPointImpl previousTranslate; |
12599 | 12542 |
12600 final _SVGRectJs zoomRectScreen; | 12543 final _SVGRectImpl zoomRectScreen; |
12601 } | 12544 } |
12602 | 12545 |
12603 class _ScreenJs implements Screen native "*Screen" { | 12546 class _ScreenImpl implements Screen native "*Screen" { |
12604 | 12547 |
12605 final int availHeight; | 12548 final int availHeight; |
12606 | 12549 |
12607 final int availLeft; | 12550 final int availLeft; |
12608 | 12551 |
12609 final int availTop; | 12552 final int availTop; |
12610 | 12553 |
12611 final int availWidth; | 12554 final int availWidth; |
12612 | 12555 |
12613 final int colorDepth; | 12556 final int colorDepth; |
12614 | 12557 |
12615 final int height; | 12558 final int height; |
12616 | 12559 |
12617 final int pixelDepth; | 12560 final int pixelDepth; |
12618 | 12561 |
12619 final int width; | 12562 final int width; |
12620 } | 12563 } |
12621 | 12564 |
12622 class _ScriptElementJs extends _ElementJs implements ScriptElement native "*HTML
ScriptElement" { | 12565 class _ScriptElementImpl extends _ElementImpl implements ScriptElement native "*
HTMLScriptElement" { |
12623 | 12566 |
12624 bool async; | 12567 bool async; |
12625 | 12568 |
12626 String charset; | 12569 String charset; |
12627 | 12570 |
12628 bool defer; | 12571 bool defer; |
12629 | 12572 |
12630 String event; | 12573 String event; |
12631 | 12574 |
12632 String htmlFor; | 12575 String htmlFor; |
12633 | 12576 |
12634 String src; | 12577 String src; |
12635 | 12578 |
12636 String text; | |
12637 | |
12638 String type; | 12579 String type; |
12639 } | 12580 } |
12640 | 12581 |
12641 class _ScriptProfileJs implements ScriptProfile native "*ScriptProfile" { | 12582 class _ScriptProfileImpl implements ScriptProfile native "*ScriptProfile" { |
12642 | 12583 |
12643 final _ScriptProfileNodeJs head; | 12584 final _ScriptProfileNodeImpl head; |
12644 | 12585 |
12645 final String title; | 12586 final String title; |
12646 | 12587 |
12647 final int uid; | 12588 final int uid; |
12648 } | 12589 } |
12649 | 12590 |
12650 class _ScriptProfileNodeJs implements ScriptProfileNode native "*ScriptProfileNo
de" { | 12591 class _ScriptProfileNodeImpl implements ScriptProfileNode native "*ScriptProfile
Node" { |
12651 | 12592 |
12652 final int callUID; | 12593 final int callUID; |
12653 | 12594 |
12654 final List children; | 12595 final List children; |
12655 | 12596 |
12656 final String functionName; | 12597 final String functionName; |
12657 | 12598 |
12658 final int lineNumber; | 12599 final int lineNumber; |
12659 | 12600 |
12660 final int numberOfCalls; | 12601 final int numberOfCalls; |
12661 | 12602 |
12662 final num selfTime; | 12603 final num selfTime; |
12663 | 12604 |
12664 final num totalTime; | 12605 final num totalTime; |
12665 | 12606 |
12666 final String url; | 12607 final String url; |
12667 | 12608 |
12668 final bool visible; | 12609 final bool visible; |
12669 } | 12610 } |
12670 | 12611 |
12671 class _SelectElementJs extends _ElementJs implements SelectElement native "*HTML
SelectElement" { | 12612 class _SelectElementImpl extends _ElementImpl implements SelectElement native "*
HTMLSelectElement" { |
12672 | 12613 |
12673 bool autofocus; | 12614 bool autofocus; |
12674 | 12615 |
12675 bool disabled; | 12616 bool disabled; |
12676 | 12617 |
12677 final _FormElementJs form; | 12618 final _FormElementImpl form; |
12678 | 12619 |
12679 final _NodeListJs labels; | 12620 final _NodeListImpl labels; |
12680 | 12621 |
12681 int length; | 12622 int length; |
12682 | 12623 |
12683 bool multiple; | 12624 bool multiple; |
12684 | 12625 |
12685 String name; | 12626 String name; |
12686 | 12627 |
12687 final _HTMLOptionsCollectionJs options; | 12628 final _HTMLOptionsCollectionImpl options; |
12688 | 12629 |
12689 bool required; | 12630 bool required; |
12690 | 12631 |
12691 int selectedIndex; | 12632 int selectedIndex; |
12692 | 12633 |
12693 int size; | 12634 int size; |
12694 | 12635 |
12695 final String type; | 12636 final String type; |
12696 | 12637 |
12697 final String validationMessage; | 12638 final String validationMessage; |
12698 | 12639 |
12699 final _ValidityStateJs validity; | 12640 final _ValidityStateImpl validity; |
12700 | 12641 |
12701 String value; | 12642 String value; |
12702 | 12643 |
12703 final bool willValidate; | 12644 final bool willValidate; |
12704 | 12645 |
12705 void add(_ElementJs element, _ElementJs before) native; | 12646 void add(_ElementImpl element, _ElementImpl before) native; |
12706 | 12647 |
12707 bool checkValidity() native; | 12648 bool checkValidity() native; |
12708 | 12649 |
12709 _NodeJs item(int index) native; | 12650 _NodeImpl item(int index) native; |
12710 | 12651 |
12711 _NodeJs namedItem(String name) native; | 12652 _NodeImpl namedItem(String name) native; |
12712 | 12653 |
12713 void setCustomValidity(String error) native; | 12654 void setCustomValidity(String error) native; |
12714 } | 12655 } |
12715 | 12656 |
12716 class _ShadowElementJs extends _ElementJs implements ShadowElement native "*HTML
ShadowElement" { | 12657 class _ShadowElementImpl extends _ElementImpl implements ShadowElement native "*
HTMLShadowElement" { |
12717 } | 12658 } |
12718 | 12659 |
12719 class _ShadowRootJs extends _DocumentFragmentJs implements ShadowRoot native "*S
hadowRoot" { | 12660 class _ShadowRootImpl extends _DocumentFragmentImpl implements ShadowRoot native
"*ShadowRoot" { |
12720 | 12661 |
12721 final _ElementJs host; | 12662 final _ElementImpl host; |
12722 | 12663 |
12723 _ElementJs getElementById(String elementId) native; | 12664 _ElementImpl getElementById(String elementId) native; |
12724 | 12665 |
12725 _NodeListJs getElementsByClassName(String className) native; | 12666 _NodeListImpl getElementsByClassName(String className) native; |
12726 | 12667 |
12727 _NodeListJs getElementsByTagName(String tagName) native; | 12668 _NodeListImpl getElementsByTagName(String tagName) native; |
12728 | 12669 |
12729 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | 12670 _NodeListImpl getElementsByTagNameNS(String namespaceURI, String localName) na
tive; |
12730 } | 12671 } |
12731 | 12672 |
12732 class _SharedWorkerJs extends _AbstractWorkerJs implements SharedWorker native "
*SharedWorker" { | 12673 class _SharedWorkerImpl extends _AbstractWorkerImpl implements SharedWorker nati
ve "*SharedWorker" { |
12733 | 12674 |
12734 final _MessagePortJs port; | 12675 final _MessagePortImpl port; |
12735 } | 12676 } |
12736 | 12677 |
12737 class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon
text native "*SharedWorkerContext" { | 12678 class _SharedWorkerContextImpl extends _WorkerContextImpl implements SharedWorke
rContext native "*SharedWorkerContext" { |
12738 | 12679 |
12739 final String name; | 12680 final String name; |
12740 | 12681 |
12741 EventListener onconnect; | 12682 EventListener onconnect; |
12742 } | 12683 } |
12743 | 12684 |
12744 class _SourceElementJs extends _ElementJs implements SourceElement native "*HTML
SourceElement" { | 12685 class _SourceElementImpl extends _ElementImpl implements SourceElement native "*
HTMLSourceElement" { |
12745 | 12686 |
12746 String media; | 12687 String media; |
12747 | 12688 |
12748 String src; | 12689 String src; |
12749 | 12690 |
12750 String type; | 12691 String type; |
12751 } | 12692 } |
12752 | 12693 |
12753 class _SpanElementJs extends _ElementJs implements SpanElement native "*HTMLSpan
Element" { | 12694 class _SpanElementImpl extends _ElementImpl implements SpanElement native "*HTML
SpanElement" { |
12754 } | 12695 } |
12755 | 12696 |
12756 class _SpeechInputEventJs extends _EventJs implements SpeechInputEvent native "*
SpeechInputEvent" { | 12697 class _SpeechInputEventImpl extends _EventImpl implements SpeechInputEvent nativ
e "*SpeechInputEvent" { |
12757 | 12698 |
12758 final _SpeechInputResultListJs results; | 12699 final _SpeechInputResultListImpl results; |
12759 } | 12700 } |
12760 | 12701 |
12761 class _SpeechInputResultJs implements SpeechInputResult native "*SpeechInputResu
lt" { | 12702 class _SpeechInputResultImpl implements SpeechInputResult native "*SpeechInputRe
sult" { |
12762 | 12703 |
12763 final num confidence; | 12704 final num confidence; |
12764 | 12705 |
12765 final String utterance; | 12706 final String utterance; |
12766 } | 12707 } |
12767 | 12708 |
12768 class _SpeechInputResultListJs implements SpeechInputResultList native "*SpeechI
nputResultList" { | 12709 class _SpeechInputResultListImpl implements SpeechInputResultList native "*Speec
hInputResultList" { |
12769 | 12710 |
12770 final int length; | 12711 final int length; |
12771 | 12712 |
12772 _SpeechInputResultJs item(int index) native; | 12713 _SpeechInputResultImpl item(int index) native; |
12773 } | 12714 } |
12774 | 12715 |
12775 class _StorageJs implements Storage native "*Storage" { | 12716 class _StorageImpl implements Storage native "*Storage" { |
12776 | 12717 |
12777 final int length; | 12718 final int length; |
12778 | 12719 |
12779 void clear() native; | 12720 void clear() native; |
12780 | 12721 |
12781 String getItem(String key) native; | 12722 String getItem(String key) native; |
12782 | 12723 |
12783 String key(int index) native; | 12724 String key(int index) native; |
12784 | 12725 |
12785 void removeItem(String key) native; | 12726 void removeItem(String key) native; |
12786 | 12727 |
12787 void setItem(String key, String data) native; | 12728 void setItem(String key, String data) native; |
12788 } | 12729 } |
12789 | 12730 |
12790 class _StorageEventJs extends _EventJs implements StorageEvent native "*StorageE
vent" { | 12731 class _StorageEventImpl extends _EventImpl implements StorageEvent native "*Stor
ageEvent" { |
12791 | 12732 |
12792 final String key; | 12733 final String key; |
12793 | 12734 |
12794 final String newValue; | 12735 final String newValue; |
12795 | 12736 |
12796 final String oldValue; | 12737 final String oldValue; |
12797 | 12738 |
12798 final _StorageJs storageArea; | 12739 final _StorageImpl storageArea; |
12799 | 12740 |
12800 final String url; | 12741 final String url; |
12801 | 12742 |
12802 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageJs
storageAreaArg) native; | 12743 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageImp
l storageAreaArg) native; |
12803 } | 12744 } |
12804 | 12745 |
12805 class _StorageInfoJs implements StorageInfo native "*StorageInfo" { | 12746 class _StorageInfoImpl implements StorageInfo native "*StorageInfo" { |
12806 | 12747 |
12807 static final int PERSISTENT = 1; | 12748 static final int PERSISTENT = 1; |
12808 | 12749 |
12809 static final int TEMPORARY = 0; | 12750 static final int TEMPORARY = 0; |
12810 | 12751 |
12811 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck = null, StorageInfoErrorCallback errorCallback = null]) native; | 12752 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck = null, StorageInfoErrorCallback errorCallback = null]) native; |
12812 | 12753 |
12813 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) native
; | 12754 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) native
; |
12814 } | 12755 } |
12815 | 12756 |
12816 class _StyleElementJs extends _ElementJs implements StyleElement native "*HTMLSt
yleElement" { | 12757 class _StyleElementImpl extends _ElementImpl implements StyleElement native "*HT
MLStyleElement" { |
12817 | 12758 |
12818 bool disabled; | 12759 bool disabled; |
12819 | 12760 |
12820 String media; | 12761 String media; |
12821 | 12762 |
12822 final _StyleSheetJs sheet; | 12763 final _StyleSheetImpl sheet; |
12823 | 12764 |
12824 String type; | 12765 String type; |
12825 } | 12766 } |
12826 | 12767 |
12827 class _StyleMediaJs implements StyleMedia native "*StyleMedia" { | 12768 class _StyleMediaImpl implements StyleMedia native "*StyleMedia" { |
12828 | 12769 |
12829 final String type; | 12770 final String type; |
12830 | 12771 |
12831 bool matchMedium(String mediaquery) native; | 12772 bool matchMedium(String mediaquery) native; |
12832 } | 12773 } |
12833 | 12774 |
12834 class _StyleSheetJs implements StyleSheet native "*StyleSheet" { | 12775 class _StyleSheetImpl implements StyleSheet native "*StyleSheet" { |
12835 | 12776 |
12836 bool disabled; | 12777 bool disabled; |
12837 | 12778 |
12838 final String href; | 12779 final String href; |
12839 | 12780 |
12840 final _MediaListJs media; | 12781 final _MediaListImpl media; |
12841 | 12782 |
12842 final _NodeJs ownerNode; | 12783 final _NodeImpl ownerNode; |
12843 | 12784 |
12844 final _StyleSheetJs parentStyleSheet; | 12785 final _StyleSheetImpl parentStyleSheet; |
12845 | 12786 |
12846 final String title; | 12787 final String title; |
12847 | 12788 |
12848 final String type; | 12789 final String type; |
12849 } | 12790 } |
12850 | 12791 |
12851 class _StyleSheetListJs implements StyleSheetList native "*StyleSheetList" { | 12792 class _StyleSheetListImpl implements StyleSheetList native "*StyleSheetList" { |
12852 | 12793 |
12853 final int length; | 12794 final int length; |
12854 | 12795 |
12855 _StyleSheetJs operator[](int index) native "return this[index];"; | 12796 _StyleSheetImpl operator[](int index) native "return this[index];"; |
12856 | 12797 |
12857 void operator[]=(int index, _StyleSheetJs value) { | 12798 void operator[]=(int index, _StyleSheetImpl value) { |
12858 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 12799 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); |
12859 } | 12800 } |
12860 // -- start List<StyleSheet> mixins. | 12801 // -- start List<StyleSheet> mixins. |
12861 // StyleSheet is the element type. | 12802 // StyleSheet is the element type. |
12862 | 12803 |
12863 // From Iterable<StyleSheet>: | 12804 // From Iterable<StyleSheet>: |
12864 | 12805 |
12865 Iterator<StyleSheet> iterator() { | 12806 Iterator<StyleSheet> iterator() { |
12866 // Note: NodeLists are not fixed size. And most probably length shouldn't | 12807 // Note: NodeLists are not fixed size. And most probably length shouldn't |
12867 // be cached in both iterator _and_ forEach method. For now caching it | 12808 // be cached in both iterator _and_ forEach method. For now caching it |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12918 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 12859 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
12919 } | 12860 } |
12920 void insertRange(int start, int length, [StyleSheet initialValue]) { | 12861 void insertRange(int start, int length, [StyleSheet initialValue]) { |
12921 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 12862 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
12922 } | 12863 } |
12923 List<StyleSheet> getRange(int start, int length) => | 12864 List<StyleSheet> getRange(int start, int length) => |
12924 _Lists.getRange(this, start, length, <StyleSheet>[]); | 12865 _Lists.getRange(this, start, length, <StyleSheet>[]); |
12925 | 12866 |
12926 // -- end List<StyleSheet> mixins. | 12867 // -- end List<StyleSheet> mixins. |
12927 | 12868 |
12928 _StyleSheetJs item(int index) native; | 12869 _StyleSheetImpl item(int index) native; |
12929 } | 12870 } |
12930 | 12871 |
12931 class _TableCaptionElementJs extends _ElementJs implements TableCaptionElement n
ative "*HTMLTableCaptionElement" { | 12872 class _TableCaptionElementImpl extends _ElementImpl implements TableCaptionEleme
nt native "*HTMLTableCaptionElement" { |
12932 | 12873 |
12933 String align; | 12874 String align; |
12934 } | 12875 } |
12935 | 12876 |
12936 class _TableCellElementJs extends _ElementJs implements TableCellElement native
"*HTMLTableCellElement" { | 12877 class _TableCellElementImpl extends _ElementImpl implements TableCellElement nat
ive "*HTMLTableCellElement" { |
12937 | 12878 |
12938 String abbr; | 12879 String abbr; |
12939 | 12880 |
12940 String align; | 12881 String align; |
12941 | 12882 |
12942 String axis; | 12883 String axis; |
12943 | 12884 |
12944 String bgColor; | 12885 String bgColor; |
12945 | 12886 |
12946 final int cellIndex; | 12887 final int cellIndex; |
(...skipping 12 matching lines...) Expand all Loading... |
12959 | 12900 |
12960 int rowSpan; | 12901 int rowSpan; |
12961 | 12902 |
12962 String scope; | 12903 String scope; |
12963 | 12904 |
12964 String vAlign; | 12905 String vAlign; |
12965 | 12906 |
12966 String width; | 12907 String width; |
12967 } | 12908 } |
12968 | 12909 |
12969 class _TableColElementJs extends _ElementJs implements TableColElement native "*
HTMLTableColElement" { | 12910 class _TableColElementImpl extends _ElementImpl implements TableColElement nativ
e "*HTMLTableColElement" { |
12970 | 12911 |
12971 String align; | 12912 String align; |
12972 | 12913 |
12973 String ch; | 12914 String ch; |
12974 | 12915 |
12975 String chOff; | 12916 String chOff; |
12976 | 12917 |
12977 int span; | 12918 int span; |
12978 | 12919 |
12979 String vAlign; | 12920 String vAlign; |
12980 | 12921 |
12981 String width; | 12922 String width; |
12982 } | 12923 } |
12983 | 12924 |
12984 class _TableElementJs extends _ElementJs implements TableElement native "*HTMLTa
bleElement" { | 12925 class _TableElementImpl extends _ElementImpl implements TableElement native "*HT
MLTableElement" { |
12985 | 12926 |
12986 String align; | 12927 String align; |
12987 | 12928 |
12988 String bgColor; | 12929 String bgColor; |
12989 | 12930 |
12990 String border; | 12931 String border; |
12991 | 12932 |
12992 _TableCaptionElementJs caption; | 12933 _TableCaptionElementImpl caption; |
12993 | 12934 |
12994 String cellPadding; | 12935 String cellPadding; |
12995 | 12936 |
12996 String cellSpacing; | 12937 String cellSpacing; |
12997 | 12938 |
12998 String frame; | 12939 String frame; |
12999 | 12940 |
13000 final _HTMLCollectionJs rows; | 12941 final _HTMLCollectionImpl rows; |
13001 | 12942 |
13002 String rules; | 12943 String rules; |
13003 | 12944 |
13004 String summary; | 12945 String summary; |
13005 | 12946 |
13006 final _HTMLCollectionJs tBodies; | 12947 final _HTMLCollectionImpl tBodies; |
13007 | 12948 |
13008 _TableSectionElementJs tFoot; | 12949 _TableSectionElementImpl tFoot; |
13009 | 12950 |
13010 _TableSectionElementJs tHead; | 12951 _TableSectionElementImpl tHead; |
13011 | 12952 |
13012 String width; | 12953 String width; |
13013 | 12954 |
13014 _ElementJs createCaption() native; | 12955 _ElementImpl createCaption() native; |
13015 | 12956 |
13016 _ElementJs createTFoot() native; | 12957 _ElementImpl createTFoot() native; |
13017 | 12958 |
13018 _ElementJs createTHead() native; | 12959 _ElementImpl createTHead() native; |
13019 | 12960 |
13020 void deleteCaption() native; | 12961 void deleteCaption() native; |
13021 | 12962 |
13022 void deleteRow(int index) native; | 12963 void deleteRow(int index) native; |
13023 | 12964 |
13024 void deleteTFoot() native; | 12965 void deleteTFoot() native; |
13025 | 12966 |
13026 void deleteTHead() native; | 12967 void deleteTHead() native; |
13027 | 12968 |
13028 _ElementJs insertRow(int index) native; | 12969 _ElementImpl insertRow(int index) native; |
13029 } | 12970 } |
13030 | 12971 |
13031 class _TableRowElementJs extends _ElementJs implements TableRowElement native "*
HTMLTableRowElement" { | 12972 class _TableRowElementImpl extends _ElementImpl implements TableRowElement nativ
e "*HTMLTableRowElement" { |
13032 | 12973 |
13033 String align; | 12974 String align; |
13034 | 12975 |
13035 String bgColor; | 12976 String bgColor; |
13036 | 12977 |
13037 final _HTMLCollectionJs cells; | 12978 final _HTMLCollectionImpl cells; |
13038 | 12979 |
13039 String ch; | 12980 String ch; |
13040 | 12981 |
13041 String chOff; | 12982 String chOff; |
13042 | 12983 |
13043 final int rowIndex; | 12984 final int rowIndex; |
13044 | 12985 |
13045 final int sectionRowIndex; | 12986 final int sectionRowIndex; |
13046 | 12987 |
13047 String vAlign; | 12988 String vAlign; |
13048 | 12989 |
13049 void deleteCell(int index) native; | 12990 void deleteCell(int index) native; |
13050 | 12991 |
13051 _ElementJs insertCell(int index) native; | 12992 _ElementImpl insertCell(int index) native; |
13052 } | 12993 } |
13053 | 12994 |
13054 class _TableSectionElementJs extends _ElementJs implements TableSectionElement n
ative "*HTMLTableSectionElement" { | 12995 class _TableSectionElementImpl extends _ElementImpl implements TableSectionEleme
nt native "*HTMLTableSectionElement" { |
13055 | 12996 |
13056 String align; | 12997 String align; |
13057 | 12998 |
13058 String ch; | 12999 String ch; |
13059 | 13000 |
13060 String chOff; | 13001 String chOff; |
13061 | 13002 |
13062 final _HTMLCollectionJs rows; | 13003 final _HTMLCollectionImpl rows; |
13063 | 13004 |
13064 String vAlign; | 13005 String vAlign; |
13065 | 13006 |
13066 void deleteRow(int index) native; | 13007 void deleteRow(int index) native; |
13067 | 13008 |
13068 _ElementJs insertRow(int index) native; | 13009 _ElementImpl insertRow(int index) native; |
13069 } | 13010 } |
13070 | 13011 |
13071 class _TextJs extends _CharacterDataJs implements Text native "*Text" { | 13012 class _TextImpl extends _CharacterDataImpl implements Text native "*Text" { |
13072 | 13013 |
13073 final String wholeText; | 13014 final String wholeText; |
13074 | 13015 |
13075 _TextJs replaceWholeText(String content) native; | 13016 _TextImpl replaceWholeText(String content) native; |
13076 | 13017 |
13077 _TextJs splitText(int offset) native; | 13018 _TextImpl splitText(int offset) native; |
13078 } | 13019 } |
13079 | 13020 |
13080 class _TextAreaElementJs extends _ElementJs implements TextAreaElement native "*
HTMLTextAreaElement" { | 13021 class _TextAreaElementImpl extends _ElementImpl implements TextAreaElement nativ
e "*HTMLTextAreaElement" { |
13081 | 13022 |
13082 bool autofocus; | 13023 bool autofocus; |
13083 | 13024 |
13084 int cols; | 13025 int cols; |
13085 | 13026 |
13086 String defaultValue; | 13027 String defaultValue; |
13087 | 13028 |
13088 bool disabled; | 13029 bool disabled; |
13089 | 13030 |
13090 final _FormElementJs form; | 13031 final _FormElementImpl form; |
13091 | 13032 |
13092 final _NodeListJs labels; | 13033 final _NodeListImpl labels; |
13093 | 13034 |
13094 int maxLength; | 13035 int maxLength; |
13095 | 13036 |
13096 String name; | 13037 String name; |
13097 | 13038 |
13098 String placeholder; | 13039 String placeholder; |
13099 | 13040 |
13100 bool readOnly; | 13041 bool readOnly; |
13101 | 13042 |
13102 bool required; | 13043 bool required; |
13103 | 13044 |
13104 int rows; | 13045 int rows; |
13105 | 13046 |
13106 String selectionDirection; | 13047 String selectionDirection; |
13107 | 13048 |
13108 int selectionEnd; | 13049 int selectionEnd; |
13109 | 13050 |
13110 int selectionStart; | 13051 int selectionStart; |
13111 | 13052 |
13112 final int textLength; | 13053 final int textLength; |
13113 | 13054 |
13114 final String type; | 13055 final String type; |
13115 | 13056 |
13116 final String validationMessage; | 13057 final String validationMessage; |
13117 | 13058 |
13118 final _ValidityStateJs validity; | 13059 final _ValidityStateImpl validity; |
13119 | 13060 |
13120 String value; | 13061 String value; |
13121 | 13062 |
13122 final bool willValidate; | 13063 final bool willValidate; |
13123 | 13064 |
13124 String wrap; | 13065 String wrap; |
13125 | 13066 |
13126 bool checkValidity() native; | 13067 bool checkValidity() native; |
13127 | 13068 |
13128 void select() native; | 13069 void select() native; |
13129 | 13070 |
13130 void setCustomValidity(String error) native; | 13071 void setCustomValidity(String error) native; |
13131 | 13072 |
13132 void setSelectionRange(int start, int end, [String direction = null]) native; | 13073 void setSelectionRange(int start, int end, [String direction = null]) native; |
13133 } | 13074 } |
13134 | 13075 |
13135 class _TextEventJs extends _UIEventJs implements TextEvent native "*TextEvent" { | 13076 class _TextEventImpl extends _UIEventImpl implements TextEvent native "*TextEven
t" { |
13136 | 13077 |
13137 final String data; | 13078 final String data; |
13138 | 13079 |
13139 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, _Win
dowJs viewArg, String dataArg) native; | 13080 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, _Win
dowImpl viewArg, String dataArg) native; |
13140 } | 13081 } |
13141 | 13082 |
13142 class _TextMetricsJs implements TextMetrics native "*TextMetrics" { | 13083 class _TextMetricsImpl implements TextMetrics native "*TextMetrics" { |
13143 | 13084 |
13144 final num width; | 13085 final num width; |
13145 } | 13086 } |
13146 | 13087 |
13147 class _TextTrackJs implements TextTrack native "*TextTrack" { | 13088 class _TextTrackImpl implements TextTrack native "*TextTrack" { |
13148 | 13089 |
13149 static final int DISABLED = 0; | 13090 static final int DISABLED = 0; |
13150 | 13091 |
13151 static final int HIDDEN = 1; | 13092 static final int HIDDEN = 1; |
13152 | 13093 |
13153 static final int SHOWING = 2; | 13094 static final int SHOWING = 2; |
13154 | 13095 |
13155 final _TextTrackCueListJs activeCues; | 13096 final _TextTrackCueListImpl activeCues; |
13156 | 13097 |
13157 final _TextTrackCueListJs cues; | 13098 final _TextTrackCueListImpl cues; |
13158 | 13099 |
13159 final String kind; | 13100 final String kind; |
13160 | 13101 |
13161 final String label; | 13102 final String label; |
13162 | 13103 |
13163 final String language; | 13104 final String language; |
13164 | 13105 |
13165 int mode; | 13106 int mode; |
13166 | 13107 |
13167 EventListener oncuechange; | 13108 EventListener oncuechange; |
13168 | 13109 |
13169 void addCue(_TextTrackCueJs cue) native; | 13110 void addCue(_TextTrackCueImpl cue) native; |
13170 | 13111 |
13171 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 13112 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
13172 | 13113 |
13173 bool dispatchEvent(_EventJs evt) native; | 13114 bool dispatchEvent(_EventImpl evt) native; |
13174 | 13115 |
13175 void removeCue(_TextTrackCueJs cue) native; | 13116 void removeCue(_TextTrackCueImpl cue) native; |
13176 | 13117 |
13177 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 13118 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
13178 } | 13119 } |
13179 | 13120 |
13180 class _TextTrackCueJs implements TextTrackCue native "*TextTrackCue" { | 13121 class _TextTrackCueImpl implements TextTrackCue native "*TextTrackCue" { |
13181 | 13122 |
13182 String alignment; | 13123 String alignment; |
13183 | 13124 |
13184 String direction; | 13125 String direction; |
13185 | 13126 |
13186 num endTime; | 13127 num endTime; |
13187 | 13128 |
13188 String id; | 13129 String id; |
13189 | 13130 |
13190 int linePosition; | 13131 int linePosition; |
13191 | 13132 |
13192 EventListener onenter; | 13133 EventListener onenter; |
13193 | 13134 |
13194 EventListener onexit; | 13135 EventListener onexit; |
13195 | 13136 |
13196 bool pauseOnExit; | 13137 bool pauseOnExit; |
13197 | 13138 |
13198 int size; | 13139 int size; |
13199 | 13140 |
13200 bool snapToLines; | 13141 bool snapToLines; |
13201 | 13142 |
13202 num startTime; | 13143 num startTime; |
13203 | 13144 |
13204 String text; | 13145 String text; |
13205 | 13146 |
13206 int textPosition; | 13147 int textPosition; |
13207 | 13148 |
13208 final _TextTrackJs track; | 13149 final _TextTrackImpl track; |
13209 | 13150 |
13210 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 13151 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
13211 | 13152 |
13212 bool dispatchEvent(_EventJs evt) native; | 13153 bool dispatchEvent(_EventImpl evt) native; |
13213 | 13154 |
13214 _DocumentFragmentJs getCueAsHTML() native; | 13155 _DocumentFragmentImpl getCueAsHTML() native; |
13215 | 13156 |
13216 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 13157 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
13217 } | 13158 } |
13218 | 13159 |
13219 class _TextTrackCueListJs implements TextTrackCueList native "*TextTrackCueList"
{ | 13160 class _TextTrackCueListImpl implements TextTrackCueList native "*TextTrackCueLis
t" { |
13220 | 13161 |
13221 final int length; | 13162 final int length; |
13222 | 13163 |
13223 _TextTrackCueJs getCueById(String id) native; | 13164 _TextTrackCueImpl getCueById(String id) native; |
13224 | 13165 |
13225 _TextTrackCueJs item(int index) native; | 13166 _TextTrackCueImpl item(int index) native; |
13226 } | 13167 } |
13227 | 13168 |
13228 class _TextTrackListJs implements TextTrackList native "*TextTrackList" { | 13169 class _TextTrackListImpl implements TextTrackList native "*TextTrackList" { |
13229 | 13170 |
13230 final int length; | 13171 final int length; |
13231 | 13172 |
13232 EventListener onaddtrack; | 13173 EventListener onaddtrack; |
13233 | 13174 |
13234 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 13175 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
13235 | 13176 |
13236 bool dispatchEvent(_EventJs evt) native; | 13177 bool dispatchEvent(_EventImpl evt) native; |
13237 | 13178 |
13238 _TextTrackJs item(int index) native; | 13179 _TextTrackImpl item(int index) native; |
13239 | 13180 |
13240 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 13181 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
13241 } | 13182 } |
13242 | 13183 |
13243 class _TimeRangesJs implements TimeRanges native "*TimeRanges" { | 13184 class _TimeRangesImpl implements TimeRanges native "*TimeRanges" { |
13244 | 13185 |
13245 final int length; | 13186 final int length; |
13246 | 13187 |
13247 num end(int index) native; | 13188 num end(int index) native; |
13248 | 13189 |
13249 num start(int index) native; | 13190 num start(int index) native; |
13250 } | 13191 } |
13251 | 13192 |
13252 class _TitleElementJs extends _ElementJs implements TitleElement native "*HTMLTi
tleElement" { | 13193 class _TitleElementImpl extends _ElementImpl implements TitleElement native "*HT
MLTitleElement" { |
13253 | |
13254 String text; | |
13255 } | 13194 } |
13256 | 13195 |
13257 class _TouchJs implements Touch native "*Touch" { | 13196 class _TouchImpl implements Touch native "*Touch" { |
13258 | 13197 |
13259 final int clientX; | 13198 final int clientX; |
13260 | 13199 |
13261 final int clientY; | 13200 final int clientY; |
13262 | 13201 |
13263 final int identifier; | 13202 final int identifier; |
13264 | 13203 |
13265 final int pageX; | 13204 final int pageX; |
13266 | 13205 |
13267 final int pageY; | 13206 final int pageY; |
13268 | 13207 |
13269 final int screenX; | 13208 final int screenX; |
13270 | 13209 |
13271 final int screenY; | 13210 final int screenY; |
13272 | 13211 |
13273 final _EventTargetJs target; | 13212 _EventTargetImpl get target() => _FixHtmlDocumentReference(_target); |
| 13213 |
| 13214 _EventTargetImpl get _target() native "return this.target;"; |
13274 | 13215 |
13275 final num webkitForce; | 13216 final num webkitForce; |
13276 | 13217 |
13277 final int webkitRadiusX; | 13218 final int webkitRadiusX; |
13278 | 13219 |
13279 final int webkitRadiusY; | 13220 final int webkitRadiusY; |
13280 | 13221 |
13281 final num webkitRotationAngle; | 13222 final num webkitRotationAngle; |
13282 } | 13223 } |
13283 | 13224 |
13284 class _TouchEventJs extends _UIEventJs implements TouchEvent native "*TouchEvent
" { | 13225 class _TouchEventImpl extends _UIEventImpl implements TouchEvent native "*TouchE
vent" { |
13285 | 13226 |
13286 final bool altKey; | 13227 final bool altKey; |
13287 | 13228 |
13288 final _TouchListJs changedTouches; | 13229 final _TouchListImpl changedTouches; |
13289 | 13230 |
13290 final bool ctrlKey; | 13231 final bool ctrlKey; |
13291 | 13232 |
13292 final bool metaKey; | 13233 final bool metaKey; |
13293 | 13234 |
13294 final bool shiftKey; | 13235 final bool shiftKey; |
13295 | 13236 |
13296 final _TouchListJs targetTouches; | 13237 final _TouchListImpl targetTouches; |
13297 | 13238 |
13298 final _TouchListJs touches; | 13239 final _TouchListImpl touches; |
13299 | 13240 |
13300 void initTouchEvent(_TouchListJs touches, _TouchListJs targetTouches, _TouchLi
stJs changedTouches, String type, _WindowJs view, int screenX, int screenY, int
clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) na
tive; | 13241 void initTouchEvent(_TouchListImpl touches, _TouchListImpl targetTouches, _Tou
chListImpl changedTouches, String type, _WindowImpl view, int screenX, int scree
nY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool met
aKey) native; |
13301 } | 13242 } |
13302 | 13243 |
13303 class _TouchListJs implements TouchList native "*TouchList" { | 13244 class _TouchListImpl implements TouchList native "*TouchList" { |
13304 | 13245 |
13305 final int length; | 13246 final int length; |
13306 | 13247 |
13307 _TouchJs operator[](int index) native "return this[index];"; | 13248 _TouchImpl operator[](int index) native "return this[index];"; |
13308 | 13249 |
13309 void operator[]=(int index, _TouchJs value) { | 13250 void operator[]=(int index, _TouchImpl value) { |
13310 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 13251 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); |
13311 } | 13252 } |
13312 // -- start List<Touch> mixins. | 13253 // -- start List<Touch> mixins. |
13313 // Touch is the element type. | 13254 // Touch is the element type. |
13314 | 13255 |
13315 // From Iterable<Touch>: | 13256 // From Iterable<Touch>: |
13316 | 13257 |
13317 Iterator<Touch> iterator() { | 13258 Iterator<Touch> iterator() { |
13318 // Note: NodeLists are not fixed size. And most probably length shouldn't | 13259 // Note: NodeLists are not fixed size. And most probably length shouldn't |
13319 // be cached in both iterator _and_ forEach method. For now caching it | 13260 // be cached in both iterator _and_ forEach method. For now caching it |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13370 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 13311 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
13371 } | 13312 } |
13372 void insertRange(int start, int length, [Touch initialValue]) { | 13313 void insertRange(int start, int length, [Touch initialValue]) { |
13373 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 13314 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
13374 } | 13315 } |
13375 List<Touch> getRange(int start, int length) => | 13316 List<Touch> getRange(int start, int length) => |
13376 _Lists.getRange(this, start, length, <Touch>[]); | 13317 _Lists.getRange(this, start, length, <Touch>[]); |
13377 | 13318 |
13378 // -- end List<Touch> mixins. | 13319 // -- end List<Touch> mixins. |
13379 | 13320 |
13380 _TouchJs item(int index) native; | 13321 _TouchImpl item(int index) native; |
13381 } | 13322 } |
13382 | 13323 |
13383 class _TrackElementJs extends _ElementJs implements TrackElement native "*HTMLTr
ackElement" { | 13324 class _TrackElementImpl extends _ElementImpl implements TrackElement native "*HT
MLTrackElement" { |
13384 | 13325 |
13385 static final int ERROR = 3; | 13326 static final int ERROR = 3; |
13386 | 13327 |
13387 static final int LOADED = 2; | 13328 static final int LOADED = 2; |
13388 | 13329 |
13389 static final int LOADING = 1; | 13330 static final int LOADING = 1; |
13390 | 13331 |
13391 static final int NONE = 0; | 13332 static final int NONE = 0; |
13392 | 13333 |
13393 bool isDefault; | 13334 bool isDefault; |
13394 | 13335 |
13395 String kind; | 13336 String kind; |
13396 | 13337 |
13397 String label; | 13338 String label; |
13398 | 13339 |
13399 final int readyState; | 13340 final int readyState; |
13400 | 13341 |
13401 String src; | 13342 String src; |
13402 | 13343 |
13403 String srclang; | 13344 String srclang; |
13404 | 13345 |
13405 final _TextTrackJs track; | 13346 final _TextTrackImpl track; |
13406 } | 13347 } |
13407 | 13348 |
13408 class _TrackEventJs extends _EventJs implements TrackEvent native "*TrackEvent"
{ | 13349 class _TrackEventImpl extends _EventImpl implements TrackEvent native "*TrackEve
nt" { |
13409 | 13350 |
13410 final Object track; | 13351 final Object track; |
13411 } | 13352 } |
13412 | 13353 |
13413 class _TransitionEventJs extends _EventJs implements TransitionEvent native "*We
bKitTransitionEvent" { | 13354 class _TransitionEventImpl extends _EventImpl implements TransitionEvent native
"*WebKitTransitionEvent" { |
13414 | 13355 |
13415 final num elapsedTime; | 13356 final num elapsedTime; |
13416 | 13357 |
13417 final String propertyName; | 13358 final String propertyName; |
13418 } | 13359 } |
13419 | 13360 |
13420 class _TreeWalkerJs implements TreeWalker native "*TreeWalker" { | 13361 class _TreeWalkerImpl implements TreeWalker native "*TreeWalker" { |
13421 | 13362 |
13422 _NodeJs currentNode; | 13363 _NodeImpl currentNode; |
13423 | 13364 |
13424 final bool expandEntityReferences; | 13365 final bool expandEntityReferences; |
13425 | 13366 |
13426 final _NodeFilterJs filter; | 13367 final _NodeFilterImpl filter; |
13427 | 13368 |
13428 final _NodeJs root; | 13369 final _NodeImpl root; |
13429 | 13370 |
13430 final int whatToShow; | 13371 final int whatToShow; |
13431 | 13372 |
13432 _NodeJs firstChild() native; | 13373 _NodeImpl firstChild() native; |
13433 | 13374 |
13434 _NodeJs lastChild() native; | 13375 _NodeImpl lastChild() native; |
13435 | 13376 |
13436 _NodeJs nextNode() native; | 13377 _NodeImpl nextNode() native; |
13437 | 13378 |
13438 _NodeJs nextSibling() native; | 13379 _NodeImpl nextSibling() native; |
13439 | 13380 |
13440 _NodeJs parentNode() native; | 13381 _NodeImpl parentNode() native; |
13441 | 13382 |
13442 _NodeJs previousNode() native; | 13383 _NodeImpl previousNode() native; |
13443 | 13384 |
13444 _NodeJs previousSibling() native; | 13385 _NodeImpl previousSibling() native; |
13445 } | 13386 } |
13446 | 13387 |
13447 class _UIEventJs extends _EventJs implements UIEvent native "*UIEvent" { | 13388 class _UIEventImpl extends _EventImpl implements UIEvent native "*UIEvent" { |
13448 | 13389 |
13449 final int charCode; | 13390 final int charCode; |
13450 | 13391 |
13451 final int detail; | 13392 final int detail; |
13452 | 13393 |
13453 final int keyCode; | 13394 final int keyCode; |
13454 | 13395 |
13455 final int layerX; | 13396 final int layerX; |
13456 | 13397 |
13457 final int layerY; | 13398 final int layerY; |
13458 | 13399 |
13459 final int pageX; | 13400 final int pageX; |
13460 | 13401 |
13461 final int pageY; | 13402 final int pageY; |
13462 | 13403 |
13463 final _WindowJs view; | 13404 final _WindowImpl view; |
13464 | 13405 |
13465 final int which; | 13406 final int which; |
13466 | 13407 |
13467 void initUIEvent(String type, bool canBubble, bool cancelable, _WindowJs view,
int detail) native; | 13408 void initUIEvent(String type, bool canBubble, bool cancelable, _WindowImpl vie
w, int detail) native; |
13468 } | 13409 } |
13469 | 13410 |
13470 class _UListElementJs extends _ElementJs implements UListElement native "*HTMLUL
istElement" { | 13411 class _UListElementImpl extends _ElementImpl implements UListElement native "*HT
MLUListElement" { |
13471 | 13412 |
13472 bool compact; | 13413 bool compact; |
13473 | 13414 |
13474 String type; | 13415 String type; |
13475 } | 13416 } |
13476 | 13417 |
13477 class _Uint16ArrayJs extends _ArrayBufferViewJs implements Uint16Array, List<int
> native "*Uint16Array" { | 13418 class _Uint16ArrayImpl extends _ArrayBufferViewImpl implements Uint16Array, List
<int> native "*Uint16Array" { |
13478 | 13419 |
13479 factory Uint16Array(int length) => _construct_Uint16Array(length); | 13420 factory Uint16Array(int length) => _construct_Uint16Array(length); |
13480 | 13421 |
13481 factory Uint16Array.fromList(List<int> list) => _construct_Uint16Array(list); | 13422 factory Uint16Array.fromList(List<int> list) => _construct_Uint16Array(list); |
13482 | 13423 |
13483 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint16Array(b
uffer); | 13424 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint16Array(b
uffer); |
13484 | 13425 |
13485 static _construct_Uint16Array(arg) native 'return new Uint16Array(arg);'; | 13426 static _construct_Uint16Array(arg) native 'return new Uint16Array(arg);'; |
13486 | 13427 |
13487 static final int BYTES_PER_ELEMENT = 2; | 13428 static final int BYTES_PER_ELEMENT = 2; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13554 void insertRange(int start, int length, [int initialValue]) { | 13495 void insertRange(int start, int length, [int initialValue]) { |
13555 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 13496 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
13556 } | 13497 } |
13557 List<int> getRange(int start, int length) => | 13498 List<int> getRange(int start, int length) => |
13558 _Lists.getRange(this, start, length, <int>[]); | 13499 _Lists.getRange(this, start, length, <int>[]); |
13559 | 13500 |
13560 // -- end List<int> mixins. | 13501 // -- end List<int> mixins. |
13561 | 13502 |
13562 void setElements(Object array, [int offset = null]) native; | 13503 void setElements(Object array, [int offset = null]) native; |
13563 | 13504 |
13564 _Uint16ArrayJs subarray(int start, [int end = null]) native; | 13505 _Uint16ArrayImpl subarray(int start, [int end = null]) native; |
13565 } | 13506 } |
13566 | 13507 |
13567 class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int
> native "*Uint32Array" { | 13508 class _Uint32ArrayImpl extends _ArrayBufferViewImpl implements Uint32Array, List
<int> native "*Uint32Array" { |
13568 | 13509 |
13569 factory Uint32Array(int length) => _construct_Uint32Array(length); | 13510 factory Uint32Array(int length) => _construct_Uint32Array(length); |
13570 | 13511 |
13571 factory Uint32Array.fromList(List<int> list) => _construct_Uint32Array(list); | 13512 factory Uint32Array.fromList(List<int> list) => _construct_Uint32Array(list); |
13572 | 13513 |
13573 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint32Array(b
uffer); | 13514 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint32Array(b
uffer); |
13574 | 13515 |
13575 static _construct_Uint32Array(arg) native 'return new Uint32Array(arg);'; | 13516 static _construct_Uint32Array(arg) native 'return new Uint32Array(arg);'; |
13576 | 13517 |
13577 static final int BYTES_PER_ELEMENT = 4; | 13518 static final int BYTES_PER_ELEMENT = 4; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13644 void insertRange(int start, int length, [int initialValue]) { | 13585 void insertRange(int start, int length, [int initialValue]) { |
13645 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 13586 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
13646 } | 13587 } |
13647 List<int> getRange(int start, int length) => | 13588 List<int> getRange(int start, int length) => |
13648 _Lists.getRange(this, start, length, <int>[]); | 13589 _Lists.getRange(this, start, length, <int>[]); |
13649 | 13590 |
13650 // -- end List<int> mixins. | 13591 // -- end List<int> mixins. |
13651 | 13592 |
13652 void setElements(Object array, [int offset = null]) native; | 13593 void setElements(Object array, [int offset = null]) native; |
13653 | 13594 |
13654 _Uint32ArrayJs subarray(int start, [int end = null]) native; | 13595 _Uint32ArrayImpl subarray(int start, [int end = null]) native; |
13655 } | 13596 } |
13656 | 13597 |
13657 class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int>
native "*Uint8Array" { | 13598 class _Uint8ArrayImpl extends _ArrayBufferViewImpl implements Uint8Array, List<i
nt> native "*Uint8Array" { |
13658 | 13599 |
13659 factory Uint8Array(int length) => _construct_Uint8Array(length); | 13600 factory Uint8Array(int length) => _construct_Uint8Array(length); |
13660 | 13601 |
13661 factory Uint8Array.fromList(List<int> list) => _construct_Uint8Array(list); | 13602 factory Uint8Array.fromList(List<int> list) => _construct_Uint8Array(list); |
13662 | 13603 |
13663 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Array(buf
fer); | 13604 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Array(buf
fer); |
13664 | 13605 |
13665 static _construct_Uint8Array(arg) native 'return new Uint8Array(arg);'; | 13606 static _construct_Uint8Array(arg) native 'return new Uint8Array(arg);'; |
13666 | 13607 |
13667 static final int BYTES_PER_ELEMENT = 1; | 13608 static final int BYTES_PER_ELEMENT = 1; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13734 void insertRange(int start, int length, [int initialValue]) { | 13675 void insertRange(int start, int length, [int initialValue]) { |
13735 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 13676 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
13736 } | 13677 } |
13737 List<int> getRange(int start, int length) => | 13678 List<int> getRange(int start, int length) => |
13738 _Lists.getRange(this, start, length, <int>[]); | 13679 _Lists.getRange(this, start, length, <int>[]); |
13739 | 13680 |
13740 // -- end List<int> mixins. | 13681 // -- end List<int> mixins. |
13741 | 13682 |
13742 void setElements(Object array, [int offset = null]) native; | 13683 void setElements(Object array, [int offset = null]) native; |
13743 | 13684 |
13744 _Uint8ArrayJs subarray(int start, [int end = null]) native; | 13685 _Uint8ArrayImpl subarray(int start, [int end = null]) native; |
13745 } | 13686 } |
13746 | 13687 |
13747 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray, L
ist<int> native "*Uint8ClampedArray" { | 13688 class _Uint8ClampedArrayImpl extends _Uint8ArrayImpl implements Uint8ClampedArra
y, List<int> native "*Uint8ClampedArray" { |
13748 | 13689 |
13749 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length)
; | 13690 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length)
; |
13750 | 13691 |
13751 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA
rray(list); | 13692 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA
rray(list); |
13752 | 13693 |
13753 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl
ampedArray(buffer); | 13694 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl
ampedArray(buffer); |
13754 | 13695 |
13755 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray(
arg);'; | 13696 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray(
arg);'; |
13756 | 13697 |
13757 // Use implementation from Uint8Array. | 13698 // Use implementation from Uint8Array. |
13758 // final int length; | 13699 // final int length; |
13759 | 13700 |
13760 _Uint8ClampedArrayJs subarray(int start, [int end = null]) native; | 13701 _Uint8ClampedArrayImpl subarray(int start, [int end = null]) native; |
13761 } | 13702 } |
13762 | 13703 |
13763 class _UnknownElementJs extends _ElementJs implements UnknownElement native "*HT
MLUnknownElement" { | 13704 class _UnknownElementImpl extends _ElementImpl implements UnknownElement native
"*HTMLUnknownElement" { |
13764 } | 13705 } |
13765 | 13706 |
13766 class _ValidityStateJs implements ValidityState native "*ValidityState" { | 13707 class _ValidityStateImpl implements ValidityState native "*ValidityState" { |
13767 | 13708 |
13768 final bool customError; | 13709 final bool customError; |
13769 | 13710 |
13770 final bool patternMismatch; | 13711 final bool patternMismatch; |
13771 | 13712 |
13772 final bool rangeOverflow; | 13713 final bool rangeOverflow; |
13773 | 13714 |
13774 final bool rangeUnderflow; | 13715 final bool rangeUnderflow; |
13775 | 13716 |
13776 final bool stepMismatch; | 13717 final bool stepMismatch; |
13777 | 13718 |
13778 final bool tooLong; | 13719 final bool tooLong; |
13779 | 13720 |
13780 final bool typeMismatch; | 13721 final bool typeMismatch; |
13781 | 13722 |
13782 final bool valid; | 13723 final bool valid; |
13783 | 13724 |
13784 final bool valueMissing; | 13725 final bool valueMissing; |
13785 } | 13726 } |
13786 | 13727 |
13787 class _VideoElementJs extends _MediaElementJs implements VideoElement native "*H
TMLVideoElement" { | 13728 class _VideoElementImpl extends _MediaElementImpl implements VideoElement native
"*HTMLVideoElement" { |
13788 | 13729 |
13789 int height; | 13730 int height; |
13790 | 13731 |
13791 String poster; | 13732 String poster; |
13792 | 13733 |
13793 final int videoHeight; | 13734 final int videoHeight; |
13794 | 13735 |
13795 final int videoWidth; | 13736 final int videoWidth; |
13796 | 13737 |
13797 final int webkitDecodedFrameCount; | 13738 final int webkitDecodedFrameCount; |
13798 | 13739 |
13799 final bool webkitDisplayingFullscreen; | 13740 final bool webkitDisplayingFullscreen; |
13800 | 13741 |
13801 final int webkitDroppedFrameCount; | 13742 final int webkitDroppedFrameCount; |
13802 | 13743 |
13803 final bool webkitSupportsFullscreen; | 13744 final bool webkitSupportsFullscreen; |
13804 | 13745 |
13805 int width; | 13746 int width; |
13806 | 13747 |
13807 void webkitEnterFullScreen() native; | 13748 void webkitEnterFullScreen() native; |
13808 | 13749 |
13809 void webkitEnterFullscreen() native; | 13750 void webkitEnterFullscreen() native; |
13810 | 13751 |
13811 void webkitExitFullScreen() native; | 13752 void webkitExitFullScreen() native; |
13812 | 13753 |
13813 void webkitExitFullscreen() native; | 13754 void webkitExitFullscreen() native; |
13814 } | 13755 } |
13815 | 13756 |
13816 class _WaveShaperNodeJs extends _AudioNodeJs implements WaveShaperNode native "*
WaveShaperNode" { | 13757 class _WaveShaperNodeImpl extends _AudioNodeImpl implements WaveShaperNode nativ
e "*WaveShaperNode" { |
13817 | 13758 |
13818 _Float32ArrayJs curve; | 13759 _Float32ArrayImpl curve; |
13819 } | 13760 } |
13820 | 13761 |
13821 class _WebGLActiveInfoJs implements WebGLActiveInfo native "*WebGLActiveInfo" { | 13762 class _WebGLActiveInfoImpl implements WebGLActiveInfo native "*WebGLActiveInfo"
{ |
13822 | 13763 |
13823 final String name; | 13764 final String name; |
13824 | 13765 |
13825 final int size; | 13766 final int size; |
13826 | 13767 |
13827 final int type; | 13768 final int type; |
13828 } | 13769 } |
13829 | 13770 |
13830 class _WebGLBufferJs implements WebGLBuffer native "*WebGLBuffer" { | 13771 class _WebGLBufferImpl implements WebGLBuffer native "*WebGLBuffer" { |
13831 } | 13772 } |
13832 | 13773 |
13833 class _WebGLCompressedTextureS3TCJs implements WebGLCompressedTextureS3TC native
"*WebGLCompressedTextureS3TC" { | 13774 class _WebGLCompressedTextureS3TCImpl implements WebGLCompressedTextureS3TC nati
ve "*WebGLCompressedTextureS3TC" { |
13834 | 13775 |
13835 static final int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; | 13776 static final int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; |
13836 | 13777 |
13837 static final int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; | 13778 static final int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; |
13838 | 13779 |
13839 static final int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; | 13780 static final int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; |
13840 | 13781 |
13841 static final int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; | 13782 static final int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; |
13842 } | 13783 } |
13843 | 13784 |
13844 class _WebGLContextAttributesJs implements WebGLContextAttributes native "*WebGL
ContextAttributes" { | 13785 class _WebGLContextAttributesImpl implements WebGLContextAttributes native "*Web
GLContextAttributes" { |
13845 | 13786 |
13846 bool alpha; | 13787 bool alpha; |
13847 | 13788 |
13848 bool antialias; | 13789 bool antialias; |
13849 | 13790 |
13850 bool depth; | 13791 bool depth; |
13851 | 13792 |
13852 bool premultipliedAlpha; | 13793 bool premultipliedAlpha; |
13853 | 13794 |
13854 bool preserveDrawingBuffer; | 13795 bool preserveDrawingBuffer; |
13855 | 13796 |
13856 bool stencil; | 13797 bool stencil; |
13857 } | 13798 } |
13858 | 13799 |
13859 class _WebGLContextEventJs extends _EventJs implements WebGLContextEvent native
"*WebGLContextEvent" { | 13800 class _WebGLContextEventImpl extends _EventImpl implements WebGLContextEvent nat
ive "*WebGLContextEvent" { |
13860 | 13801 |
13861 final String statusMessage; | 13802 final String statusMessage; |
13862 } | 13803 } |
13863 | 13804 |
13864 class _WebGLDebugRendererInfoJs implements WebGLDebugRendererInfo native "*WebGL
DebugRendererInfo" { | 13805 class _WebGLDebugRendererInfoImpl implements WebGLDebugRendererInfo native "*Web
GLDebugRendererInfo" { |
13865 | 13806 |
13866 static final int UNMASKED_RENDERER_WEBGL = 0x9246; | 13807 static final int UNMASKED_RENDERER_WEBGL = 0x9246; |
13867 | 13808 |
13868 static final int UNMASKED_VENDOR_WEBGL = 0x9245; | 13809 static final int UNMASKED_VENDOR_WEBGL = 0x9245; |
13869 } | 13810 } |
13870 | 13811 |
13871 class _WebGLDebugShadersJs implements WebGLDebugShaders native "*WebGLDebugShade
rs" { | 13812 class _WebGLDebugShadersImpl implements WebGLDebugShaders native "*WebGLDebugSha
ders" { |
13872 | 13813 |
13873 String getTranslatedShaderSource(_WebGLShaderJs shader) native; | 13814 String getTranslatedShaderSource(_WebGLShaderImpl shader) native; |
13874 } | 13815 } |
13875 | 13816 |
13876 class _WebGLFramebufferJs implements WebGLFramebuffer native "*WebGLFramebuffer"
{ | 13817 class _WebGLFramebufferImpl implements WebGLFramebuffer native "*WebGLFramebuffe
r" { |
13877 } | 13818 } |
13878 | 13819 |
13879 class _WebGLLoseContextJs implements WebGLLoseContext native "*WebGLLoseContext"
{ | 13820 class _WebGLLoseContextImpl implements WebGLLoseContext native "*WebGLLoseContex
t" { |
13880 | 13821 |
13881 void loseContext() native; | 13822 void loseContext() native; |
13882 | 13823 |
13883 void restoreContext() native; | 13824 void restoreContext() native; |
13884 } | 13825 } |
13885 | 13826 |
13886 class _WebGLProgramJs implements WebGLProgram native "*WebGLProgram" { | 13827 class _WebGLProgramImpl implements WebGLProgram native "*WebGLProgram" { |
13887 } | 13828 } |
13888 | 13829 |
13889 class _WebGLRenderbufferJs implements WebGLRenderbuffer native "*WebGLRenderbuff
er" { | 13830 class _WebGLRenderbufferImpl implements WebGLRenderbuffer native "*WebGLRenderbu
ffer" { |
13890 } | 13831 } |
13891 | 13832 |
13892 class _WebGLRenderingContextJs extends _CanvasRenderingContextJs implements WebG
LRenderingContext native "*WebGLRenderingContext" { | 13833 class _WebGLRenderingContextImpl extends _CanvasRenderingContextImpl implements
WebGLRenderingContext native "*WebGLRenderingContext" { |
13893 | 13834 |
13894 static final int ACTIVE_ATTRIBUTES = 0x8B89; | 13835 static final int ACTIVE_ATTRIBUTES = 0x8B89; |
13895 | 13836 |
13896 static final int ACTIVE_TEXTURE = 0x84E0; | 13837 static final int ACTIVE_TEXTURE = 0x84E0; |
13897 | 13838 |
13898 static final int ACTIVE_UNIFORMS = 0x8B86; | 13839 static final int ACTIVE_UNIFORMS = 0x8B86; |
13899 | 13840 |
13900 static final int ALIASED_LINE_WIDTH_RANGE = 0x846E; | 13841 static final int ALIASED_LINE_WIDTH_RANGE = 0x846E; |
13901 | 13842 |
13902 static final int ALIASED_POINT_SIZE_RANGE = 0x846D; | 13843 static final int ALIASED_POINT_SIZE_RANGE = 0x846D; |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14482 static final int VIEWPORT = 0x0BA2; | 14423 static final int VIEWPORT = 0x0BA2; |
14483 | 14424 |
14484 static final int ZERO = 0; | 14425 static final int ZERO = 0; |
14485 | 14426 |
14486 final int drawingBufferHeight; | 14427 final int drawingBufferHeight; |
14487 | 14428 |
14488 final int drawingBufferWidth; | 14429 final int drawingBufferWidth; |
14489 | 14430 |
14490 void activeTexture(int texture) native; | 14431 void activeTexture(int texture) native; |
14491 | 14432 |
14492 void attachShader(_WebGLProgramJs program, _WebGLShaderJs shader) native; | 14433 void attachShader(_WebGLProgramImpl program, _WebGLShaderImpl shader) native; |
14493 | 14434 |
14494 void bindAttribLocation(_WebGLProgramJs program, int index, String name) nativ
e; | 14435 void bindAttribLocation(_WebGLProgramImpl program, int index, String name) nat
ive; |
14495 | 14436 |
14496 void bindBuffer(int target, _WebGLBufferJs buffer) native; | 14437 void bindBuffer(int target, _WebGLBufferImpl buffer) native; |
14497 | 14438 |
14498 void bindFramebuffer(int target, _WebGLFramebufferJs framebuffer) native; | 14439 void bindFramebuffer(int target, _WebGLFramebufferImpl framebuffer) native; |
14499 | 14440 |
14500 void bindRenderbuffer(int target, _WebGLRenderbufferJs renderbuffer) native; | 14441 void bindRenderbuffer(int target, _WebGLRenderbufferImpl renderbuffer) native; |
14501 | 14442 |
14502 void bindTexture(int target, _WebGLTextureJs texture) native; | 14443 void bindTexture(int target, _WebGLTextureImpl texture) native; |
14503 | 14444 |
14504 void blendColor(num red, num green, num blue, num alpha) native; | 14445 void blendColor(num red, num green, num blue, num alpha) native; |
14505 | 14446 |
14506 void blendEquation(int mode) native; | 14447 void blendEquation(int mode) native; |
14507 | 14448 |
14508 void blendEquationSeparate(int modeRGB, int modeAlpha) native; | 14449 void blendEquationSeparate(int modeRGB, int modeAlpha) native; |
14509 | 14450 |
14510 void blendFunc(int sfactor, int dfactor) native; | 14451 void blendFunc(int sfactor, int dfactor) native; |
14511 | 14452 |
14512 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; | 14453 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; |
14513 | 14454 |
14514 void bufferData(int target, var data_OR_size, int usage) native; | 14455 void bufferData(int target, var data_OR_size, int usage) native; |
14515 | 14456 |
14516 void bufferSubData(int target, int offset, var data) native; | 14457 void bufferSubData(int target, int offset, var data) native; |
14517 | 14458 |
14518 int checkFramebufferStatus(int target) native; | 14459 int checkFramebufferStatus(int target) native; |
14519 | 14460 |
14520 void clear(int mask) native; | 14461 void clear(int mask) native; |
14521 | 14462 |
14522 void clearColor(num red, num green, num blue, num alpha) native; | 14463 void clearColor(num red, num green, num blue, num alpha) native; |
14523 | 14464 |
14524 void clearDepth(num depth) native; | 14465 void clearDepth(num depth) native; |
14525 | 14466 |
14526 void clearStencil(int s) native; | 14467 void clearStencil(int s) native; |
14527 | 14468 |
14528 void colorMask(bool red, bool green, bool blue, bool alpha) native; | 14469 void colorMask(bool red, bool green, bool blue, bool alpha) native; |
14529 | 14470 |
14530 void compileShader(_WebGLShaderJs shader) native; | 14471 void compileShader(_WebGLShaderImpl shader) native; |
14531 | 14472 |
14532 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, _ArrayBufferViewJs data) native; | 14473 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, _ArrayBufferViewImpl data) native; |
14533 | 14474 |
14534 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, _ArrayBufferViewJs data) native; | 14475 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, _ArrayBufferViewImpl data) native; |
14535 | 14476 |
14536 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; | 14477 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; |
14537 | 14478 |
14538 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; | 14479 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; |
14539 | 14480 |
14540 _WebGLBufferJs createBuffer() native; | 14481 _WebGLBufferImpl createBuffer() native; |
14541 | 14482 |
14542 _WebGLFramebufferJs createFramebuffer() native; | 14483 _WebGLFramebufferImpl createFramebuffer() native; |
14543 | 14484 |
14544 _WebGLProgramJs createProgram() native; | 14485 _WebGLProgramImpl createProgram() native; |
14545 | 14486 |
14546 _WebGLRenderbufferJs createRenderbuffer() native; | 14487 _WebGLRenderbufferImpl createRenderbuffer() native; |
14547 | 14488 |
14548 _WebGLShaderJs createShader(int type) native; | 14489 _WebGLShaderImpl createShader(int type) native; |
14549 | 14490 |
14550 _WebGLTextureJs createTexture() native; | 14491 _WebGLTextureImpl createTexture() native; |
14551 | 14492 |
14552 void cullFace(int mode) native; | 14493 void cullFace(int mode) native; |
14553 | 14494 |
14554 void deleteBuffer(_WebGLBufferJs buffer) native; | 14495 void deleteBuffer(_WebGLBufferImpl buffer) native; |
14555 | 14496 |
14556 void deleteFramebuffer(_WebGLFramebufferJs framebuffer) native; | 14497 void deleteFramebuffer(_WebGLFramebufferImpl framebuffer) native; |
14557 | 14498 |
14558 void deleteProgram(_WebGLProgramJs program) native; | 14499 void deleteProgram(_WebGLProgramImpl program) native; |
14559 | 14500 |
14560 void deleteRenderbuffer(_WebGLRenderbufferJs renderbuffer) native; | 14501 void deleteRenderbuffer(_WebGLRenderbufferImpl renderbuffer) native; |
14561 | 14502 |
14562 void deleteShader(_WebGLShaderJs shader) native; | 14503 void deleteShader(_WebGLShaderImpl shader) native; |
14563 | 14504 |
14564 void deleteTexture(_WebGLTextureJs texture) native; | 14505 void deleteTexture(_WebGLTextureImpl texture) native; |
14565 | 14506 |
14566 void depthFunc(int func) native; | 14507 void depthFunc(int func) native; |
14567 | 14508 |
14568 void depthMask(bool flag) native; | 14509 void depthMask(bool flag) native; |
14569 | 14510 |
14570 void depthRange(num zNear, num zFar) native; | 14511 void depthRange(num zNear, num zFar) native; |
14571 | 14512 |
14572 void detachShader(_WebGLProgramJs program, _WebGLShaderJs shader) native; | 14513 void detachShader(_WebGLProgramImpl program, _WebGLShaderImpl shader) native; |
14573 | 14514 |
14574 void disable(int cap) native; | 14515 void disable(int cap) native; |
14575 | 14516 |
14576 void disableVertexAttribArray(int index) native; | 14517 void disableVertexAttribArray(int index) native; |
14577 | 14518 |
14578 void drawArrays(int mode, int first, int count) native; | 14519 void drawArrays(int mode, int first, int count) native; |
14579 | 14520 |
14580 void drawElements(int mode, int count, int type, int offset) native; | 14521 void drawElements(int mode, int count, int type, int offset) native; |
14581 | 14522 |
14582 void enable(int cap) native; | 14523 void enable(int cap) native; |
14583 | 14524 |
14584 void enableVertexAttribArray(int index) native; | 14525 void enableVertexAttribArray(int index) native; |
14585 | 14526 |
14586 void finish() native; | 14527 void finish() native; |
14587 | 14528 |
14588 void flush() native; | 14529 void flush() native; |
14589 | 14530 |
14590 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, _WebGLRenderbufferJs renderbuffer) native; | 14531 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, _WebGLRenderbufferImpl renderbuffer) native; |
14591 | 14532 |
14592 void framebufferTexture2D(int target, int attachment, int textarget, _WebGLTex
tureJs texture, int level) native; | 14533 void framebufferTexture2D(int target, int attachment, int textarget, _WebGLTex
tureImpl texture, int level) native; |
14593 | 14534 |
14594 void frontFace(int mode) native; | 14535 void frontFace(int mode) native; |
14595 | 14536 |
14596 void generateMipmap(int target) native; | 14537 void generateMipmap(int target) native; |
14597 | 14538 |
14598 _WebGLActiveInfoJs getActiveAttrib(_WebGLProgramJs program, int index) native; | 14539 _WebGLActiveInfoImpl getActiveAttrib(_WebGLProgramImpl program, int index) nat
ive; |
14599 | 14540 |
14600 _WebGLActiveInfoJs getActiveUniform(_WebGLProgramJs program, int index) native
; | 14541 _WebGLActiveInfoImpl getActiveUniform(_WebGLProgramImpl program, int index) na
tive; |
14601 | 14542 |
14602 List getAttachedShaders(_WebGLProgramJs program) native; | 14543 List getAttachedShaders(_WebGLProgramImpl program) native; |
14603 | 14544 |
14604 int getAttribLocation(_WebGLProgramJs program, String name) native; | 14545 int getAttribLocation(_WebGLProgramImpl program, String name) native; |
14605 | 14546 |
14606 Object getBufferParameter(int target, int pname) native; | 14547 Object getBufferParameter(int target, int pname) native; |
14607 | 14548 |
14608 _WebGLContextAttributesJs getContextAttributes() native; | 14549 _WebGLContextAttributesImpl getContextAttributes() native; |
14609 | 14550 |
14610 int getError() native; | 14551 int getError() native; |
14611 | 14552 |
14612 Object getExtension(String name) native; | 14553 Object getExtension(String name) native; |
14613 | 14554 |
14614 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; | 14555 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; |
14615 | 14556 |
14616 Object getParameter(int pname) native; | 14557 Object getParameter(int pname) native; |
14617 | 14558 |
14618 String getProgramInfoLog(_WebGLProgramJs program) native; | 14559 String getProgramInfoLog(_WebGLProgramImpl program) native; |
14619 | 14560 |
14620 Object getProgramParameter(_WebGLProgramJs program, int pname) native; | 14561 Object getProgramParameter(_WebGLProgramImpl program, int pname) native; |
14621 | 14562 |
14622 Object getRenderbufferParameter(int target, int pname) native; | 14563 Object getRenderbufferParameter(int target, int pname) native; |
14623 | 14564 |
14624 String getShaderInfoLog(_WebGLShaderJs shader) native; | 14565 String getShaderInfoLog(_WebGLShaderImpl shader) native; |
14625 | 14566 |
14626 Object getShaderParameter(_WebGLShaderJs shader, int pname) native; | 14567 Object getShaderParameter(_WebGLShaderImpl shader, int pname) native; |
14627 | 14568 |
14628 String getShaderSource(_WebGLShaderJs shader) native; | 14569 String getShaderSource(_WebGLShaderImpl shader) native; |
14629 | 14570 |
14630 Object getTexParameter(int target, int pname) native; | 14571 Object getTexParameter(int target, int pname) native; |
14631 | 14572 |
14632 Object getUniform(_WebGLProgramJs program, _WebGLUniformLocationJs location) n
ative; | 14573 Object getUniform(_WebGLProgramImpl program, _WebGLUniformLocationImpl locatio
n) native; |
14633 | 14574 |
14634 _WebGLUniformLocationJs getUniformLocation(_WebGLProgramJs program, String nam
e) native; | 14575 _WebGLUniformLocationImpl getUniformLocation(_WebGLProgramImpl program, String
name) native; |
14635 | 14576 |
14636 Object getVertexAttrib(int index, int pname) native; | 14577 Object getVertexAttrib(int index, int pname) native; |
14637 | 14578 |
14638 int getVertexAttribOffset(int index, int pname) native; | 14579 int getVertexAttribOffset(int index, int pname) native; |
14639 | 14580 |
14640 void hint(int target, int mode) native; | 14581 void hint(int target, int mode) native; |
14641 | 14582 |
14642 bool isBuffer(_WebGLBufferJs buffer) native; | 14583 bool isBuffer(_WebGLBufferImpl buffer) native; |
14643 | 14584 |
14644 bool isContextLost() native; | 14585 bool isContextLost() native; |
14645 | 14586 |
14646 bool isEnabled(int cap) native; | 14587 bool isEnabled(int cap) native; |
14647 | 14588 |
14648 bool isFramebuffer(_WebGLFramebufferJs framebuffer) native; | 14589 bool isFramebuffer(_WebGLFramebufferImpl framebuffer) native; |
14649 | 14590 |
14650 bool isProgram(_WebGLProgramJs program) native; | 14591 bool isProgram(_WebGLProgramImpl program) native; |
14651 | 14592 |
14652 bool isRenderbuffer(_WebGLRenderbufferJs renderbuffer) native; | 14593 bool isRenderbuffer(_WebGLRenderbufferImpl renderbuffer) native; |
14653 | 14594 |
14654 bool isShader(_WebGLShaderJs shader) native; | 14595 bool isShader(_WebGLShaderImpl shader) native; |
14655 | 14596 |
14656 bool isTexture(_WebGLTextureJs texture) native; | 14597 bool isTexture(_WebGLTextureImpl texture) native; |
14657 | 14598 |
14658 void lineWidth(num width) native; | 14599 void lineWidth(num width) native; |
14659 | 14600 |
14660 void linkProgram(_WebGLProgramJs program) native; | 14601 void linkProgram(_WebGLProgramImpl program) native; |
14661 | 14602 |
14662 void pixelStorei(int pname, int param) native; | 14603 void pixelStorei(int pname, int param) native; |
14663 | 14604 |
14664 void polygonOffset(num factor, num units) native; | 14605 void polygonOffset(num factor, num units) native; |
14665 | 14606 |
14666 void readPixels(int x, int y, int width, int height, int format, int type, _Ar
rayBufferViewJs pixels) native; | 14607 void readPixels(int x, int y, int width, int height, int format, int type, _Ar
rayBufferViewImpl pixels) native; |
14667 | 14608 |
14668 void releaseShaderCompiler() native; | 14609 void releaseShaderCompiler() native; |
14669 | 14610 |
14670 void renderbufferStorage(int target, int internalformat, int width, int height
) native; | 14611 void renderbufferStorage(int target, int internalformat, int width, int height
) native; |
14671 | 14612 |
14672 void sampleCoverage(num value, bool invert) native; | 14613 void sampleCoverage(num value, bool invert) native; |
14673 | 14614 |
14674 void scissor(int x, int y, int width, int height) native; | 14615 void scissor(int x, int y, int width, int height) native; |
14675 | 14616 |
14676 void shaderSource(_WebGLShaderJs shader, String string) native; | 14617 void shaderSource(_WebGLShaderImpl shader, String string) native; |
14677 | 14618 |
14678 void stencilFunc(int func, int ref, int mask) native; | 14619 void stencilFunc(int func, int ref, int mask) native; |
14679 | 14620 |
14680 void stencilFuncSeparate(int face, int func, int ref, int mask) native; | 14621 void stencilFuncSeparate(int face, int func, int ref, int mask) native; |
14681 | 14622 |
14682 void stencilMask(int mask) native; | 14623 void stencilMask(int mask) native; |
14683 | 14624 |
14684 void stencilMaskSeparate(int face, int mask) native; | 14625 void stencilMaskSeparate(int face, int mask) native; |
14685 | 14626 |
14686 void stencilOp(int fail, int zfail, int zpass) native; | 14627 void stencilOp(int fail, int zfail, int zpass) native; |
14687 | 14628 |
14688 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 14629 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
14689 | 14630 |
14690 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, var border_OR_canvas_OR_image_OR_pixels_OR_video, [int for
mat = null, int type = null, _ArrayBufferViewJs pixels = null]) native; | 14631 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, var border_OR_canvas_OR_image_OR_pixels_OR_video, [int for
mat = null, int type = null, _ArrayBufferViewImpl pixels = null]) native; |
14691 | 14632 |
14692 void texParameterf(int target, int pname, num param) native; | 14633 void texParameterf(int target, int pname, num param) native; |
14693 | 14634 |
14694 void texParameteri(int target, int pname, int param) native; | 14635 void texParameteri(int target, int pname, int param) native; |
14695 | 14636 |
14696 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels_OR_video,
[int type = null, _ArrayBufferViewJs pixels = null]) native; | 14637 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels_OR_video,
[int type = null, _ArrayBufferViewImpl pixels = null]) native; |
14697 | 14638 |
14698 void uniform1f(_WebGLUniformLocationJs location, num x) native; | 14639 void uniform1f(_WebGLUniformLocationImpl location, num x) native; |
14699 | 14640 |
14700 void uniform1fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | 14641 void uniform1fv(_WebGLUniformLocationImpl location, _Float32ArrayImpl v) nativ
e; |
14701 | 14642 |
14702 void uniform1i(_WebGLUniformLocationJs location, int x) native; | 14643 void uniform1i(_WebGLUniformLocationImpl location, int x) native; |
14703 | 14644 |
14704 void uniform1iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | 14645 void uniform1iv(_WebGLUniformLocationImpl location, _Int32ArrayImpl v) native; |
14705 | 14646 |
14706 void uniform2f(_WebGLUniformLocationJs location, num x, num y) native; | 14647 void uniform2f(_WebGLUniformLocationImpl location, num x, num y) native; |
14707 | 14648 |
14708 void uniform2fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | 14649 void uniform2fv(_WebGLUniformLocationImpl location, _Float32ArrayImpl v) nativ
e; |
14709 | 14650 |
14710 void uniform2i(_WebGLUniformLocationJs location, int x, int y) native; | 14651 void uniform2i(_WebGLUniformLocationImpl location, int x, int y) native; |
14711 | 14652 |
14712 void uniform2iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | 14653 void uniform2iv(_WebGLUniformLocationImpl location, _Int32ArrayImpl v) native; |
14713 | 14654 |
14714 void uniform3f(_WebGLUniformLocationJs location, num x, num y, num z) native; | 14655 void uniform3f(_WebGLUniformLocationImpl location, num x, num y, num z) native
; |
14715 | 14656 |
14716 void uniform3fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | 14657 void uniform3fv(_WebGLUniformLocationImpl location, _Float32ArrayImpl v) nativ
e; |
14717 | 14658 |
14718 void uniform3i(_WebGLUniformLocationJs location, int x, int y, int z) native; | 14659 void uniform3i(_WebGLUniformLocationImpl location, int x, int y, int z) native
; |
14719 | 14660 |
14720 void uniform3iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | 14661 void uniform3iv(_WebGLUniformLocationImpl location, _Int32ArrayImpl v) native; |
14721 | 14662 |
14722 void uniform4f(_WebGLUniformLocationJs location, num x, num y, num z, num w) n
ative; | 14663 void uniform4f(_WebGLUniformLocationImpl location, num x, num y, num z, num w)
native; |
14723 | 14664 |
14724 void uniform4fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | 14665 void uniform4fv(_WebGLUniformLocationImpl location, _Float32ArrayImpl v) nativ
e; |
14725 | 14666 |
14726 void uniform4i(_WebGLUniformLocationJs location, int x, int y, int z, int w) n
ative; | 14667 void uniform4i(_WebGLUniformLocationImpl location, int x, int y, int z, int w)
native; |
14727 | 14668 |
14728 void uniform4iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | 14669 void uniform4iv(_WebGLUniformLocationImpl location, _Int32ArrayImpl v) native; |
14729 | 14670 |
14730 void uniformMatrix2fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | 14671 void uniformMatrix2fv(_WebGLUniformLocationImpl location, bool transpose, _Flo
at32ArrayImpl array) native; |
14731 | 14672 |
14732 void uniformMatrix3fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | 14673 void uniformMatrix3fv(_WebGLUniformLocationImpl location, bool transpose, _Flo
at32ArrayImpl array) native; |
14733 | 14674 |
14734 void uniformMatrix4fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | 14675 void uniformMatrix4fv(_WebGLUniformLocationImpl location, bool transpose, _Flo
at32ArrayImpl array) native; |
14735 | 14676 |
14736 void useProgram(_WebGLProgramJs program) native; | 14677 void useProgram(_WebGLProgramImpl program) native; |
14737 | 14678 |
14738 void validateProgram(_WebGLProgramJs program) native; | 14679 void validateProgram(_WebGLProgramImpl program) native; |
14739 | 14680 |
14740 void vertexAttrib1f(int indx, num x) native; | 14681 void vertexAttrib1f(int indx, num x) native; |
14741 | 14682 |
14742 void vertexAttrib1fv(int indx, _Float32ArrayJs values) native; | 14683 void vertexAttrib1fv(int indx, _Float32ArrayImpl values) native; |
14743 | 14684 |
14744 void vertexAttrib2f(int indx, num x, num y) native; | 14685 void vertexAttrib2f(int indx, num x, num y) native; |
14745 | 14686 |
14746 void vertexAttrib2fv(int indx, _Float32ArrayJs values) native; | 14687 void vertexAttrib2fv(int indx, _Float32ArrayImpl values) native; |
14747 | 14688 |
14748 void vertexAttrib3f(int indx, num x, num y, num z) native; | 14689 void vertexAttrib3f(int indx, num x, num y, num z) native; |
14749 | 14690 |
14750 void vertexAttrib3fv(int indx, _Float32ArrayJs values) native; | 14691 void vertexAttrib3fv(int indx, _Float32ArrayImpl values) native; |
14751 | 14692 |
14752 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; | 14693 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; |
14753 | 14694 |
14754 void vertexAttrib4fv(int indx, _Float32ArrayJs values) native; | 14695 void vertexAttrib4fv(int indx, _Float32ArrayImpl values) native; |
14755 | 14696 |
14756 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; | 14697 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; |
14757 | 14698 |
14758 void viewport(int x, int y, int width, int height) native; | 14699 void viewport(int x, int y, int width, int height) native; |
14759 } | 14700 } |
14760 | 14701 |
14761 class _WebGLShaderJs implements WebGLShader native "*WebGLShader" { | 14702 class _WebGLShaderImpl implements WebGLShader native "*WebGLShader" { |
14762 } | 14703 } |
14763 | 14704 |
14764 class _WebGLTextureJs implements WebGLTexture native "*WebGLTexture" { | 14705 class _WebGLTextureImpl implements WebGLTexture native "*WebGLTexture" { |
14765 } | 14706 } |
14766 | 14707 |
14767 class _WebGLUniformLocationJs implements WebGLUniformLocation native "*WebGLUnif
ormLocation" { | 14708 class _WebGLUniformLocationImpl implements WebGLUniformLocation native "*WebGLUn
iformLocation" { |
14768 } | 14709 } |
14769 | 14710 |
14770 class _WebGLVertexArrayObjectOESJs implements WebGLVertexArrayObjectOES native "
*WebGLVertexArrayObjectOES" { | 14711 class _WebGLVertexArrayObjectOESImpl implements WebGLVertexArrayObjectOES native
"*WebGLVertexArrayObjectOES" { |
14771 } | 14712 } |
14772 | 14713 |
14773 class _WebKitCSSRegionRuleJs extends _CSSRuleJs implements WebKitCSSRegionRule n
ative "*WebKitCSSRegionRule" { | 14714 class _WebKitCSSRegionRuleImpl extends _CSSRuleImpl implements WebKitCSSRegionRu
le native "*WebKitCSSRegionRule" { |
14774 | 14715 |
14775 final _CSSRuleListJs cssRules; | 14716 final _CSSRuleListImpl cssRules; |
14776 } | 14717 } |
14777 | 14718 |
14778 class _WebKitNamedFlowJs implements WebKitNamedFlow native "*WebKitNamedFlow" { | 14719 class _WebKitNamedFlowImpl implements WebKitNamedFlow native "*WebKitNamedFlow"
{ |
14779 } | 14720 } |
14780 | 14721 |
14781 class _WebSocketJs implements WebSocket native "*WebSocket" { | 14722 class _WebSocketImpl extends _EventTargetImpl implements WebSocket native "*WebS
ocket" { |
14782 | 14723 |
14783 static final int CLOSED = 3; | 14724 static final int CLOSED = 3; |
14784 | 14725 |
14785 static final int CLOSING = 2; | 14726 static final int CLOSING = 2; |
14786 | 14727 |
14787 static final int CONNECTING = 0; | 14728 static final int CONNECTING = 0; |
14788 | 14729 |
14789 static final int OPEN = 1; | 14730 static final int OPEN = 1; |
14790 | 14731 |
14791 final String URL; | 14732 final String URL; |
(...skipping 10 matching lines...) Expand all Loading... |
14802 | 14743 |
14803 final String url; | 14744 final String url; |
14804 | 14745 |
14805 _WebSocketEventsImpl get on() => | 14746 _WebSocketEventsImpl get on() => |
14806 new _WebSocketEventsImpl(this); | 14747 new _WebSocketEventsImpl(this); |
14807 | 14748 |
14808 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 14749 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
14809 | 14750 |
14810 void close([int code = null, String reason = null]) native; | 14751 void close([int code = null, String reason = null]) native; |
14811 | 14752 |
14812 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | 14753 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
14813 | 14754 |
14814 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 14755 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
14815 | 14756 |
14816 bool send(String data) native; | 14757 bool send(String data) native; |
14817 } | 14758 } |
14818 | 14759 |
14819 class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents { | 14760 class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents { |
14820 _WebSocketEventsImpl(_ptr) : super(_ptr); | 14761 _WebSocketEventsImpl(_ptr) : super(_ptr); |
14821 | 14762 |
14822 EventListenerList get close() => _get('close'); | 14763 EventListenerList get close() => _get('close'); |
14823 | 14764 |
14824 EventListenerList get error() => _get('error'); | 14765 EventListenerList get error() => _get('error'); |
14825 | 14766 |
14826 EventListenerList get message() => _get('message'); | 14767 EventListenerList get message() => _get('message'); |
14827 | 14768 |
14828 EventListenerList get open() => _get('open'); | 14769 EventListenerList get open() => _get('open'); |
14829 } | 14770 } |
14830 | 14771 |
14831 class _WheelEventJs extends _UIEventJs implements WheelEvent native "*WheelEvent
" { | 14772 class _WheelEventImpl extends _UIEventImpl implements WheelEvent native "*WheelE
vent" { |
14832 | 14773 |
14833 final bool altKey; | 14774 final bool altKey; |
14834 | 14775 |
14835 final int clientX; | 14776 final int clientX; |
14836 | 14777 |
14837 final int clientY; | 14778 final int clientY; |
14838 | 14779 |
14839 final bool ctrlKey; | 14780 final bool ctrlKey; |
14840 | 14781 |
14841 final bool metaKey; | 14782 final bool metaKey; |
(...skipping 13 matching lines...) Expand all Loading... |
14855 final int wheelDelta; | 14796 final int wheelDelta; |
14856 | 14797 |
14857 final int wheelDeltaX; | 14798 final int wheelDeltaX; |
14858 | 14799 |
14859 final int wheelDeltaY; | 14800 final int wheelDeltaY; |
14860 | 14801 |
14861 final int x; | 14802 final int x; |
14862 | 14803 |
14863 final int y; | 14804 final int y; |
14864 | 14805 |
14865 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, _WindowJs view, in
t screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, boo
l shiftKey, bool metaKey) native; | 14806 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, _WindowImpl view,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b
ool shiftKey, bool metaKey) native; |
14866 } | 14807 } |
14867 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14868 // for details. All rights reserved. Use of this source code is governed by a | 14809 // for details. All rights reserved. Use of this source code is governed by a |
14869 // BSD-style license that can be found in the LICENSE file. | 14810 // BSD-style license that can be found in the LICENSE file. |
14870 | 14811 |
14871 typedef Object ComputeValue(); | 14812 class _WindowImpl extends _EventTargetImpl implements Window native "@*DOMWindow
" { |
14872 | 14813 |
14873 class _MeasurementRequest<T> { | 14814 _DocumentImpl get document() native "return this.document.documentElement;"; |
14874 final ComputeValue computeValue; | |
14875 final Completer<T> completer; | |
14876 Object value; | |
14877 bool exception = false; | |
14878 _MeasurementRequest(this.computeValue, this.completer); | |
14879 } | |
14880 | |
14881 final _MEASUREMENT_MESSAGE = "DART-MEASURE"; | |
14882 List<_MeasurementRequest> _pendingRequests; | |
14883 List<TimeoutHandler> _pendingMeasurementFrameCallbacks; | |
14884 bool _nextMeasurementFrameScheduled = false; | |
14885 bool _firstMeasurementRequest = true; | |
14886 | |
14887 void _maybeScheduleMeasurementFrame() { | |
14888 if (_nextMeasurementFrameScheduled) return; | |
14889 | |
14890 _nextMeasurementFrameScheduled = true; | |
14891 // postMessage gives us a way to receive a callback after the current | |
14892 // event listener has unwound but before the browser has repainted. | |
14893 if (_firstMeasurementRequest) { | |
14894 // Messages from other windows do not cause a security risk as | |
14895 // all we care about is that _onCompleteMeasurementRequests is called | |
14896 // after the current event loop is unwound and calling the function is | |
14897 // a noop when zero requests are pending. | |
14898 window.on.message.add((e) => _completeMeasurementFutures()); | |
14899 _firstMeasurementRequest = false; | |
14900 } | |
14901 | |
14902 // TODO(jacobr): other mechanisms such as setImmediate and | |
14903 // requestAnimationFrame may work better of platforms that support them. | |
14904 // The key is we need a way to execute code immediately after the current | |
14905 // event listener queue unwinds. | |
14906 window.postMessage(_MEASUREMENT_MESSAGE, "*"); | |
14907 } | |
14908 | |
14909 /** | |
14910 * Registers a [callback] which is called after the next batch of measurements | |
14911 * completes. Even if no measurements completed, the callback is triggered | |
14912 * when they would have completed to avoid confusing bugs if it happened that | |
14913 * no measurements were actually requested. | |
14914 */ | |
14915 void _addMeasurementFrameCallback(TimeoutHandler callback) { | |
14916 if (_pendingMeasurementFrameCallbacks === null) { | |
14917 _pendingMeasurementFrameCallbacks = <TimeoutHandler>[]; | |
14918 _maybeScheduleMeasurementFrame(); | |
14919 } | |
14920 _pendingMeasurementFrameCallbacks.add(callback); | |
14921 } | |
14922 | |
14923 /** | |
14924 * Returns a [Future] whose value will be the result of evaluating | |
14925 * [computeValue] during the next safe measurement interval. | |
14926 * The next safe measurement interval is after the current event loop has | |
14927 * unwound but before the browser has rendered the page. | |
14928 * It is important that the [computeValue] function only queries the html | |
14929 * layout and html in any way. | |
14930 */ | |
14931 Future _createMeasurementFuture(ComputeValue computeValue, | |
14932 Completer completer) { | |
14933 if (_pendingRequests === null) { | |
14934 _pendingRequests = <_MeasurementRequest>[]; | |
14935 _maybeScheduleMeasurementFrame(); | |
14936 } | |
14937 _pendingRequests.add(new _MeasurementRequest(computeValue, completer)); | |
14938 return completer.future; | |
14939 } | |
14940 | |
14941 /** | |
14942 * Complete all pending measurement futures evaluating them in a single batch | |
14943 * so that the the browser is guaranteed to avoid multiple layouts. | |
14944 */ | |
14945 void _completeMeasurementFutures() { | |
14946 if (_nextMeasurementFrameScheduled == false) { | |
14947 // Ignore spurious call to this function. | |
14948 return; | |
14949 } | |
14950 | |
14951 _nextMeasurementFrameScheduled = false; | |
14952 // We must compute all new values before fulfilling the futures as | |
14953 // the onComplete callbacks for the futures could modify the DOM making | |
14954 // subsequent measurement calculations expensive to compute. | |
14955 if (_pendingRequests !== null) { | |
14956 for (_MeasurementRequest request in _pendingRequests) { | |
14957 try { | |
14958 request.value = request.computeValue(); | |
14959 } catch(var e) { | |
14960 request.value = e; | |
14961 request.exception = true; | |
14962 } | |
14963 } | |
14964 } | |
14965 | |
14966 final completedRequests = _pendingRequests; | |
14967 final readyMeasurementFrameCallbacks = _pendingMeasurementFrameCallbacks; | |
14968 _pendingRequests = null; | |
14969 _pendingMeasurementFrameCallbacks = null; | |
14970 if (completedRequests !== null) { | |
14971 for (_MeasurementRequest request in completedRequests) { | |
14972 if (request.exception) { | |
14973 request.completer.completeException(request.value); | |
14974 } else { | |
14975 request.completer.complete(request.value); | |
14976 } | |
14977 } | |
14978 } | |
14979 | |
14980 if (readyMeasurementFrameCallbacks !== null) { | |
14981 for (TimeoutHandler handler in readyMeasurementFrameCallbacks) { | |
14982 // TODO(jacobr): wrap each call to a handler in a try-catch block. | |
14983 handler(); | |
14984 } | |
14985 } | |
14986 } | |
14987 | |
14988 class _WindowJs implements Window native "@*DOMWindow" { | |
14989 | |
14990 _DocumentJs get document() native "return this.document.documentElement;"; | |
14991 | 14815 |
14992 void requestLayoutFrame(TimeoutHandler callback) { | 14816 void requestLayoutFrame(TimeoutHandler callback) { |
14993 _addMeasurementFrameCallback(callback); | 14817 _addMeasurementFrameCallback(callback); |
14994 } | 14818 } |
14995 | 14819 |
14996 | 14820 |
14997 static final int PERSISTENT = 1; | 14821 static final int PERSISTENT = 1; |
14998 | 14822 |
14999 static final int TEMPORARY = 0; | 14823 static final int TEMPORARY = 0; |
15000 | 14824 |
15001 final _DOMApplicationCacheJs applicationCache; | 14825 final _DOMApplicationCacheImpl applicationCache; |
15002 | 14826 |
15003 final _NavigatorJs clientInformation; | 14827 final _NavigatorImpl clientInformation; |
15004 | 14828 |
15005 final bool closed; | 14829 final bool closed; |
15006 | 14830 |
15007 final _ConsoleJs console; | 14831 final _ConsoleImpl console; |
15008 | 14832 |
15009 final _CryptoJs crypto; | 14833 final _CryptoImpl crypto; |
15010 | 14834 |
15011 String defaultStatus; | 14835 String defaultStatus; |
15012 | 14836 |
15013 String defaultstatus; | 14837 String defaultstatus; |
15014 | 14838 |
15015 final num devicePixelRatio; | 14839 final num devicePixelRatio; |
15016 | 14840 |
15017 final _EventJs event; | 14841 final _EventImpl event; |
15018 | 14842 |
15019 final _ElementJs frameElement; | 14843 final _ElementImpl frameElement; |
15020 | 14844 |
15021 final _WindowJs frames; | 14845 final _WindowImpl frames; |
15022 | 14846 |
15023 final _HistoryJs history; | 14847 final _HistoryImpl history; |
15024 | 14848 |
15025 final int innerHeight; | 14849 final int innerHeight; |
15026 | 14850 |
15027 final int innerWidth; | 14851 final int innerWidth; |
15028 | 14852 |
15029 final int length; | 14853 final int length; |
15030 | 14854 |
15031 final _StorageJs localStorage; | 14855 final _StorageImpl localStorage; |
15032 | 14856 |
15033 _LocationJs location; | 14857 _LocationImpl location; |
15034 | 14858 |
15035 final _BarInfoJs locationbar; | 14859 final _BarInfoImpl locationbar; |
15036 | 14860 |
15037 final _BarInfoJs menubar; | 14861 final _BarInfoImpl menubar; |
15038 | 14862 |
15039 String name; | 14863 String name; |
15040 | 14864 |
15041 final _NavigatorJs navigator; | 14865 final _NavigatorImpl navigator; |
15042 | 14866 |
15043 final bool offscreenBuffering; | 14867 final bool offscreenBuffering; |
15044 | 14868 |
15045 final _WindowJs opener; | 14869 final _WindowImpl opener; |
15046 | 14870 |
15047 final int outerHeight; | 14871 final int outerHeight; |
15048 | 14872 |
15049 final int outerWidth; | 14873 final int outerWidth; |
15050 | 14874 |
15051 final int pageXOffset; | 14875 final int pageXOffset; |
15052 | 14876 |
15053 final int pageYOffset; | 14877 final int pageYOffset; |
15054 | 14878 |
15055 final _WindowJs parent; | 14879 final _WindowImpl parent; |
15056 | 14880 |
15057 final _PerformanceJs performance; | 14881 final _PerformanceImpl performance; |
15058 | 14882 |
15059 final _BarInfoJs personalbar; | 14883 final _BarInfoImpl personalbar; |
15060 | 14884 |
15061 final _ScreenJs screen; | 14885 final _ScreenImpl screen; |
15062 | 14886 |
15063 final int screenLeft; | 14887 final int screenLeft; |
15064 | 14888 |
15065 final int screenTop; | 14889 final int screenTop; |
15066 | 14890 |
15067 final int screenX; | 14891 final int screenX; |
15068 | 14892 |
15069 final int screenY; | 14893 final int screenY; |
15070 | 14894 |
15071 final int scrollX; | 14895 final int scrollX; |
15072 | 14896 |
15073 final int scrollY; | 14897 final int scrollY; |
15074 | 14898 |
15075 final _BarInfoJs scrollbars; | 14899 final _BarInfoImpl scrollbars; |
15076 | 14900 |
15077 final _WindowJs self; | 14901 final _WindowImpl self; |
15078 | 14902 |
15079 final _StorageJs sessionStorage; | 14903 final _StorageImpl sessionStorage; |
15080 | 14904 |
15081 String status; | 14905 String status; |
15082 | 14906 |
15083 final _BarInfoJs statusbar; | 14907 final _BarInfoImpl statusbar; |
15084 | 14908 |
15085 final _StyleMediaJs styleMedia; | 14909 final _StyleMediaImpl styleMedia; |
15086 | 14910 |
15087 final _BarInfoJs toolbar; | 14911 final _BarInfoImpl toolbar; |
15088 | 14912 |
15089 final _WindowJs top; | 14913 final _WindowImpl top; |
15090 | 14914 |
15091 final _IDBFactoryJs webkitIndexedDB; | 14915 final _IDBFactoryImpl webkitIndexedDB; |
15092 | 14916 |
15093 final _NotificationCenterJs webkitNotifications; | 14917 final _NotificationCenterImpl webkitNotifications; |
15094 | 14918 |
15095 final _StorageInfoJs webkitStorageInfo; | 14919 final _StorageInfoImpl webkitStorageInfo; |
15096 | 14920 |
15097 final _WindowJs window; | 14921 final _WindowImpl window; |
15098 | 14922 |
15099 _WindowEventsImpl get on() => | 14923 _WindowEventsImpl get on() => |
15100 new _WindowEventsImpl(this); | 14924 new _WindowEventsImpl(this); |
15101 | 14925 |
15102 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 14926 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
15103 | 14927 |
15104 void alert(String message) native; | 14928 void alert(String message) native; |
15105 | 14929 |
15106 String atob(String string) native; | 14930 String atob(String string) native; |
15107 | 14931 |
15108 void blur() native; | 14932 void blur() native; |
15109 | 14933 |
15110 String btoa(String string) native; | 14934 String btoa(String string) native; |
15111 | 14935 |
15112 void captureEvents() native; | 14936 void captureEvents() native; |
15113 | 14937 |
15114 void clearInterval(int handle) native; | 14938 void clearInterval(int handle) native; |
15115 | 14939 |
15116 void clearTimeout(int handle) native; | 14940 void clearTimeout(int handle) native; |
15117 | 14941 |
15118 void close() native; | 14942 void close() native; |
15119 | 14943 |
15120 bool confirm(String message) native; | 14944 bool confirm(String message) native; |
15121 | 14945 |
15122 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | 14946 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
15123 | 14947 |
15124 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | 14948 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; |
15125 | 14949 |
15126 void focus() native; | 14950 void focus() native; |
15127 | 14951 |
15128 _CSSStyleDeclarationJs _getComputedStyle(_ElementJs element, String pseudoElem
ent) native "return this.getComputedStyle(element, pseudoElement);"; | 14952 _CSSStyleDeclarationImpl _getComputedStyle(_ElementImpl element, String pseudo
Element) native "return this.getComputedStyle(element, pseudoElement);"; |
15129 | 14953 |
15130 _CSSRuleListJs getMatchedCSSRules(_ElementJs element, String pseudoElement) na
tive; | 14954 _CSSRuleListImpl getMatchedCSSRules(_ElementImpl element, String pseudoElement
) native; |
15131 | 14955 |
15132 _DOMSelectionJs getSelection() native; | 14956 _DOMSelectionImpl getSelection() native; |
15133 | 14957 |
15134 _MediaQueryListJs matchMedia(String query) native; | 14958 _MediaQueryListImpl matchMedia(String query) native; |
15135 | 14959 |
15136 void moveBy(num x, num y) native; | 14960 void moveBy(num x, num y) native; |
15137 | 14961 |
15138 void moveTo(num x, num y) native; | 14962 void moveTo(num x, num y) native; |
15139 | 14963 |
15140 _WindowJs open(String url, String name, [String options = null]) native; | 14964 _WindowImpl open(String url, String name, [String options = null]) native; |
15141 | 14965 |
15142 _DatabaseJs openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback = null]) native; | 14966 _DatabaseImpl openDatabase(String name, String version, String displayName, in
t estimatedSize, [DatabaseCallback creationCallback = null]) native; |
15143 | 14967 |
15144 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu
ll]) native; | 14968 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu
ll]) native; |
15145 | 14969 |
15146 void print() native; | 14970 void print() native; |
15147 | 14971 |
15148 String prompt(String message, String defaultValue) native; | 14972 String prompt(String message, String defaultValue) native; |
15149 | 14973 |
15150 void releaseEvents() native; | 14974 void releaseEvents() native; |
15151 | 14975 |
15152 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 14976 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
(...skipping 13 matching lines...) Expand all Loading... |
15166 int setTimeout(TimeoutHandler handler, int timeout) native; | 14990 int setTimeout(TimeoutHandler handler, int timeout) native; |
15167 | 14991 |
15168 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr
gs = null]) native; | 14992 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr
gs = null]) native; |
15169 | 14993 |
15170 void stop() native; | 14994 void stop() native; |
15171 | 14995 |
15172 void webkitCancelAnimationFrame(int id) native; | 14996 void webkitCancelAnimationFrame(int id) native; |
15173 | 14997 |
15174 void webkitCancelRequestAnimationFrame(int id) native; | 14998 void webkitCancelRequestAnimationFrame(int id) native; |
15175 | 14999 |
15176 _PointJs webkitConvertPointFromNodeToPage(_NodeJs node, _PointJs p) native; | 15000 _PointImpl webkitConvertPointFromNodeToPage(_NodeImpl node, _PointImpl p) nati
ve; |
15177 | 15001 |
15178 _PointJs webkitConvertPointFromPageToNode(_NodeJs node, _PointJs p) native; | 15002 _PointImpl webkitConvertPointFromPageToNode(_NodeImpl node, _PointImpl p) nati
ve; |
15179 | 15003 |
15180 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis
t = null]) native; | 15004 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis
t = null]) native; |
15181 | 15005 |
15182 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, _Eleme
ntJs element) native; | 15006 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, _Eleme
ntImpl element) native; |
15183 | 15007 |
15184 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback = null]) native; | 15008 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback = null]) native; |
15185 | 15009 |
15186 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; | 15010 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; |
15187 | 15011 |
15188 } | 15012 } |
15189 | 15013 |
15190 class _WindowEventsImpl extends _EventsImpl implements WindowEvents { | 15014 class _WindowEventsImpl extends _EventsImpl implements WindowEvents { |
15191 _WindowEventsImpl(_ptr) : super(_ptr); | 15015 _WindowEventsImpl(_ptr) : super(_ptr); |
15192 | 15016 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15332 | 15156 |
15333 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); | 15157 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); |
15334 | 15158 |
15335 EventListenerList get unload() => _get('unload'); | 15159 EventListenerList get unload() => _get('unload'); |
15336 | 15160 |
15337 EventListenerList get volumeChange() => _get('volumechange'); | 15161 EventListenerList get volumeChange() => _get('volumechange'); |
15338 | 15162 |
15339 EventListenerList get waiting() => _get('waiting'); | 15163 EventListenerList get waiting() => _get('waiting'); |
15340 } | 15164 } |
15341 | 15165 |
15342 class _WorkerJs extends _AbstractWorkerJs implements Worker native "*Worker" { | 15166 class _WorkerImpl extends _AbstractWorkerImpl implements Worker native "*Worker"
{ |
15343 | 15167 |
15344 _WorkerEventsImpl get on() => | 15168 _WorkerEventsImpl get on() => |
15345 new _WorkerEventsImpl(this); | 15169 new _WorkerEventsImpl(this); |
15346 | 15170 |
15347 void postMessage(Dynamic message, [List messagePorts = null]) native; | 15171 void postMessage(Dynamic message, [List messagePorts = null]) native; |
15348 | 15172 |
15349 void terminate() native; | 15173 void terminate() native; |
15350 | 15174 |
15351 void webkitPostMessage(Dynamic message, [List messagePorts = null]) native; | 15175 void webkitPostMessage(Dynamic message, [List messagePorts = null]) native; |
15352 } | 15176 } |
15353 | 15177 |
15354 class _WorkerEventsImpl extends _AbstractWorkerEventsImpl implements WorkerEvent
s { | 15178 class _WorkerEventsImpl extends _AbstractWorkerEventsImpl implements WorkerEvent
s { |
15355 _WorkerEventsImpl(_ptr) : super(_ptr); | 15179 _WorkerEventsImpl(_ptr) : super(_ptr); |
15356 | 15180 |
15357 EventListenerList get message() => _get('message'); | 15181 EventListenerList get message() => _get('message'); |
15358 } | 15182 } |
15359 | 15183 |
15360 class _WorkerContextJs implements WorkerContext native "*WorkerContext" { | 15184 class _WorkerContextImpl implements WorkerContext native "*WorkerContext" { |
15361 | 15185 |
15362 static final int PERSISTENT = 1; | 15186 static final int PERSISTENT = 1; |
15363 | 15187 |
15364 static final int TEMPORARY = 0; | 15188 static final int TEMPORARY = 0; |
15365 | 15189 |
15366 final _WorkerLocationJs location; | 15190 final _WorkerLocationImpl location; |
15367 | 15191 |
15368 final _WorkerNavigatorJs navigator; | 15192 final _WorkerNavigatorImpl navigator; |
15369 | 15193 |
15370 EventListener onerror; | 15194 EventListener onerror; |
15371 | 15195 |
15372 final _WorkerContextJs self; | 15196 final _WorkerContextImpl self; |
15373 | 15197 |
15374 final _IDBFactoryJs webkitIndexedDB; | 15198 final _IDBFactoryImpl webkitIndexedDB; |
15375 | 15199 |
15376 final _NotificationCenterJs webkitNotifications; | 15200 final _NotificationCenterImpl webkitNotifications; |
15377 | 15201 |
15378 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 15202 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
15379 | 15203 |
15380 void clearInterval(int handle) native; | 15204 void clearInterval(int handle) native; |
15381 | 15205 |
15382 void clearTimeout(int handle) native; | 15206 void clearTimeout(int handle) native; |
15383 | 15207 |
15384 void close() native; | 15208 void close() native; |
15385 | 15209 |
15386 bool dispatchEvent(_EventJs evt) native; | 15210 bool dispatchEvent(_EventImpl evt) native; |
15387 | 15211 |
15388 void importScripts() native; | 15212 void importScripts() native; |
15389 | 15213 |
15390 _DatabaseJs openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback = null]) native; | 15214 _DatabaseImpl openDatabase(String name, String version, String displayName, in
t estimatedSize, [DatabaseCallback creationCallback = null]) native; |
15391 | 15215 |
15392 _DatabaseSyncJs openDatabaseSync(String name, String version, String displayNa
me, int estimatedSize, [DatabaseCallback creationCallback = null]) native; | 15216 _DatabaseSyncImpl openDatabaseSync(String name, String version, String display
Name, int estimatedSize, [DatabaseCallback creationCallback = null]) native; |
15393 | 15217 |
15394 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 15218 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
15395 | 15219 |
15396 int setInterval(TimeoutHandler handler, int timeout) native; | 15220 int setInterval(TimeoutHandler handler, int timeout) native; |
15397 | 15221 |
15398 int setTimeout(TimeoutHandler handler, int timeout) native; | 15222 int setTimeout(TimeoutHandler handler, int timeout) native; |
15399 | 15223 |
15400 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) native; | 15224 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) native; |
15401 | 15225 |
15402 _DOMFileSystemSyncJs webkitRequestFileSystemSync(int type, int size) native; | 15226 _DOMFileSystemSyncImpl webkitRequestFileSystemSync(int type, int size) native; |
15403 | 15227 |
15404 _EntrySyncJs webkitResolveLocalFileSystemSyncURL(String url) native; | 15228 _EntrySyncImpl webkitResolveLocalFileSystemSyncURL(String url) native; |
15405 | 15229 |
15406 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; | 15230 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) native; |
15407 } | 15231 } |
15408 | 15232 |
15409 class _WorkerLocationJs implements WorkerLocation native "*WorkerLocation" { | 15233 class _WorkerLocationImpl implements WorkerLocation native "*WorkerLocation" { |
15410 | 15234 |
15411 final String hash; | 15235 final String hash; |
15412 | 15236 |
15413 final String host; | 15237 final String host; |
15414 | 15238 |
15415 final String hostname; | 15239 final String hostname; |
15416 | 15240 |
15417 final String href; | 15241 final String href; |
15418 | 15242 |
15419 final String pathname; | 15243 final String pathname; |
15420 | 15244 |
15421 final String port; | 15245 final String port; |
15422 | 15246 |
15423 final String protocol; | 15247 final String protocol; |
15424 | 15248 |
15425 final String search; | 15249 final String search; |
15426 | 15250 |
15427 String toString() native; | 15251 String toString() native; |
15428 } | 15252 } |
15429 | 15253 |
15430 class _WorkerNavigatorJs implements WorkerNavigator native "*WorkerNavigator" { | 15254 class _WorkerNavigatorImpl implements WorkerNavigator native "*WorkerNavigator"
{ |
15431 | 15255 |
15432 final String appName; | 15256 final String appName; |
15433 | 15257 |
15434 final String appVersion; | 15258 final String appVersion; |
15435 | 15259 |
15436 final bool onLine; | 15260 final bool onLine; |
15437 | 15261 |
15438 final String platform; | 15262 final String platform; |
15439 | 15263 |
15440 final String userAgent; | 15264 final String userAgent; |
15441 } | 15265 } |
15442 | 15266 |
15443 class _XMLHttpRequestJs implements XMLHttpRequest native "*XMLHttpRequest" { | 15267 class _XMLHttpRequestImpl extends _EventTargetImpl implements XMLHttpRequest nat
ive "*XMLHttpRequest" { |
15444 | 15268 |
15445 static final int DONE = 4; | 15269 static final int DONE = 4; |
15446 | 15270 |
15447 static final int HEADERS_RECEIVED = 2; | 15271 static final int HEADERS_RECEIVED = 2; |
15448 | 15272 |
15449 static final int LOADING = 3; | 15273 static final int LOADING = 3; |
15450 | 15274 |
15451 static final int OPENED = 1; | 15275 static final int OPENED = 1; |
15452 | 15276 |
15453 static final int UNSENT = 0; | 15277 static final int UNSENT = 0; |
15454 | 15278 |
15455 bool asBlob; | 15279 bool asBlob; |
15456 | 15280 |
15457 final int readyState; | 15281 final int readyState; |
15458 | 15282 |
15459 final Object response; | 15283 final Object response; |
15460 | 15284 |
15461 final _BlobJs responseBlob; | 15285 final _BlobImpl responseBlob; |
15462 | 15286 |
15463 final String responseText; | 15287 final String responseText; |
15464 | 15288 |
15465 String responseType; | 15289 String responseType; |
15466 | 15290 |
15467 final _DocumentJs responseXML; | 15291 _DocumentImpl get responseXML() => _FixHtmlDocumentReference(_responseXML); |
| 15292 |
| 15293 _EventTargetImpl get _responseXML() native "return this.responseXML;"; |
15468 | 15294 |
15469 final int status; | 15295 final int status; |
15470 | 15296 |
15471 final String statusText; | 15297 final String statusText; |
15472 | 15298 |
15473 final _XMLHttpRequestUploadJs upload; | 15299 final _XMLHttpRequestUploadImpl upload; |
15474 | 15300 |
15475 bool withCredentials; | 15301 bool withCredentials; |
15476 | 15302 |
15477 _XMLHttpRequestEventsImpl get on() => | 15303 _XMLHttpRequestEventsImpl get on() => |
15478 new _XMLHttpRequestEventsImpl(this); | 15304 new _XMLHttpRequestEventsImpl(this); |
15479 | 15305 |
15480 void abort() native; | 15306 void abort() native; |
15481 | 15307 |
15482 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 15308 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
15483 | 15309 |
15484 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | 15310 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
15485 | 15311 |
15486 String getAllResponseHeaders() native; | 15312 String getAllResponseHeaders() native; |
15487 | 15313 |
15488 String getResponseHeader(String header) native; | 15314 String getResponseHeader(String header) native; |
15489 | 15315 |
15490 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; | 15316 void open(String method, String url, [bool async = null, String user = null, S
tring password = null]) native; |
15491 | 15317 |
15492 void overrideMimeType(String override) native; | 15318 void overrideMimeType(String override) native; |
15493 | 15319 |
15494 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 15320 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
(...skipping 14 matching lines...) Expand all Loading... |
15509 | 15335 |
15510 EventListenerList get loadEnd() => _get('loadend'); | 15336 EventListenerList get loadEnd() => _get('loadend'); |
15511 | 15337 |
15512 EventListenerList get loadStart() => _get('loadstart'); | 15338 EventListenerList get loadStart() => _get('loadstart'); |
15513 | 15339 |
15514 EventListenerList get progress() => _get('progress'); | 15340 EventListenerList get progress() => _get('progress'); |
15515 | 15341 |
15516 EventListenerList get readyStateChange() => _get('readystatechange'); | 15342 EventListenerList get readyStateChange() => _get('readystatechange'); |
15517 } | 15343 } |
15518 | 15344 |
15519 class _XMLHttpRequestExceptionJs implements XMLHttpRequestException native "*XML
HttpRequestException" { | 15345 class _XMLHttpRequestExceptionImpl implements XMLHttpRequestException native "*X
MLHttpRequestException" { |
15520 | 15346 |
15521 static final int ABORT_ERR = 102; | 15347 static final int ABORT_ERR = 102; |
15522 | 15348 |
15523 static final int NETWORK_ERR = 101; | 15349 static final int NETWORK_ERR = 101; |
15524 | 15350 |
15525 final int code; | 15351 final int code; |
15526 | 15352 |
15527 final String message; | 15353 final String message; |
15528 | 15354 |
15529 final String name; | 15355 final String name; |
15530 | 15356 |
15531 String toString() native; | 15357 String toString() native; |
15532 } | 15358 } |
15533 | 15359 |
15534 class _XMLHttpRequestProgressEventJs extends _ProgressEventJs implements XMLHttp
RequestProgressEvent native "*XMLHttpRequestProgressEvent" { | 15360 class _XMLHttpRequestProgressEventImpl extends _ProgressEventImpl implements XML
HttpRequestProgressEvent native "*XMLHttpRequestProgressEvent" { |
15535 | 15361 |
15536 final int position; | 15362 final int position; |
15537 | 15363 |
15538 final int totalSize; | 15364 final int totalSize; |
15539 } | 15365 } |
15540 | 15366 |
15541 class _XMLHttpRequestUploadJs implements XMLHttpRequestUpload native "*XMLHttpRe
questUpload" { | 15367 class _XMLHttpRequestUploadImpl extends _EventTargetImpl implements XMLHttpReque
stUpload native "*XMLHttpRequestUpload" { |
15542 | 15368 |
15543 _XMLHttpRequestUploadEventsImpl get on() => | 15369 _XMLHttpRequestUploadEventsImpl get on() => |
15544 new _XMLHttpRequestUploadEventsImpl(this); | 15370 new _XMLHttpRequestUploadEventsImpl(this); |
15545 | 15371 |
15546 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; | 15372 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
15547 | 15373 |
15548 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);"; | 15374 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
15549 | 15375 |
15550 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; | 15376 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
15551 } | 15377 } |
15552 | 15378 |
15553 class _XMLHttpRequestUploadEventsImpl extends _EventsImpl implements XMLHttpRequ
estUploadEvents { | 15379 class _XMLHttpRequestUploadEventsImpl extends _EventsImpl implements XMLHttpRequ
estUploadEvents { |
15554 _XMLHttpRequestUploadEventsImpl(_ptr) : super(_ptr); | 15380 _XMLHttpRequestUploadEventsImpl(_ptr) : super(_ptr); |
15555 | 15381 |
15556 EventListenerList get abort() => _get('abort'); | 15382 EventListenerList get abort() => _get('abort'); |
15557 | 15383 |
15558 EventListenerList get error() => _get('error'); | 15384 EventListenerList get error() => _get('error'); |
15559 | 15385 |
15560 EventListenerList get load() => _get('load'); | 15386 EventListenerList get load() => _get('load'); |
15561 | 15387 |
15562 EventListenerList get loadEnd() => _get('loadend'); | 15388 EventListenerList get loadEnd() => _get('loadend'); |
15563 | 15389 |
15564 EventListenerList get loadStart() => _get('loadstart'); | 15390 EventListenerList get loadStart() => _get('loadstart'); |
15565 | 15391 |
15566 EventListenerList get progress() => _get('progress'); | 15392 EventListenerList get progress() => _get('progress'); |
15567 } | 15393 } |
15568 | 15394 |
15569 class _XMLSerializerJs implements XMLSerializer native "*XMLSerializer" { | 15395 class _XMLSerializerImpl implements XMLSerializer native "*XMLSerializer" { |
15570 | 15396 |
15571 String serializeToString(_NodeJs node) native; | 15397 String serializeToString(_NodeImpl node) native; |
15572 } | 15398 } |
15573 | 15399 |
15574 class _XPathEvaluatorJs implements XPathEvaluator native "*XPathEvaluator" { | 15400 class _XPathEvaluatorImpl implements XPathEvaluator native "*XPathEvaluator" { |
15575 | 15401 |
15576 _XPathExpressionJs createExpression(String expression, _XPathNSResolverJs reso
lver) native; | 15402 _XPathExpressionImpl createExpression(String expression, _XPathNSResolverImpl
resolver) native; |
15577 | 15403 |
15578 _XPathNSResolverJs createNSResolver(_NodeJs nodeResolver) native; | 15404 _XPathNSResolverImpl createNSResolver(_NodeImpl nodeResolver) native; |
15579 | 15405 |
15580 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv
erJs resolver, int type, _XPathResultJs inResult) native; | 15406 _XPathResultImpl evaluate(String expression, _NodeImpl contextNode, _XPathNSRe
solverImpl resolver, int type, _XPathResultImpl inResult) native; |
15581 } | 15407 } |
15582 | 15408 |
15583 class _XPathExceptionJs implements XPathException native "*XPathException" { | 15409 class _XPathExceptionImpl implements XPathException native "*XPathException" { |
15584 | 15410 |
15585 static final int INVALID_EXPRESSION_ERR = 51; | 15411 static final int INVALID_EXPRESSION_ERR = 51; |
15586 | 15412 |
15587 static final int TYPE_ERR = 52; | 15413 static final int TYPE_ERR = 52; |
15588 | 15414 |
15589 final int code; | 15415 final int code; |
15590 | 15416 |
15591 final String message; | 15417 final String message; |
15592 | 15418 |
15593 final String name; | 15419 final String name; |
15594 | 15420 |
15595 String toString() native; | 15421 String toString() native; |
15596 } | 15422 } |
15597 | 15423 |
15598 class _XPathExpressionJs implements XPathExpression native "*XPathExpression" { | 15424 class _XPathExpressionImpl implements XPathExpression native "*XPathExpression"
{ |
15599 | 15425 |
15600 _XPathResultJs evaluate(_NodeJs contextNode, int type, _XPathResultJs inResult
) native; | 15426 _XPathResultImpl evaluate(_NodeImpl contextNode, int type, _XPathResultImpl in
Result) native; |
15601 } | 15427 } |
15602 | 15428 |
15603 class _XPathNSResolverJs implements XPathNSResolver native "*XPathNSResolver" { | 15429 class _XPathNSResolverImpl implements XPathNSResolver native "*XPathNSResolver"
{ |
15604 | 15430 |
15605 String lookupNamespaceURI(String prefix) native; | 15431 String lookupNamespaceURI(String prefix) native; |
15606 } | 15432 } |
15607 | 15433 |
15608 class _XPathResultJs implements XPathResult native "*XPathResult" { | 15434 class _XPathResultImpl implements XPathResult native "*XPathResult" { |
15609 | 15435 |
15610 static final int ANY_TYPE = 0; | 15436 static final int ANY_TYPE = 0; |
15611 | 15437 |
15612 static final int ANY_UNORDERED_NODE_TYPE = 8; | 15438 static final int ANY_UNORDERED_NODE_TYPE = 8; |
15613 | 15439 |
15614 static final int BOOLEAN_TYPE = 3; | 15440 static final int BOOLEAN_TYPE = 3; |
15615 | 15441 |
15616 static final int FIRST_ORDERED_NODE_TYPE = 9; | 15442 static final int FIRST_ORDERED_NODE_TYPE = 9; |
15617 | 15443 |
15618 static final int NUMBER_TYPE = 1; | 15444 static final int NUMBER_TYPE = 1; |
15619 | 15445 |
15620 static final int ORDERED_NODE_ITERATOR_TYPE = 5; | 15446 static final int ORDERED_NODE_ITERATOR_TYPE = 5; |
15621 | 15447 |
15622 static final int ORDERED_NODE_SNAPSHOT_TYPE = 7; | 15448 static final int ORDERED_NODE_SNAPSHOT_TYPE = 7; |
15623 | 15449 |
15624 static final int STRING_TYPE = 2; | 15450 static final int STRING_TYPE = 2; |
15625 | 15451 |
15626 static final int UNORDERED_NODE_ITERATOR_TYPE = 4; | 15452 static final int UNORDERED_NODE_ITERATOR_TYPE = 4; |
15627 | 15453 |
15628 static final int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | 15454 static final int UNORDERED_NODE_SNAPSHOT_TYPE = 6; |
15629 | 15455 |
15630 final bool booleanValue; | 15456 final bool booleanValue; |
15631 | 15457 |
15632 final bool invalidIteratorState; | 15458 final bool invalidIteratorState; |
15633 | 15459 |
15634 final num numberValue; | 15460 final num numberValue; |
15635 | 15461 |
15636 final int resultType; | 15462 final int resultType; |
15637 | 15463 |
15638 final _NodeJs singleNodeValue; | 15464 final _NodeImpl singleNodeValue; |
15639 | 15465 |
15640 final int snapshotLength; | 15466 final int snapshotLength; |
15641 | 15467 |
15642 final String stringValue; | 15468 final String stringValue; |
15643 | 15469 |
15644 _NodeJs iterateNext() native; | 15470 _NodeImpl iterateNext() native; |
15645 | 15471 |
15646 _NodeJs snapshotItem(int index) native; | 15472 _NodeImpl snapshotItem(int index) native; |
15647 } | 15473 } |
15648 | 15474 |
15649 class _XSLTProcessorJs implements XSLTProcessor native "*XSLTProcessor" { | 15475 class _XSLTProcessorImpl implements XSLTProcessor native "*XSLTProcessor" { |
15650 | 15476 |
15651 void clearParameters() native; | 15477 void clearParameters() native; |
15652 | 15478 |
15653 String getParameter(String namespaceURI, String localName) native; | 15479 String getParameter(String namespaceURI, String localName) native; |
15654 | 15480 |
15655 void importStylesheet(_NodeJs stylesheet) native; | 15481 void importStylesheet(_NodeImpl stylesheet) native; |
15656 | 15482 |
15657 void removeParameter(String namespaceURI, String localName) native; | 15483 void removeParameter(String namespaceURI, String localName) native; |
15658 | 15484 |
15659 void reset() native; | 15485 void reset() native; |
15660 | 15486 |
15661 void setParameter(String namespaceURI, String localName, String value) native; | 15487 void setParameter(String namespaceURI, String localName, String value) native; |
15662 | 15488 |
15663 _DocumentJs transformToDocument(_NodeJs source) native; | 15489 _DocumentImpl transformToDocument(_NodeImpl source) => _FixHtmlDocumentReferen
ce(_transformToDocument(source)); |
15664 | 15490 |
15665 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na
tive; | 15491 _EventTargetImpl _transformToDocument(_NodeImpl source) native "return this.tr
ansformToDocument(source);"; |
| 15492 |
| 15493 _DocumentFragmentImpl transformToFragment(_NodeImpl source, _DocumentImpl docV
al) native; |
15666 } | 15494 } |
15667 // 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 |
15668 // 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 |
15669 // BSD-style license that can be found in the LICENSE file. | 15497 // BSD-style license that can be found in the LICENSE file. |
15670 | 15498 |
15671 // WARNING: Do not edit - generated code. | 15499 // WARNING: Do not edit - generated code. |
15672 | 15500 |
15673 interface AbstractWorker extends EventTarget { | 15501 interface AbstractWorker extends EventTarget { |
15674 | 15502 |
15675 AbstractWorkerEvents get on(); | 15503 AbstractWorkerEvents get on(); |
| 15504 |
| 15505 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 15506 |
| 15507 bool _dispatchEvent(Event evt); |
| 15508 |
| 15509 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
15676 } | 15510 } |
15677 | 15511 |
15678 interface AbstractWorkerEvents extends Events { | 15512 interface AbstractWorkerEvents extends Events { |
15679 | 15513 |
15680 EventListenerList get error(); | 15514 EventListenerList get error(); |
15681 } | 15515 } |
15682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15683 // for details. All rights reserved. Use of this source code is governed by a | 15517 // for details. All rights reserved. Use of this source code is governed by a |
15684 // BSD-style license that can be found in the LICENSE file. | 15518 // BSD-style license that can be found in the LICENSE file. |
15685 | 15519 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15718 String rel; | 15552 String rel; |
15719 | 15553 |
15720 String rev; | 15554 String rev; |
15721 | 15555 |
15722 String search; | 15556 String search; |
15723 | 15557 |
15724 String shape; | 15558 String shape; |
15725 | 15559 |
15726 String target; | 15560 String target; |
15727 | 15561 |
15728 final String text; | |
15729 | |
15730 String type; | 15562 String type; |
15731 | 15563 |
15732 String toString(); | 15564 String toString(); |
15733 } | 15565 } |
15734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
15735 // for details. All rights reserved. Use of this source code is governed by a | 15567 // for details. All rights reserved. Use of this source code is governed by a |
15736 // BSD-style license that can be found in the LICENSE file. | 15568 // BSD-style license that can be found in the LICENSE file. |
15737 | 15569 |
15738 // WARNING: Do not edit - generated code. | 15570 // WARNING: Do not edit - generated code. |
15739 | 15571 |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16323 interface BodyElement extends Element { | 16155 interface BodyElement extends Element { |
16324 | 16156 |
16325 String aLink; | 16157 String aLink; |
16326 | 16158 |
16327 String background; | 16159 String background; |
16328 | 16160 |
16329 String bgColor; | 16161 String bgColor; |
16330 | 16162 |
16331 String link; | 16163 String link; |
16332 | 16164 |
16333 String text; | |
16334 | |
16335 String vLink; | 16165 String vLink; |
16336 | 16166 |
16337 BodyElementEvents get on(); | 16167 BodyElementEvents get on(); |
16338 } | 16168 } |
16339 | 16169 |
16340 interface BodyElementEvents extends ElementEvents { | 16170 interface BodyElementEvents extends ElementEvents { |
16341 | 16171 |
16342 EventListenerList get beforeUnload(); | 16172 EventListenerList get beforeUnload(); |
16343 | 16173 |
16344 EventListenerList get blur(); | 16174 EventListenerList get blur(); |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16696 // BSD-style license that can be found in the LICENSE file. | 16526 // BSD-style license that can be found in the LICENSE file. |
16697 | 16527 |
16698 // WARNING: Do not edit - generated code. | 16528 // WARNING: Do not edit - generated code. |
16699 | 16529 |
16700 interface CSSRuleList { | 16530 interface CSSRuleList { |
16701 | 16531 |
16702 final int length; | 16532 final int length; |
16703 | 16533 |
16704 CSSRule item(int index); | 16534 CSSRule item(int index); |
16705 } | 16535 } |
16706 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 16536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16707 // for details. All rights reserved. Use of this source code is governed by a | 16537 // for details. All rights reserved. Use of this source code is governed by a |
16708 // BSD-style license that can be found in the LICENSE file. | 16538 // BSD-style license that can be found in the LICENSE file. |
16709 | 16539 |
16710 // WARNING: Do not edit - generated code. | 16540 // WARNING: Do not edit - generated code. |
16711 | 16541 |
16712 interface CSSStyleDeclaration { | 16542 interface CSSStyleDeclaration default _CSSStyleDeclarationFactoryProvider { |
16713 CSSStyleDeclaration(); | 16543 CSSStyleDeclaration(); |
16714 | |
16715 CSSStyleDeclaration.css(String css); | 16544 CSSStyleDeclaration.css(String css); |
16716 | 16545 |
16717 | 16546 |
16718 String cssText; | 16547 String cssText; |
16719 | 16548 |
16720 final int length; | 16549 final int length; |
16721 | 16550 |
16722 final CSSRule parentRule; | 16551 final CSSRule parentRule; |
16723 | 16552 |
16724 CSSValue getPropertyCSSValue(String propertyName); | 16553 CSSValue getPropertyCSSValue(String propertyName); |
(...skipping 2438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19163 static final int UNCACHED = 0; | 18992 static final int UNCACHED = 0; |
19164 | 18993 |
19165 static final int UPDATEREADY = 4; | 18994 static final int UPDATEREADY = 4; |
19166 | 18995 |
19167 final int status; | 18996 final int status; |
19168 | 18997 |
19169 DOMApplicationCacheEvents get on(); | 18998 DOMApplicationCacheEvents get on(); |
19170 | 18999 |
19171 void abort(); | 19000 void abort(); |
19172 | 19001 |
| 19002 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 19003 |
| 19004 bool _dispatchEvent(Event evt); |
| 19005 |
| 19006 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 19007 |
19173 void swapCache(); | 19008 void swapCache(); |
19174 | 19009 |
19175 void update(); | 19010 void update(); |
19176 } | 19011 } |
19177 | 19012 |
19178 interface DOMApplicationCacheEvents extends Events { | 19013 interface DOMApplicationCacheEvents extends Events { |
19179 | 19014 |
19180 EventListenerList get cached(); | 19015 EventListenerList get cached(); |
19181 | 19016 |
19182 EventListenerList get checking(); | 19017 EventListenerList get checking(); |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19748 | 19583 |
19749 | 19584 |
19750 final Element activeElement; | 19585 final Element activeElement; |
19751 | 19586 |
19752 Element body; | 19587 Element body; |
19753 | 19588 |
19754 String charset; | 19589 String charset; |
19755 | 19590 |
19756 String cookie; | 19591 String cookie; |
19757 | 19592 |
19758 final Window defaultView; | 19593 final Window window; |
19759 | 19594 |
19760 final String domain; | 19595 final String domain; |
19761 | 19596 |
19762 final HeadElement head; | 19597 final HeadElement head; |
19763 | 19598 |
19764 final String lastModified; | 19599 final String lastModified; |
19765 | 19600 |
19766 final String preferredStylesheetSet; | 19601 final String preferredStylesheetSet; |
19767 | 19602 |
19768 final String readyState; | 19603 final String readyState; |
(...skipping 15 matching lines...) Expand all Loading... |
19784 final String webkitVisibilityState; | 19619 final String webkitVisibilityState; |
19785 | 19620 |
19786 DocumentEvents get on(); | 19621 DocumentEvents get on(); |
19787 | 19622 |
19788 Range caretRangeFromPoint(int x, int y); | 19623 Range caretRangeFromPoint(int x, int y); |
19789 | 19624 |
19790 CDATASection createCDATASection(String data); | 19625 CDATASection createCDATASection(String data); |
19791 | 19626 |
19792 DocumentFragment createDocumentFragment(); | 19627 DocumentFragment createDocumentFragment(); |
19793 | 19628 |
| 19629 Element _createElement(String tagName); |
| 19630 |
| 19631 Event _createEvent(String eventType); |
| 19632 |
19794 Range createRange(); | 19633 Range createRange(); |
19795 | 19634 |
19796 Text createTextNode(String data); | 19635 Text _createTextNode(String data); |
19797 | 19636 |
19798 Touch createTouch(Window window, EventTarget target, int identifier, int pageX
, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num
webkitRotationAngle, num webkitForce); | 19637 Touch createTouch(Window window, EventTarget target, int identifier, int pageX
, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num
webkitRotationAngle, num webkitForce); |
19799 | 19638 |
19800 TouchList createTouchList(); | 19639 TouchList _createTouchList(); |
19801 | 19640 |
19802 Element elementFromPoint(int x, int y); | 19641 Element elementFromPoint(int x, int y); |
19803 | 19642 |
19804 bool execCommand(String command, bool userInterface, String value); | 19643 bool execCommand(String command, bool userInterface, String value); |
19805 | 19644 |
19806 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t); | 19645 Object getCSSCanvasContext(String contextId, String name, int width, int heigh
t); |
19807 | 19646 |
19808 Element getElementById(String elementId); | |
19809 | |
19810 bool queryCommandEnabled(String command); | 19647 bool queryCommandEnabled(String command); |
19811 | 19648 |
19812 bool queryCommandIndeterm(String command); | 19649 bool queryCommandIndeterm(String command); |
19813 | 19650 |
19814 bool queryCommandState(String command); | 19651 bool queryCommandState(String command); |
19815 | 19652 |
19816 bool queryCommandSupported(String command); | 19653 bool queryCommandSupported(String command); |
19817 | 19654 |
19818 String queryCommandValue(String command); | 19655 String queryCommandValue(String command); |
19819 | 19656 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19858 EventListenerList get dragOver(); | 19695 EventListenerList get dragOver(); |
19859 | 19696 |
19860 EventListenerList get dragStart(); | 19697 EventListenerList get dragStart(); |
19861 | 19698 |
19862 EventListenerList get drop(); | 19699 EventListenerList get drop(); |
19863 | 19700 |
19864 EventListenerList get error(); | 19701 EventListenerList get error(); |
19865 | 19702 |
19866 EventListenerList get focus(); | 19703 EventListenerList get focus(); |
19867 | 19704 |
19868 EventListenerList get fullScreenChange(); | 19705 EventListenerList get fullscreenChange(); |
19869 | 19706 |
19870 EventListenerList get fullScreenError(); | 19707 EventListenerList get fullscreenError(); |
19871 | 19708 |
19872 EventListenerList get input(); | 19709 EventListenerList get input(); |
19873 | 19710 |
19874 EventListenerList get invalid(); | 19711 EventListenerList get invalid(); |
19875 | 19712 |
19876 EventListenerList get keyDown(); | 19713 EventListenerList get keyDown(); |
19877 | 19714 |
19878 EventListenerList get keyPress(); | 19715 EventListenerList get keyPress(); |
19879 | 19716 |
19880 EventListenerList get keyUp(); | 19717 EventListenerList get keyUp(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19920 EventListenerList get touchStart(); | 19757 EventListenerList get touchStart(); |
19921 } | 19758 } |
19922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19759 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19923 // for details. All rights reserved. Use of this source code is governed by a | 19760 // for details. All rights reserved. Use of this source code is governed by a |
19924 // BSD-style license that can be found in the LICENSE file. | 19761 // BSD-style license that can be found in the LICENSE file. |
19925 | 19762 |
19926 // WARNING: Do not edit - generated code. | 19763 // WARNING: Do not edit - generated code. |
19927 | 19764 |
19928 interface DocumentFragment extends Node, NodeSelector { | 19765 interface DocumentFragment extends Node, NodeSelector { |
19929 | 19766 |
19930 Element querySelector(String selectors); | 19767 Element query(String selectors); |
19931 | 19768 |
19932 NodeList querySelectorAll(String selectors); | 19769 NodeList queryAll(String selectors); |
19933 } | 19770 } |
19934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
19935 // for details. All rights reserved. Use of this source code is governed by a | 19772 // for details. All rights reserved. Use of this source code is governed by a |
19936 // BSD-style license that can be found in the LICENSE file. | 19773 // BSD-style license that can be found in the LICENSE file. |
19937 | 19774 |
19938 // WARNING: Do not edit - generated code. | 19775 // WARNING: Do not edit - generated code. |
19939 | 19776 |
19940 interface DocumentType extends Node { | 19777 interface DocumentType extends Node { |
19941 | 19778 |
19942 final NamedNodeMap entities; | 19779 final NamedNodeMap entities; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20038 bool isEmpty() => length == 0; | 19875 bool isEmpty() => length == 0; |
20039 | 19876 |
20040 // Helpers. | 19877 // Helpers. |
20041 String _attr(String key) => 'data-$key'; | 19878 String _attr(String key) => 'data-$key'; |
20042 bool _matches(String key) => key.startsWith('data-'); | 19879 bool _matches(String key) => key.startsWith('data-'); |
20043 String _strip(String key) => key.substring(5); | 19880 String _strip(String key) => key.substring(5); |
20044 } | 19881 } |
20045 | 19882 |
20046 class _CssClassSet implements Set<String> { | 19883 class _CssClassSet implements Set<String> { |
20047 | 19884 |
20048 final _ElementJs _element; | 19885 final _ElementImpl _element; |
20049 | 19886 |
20050 _CssClassSet(this._element); | 19887 _CssClassSet(this._element); |
20051 | 19888 |
20052 String toString() { | 19889 String toString() { |
20053 return _formatSet(_read()); | 19890 return _formatSet(_read()); |
20054 } | 19891 } |
20055 | 19892 |
20056 // interface Iterable - BEGIN | 19893 // interface Iterable - BEGIN |
20057 Iterator<String> iterator() { | 19894 Iterator<String> iterator() { |
20058 return _read().iterator(); | 19895 return _read().iterator(); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20202 // Relative to offsetParent | 20039 // Relative to offsetParent |
20203 ClientRect get client(); | 20040 ClientRect get client(); |
20204 ClientRect get offset(); | 20041 ClientRect get offset(); |
20205 ClientRect get scroll(); | 20042 ClientRect get scroll(); |
20206 // In global coords | 20043 // In global coords |
20207 ClientRect get bounding(); | 20044 ClientRect get bounding(); |
20208 // In global coords | 20045 // In global coords |
20209 List<ClientRect> get clientRects(); | 20046 List<ClientRect> get clientRects(); |
20210 } | 20047 } |
20211 | 20048 |
20212 // TODO(jacobr): referencing _ElementJs here is problematic when we need | 20049 interface Element extends Node, NodeSelector default _ElementFactoryProvider { |
20213 // to support wrappers as well. | |
20214 interface Element extends Node, NodeSelector default _ElementJs { | |
20215 // TODO(jacobr): switch back to: | 20050 // TODO(jacobr): switch back to: |
20216 // interface Element extends Node, NodeSelector, ElementTraversal default _Eleme
ntJs { | 20051 // interface Element extends Node, NodeSelector, ElementTraversal default _Eleme
ntImpl { |
20217 Element.html(String html); | 20052 Element.html(String html); |
20218 Element.tag(String tag); | 20053 Element.tag(String tag); |
20219 | 20054 |
20220 Map<String, String> get attributes(); | 20055 Map<String, String> get attributes(); |
20221 void set attributes(Map<String, String> value); | 20056 void set attributes(Map<String, String> value); |
20222 | 20057 |
| 20058 /** |
| 20059 * @domName querySelectorAll, getElementsByClassName, getElementsByTagName, |
| 20060 * getElementsByTagNameNS |
| 20061 */ |
| 20062 ElementList queryAll(String selectors); |
| 20063 |
20223 // TODO(jacobr): remove these methods and let them be generated automatically | 20064 // TODO(jacobr): remove these methods and let them be generated automatically |
20224 // once dart supports defining fields with the same name in an interface and | 20065 // once dart supports defining fields with the same name in an interface and |
20225 // its parent interface. | 20066 // its parent interface. |
20226 String get title(); | 20067 String get title(); |
20227 void set title(String value); | 20068 void set title(String value); |
20228 | 20069 |
| 20070 /** |
| 20071 * @domName childElementCount, firstElementChild, lastElementChild, |
| 20072 * children, Node.nodes.add |
| 20073 */ |
20229 ElementList get elements(); | 20074 ElementList get elements(); |
20230 | 20075 |
20231 // TODO: The type of value should be Collection<Element>. See http://b/5392897 | 20076 // TODO: The type of value should be Collection<Element>. See http://b/5392897 |
20232 void set elements(value); | 20077 void set elements(value); |
20233 | 20078 |
20234 Element query(String selectors); | 20079 /** @domName className, classList */ |
20235 | |
20236 ElementList queryAll(String selectors); | |
20237 | |
20238 Set<String> get classes(); | 20080 Set<String> get classes(); |
20239 | 20081 |
20240 // TODO: The type of value should be Collection<String>. See http://b/5392897 | 20082 // TODO: The type of value should be Collection<String>. See http://b/5392897 |
20241 void set classes(value); | 20083 void set classes(value); |
20242 | 20084 |
20243 Map<String, String> get dataAttributes(); | 20085 Map<String, String> get dataAttributes(); |
20244 void set dataAttributes(Map<String, String> value); | 20086 void set dataAttributes(Map<String, String> value); |
20245 | 20087 |
20246 bool matchesSelector([String selectors]); | 20088 /** |
20247 | 20089 * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth, |
| 20090 * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft, |
| 20091 * scrollHeight, scrollWidth, scrollTop, scrollLeft |
| 20092 */ |
20248 Future<ElementRect> get rect(); | 20093 Future<ElementRect> get rect(); |
20249 | 20094 |
| 20095 /** @domName Window.getComputedStyle */ |
20250 Future<CSSStyleDeclaration> get computedStyle(); | 20096 Future<CSSStyleDeclaration> get computedStyle(); |
20251 | 20097 |
| 20098 /** @domName Window.getComputedStyle */ |
20252 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 20099 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); |
20253 | 20100 |
20254 Element clone(bool deep); | 20101 Element clone(bool deep); |
20255 | 20102 |
20256 | |
20257 Element get parent(); | 20103 Element get parent(); |
20258 | 20104 |
20259 | 20105 |
20260 static final int ALLOW_KEYBOARD_INPUT = 1; | 20106 static final int ALLOW_KEYBOARD_INPUT = 1; |
20261 | 20107 |
20262 final int childElementCount; | 20108 final int _childElementCount; |
20263 | 20109 |
20264 final HTMLCollection children; | 20110 final HTMLCollection _children; |
20265 | 20111 |
20266 final DOMTokenList classList; | 20112 final DOMTokenList classList; |
20267 | 20113 |
20268 final String className; | 20114 String _className; |
20269 | 20115 |
20270 final int clientHeight; | 20116 final int _clientHeight; |
20271 | 20117 |
20272 final int clientLeft; | 20118 final int _clientLeft; |
20273 | 20119 |
20274 final int clientTop; | 20120 final int _clientTop; |
20275 | 20121 |
20276 final int clientWidth; | 20122 final int _clientWidth; |
20277 | 20123 |
20278 String contentEditable; | 20124 String contentEditable; |
20279 | 20125 |
20280 String dir; | 20126 String dir; |
20281 | 20127 |
20282 bool draggable; | 20128 bool draggable; |
20283 | 20129 |
20284 final Element firstElementChild; | 20130 final Element _firstElementChild; |
20285 | 20131 |
20286 bool hidden; | 20132 bool hidden; |
20287 | 20133 |
20288 String id; | 20134 String id; |
20289 | 20135 |
20290 String innerHTML; | 20136 String innerHTML; |
20291 | 20137 |
20292 final bool isContentEditable; | 20138 final bool isContentEditable; |
20293 | 20139 |
20294 String lang; | 20140 String lang; |
20295 | 20141 |
20296 final Element lastElementChild; | 20142 final Element lastElementChild; |
20297 | 20143 |
20298 final Element nextElementSibling; | 20144 final Element nextElementSibling; |
20299 | 20145 |
20300 final int offsetHeight; | 20146 final int _offsetHeight; |
20301 | 20147 |
20302 final int offsetLeft; | 20148 final int _offsetLeft; |
20303 | 20149 |
20304 final Element offsetParent; | 20150 final Element offsetParent; |
20305 | 20151 |
20306 final int offsetTop; | 20152 final int _offsetTop; |
20307 | 20153 |
20308 final int offsetWidth; | 20154 final int _offsetWidth; |
20309 | 20155 |
20310 final String outerHTML; | 20156 final String outerHTML; |
20311 | 20157 |
20312 final Element previousElementSibling; | 20158 final Element previousElementSibling; |
20313 | 20159 |
20314 final int scrollHeight; | 20160 final int _scrollHeight; |
20315 | 20161 |
20316 int scrollLeft; | 20162 int _scrollLeft; |
20317 | 20163 |
20318 int scrollTop; | 20164 int _scrollTop; |
20319 | 20165 |
20320 final int scrollWidth; | 20166 final int _scrollWidth; |
20321 | 20167 |
20322 bool spellcheck; | 20168 bool spellcheck; |
20323 | 20169 |
20324 final CSSStyleDeclaration style; | 20170 final CSSStyleDeclaration style; |
20325 | 20171 |
20326 int tabIndex; | 20172 int tabIndex; |
20327 | 20173 |
20328 final String tagName; | 20174 final String tagName; |
20329 | 20175 |
20330 final String webkitRegionOverflow; | 20176 final String webkitRegionOverflow; |
20331 | 20177 |
20332 String webkitdropzone; | 20178 String webkitdropzone; |
20333 | 20179 |
20334 ElementEvents get on(); | 20180 ElementEvents get on(); |
20335 | 20181 |
20336 void blur(); | 20182 void blur(); |
20337 | 20183 |
20338 void click(); | 20184 void click(); |
20339 | 20185 |
20340 void focus(); | 20186 void focus(); |
20341 | 20187 |
20342 ClientRect getBoundingClientRect(); | 20188 String _getAttribute(String name); |
20343 | 20189 |
20344 ClientRectList getClientRects(); | 20190 ClientRect _getBoundingClientRect(); |
20345 | 20191 |
20346 NodeList getElementsByClassName(String name); | 20192 ClientRectList _getClientRects(); |
20347 | 20193 |
20348 NodeList getElementsByTagName(String name); | 20194 bool _hasAttribute(String name); |
20349 | |
20350 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | |
20351 | 20195 |
20352 Element insertAdjacentElement(String where, Element element); | 20196 Element insertAdjacentElement(String where, Element element); |
20353 | 20197 |
20354 void insertAdjacentHTML(String where, String html); | 20198 void insertAdjacentHTML(String where, String html); |
20355 | 20199 |
20356 void insertAdjacentText(String where, String text); | 20200 void insertAdjacentText(String where, String text); |
20357 | 20201 |
20358 Element querySelector(String selectors); | 20202 Element query(String selectors); |
20359 | 20203 |
20360 NodeList querySelectorAll(String selectors); | 20204 NodeList _querySelectorAll(String selectors); |
| 20205 |
| 20206 void _removeAttribute(String name); |
20361 | 20207 |
20362 void scrollByLines(int lines); | 20208 void scrollByLines(int lines); |
20363 | 20209 |
20364 void scrollByPages(int pages); | 20210 void scrollByPages(int pages); |
20365 | 20211 |
20366 void scrollIntoView([bool alignWithTop]); | 20212 void scrollIntoView([bool centerIfNeeded]); |
20367 | 20213 |
20368 void scrollIntoViewIfNeeded([bool centerIfNeeded]); | 20214 void _setAttribute(String name, String value); |
20369 | 20215 |
20370 bool webkitMatchesSelector(String selectors); | 20216 bool matchesSelector(String selectors); |
20371 | 20217 |
20372 void webkitRequestFullScreen(int flags); | 20218 void webkitRequestFullScreen(int flags); |
20373 | 20219 |
20374 } | 20220 } |
20375 | 20221 |
20376 interface ElementEvents extends Events { | 20222 interface ElementEvents extends Events { |
20377 | 20223 |
20378 EventListenerList get abort(); | 20224 EventListenerList get abort(); |
20379 | 20225 |
20380 EventListenerList get beforeCopy(); | 20226 EventListenerList get beforeCopy(); |
(...skipping 27 matching lines...) Expand all Loading... |
20408 EventListenerList get dragOver(); | 20254 EventListenerList get dragOver(); |
20409 | 20255 |
20410 EventListenerList get dragStart(); | 20256 EventListenerList get dragStart(); |
20411 | 20257 |
20412 EventListenerList get drop(); | 20258 EventListenerList get drop(); |
20413 | 20259 |
20414 EventListenerList get error(); | 20260 EventListenerList get error(); |
20415 | 20261 |
20416 EventListenerList get focus(); | 20262 EventListenerList get focus(); |
20417 | 20263 |
20418 EventListenerList get fullScreenChange(); | 20264 EventListenerList get fullscreenChange(); |
20419 | 20265 |
20420 EventListenerList get fullScreenError(); | 20266 EventListenerList get fullscreenError(); |
20421 | 20267 |
20422 EventListenerList get input(); | 20268 EventListenerList get input(); |
20423 | 20269 |
20424 EventListenerList get invalid(); | 20270 EventListenerList get invalid(); |
20425 | 20271 |
20426 EventListenerList get keyDown(); | 20272 EventListenerList get keyDown(); |
20427 | 20273 |
20428 EventListenerList get keyPress(); | 20274 EventListenerList get keyPress(); |
20429 | 20275 |
20430 EventListenerList get keyUp(); | 20276 EventListenerList get keyUp(); |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20657 // WARNING: Do not edit - generated code. | 20503 // WARNING: Do not edit - generated code. |
20658 | 20504 |
20659 interface ErrorEvent extends Event { | 20505 interface ErrorEvent extends Event { |
20660 | 20506 |
20661 final String filename; | 20507 final String filename; |
20662 | 20508 |
20663 final int lineno; | 20509 final int lineno; |
20664 | 20510 |
20665 final String message; | 20511 final String message; |
20666 } | 20512 } |
20667 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 20513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20668 // for details. All rights reserved. Use of this source code is governed by a | 20514 // for details. All rights reserved. Use of this source code is governed by a |
20669 // BSD-style license that can be found in the LICENSE file. | 20515 // BSD-style license that can be found in the LICENSE file. |
20670 | 20516 |
20671 // WARNING: Do not edit - generated code. | 20517 // WARNING: Do not edit - generated code. |
20672 | 20518 |
20673 interface Event default _EventFactoryProvider { | 20519 interface Event default _EventFactoryProvider { |
20674 | 20520 |
20675 // In JS, canBubble and cancelable are technically required parameters to | 20521 // In JS, canBubble and cancelable are technically required parameters to |
20676 // init*Event. In practice, though, if they aren't provided they simply | 20522 // init*Event. In practice, though, if they aren't provided they simply |
20677 // default to false (since that's Boolean(undefined)). | 20523 // default to false (since that's Boolean(undefined)). |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20735 bool returnValue; | 20581 bool returnValue; |
20736 | 20582 |
20737 final EventTarget srcElement; | 20583 final EventTarget srcElement; |
20738 | 20584 |
20739 final EventTarget target; | 20585 final EventTarget target; |
20740 | 20586 |
20741 final int timeStamp; | 20587 final int timeStamp; |
20742 | 20588 |
20743 final String type; | 20589 final String type; |
20744 | 20590 |
| 20591 void _initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg); |
| 20592 |
20745 void preventDefault(); | 20593 void preventDefault(); |
20746 | 20594 |
20747 void stopImmediatePropagation(); | 20595 void stopImmediatePropagation(); |
20748 | 20596 |
20749 void stopPropagation(); | 20597 void stopPropagation(); |
20750 } | 20598 } |
20751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20752 // for details. All rights reserved. Use of this source code is governed by a | 20600 // for details. All rights reserved. Use of this source code is governed by a |
20753 // BSD-style license that can be found in the LICENSE file. | 20601 // BSD-style license that can be found in the LICENSE file. |
20754 | 20602 |
(...skipping 28 matching lines...) Expand all Loading... |
20783 static final int OPEN = 1; | 20631 static final int OPEN = 1; |
20784 | 20632 |
20785 final String URL; | 20633 final String URL; |
20786 | 20634 |
20787 final int readyState; | 20635 final int readyState; |
20788 | 20636 |
20789 final String url; | 20637 final String url; |
20790 | 20638 |
20791 EventSourceEvents get on(); | 20639 EventSourceEvents get on(); |
20792 | 20640 |
| 20641 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 20642 |
20793 void close(); | 20643 void close(); |
| 20644 |
| 20645 bool _dispatchEvent(Event evt); |
| 20646 |
| 20647 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
20794 } | 20648 } |
20795 | 20649 |
20796 interface EventSourceEvents extends Events { | 20650 interface EventSourceEvents extends Events { |
20797 | 20651 |
20798 EventListenerList get error(); | 20652 EventListenerList get error(); |
20799 | 20653 |
20800 EventListenerList get message(); | 20654 EventListenerList get message(); |
20801 | 20655 |
20802 EventListenerList get open(); | 20656 EventListenerList get open(); |
20803 } | 20657 } |
20804 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 20658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20805 // for details. All rights reserved. Use of this source code is governed by a | 20659 // for details. All rights reserved. Use of this source code is governed by a |
20806 // BSD-style license that can be found in the LICENSE file. | 20660 // BSD-style license that can be found in the LICENSE file. |
20807 | 20661 |
20808 // WARNING: Do not edit - generated code. | 20662 // WARNING: Do not edit - generated code. |
20809 | 20663 |
20810 interface EventListenerList { | 20664 interface EventListenerList { |
20811 EventListenerList add(EventListener handler, [bool useCapture]); | 20665 EventListenerList add(EventListener handler, [bool useCapture]); |
20812 | 20666 |
20813 EventListenerList remove(EventListener handler, [bool useCapture]); | 20667 EventListenerList remove(EventListener handler, [bool useCapture]); |
20814 | 20668 |
20815 bool dispatch(Event evt); | 20669 bool dispatch(Event evt); |
20816 } | 20670 } |
20817 | 20671 |
20818 interface Events { | 20672 interface Events { |
20819 EventListenerList operator [](String type); | 20673 EventListenerList operator [](String type); |
20820 } | 20674 } |
20821 | 20675 |
20822 interface EventTarget { | 20676 interface EventTarget { |
20823 | 20677 |
20824 final Events on; | 20678 final Events on; |
20825 | 20679 |
| 20680 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 20681 |
| 20682 bool _dispatchEvent(Event event); |
| 20683 |
| 20684 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 20685 |
20826 } | 20686 } |
20827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20828 // for details. All rights reserved. Use of this source code is governed by a | 20688 // for details. All rights reserved. Use of this source code is governed by a |
20829 // BSD-style license that can be found in the LICENSE file. | 20689 // BSD-style license that can be found in the LICENSE file. |
20830 | 20690 |
20831 // WARNING: Do not edit - generated code. | 20691 // WARNING: Do not edit - generated code. |
20832 | 20692 |
20833 interface FieldSetElement extends Element { | 20693 interface FieldSetElement extends Element { |
20834 | 20694 |
20835 final FormElement form; | 20695 final FormElement form; |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21506 // for details. All rights reserved. Use of this source code is governed by a | 21366 // for details. All rights reserved. Use of this source code is governed by a |
21507 // BSD-style license that can be found in the LICENSE file. | 21367 // BSD-style license that can be found in the LICENSE file. |
21508 | 21368 |
21509 // WARNING: Do not edit - generated code. | 21369 // WARNING: Do not edit - generated code. |
21510 | 21370 |
21511 interface IDBDatabase { | 21371 interface IDBDatabase { |
21512 | 21372 |
21513 final String name; | 21373 final String name; |
21514 | 21374 |
| 21375 final List<String> objectStoreNames; |
| 21376 |
21515 EventListener onabort; | 21377 EventListener onabort; |
21516 | 21378 |
21517 EventListener onerror; | 21379 EventListener onerror; |
21518 | 21380 |
21519 EventListener onversionchange; | 21381 EventListener onversionchange; |
21520 | 21382 |
21521 final String version; | 21383 final String version; |
21522 | 21384 |
21523 void addEventListener(String type, EventListener listener, [bool useCapture]); | 21385 void addEventListener(String type, EventListener listener, [bool useCapture]); |
21524 | 21386 |
21525 void close(); | 21387 void close(); |
21526 | 21388 |
21527 IDBObjectStore createObjectStore(String name); | 21389 IDBObjectStore createObjectStore(String name); |
21528 | 21390 |
21529 void deleteObjectStore(String name); | 21391 void deleteObjectStore(String name); |
21530 | 21392 |
21531 bool dispatchEvent(Event evt); | 21393 bool dispatchEvent(Event evt); |
21532 | 21394 |
21533 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 21395 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
21534 | 21396 |
21535 IDBVersionChangeRequest setVersion(String version); | 21397 IDBVersionChangeRequest setVersion(String version); |
21536 | 21398 |
21537 IDBTransaction transaction(String storeName, int mode); | 21399 IDBTransaction transaction(var storeName_OR_storeNames, int mode); |
21538 } | 21400 } |
21539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21401 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21540 // for details. All rights reserved. Use of this source code is governed by a | 21402 // for details. All rights reserved. Use of this source code is governed by a |
21541 // BSD-style license that can be found in the LICENSE file. | 21403 // BSD-style license that can be found in the LICENSE file. |
21542 | 21404 |
21543 // WARNING: Do not edit - generated code. | 21405 // WARNING: Do not edit - generated code. |
21544 | 21406 |
21545 interface IDBDatabaseError { | 21407 interface IDBDatabaseError { |
21546 | 21408 |
21547 int code; | 21409 int code; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21667 IDBKeyRange upperBound(IDBKey bound, [bool open]); | 21529 IDBKeyRange upperBound(IDBKey bound, [bool open]); |
21668 } | 21530 } |
21669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
21670 // for details. All rights reserved. Use of this source code is governed by a | 21532 // for details. All rights reserved. Use of this source code is governed by a |
21671 // BSD-style license that can be found in the LICENSE file. | 21533 // BSD-style license that can be found in the LICENSE file. |
21672 | 21534 |
21673 // WARNING: Do not edit - generated code. | 21535 // WARNING: Do not edit - generated code. |
21674 | 21536 |
21675 interface IDBObjectStore { | 21537 interface IDBObjectStore { |
21676 | 21538 |
| 21539 final List<String> indexNames; |
| 21540 |
21677 final String keyPath; | 21541 final String keyPath; |
21678 | 21542 |
21679 final String name; | 21543 final String name; |
21680 | 21544 |
21681 final IDBTransaction transaction; | 21545 final IDBTransaction transaction; |
21682 | 21546 |
21683 IDBRequest add(Dynamic value, [IDBKey key]); | 21547 IDBRequest add(Dynamic value, [IDBKey key]); |
21684 | 21548 |
21685 IDBRequest clear(); | 21549 IDBRequest clear(); |
21686 | 21550 |
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22713 // for details. All rights reserved. Use of this source code is governed by a | 22577 // for details. All rights reserved. Use of this source code is governed by a |
22714 // BSD-style license that can be found in the LICENSE file. | 22578 // BSD-style license that can be found in the LICENSE file. |
22715 | 22579 |
22716 // WARNING: Do not edit - generated code. | 22580 // WARNING: Do not edit - generated code. |
22717 | 22581 |
22718 interface MessagePort extends EventTarget { | 22582 interface MessagePort extends EventTarget { |
22719 | 22583 |
22720 MessagePortEvents get on(); | 22584 MessagePortEvents get on(); |
22721 | 22585 |
| 22586 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 22587 |
22722 void close(); | 22588 void close(); |
22723 | 22589 |
| 22590 bool _dispatchEvent(Event evt); |
| 22591 |
22724 void postMessage(String message, [List messagePorts]); | 22592 void postMessage(String message, [List messagePorts]); |
22725 | 22593 |
| 22594 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 22595 |
22726 void start(); | 22596 void start(); |
22727 | 22597 |
22728 void webkitPostMessage(String message, [List transfer]); | 22598 void webkitPostMessage(String message, [List transfer]); |
22729 } | 22599 } |
22730 | 22600 |
22731 interface MessagePortEvents extends Events { | 22601 interface MessagePortEvents extends Events { |
22732 | 22602 |
22733 EventListenerList get message(); | 22603 EventListenerList get message(); |
22734 } | 22604 } |
22735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22800 String cite; | 22670 String cite; |
22801 | 22671 |
22802 String dateTime; | 22672 String dateTime; |
22803 } | 22673 } |
22804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22805 // for details. All rights reserved. Use of this source code is governed by a | 22675 // for details. All rights reserved. Use of this source code is governed by a |
22806 // BSD-style license that can be found in the LICENSE file. | 22676 // BSD-style license that can be found in the LICENSE file. |
22807 | 22677 |
22808 // WARNING: Do not edit - generated code. | 22678 // WARNING: Do not edit - generated code. |
22809 | 22679 |
22810 interface MouseEvent extends UIEvent { | 22680 interface MouseEvent extends UIEvent default _MouseEventFactoryProvider { |
| 22681 |
| 22682 MouseEvent(String type, Window view, int detail, int screenX, int screenY, |
| 22683 int clientX, int clientY, int button, [bool canBubble, bool cancelable, |
| 22684 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, |
| 22685 EventTarget relatedTarget]); |
| 22686 |
22811 | 22687 |
22812 final bool altKey; | 22688 final bool altKey; |
22813 | 22689 |
22814 final int button; | 22690 final int button; |
22815 | 22691 |
22816 final int clientX; | 22692 final int clientX; |
22817 | 22693 |
22818 final int clientY; | 22694 final int clientY; |
22819 | 22695 |
22820 final bool ctrlKey; | 22696 final bool ctrlKey; |
(...skipping 15 matching lines...) Expand all Loading... |
22836 final int screenY; | 22712 final int screenY; |
22837 | 22713 |
22838 final bool shiftKey; | 22714 final bool shiftKey; |
22839 | 22715 |
22840 final Node toElement; | 22716 final Node toElement; |
22841 | 22717 |
22842 final int x; | 22718 final int x; |
22843 | 22719 |
22844 final int y; | 22720 final int y; |
22845 | 22721 |
22846 void initMouseEvent(String type, bool canBubble, bool cancelable, Window view,
int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, b
ool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget); | 22722 void _initMouseEvent(String type, bool canBubble, bool cancelable, Window view
, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey,
bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget)
; |
22847 } | 22723 } |
22848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22849 // for details. All rights reserved. Use of this source code is governed by a | 22725 // for details. All rights reserved. Use of this source code is governed by a |
22850 // BSD-style license that can be found in the LICENSE file. | 22726 // BSD-style license that can be found in the LICENSE file. |
22851 | 22727 |
22852 // WARNING: Do not edit - generated code. | 22728 // WARNING: Do not edit - generated code. |
22853 | 22729 |
22854 interface MutationEvent extends Event { | 22730 interface MutationEvent extends Event { |
22855 | 22731 |
22856 static final int ADDITION = 2; | 22732 static final int ADDITION = 2; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22960 // WARNING: Do not edit - generated code. | 22836 // WARNING: Do not edit - generated code. |
22961 | 22837 |
22962 typedef bool NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); | 22838 typedef bool NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); |
22963 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 22839 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
22964 // for details. All rights reserved. Use of this source code is governed by a | 22840 // for details. All rights reserved. Use of this source code is governed by a |
22965 // BSD-style license that can be found in the LICENSE file. | 22841 // BSD-style license that can be found in the LICENSE file. |
22966 | 22842 |
22967 // WARNING: Do not edit - generated code. | 22843 // WARNING: Do not edit - generated code. |
22968 | 22844 |
22969 typedef bool NavigatorUserMediaSuccessCallback(LocalMediaStream stream); | 22845 typedef bool NavigatorUserMediaSuccessCallback(LocalMediaStream stream); |
22970 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 22846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22971 // for details. All rights reserved. Use of this source code is governed by a | 22847 // for details. All rights reserved. Use of this source code is governed by a |
22972 // BSD-style license that can be found in the LICENSE file. | 22848 // BSD-style license that can be found in the LICENSE file. |
22973 | 22849 |
22974 // WARNING: Do not edit - generated code. | 22850 // WARNING: Do not edit - generated code. |
22975 | 22851 |
22976 interface Node extends EventTarget { | 22852 interface Node extends EventTarget { |
22977 NodeList get nodes(); | 22853 NodeList get nodes(); |
22978 | 22854 |
22979 // TODO: The type of value should be Collection<Node>. See http://b/5392897 | 22855 // TODO: The type of value should be Collection<Node>. See http://b/5392897 |
22980 void set nodes(value); | 22856 void set nodes(value); |
22981 | 22857 |
22982 Node get nextNode(); | |
22983 | |
22984 Document get document(); | |
22985 | |
22986 Node get parent(); | |
22987 | |
22988 Node get previousNode(); | |
22989 | |
22990 String get text(); | |
22991 | |
22992 void set text(String value); | |
22993 | |
22994 Node replaceWith(Node otherNode); | 22858 Node replaceWith(Node otherNode); |
22995 | 22859 |
22996 Node remove(); | 22860 Node remove(); |
22997 | 22861 |
22998 | 22862 |
22999 static final int ATTRIBUTE_NODE = 2; | 22863 static final int ATTRIBUTE_NODE = 2; |
23000 | 22864 |
23001 static final int CDATA_SECTION_NODE = 4; | 22865 static final int CDATA_SECTION_NODE = 4; |
23002 | 22866 |
23003 static final int COMMENT_NODE = 8; | 22867 static final int COMMENT_NODE = 8; |
(...skipping 21 matching lines...) Expand all Loading... |
23025 static final int ENTITY_NODE = 6; | 22889 static final int ENTITY_NODE = 6; |
23026 | 22890 |
23027 static final int ENTITY_REFERENCE_NODE = 5; | 22891 static final int ENTITY_REFERENCE_NODE = 5; |
23028 | 22892 |
23029 static final int NOTATION_NODE = 12; | 22893 static final int NOTATION_NODE = 12; |
23030 | 22894 |
23031 static final int PROCESSING_INSTRUCTION_NODE = 7; | 22895 static final int PROCESSING_INSTRUCTION_NODE = 7; |
23032 | 22896 |
23033 static final int TEXT_NODE = 3; | 22897 static final int TEXT_NODE = 3; |
23034 | 22898 |
23035 final Node nextSibling; | 22899 final NamedNodeMap _attributes; |
23036 | 22900 |
23037 final Document ownerDocument; | 22901 final NodeList _childNodes; |
23038 | 22902 |
23039 final Node parentNode; | 22903 final Node nextNode; |
23040 | 22904 |
23041 final Node previousSibling; | 22905 final Document document; |
23042 | 22906 |
23043 String textContent; | 22907 final Node parent; |
23044 | 22908 |
23045 Node cloneNode(bool deep); | 22909 final Node previousNode; |
| 22910 |
| 22911 String text; |
| 22912 |
| 22913 Node _appendChild(Node newChild); |
| 22914 |
| 22915 Node clone(bool deep); |
23046 | 22916 |
23047 bool contains(Node other); | 22917 bool contains(Node other); |
23048 | 22918 |
23049 bool hasChildNodes(); | 22919 bool hasChildNodes(); |
23050 | 22920 |
23051 Node insertBefore(Node newChild, Node refChild); | 22921 Node insertBefore(Node newChild, Node refChild); |
23052 | 22922 |
| 22923 Node _removeChild(Node oldChild); |
| 22924 |
| 22925 Node _replaceChild(Node newChild, Node oldChild); |
| 22926 |
23053 } | 22927 } |
23054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23055 // for details. All rights reserved. Use of this source code is governed by a | 22929 // for details. All rights reserved. Use of this source code is governed by a |
23056 // BSD-style license that can be found in the LICENSE file. | 22930 // BSD-style license that can be found in the LICENSE file. |
23057 | 22931 |
23058 // WARNING: Do not edit - generated code. | 22932 // WARNING: Do not edit - generated code. |
23059 | 22933 |
23060 interface NodeFilter { | 22934 interface NodeFilter { |
23061 | 22935 |
23062 static final int FILTER_ACCEPT = 1; | 22936 static final int FILTER_ACCEPT = 1; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23367 bool disabled; | 23241 bool disabled; |
23368 | 23242 |
23369 final FormElement form; | 23243 final FormElement form; |
23370 | 23244 |
23371 final int index; | 23245 final int index; |
23372 | 23246 |
23373 String label; | 23247 String label; |
23374 | 23248 |
23375 bool selected; | 23249 bool selected; |
23376 | 23250 |
23377 String text; | |
23378 | |
23379 String value; | 23251 String value; |
23380 } | 23252 } |
23381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
23382 // for details. All rights reserved. Use of this source code is governed by a | 23254 // for details. All rights reserved. Use of this source code is governed by a |
23383 // BSD-style license that can be found in the LICENSE file. | 23255 // BSD-style license that can be found in the LICENSE file. |
23384 | 23256 |
23385 // WARNING: Do not edit - generated code. | 23257 // WARNING: Do not edit - generated code. |
23386 | 23258 |
23387 interface OutputElement extends Element { | 23259 interface OutputElement extends Element { |
23388 | 23260 |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24398 } | 24270 } |
24399 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
24400 // for details. All rights reserved. Use of this source code is governed by a | 24272 // for details. All rights reserved. Use of this source code is governed by a |
24401 // BSD-style license that can be found in the LICENSE file. | 24273 // BSD-style license that can be found in the LICENSE file. |
24402 | 24274 |
24403 // WARNING: Do not edit - generated code. | 24275 // WARNING: Do not edit - generated code. |
24404 | 24276 |
24405 interface SVGDocument extends Document { | 24277 interface SVGDocument extends Document { |
24406 | 24278 |
24407 final SVGSVGElement rootElement; | 24279 final SVGSVGElement rootElement; |
| 24280 |
| 24281 Event _createEvent(String eventType); |
24408 } | 24282 } |
24409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
24410 // for details. All rights reserved. Use of this source code is governed by a | 24284 // for details. All rights reserved. Use of this source code is governed by a |
24411 // BSD-style license that can be found in the LICENSE file. | 24285 // BSD-style license that can be found in the LICENSE file. |
24412 | 24286 |
24413 // WARNING: Do not edit - generated code. | 24287 // WARNING: Do not edit - generated code. |
24414 | 24288 |
24415 interface SVGElement extends Element { | 24289 interface SVGElement extends Element { |
24416 | 24290 |
24417 String id; | 24291 String id; |
(...skipping 22 matching lines...) Expand all Loading... |
24440 | 24314 |
24441 final SVGElementInstance lastChild; | 24315 final SVGElementInstance lastChild; |
24442 | 24316 |
24443 final SVGElementInstance nextSibling; | 24317 final SVGElementInstance nextSibling; |
24444 | 24318 |
24445 final SVGElementInstance parentNode; | 24319 final SVGElementInstance parentNode; |
24446 | 24320 |
24447 final SVGElementInstance previousSibling; | 24321 final SVGElementInstance previousSibling; |
24448 | 24322 |
24449 SVGElementInstanceEvents get on(); | 24323 SVGElementInstanceEvents get on(); |
| 24324 |
| 24325 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 24326 |
| 24327 bool _dispatchEvent(Event event); |
| 24328 |
| 24329 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
24450 } | 24330 } |
24451 | 24331 |
24452 interface SVGElementInstanceEvents extends Events { | 24332 interface SVGElementInstanceEvents extends Events { |
24453 | 24333 |
24454 EventListenerList get abort(); | 24334 EventListenerList get abort(); |
24455 | 24335 |
24456 EventListenerList get beforeCopy(); | 24336 EventListenerList get beforeCopy(); |
24457 | 24337 |
24458 EventListenerList get beforeCut(); | 24338 EventListenerList get beforeCut(); |
24459 | 24339 |
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
26308 // BSD-style license that can be found in the LICENSE file. | 26188 // BSD-style license that can be found in the LICENSE file. |
26309 | 26189 |
26310 // WARNING: Do not edit - generated code. | 26190 // WARNING: Do not edit - generated code. |
26311 | 26191 |
26312 interface SVGStyleElement extends SVGElement, SVGLangSpace { | 26192 interface SVGStyleElement extends SVGElement, SVGLangSpace { |
26313 | 26193 |
26314 bool disabled; | 26194 bool disabled; |
26315 | 26195 |
26316 String media; | 26196 String media; |
26317 | 26197 |
26318 String title; | |
26319 | |
26320 String type; | 26198 String type; |
26321 } | 26199 } |
26322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 26200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
26323 // for details. All rights reserved. Use of this source code is governed by a | 26201 // for details. All rights reserved. Use of this source code is governed by a |
26324 // BSD-style license that can be found in the LICENSE file. | 26202 // BSD-style license that can be found in the LICENSE file. |
26325 | 26203 |
26326 // WARNING: Do not edit - generated code. | 26204 // WARNING: Do not edit - generated code. |
26327 | 26205 |
26328 interface SVGSwitchElement extends SVGElement, SVGTests, SVGLangSpace, SVGExtern
alResourcesRequired, SVGStylable, SVGTransformable { | 26206 interface SVGSwitchElement extends SVGElement, SVGTests, SVGLangSpace, SVGExtern
alResourcesRequired, SVGStylable, SVGTransformable { |
26329 } | 26207 } |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
26694 String charset; | 26572 String charset; |
26695 | 26573 |
26696 bool defer; | 26574 bool defer; |
26697 | 26575 |
26698 String event; | 26576 String event; |
26699 | 26577 |
26700 String htmlFor; | 26578 String htmlFor; |
26701 | 26579 |
26702 String src; | 26580 String src; |
26703 | 26581 |
26704 String text; | |
26705 | |
26706 String type; | 26582 String type; |
26707 } | 26583 } |
26708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 26584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
26709 // for details. All rights reserved. Use of this source code is governed by a | 26585 // for details. All rights reserved. Use of this source code is governed by a |
26710 // BSD-style license that can be found in the LICENSE file. | 26586 // BSD-style license that can be found in the LICENSE file. |
26711 | 26587 |
26712 // WARNING: Do not edit - generated code. | 26588 // WARNING: Do not edit - generated code. |
26713 | 26589 |
26714 interface ScriptProfile { | 26590 interface ScriptProfile { |
26715 | 26591 |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
27215 String chOff; | 27091 String chOff; |
27216 | 27092 |
27217 final HTMLCollection rows; | 27093 final HTMLCollection rows; |
27218 | 27094 |
27219 String vAlign; | 27095 String vAlign; |
27220 | 27096 |
27221 void deleteRow(int index); | 27097 void deleteRow(int index); |
27222 | 27098 |
27223 Element insertRow(int index); | 27099 Element insertRow(int index); |
27224 } | 27100 } |
27225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 27101 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
27226 // for details. All rights reserved. Use of this source code is governed by a | 27102 // for details. All rights reserved. Use of this source code is governed by a |
27227 // BSD-style license that can be found in the LICENSE file. | 27103 // BSD-style license that can be found in the LICENSE file. |
27228 | 27104 |
27229 // WARNING: Do not edit - generated code. | 27105 // WARNING: Do not edit - generated code. |
27230 | 27106 |
27231 interface Text extends CharacterData { | 27107 interface Text extends CharacterData default _TextFactoryProvider { |
| 27108 |
| 27109 Text(String data); |
27232 | 27110 |
27233 final String wholeText; | 27111 final String wholeText; |
27234 | 27112 |
27235 Text replaceWholeText(String content); | 27113 Text replaceWholeText(String content); |
27236 | 27114 |
27237 Text splitText(int offset); | 27115 Text splitText(int offset); |
27238 } | 27116 } |
27239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 27117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
27240 // for details. All rights reserved. Use of this source code is governed by a | 27118 // for details. All rights reserved. Use of this source code is governed by a |
27241 // BSD-style license that can be found in the LICENSE file. | 27119 // BSD-style license that can be found in the LICENSE file. |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
27448 | 27326 |
27449 num start(int index); | 27327 num start(int index); |
27450 } | 27328 } |
27451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 27329 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
27452 // for details. All rights reserved. Use of this source code is governed by a | 27330 // for details. All rights reserved. Use of this source code is governed by a |
27453 // BSD-style license that can be found in the LICENSE file. | 27331 // BSD-style license that can be found in the LICENSE file. |
27454 | 27332 |
27455 // WARNING: Do not edit - generated code. | 27333 // WARNING: Do not edit - generated code. |
27456 | 27334 |
27457 interface TitleElement extends Element { | 27335 interface TitleElement extends Element { |
27458 | |
27459 String text; | |
27460 } | 27336 } |
27461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 27337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
27462 // for details. All rights reserved. Use of this source code is governed by a | 27338 // for details. All rights reserved. Use of this source code is governed by a |
27463 // BSD-style license that can be found in the LICENSE file. | 27339 // BSD-style license that can be found in the LICENSE file. |
27464 | 27340 |
27465 // WARNING: Do not edit - generated code. | 27341 // WARNING: Do not edit - generated code. |
27466 | 27342 |
27467 interface Touch { | 27343 interface Touch { |
27468 | 27344 |
27469 final int clientX; | 27345 final int clientX; |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
28894 final String extensions; | 28770 final String extensions; |
28895 | 28771 |
28896 final String protocol; | 28772 final String protocol; |
28897 | 28773 |
28898 final int readyState; | 28774 final int readyState; |
28899 | 28775 |
28900 final String url; | 28776 final String url; |
28901 | 28777 |
28902 WebSocketEvents get on(); | 28778 WebSocketEvents get on(); |
28903 | 28779 |
| 28780 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 28781 |
28904 void close([int code, String reason]); | 28782 void close([int code, String reason]); |
28905 | 28783 |
| 28784 bool _dispatchEvent(Event evt); |
| 28785 |
| 28786 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 28787 |
28906 bool send(String data); | 28788 bool send(String data); |
28907 } | 28789 } |
28908 | 28790 |
28909 interface WebSocketEvents extends Events { | 28791 interface WebSocketEvents extends Events { |
28910 | 28792 |
28911 EventListenerList get close(); | 28793 EventListenerList get close(); |
28912 | 28794 |
28913 EventListenerList get error(); | 28795 EventListenerList get error(); |
28914 | 28796 |
28915 EventListenerList get message(); | 28797 EventListenerList get message(); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
29073 final IDBFactory webkitIndexedDB; | 28955 final IDBFactory webkitIndexedDB; |
29074 | 28956 |
29075 final NotificationCenter webkitNotifications; | 28957 final NotificationCenter webkitNotifications; |
29076 | 28958 |
29077 final StorageInfo webkitStorageInfo; | 28959 final StorageInfo webkitStorageInfo; |
29078 | 28960 |
29079 final Window window; | 28961 final Window window; |
29080 | 28962 |
29081 WindowEvents get on(); | 28963 WindowEvents get on(); |
29082 | 28964 |
| 28965 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 28966 |
29083 void alert(String message); | 28967 void alert(String message); |
29084 | 28968 |
29085 String atob(String string); | 28969 String atob(String string); |
29086 | 28970 |
29087 void blur(); | 28971 void blur(); |
29088 | 28972 |
29089 String btoa(String string); | 28973 String btoa(String string); |
29090 | 28974 |
29091 void captureEvents(); | 28975 void captureEvents(); |
29092 | 28976 |
29093 void clearInterval(int handle); | 28977 void clearInterval(int handle); |
29094 | 28978 |
29095 void clearTimeout(int handle); | 28979 void clearTimeout(int handle); |
29096 | 28980 |
29097 void close(); | 28981 void close(); |
29098 | 28982 |
29099 bool confirm(String message); | 28983 bool confirm(String message); |
29100 | 28984 |
| 28985 bool _dispatchEvent(Event evt); |
| 28986 |
29101 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog); | 28987 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog); |
29102 | 28988 |
29103 void focus(); | 28989 void focus(); |
29104 | 28990 |
| 28991 CSSStyleDeclaration _getComputedStyle(Element element, String pseudoElement); |
| 28992 |
29105 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement); | 28993 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement); |
29106 | 28994 |
29107 DOMSelection getSelection(); | 28995 DOMSelection getSelection(); |
29108 | 28996 |
29109 MediaQueryList matchMedia(String query); | 28997 MediaQueryList matchMedia(String query); |
29110 | 28998 |
29111 void moveBy(num x, num y); | 28999 void moveBy(num x, num y); |
29112 | 29000 |
29113 void moveTo(num x, num y); | 29001 void moveTo(num x, num y); |
29114 | 29002 |
29115 Window open(String url, String name, [String options]); | 29003 Window open(String url, String name, [String options]); |
29116 | 29004 |
29117 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); | 29005 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); |
29118 | 29006 |
29119 void postMessage(Dynamic message, String targetOrigin, [List messagePorts]); | 29007 void postMessage(Dynamic message, String targetOrigin, [List messagePorts]); |
29120 | 29008 |
29121 void print(); | 29009 void print(); |
29122 | 29010 |
29123 String prompt(String message, String defaultValue); | 29011 String prompt(String message, String defaultValue); |
29124 | 29012 |
29125 void releaseEvents(); | 29013 void releaseEvents(); |
29126 | 29014 |
| 29015 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 29016 |
29127 void resizeBy(num x, num y); | 29017 void resizeBy(num x, num y); |
29128 | 29018 |
29129 void resizeTo(num width, num height); | 29019 void resizeTo(num width, num height); |
29130 | 29020 |
29131 void scroll(int x, int y); | 29021 void scroll(int x, int y); |
29132 | 29022 |
29133 void scrollBy(int x, int y); | 29023 void scrollBy(int x, int y); |
29134 | 29024 |
29135 void scrollTo(int x, int y); | 29025 void scrollTo(int x, int y); |
29136 | 29026 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
29472 final String statusText; | 29362 final String statusText; |
29473 | 29363 |
29474 final XMLHttpRequestUpload upload; | 29364 final XMLHttpRequestUpload upload; |
29475 | 29365 |
29476 bool withCredentials; | 29366 bool withCredentials; |
29477 | 29367 |
29478 XMLHttpRequestEvents get on(); | 29368 XMLHttpRequestEvents get on(); |
29479 | 29369 |
29480 void abort(); | 29370 void abort(); |
29481 | 29371 |
| 29372 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 29373 |
| 29374 bool _dispatchEvent(Event evt); |
| 29375 |
29482 String getAllResponseHeaders(); | 29376 String getAllResponseHeaders(); |
29483 | 29377 |
29484 String getResponseHeader(String header); | 29378 String getResponseHeader(String header); |
29485 | 29379 |
29486 void open(String method, String url, [bool async, String user, String password
]); | 29380 void open(String method, String url, [bool async, String user, String password
]); |
29487 | 29381 |
29488 void overrideMimeType(String override); | 29382 void overrideMimeType(String override); |
29489 | 29383 |
| 29384 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 29385 |
29490 void send([var data]); | 29386 void send([var data]); |
29491 | 29387 |
29492 void setRequestHeader(String header, String value); | 29388 void setRequestHeader(String header, String value); |
29493 } | 29389 } |
29494 | 29390 |
29495 interface XMLHttpRequestEvents extends Events { | 29391 interface XMLHttpRequestEvents extends Events { |
29496 | 29392 |
29497 EventListenerList get abort(); | 29393 EventListenerList get abort(); |
29498 | 29394 |
29499 EventListenerList get error(); | 29395 EventListenerList get error(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
29542 } | 29438 } |
29543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 29439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
29544 // for details. All rights reserved. Use of this source code is governed by a | 29440 // for details. All rights reserved. Use of this source code is governed by a |
29545 // BSD-style license that can be found in the LICENSE file. | 29441 // BSD-style license that can be found in the LICENSE file. |
29546 | 29442 |
29547 // WARNING: Do not edit - generated code. | 29443 // WARNING: Do not edit - generated code. |
29548 | 29444 |
29549 interface XMLHttpRequestUpload extends EventTarget { | 29445 interface XMLHttpRequestUpload extends EventTarget { |
29550 | 29446 |
29551 XMLHttpRequestUploadEvents get on(); | 29447 XMLHttpRequestUploadEvents get on(); |
| 29448 |
| 29449 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 29450 |
| 29451 bool _dispatchEvent(Event evt); |
| 29452 |
| 29453 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
29552 } | 29454 } |
29553 | 29455 |
29554 interface XMLHttpRequestUploadEvents extends Events { | 29456 interface XMLHttpRequestUploadEvents extends Events { |
29555 | 29457 |
29556 EventListenerList get abort(); | 29458 EventListenerList get abort(); |
29557 | 29459 |
29558 EventListenerList get error(); | 29460 EventListenerList get error(); |
29559 | 29461 |
29560 EventListenerList get load(); | 29462 EventListenerList get load(); |
29561 | 29463 |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30320 } | 30222 } |
30321 | 30223 |
30322 static bool isEmpty(Iterable<Object> iterable) { | 30224 static bool isEmpty(Iterable<Object> iterable) { |
30323 return !iterable.iterator().hasNext(); | 30225 return !iterable.iterator().hasNext(); |
30324 } | 30226 } |
30325 } | 30227 } |
30326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 30228 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
30327 // for details. All rights reserved. Use of this source code is governed by a | 30229 // for details. All rights reserved. Use of this source code is governed by a |
30328 // BSD-style license that can be found in the LICENSE file. | 30230 // BSD-style license that can be found in the LICENSE file. |
30329 | 30231 |
| 30232 typedef Object ComputeValue(); |
| 30233 |
| 30234 class _MeasurementRequest<T> { |
| 30235 final ComputeValue computeValue; |
| 30236 final Completer<T> completer; |
| 30237 Object value; |
| 30238 bool exception = false; |
| 30239 _MeasurementRequest(this.computeValue, this.completer); |
| 30240 } |
| 30241 |
| 30242 final _MEASUREMENT_MESSAGE = "DART-MEASURE"; |
| 30243 List<_MeasurementRequest> _pendingRequests; |
| 30244 List<TimeoutHandler> _pendingMeasurementFrameCallbacks; |
| 30245 bool _nextMeasurementFrameScheduled = false; |
| 30246 bool _firstMeasurementRequest = true; |
| 30247 |
| 30248 void _maybeScheduleMeasurementFrame() { |
| 30249 if (_nextMeasurementFrameScheduled) return; |
| 30250 |
| 30251 _nextMeasurementFrameScheduled = true; |
| 30252 // postMessage gives us a way to receive a callback after the current |
| 30253 // event listener has unwound but before the browser has repainted. |
| 30254 if (_firstMeasurementRequest) { |
| 30255 // Messages from other windows do not cause a security risk as |
| 30256 // all we care about is that _onCompleteMeasurementRequests is called |
| 30257 // after the current event loop is unwound and calling the function is |
| 30258 // a noop when zero requests are pending. |
| 30259 window.on.message.add((e) => _completeMeasurementFutures()); |
| 30260 _firstMeasurementRequest = false; |
| 30261 } |
| 30262 |
| 30263 // TODO(jacobr): other mechanisms such as setImmediate and |
| 30264 // requestAnimationFrame may work better of platforms that support them. |
| 30265 // The key is we need a way to execute code immediately after the current |
| 30266 // event listener queue unwinds. |
| 30267 window.postMessage(_MEASUREMENT_MESSAGE, "*"); |
| 30268 } |
| 30269 |
| 30270 /** |
| 30271 * Registers a [callback] which is called after the next batch of measurements |
| 30272 * completes. Even if no measurements completed, the callback is triggered |
| 30273 * when they would have completed to avoid confusing bugs if it happened that |
| 30274 * no measurements were actually requested. |
| 30275 */ |
| 30276 void _addMeasurementFrameCallback(TimeoutHandler callback) { |
| 30277 if (_pendingMeasurementFrameCallbacks === null) { |
| 30278 _pendingMeasurementFrameCallbacks = <TimeoutHandler>[]; |
| 30279 _maybeScheduleMeasurementFrame(); |
| 30280 } |
| 30281 _pendingMeasurementFrameCallbacks.add(callback); |
| 30282 } |
| 30283 |
| 30284 /** |
| 30285 * Returns a [Future] whose value will be the result of evaluating |
| 30286 * [computeValue] during the next safe measurement interval. |
| 30287 * The next safe measurement interval is after the current event loop has |
| 30288 * unwound but before the browser has rendered the page. |
| 30289 * It is important that the [computeValue] function only queries the html |
| 30290 * layout and html in any way. |
| 30291 */ |
| 30292 Future _createMeasurementFuture(ComputeValue computeValue, |
| 30293 Completer completer) { |
| 30294 if (_pendingRequests === null) { |
| 30295 _pendingRequests = <_MeasurementRequest>[]; |
| 30296 _maybeScheduleMeasurementFrame(); |
| 30297 } |
| 30298 _pendingRequests.add(new _MeasurementRequest(computeValue, completer)); |
| 30299 return completer.future; |
| 30300 } |
| 30301 |
| 30302 /** |
| 30303 * Complete all pending measurement futures evaluating them in a single batch |
| 30304 * so that the the browser is guaranteed to avoid multiple layouts. |
| 30305 */ |
| 30306 void _completeMeasurementFutures() { |
| 30307 if (_nextMeasurementFrameScheduled == false) { |
| 30308 // Ignore spurious call to this function. |
| 30309 return; |
| 30310 } |
| 30311 |
| 30312 _nextMeasurementFrameScheduled = false; |
| 30313 // We must compute all new values before fulfilling the futures as |
| 30314 // the onComplete callbacks for the futures could modify the DOM making |
| 30315 // subsequent measurement calculations expensive to compute. |
| 30316 if (_pendingRequests !== null) { |
| 30317 for (_MeasurementRequest request in _pendingRequests) { |
| 30318 try { |
| 30319 request.value = request.computeValue(); |
| 30320 } catch(var e) { |
| 30321 request.value = e; |
| 30322 request.exception = true; |
| 30323 } |
| 30324 } |
| 30325 } |
| 30326 |
| 30327 final completedRequests = _pendingRequests; |
| 30328 final readyMeasurementFrameCallbacks = _pendingMeasurementFrameCallbacks; |
| 30329 _pendingRequests = null; |
| 30330 _pendingMeasurementFrameCallbacks = null; |
| 30331 if (completedRequests !== null) { |
| 30332 for (_MeasurementRequest request in completedRequests) { |
| 30333 if (request.exception) { |
| 30334 request.completer.completeException(request.value); |
| 30335 } else { |
| 30336 request.completer.complete(request.value); |
| 30337 } |
| 30338 } |
| 30339 } |
| 30340 |
| 30341 if (readyMeasurementFrameCallbacks !== null) { |
| 30342 for (TimeoutHandler handler in readyMeasurementFrameCallbacks) { |
| 30343 // TODO(jacobr): wrap each call to a handler in a try-catch block. |
| 30344 handler(); |
| 30345 } |
| 30346 } |
| 30347 } |
| 30348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 30349 // for details. All rights reserved. Use of this source code is governed by a |
| 30350 // BSD-style license that can be found in the LICENSE file. |
| 30351 |
| 30352 class _TextFactoryProvider { |
| 30353 |
| 30354 factory Text(data) => document._createTextNode(data); |
| 30355 } |
| 30356 |
| 30357 class _EventFactoryProvider { |
| 30358 factory Event(String type, [bool canBubble = true, |
| 30359 bool cancelable = true]) { |
| 30360 _EventImpl e = document._createEvent("Event"); |
| 30361 e._initEvent(type, canBubble, cancelable); |
| 30362 return e; |
| 30363 } |
| 30364 } |
| 30365 |
| 30366 class _MouseEventFactoryProvider { |
| 30367 factory MouseEvent(String type, Window view, int detail, |
| 30368 int screenX, int screenY, int clientX, int clientY, int button, |
| 30369 [bool canBubble = true, bool cancelable = true, bool ctrlKey = false, |
| 30370 bool altKey = false, bool shiftKey = false, bool metaKey = false, |
| 30371 EventTarget relatedTarget = null]) { |
| 30372 final e = document._createEvent("MouseEvent"); |
| 30373 e._initMouseEvent(type, canBubble, cancelable, view, detail, |
| 30374 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, |
| 30375 button, relatedTarget); |
| 30376 return e; |
| 30377 } |
| 30378 } |
| 30379 |
| 30380 class _CSSStyleDeclarationFactoryProvider { |
| 30381 factory CSSStyleDeclaration.css(String css) { |
| 30382 var style = new Element.tag('div').style; |
| 30383 style.cssText = css; |
| 30384 return style; |
| 30385 } |
| 30386 |
| 30387 factory CSSStyleDeclaration() { |
| 30388 return new CSSStyleDeclaration.css(''); |
| 30389 } |
| 30390 } |
| 30391 |
| 30392 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); |
| 30393 class _ElementFactoryProvider { |
| 30394 static final _CUSTOM_PARENT_TAG_MAP = const { |
| 30395 'body' : 'html', |
| 30396 'head' : 'html', |
| 30397 'caption' : 'table', |
| 30398 'td': 'tr', |
| 30399 'tbody': 'table', |
| 30400 'colgroup': 'table', |
| 30401 'col' : 'colgroup', |
| 30402 'tr' : 'tbody', |
| 30403 'tbody' : 'table', |
| 30404 'tfoot' : 'table', |
| 30405 'thead' : 'table', |
| 30406 'track' : 'audio', |
| 30407 }; |
| 30408 |
| 30409 /** @domName Document.createElement */ |
| 30410 factory Element.html(String html) { |
| 30411 // TODO(jacobr): this method can be made more robust and performant. |
| 30412 // 1) Cache the dummy parent elements required to use innerHTML rather than |
| 30413 // creating them every call. |
| 30414 // 2) Verify that the html does not contain leading or trailing text nodes. |
| 30415 // 3) Verify that the html does not contain both <head> and <body> tags. |
| 30416 // 4) Detatch the created element from its dummy parent. |
| 30417 String parentTag = 'div'; |
| 30418 String tag; |
| 30419 final match = _START_TAG_REGEXP.firstMatch(html); |
| 30420 if (match !== null) { |
| 30421 tag = match.group(1).toLowerCase(); |
| 30422 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { |
| 30423 parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; |
| 30424 } |
| 30425 } |
| 30426 // TODO(jacobr): make type dom.HTMLElement when dartium allows it. |
| 30427 _ElementImpl temp = document._createElement(parentTag); |
| 30428 temp.innerHTML = html; |
| 30429 |
| 30430 Element element; |
| 30431 if (temp.elements.length == 1) { |
| 30432 element = temp.elements.first; |
| 30433 } else if (parentTag == 'html' && temp.elements.length == 2) { |
| 30434 // Work around for edge case in WebKit and possibly other browsers where |
| 30435 // both body and head elements are created even though the inner html |
| 30436 // only contains a head or body element. |
| 30437 element = temp.elements[tag == 'head' ? 0 : 1]; |
| 30438 } else { |
| 30439 throw new IllegalArgumentException('HTML had ${temp.elements.length} ' + |
| 30440 'top level elements but 1 expected'); |
| 30441 } |
| 30442 element.remove(); |
| 30443 return element; |
| 30444 } |
| 30445 |
| 30446 /** @domName Document.createElement */ |
| 30447 factory Element.tag(String tag) { |
| 30448 return document._createElement(tag); |
| 30449 } |
| 30450 } |
| 30451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 30452 // for details. All rights reserved. Use of this source code is governed by a |
| 30453 // BSD-style license that can be found in the LICENSE file. |
| 30454 |
30330 class _AudioContextFactoryProvider { | 30455 class _AudioContextFactoryProvider { |
30331 | 30456 |
30332 factory AudioContext() native ''' | 30457 factory AudioContext() native ''' |
30333 var constructor = window.AudioContext || window.webkitAudioContext; | 30458 var constructor = window.AudioContext || window.webkitAudioContext; |
30334 return new constructor(); | 30459 return new constructor(); |
30335 '''; | 30460 '''; |
30336 } | 30461 } |
30337 | 30462 |
30338 class _DOMParserFactoryProvider { | 30463 class _DOMParserFactoryProvider { |
30339 | 30464 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30395 | 30520 |
30396 static ensureNative(List list) => list; // TODO: make sure. | 30521 static ensureNative(List list) => list; // TODO: make sure. |
30397 } | 30522 } |
30398 | 30523 |
30399 class _CSSMatrixFactoryProvider { | 30524 class _CSSMatrixFactoryProvider { |
30400 | 30525 |
30401 factory CSSMatrix([String spec = '']) native | 30526 factory CSSMatrix([String spec = '']) native |
30402 'return new WebKitCSSMatrix(spec);'; | 30527 'return new WebKitCSSMatrix(spec);'; |
30403 } | 30528 } |
30404 | 30529 |
30405 // TODO(jacobr): this factory does not require any native code so move to a | |
30406 // separate file so it can be shared between wrapper and wrapperless versions. | |
30407 class _EventFactoryProvider { | |
30408 factory Event(String type, [bool canBubble = true, | |
30409 bool cancelable = true]) { | |
30410 _EventJs e = _document._createEvent("Event"); | |
30411 e._initEvent(type, canBubble, cancelable); | |
30412 return e; | |
30413 } | |
30414 } | |
30415 | |
30416 class _PointFactoryProvider { | 30530 class _PointFactoryProvider { |
30417 | 30531 |
30418 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; | 30532 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; |
30419 } | 30533 } |
30420 | 30534 |
30421 class _WebSocketFactoryProvider { | 30535 class _WebSocketFactoryProvider { |
30422 | 30536 |
30423 factory WebSocket(String url) native 'return new WebSocket(url);'; | 30537 factory WebSocket(String url) native 'return new WebSocket(url);'; |
30424 } | 30538 } |
30425 | 30539 |
(...skipping 15 matching lines...) Expand all Loading... |
30441 (request.status == 200 || request.status == 0)) { | 30555 (request.status == 200 || request.status == 0)) { |
30442 onSuccess(request); | 30556 onSuccess(request); |
30443 } | 30557 } |
30444 }); | 30558 }); |
30445 | 30559 |
30446 request.send(); | 30560 request.send(); |
30447 | 30561 |
30448 return request; | 30562 return request; |
30449 } | 30563 } |
30450 } | 30564 } |
30451 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 30565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
30452 // for details. All rights reserved. Use of this source code is governed by a | 30566 // for details. All rights reserved. Use of this source code is governed by a |
30453 // BSD-style license that can be found in the LICENSE file. | 30567 // BSD-style license that can be found in the LICENSE file. |
30454 | 30568 |
| 30569 // TODO(rnystrom): add a way to supress public classes from DartDoc output. |
| 30570 /** |
| 30571 * This class is intended for testing purposes only. |
| 30572 */ |
| 30573 class Testing { |
| 30574 static void addEventListener(EventTarget target, String type, EventListener li
stener, bool useCapture) { |
| 30575 target._addEventListener(type, listener, useCapture); |
| 30576 } |
| 30577 static void removeEventListener(EventTarget target, String type, EventListener
listener, bool useCapture) { |
| 30578 target._removeEventListener(type, listener, useCapture); |
| 30579 } |
| 30580 |
| 30581 }// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 30582 // for details. All rights reserved. Use of this source code is governed by a |
| 30583 // BSD-style license that can be found in the LICENSE file. |
| 30584 |
30455 /** | 30585 /** |
30456 * Utils for device detection. | 30586 * Utils for device detection. |
30457 */ | 30587 */ |
30458 class _Device { | 30588 class _Device { |
30459 /** | 30589 /** |
30460 * Gets the browser's user agent. Using this function allows tests to inject | 30590 * Gets the browser's user agent. Using this function allows tests to inject |
30461 * the user agent. | 30591 * the user agent. |
30462 * Returns the user agent. | 30592 * Returns the user agent. |
30463 */ | 30593 */ |
30464 static String get userAgent() => dom.window.navigator.userAgent; | 30594 static String get userAgent() => window.navigator.userAgent; |
30465 | 30595 |
30466 /** | 30596 /** |
30467 * Determines if the current device is running Firefox. | 30597 * Determines if the current device is running Firefox. |
30468 */ | 30598 */ |
30469 static bool get isFirefox() => userAgent.contains("Firefox", 0); | 30599 static bool get isFirefox() => userAgent.contains("Firefox", 0); |
30470 } | 30600 } |
30471 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 30601 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
30472 // for details. All rights reserved. Use of this source code is governed by a | 30602 // for details. All rights reserved. Use of this source code is governed by a |
30473 // BSD-style license that can be found in the LICENSE file. | 30603 // BSD-style license that can be found in the LICENSE file. |
30474 | 30604 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
30562 if (length < 0) throw new IllegalArgumentException('length'); | 30692 if (length < 0) throw new IllegalArgumentException('length'); |
30563 if (start < 0) throw new IndexOutOfRangeException(start); | 30693 if (start < 0) throw new IndexOutOfRangeException(start); |
30564 int end = start + length; | 30694 int end = start + length; |
30565 if (end > a.length) throw new IndexOutOfRangeException(end); | 30695 if (end > a.length) throw new IndexOutOfRangeException(end); |
30566 for (int i = start; i < end; i++) { | 30696 for (int i = start; i < end; i++) { |
30567 accumulator.add(a[i]); | 30697 accumulator.add(a[i]); |
30568 } | 30698 } |
30569 return accumulator; | 30699 return accumulator; |
30570 } | 30700 } |
30571 } | 30701 } |
OLD | NEW |