Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: tools/dom/idl/dart/dart.idl

Issue 1894713002: Strong html (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: ptal Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/html/events_test.dart ('k') | tools/dom/scripts/htmleventgenerator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « tests/html/events_test.dart ('k') | tools/dom/scripts/htmleventgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698