OLD | NEW |
1 // This file introduces / supplements and forces Dart declarations. | 1 // This file introduces / supplements and forces Dart declarations. |
2 | 2 |
3 [DartSupplemental, | 3 [DartSupplemental, |
4 Constructor] | 4 Constructor] |
5 interface AudioContext { | 5 interface AudioContext { |
6 // TODO(ager): Auto-generate this custom method when the info about retaining | 6 // TODO(ager): Auto-generate this custom method when the info about retaining |
7 // typed arrays is in the IDL. | 7 // typed arrays is in the IDL. |
8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe
ssCallback, AudioBufferCallback errorCallback); | 8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe
ssCallback, AudioBufferCallback errorCallback); |
9 }; | 9 }; |
10 | 10 |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 // sense, change dart:html to have a send operation that takes | 418 // sense, change dart:html to have a send operation that takes |
419 // a List<int> and have custom handler to call the correct | 419 // a List<int> and have custom handler to call the correct |
420 // method. The dart:blink library needs to do something else | 420 // method. The dart:blink library needs to do something else |
421 // postfix the name with send_sequence (?). | 421 // postfix the name with send_sequence (?). |
422 [DartSuppress] void send(sequence<unsigned long> data, optional double times
tamp); | 422 [DartSuppress] void send(sequence<unsigned long> data, optional double times
tamp); |
423 }; | 423 }; |
424 | 424 |
425 [DartSuppress] | 425 [DartSuppress] |
426 interface MutationEvent {}; | 426 interface MutationEvent {}; |
427 | 427 |
| 428 // Tweaks types required for Dart strong mode. |
| 429 [DartSupplemental] |
| 430 interface HTMLCollection { |
| 431 |
| 432 // FIXME: The index argument should not be optional. |
| 433 getter Node? item([Default=Undefined] optional unsigned long index); |
| 434 getter any namedItem(DOMString name); |
| 435 |
| 436 [DartSuppress] getter Element? item([Default=Undefined] optional unsigned lo
ng index); |
| 437 [DartSuppress] getter Element? namedItem(DOMString name); |
| 438 |
| 439 }; |
428 | 440 |
429 Element implements GlobalEventHandlers; | 441 Element implements GlobalEventHandlers; |
430 | 442 |
431 | 443 |
432 // This only exists in Safari, and is deprecated there. But include it anyway | 444 // This only exists in Safari, and is deprecated there. But include it anyway |
433 // because otherwise iterating CSSRules in Safari can yield unknown JS objects. | 445 // because otherwise iterating CSSRules in Safari can yield unknown JS objects. |
434 interface CSSCharsetRule : CSSRule { | 446 interface CSSCharsetRule : CSSRule { |
435 [MeasureAs=CSSCharsetRuleEncoding] attribute DOMString encoding; | 447 [MeasureAs=CSSCharsetRuleEncoding] attribute DOMString encoding; |
436 }; | 448 }; |
OLD | NEW |