| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 [DartSuppress, DartStrictTypeChecking, Custom] void getVertexAttrib(); | 183 [DartSuppress, DartStrictTypeChecking, Custom] void getVertexAttrib(); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 // TODO(vsm): Define new names for these (see b/4436830). | 186 // TODO(vsm): Define new names for these (see b/4436830). |
| 187 [DartSupplemental] | 187 [DartSupplemental] |
| 188 interface IDBCursor { | 188 interface IDBCursor { |
| 189 [DartName=next, CallWith=ExecutionContext, ImplementedAs=continueFunction, Rai
sesException] void continue([DartForceOptional] optional any key); | 189 [DartName=next, CallWith=ExecutionContext, ImplementedAs=continueFunction, Rai
sesException] void continue([DartForceOptional] optional any key); |
| 190 }; | 190 }; |
| 191 [DartSupplemental] | 191 [DartSupplemental] |
| 192 interface IDBIndex { | 192 interface IDBIndex { |
| 193 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor([Default=
Undefined] optional any key, [DartForceOptional] optional DOMString direction); |
| 194 |
| 195 [CallWith=ExecutionContext, RaisesException] IDBRequest openKeyCursor([Defau
lt=Undefined] optional any key, [DartForceOptional] optional DOMString direction
); |
| 196 |
| 193 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef
ined] optional any key); | 197 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef
ined] optional any key); |
| 194 }; | 198 }; |
| 195 | 199 |
| 196 [DartSupplemental] | 200 [DartSupplemental] |
| 197 interface HTMLMediaElement { | 201 interface HTMLMediaElement { |
| 198 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Un
defined, TreatNullAs=NullString, TreatUndefinedAs=NullString, DartForceOptional]
optional DOMString keySystem); | 202 DOMString canPlayType([Default=Undefined] optional DOMString type, [Default=Un
defined, TreatNullAs=NullString, TreatUndefinedAs=NullString, DartForceOptional]
optional DOMString keySystem); |
| 199 }; | 203 }; |
| 200 | 204 |
| 201 [DartSupplemental] | 205 [DartSupplemental] |
| 202 interface IDBKeyRange { | 206 interface IDBKeyRange { |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 [RaisesException] void scrollTo(long x, long y, optional Dictionary scrollOpti
ons); | 353 [RaisesException] void scrollTo(long x, long y, optional Dictionary scrollOpti
ons); |
| 350 | 354 |
| 351 [DartSuppress] void scroll(long x, long y); | 355 [DartSuppress] void scroll(long x, long y); |
| 352 [DartSuppress] void scroll(long x, long y, Dictionary scrollOptions); | 356 [DartSuppress] void scroll(long x, long y, Dictionary scrollOptions); |
| 353 [RaisesException] void scroll(long x, long y, optional Dictionary scrollOption
s); | 357 [RaisesException] void scroll(long x, long y, optional Dictionary scrollOption
s); |
| 354 }; | 358 }; |
| 355 | 359 |
| 356 [DartSuppress] | 360 [DartSuppress] |
| 357 interface Promise {}; | 361 interface Promise {}; |
| 358 | 362 |
| 359 [DartSupplemental] | 363 [DartSupplemental] interface CanvasRenderingContext2D { |
| 360 interface CanvasRenderingContext2D { | |
| 361 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy); | 364 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy); |
| 362 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); | 365 [DartSuppress] void webkitPutImageDataHD(ImageData? imagedata, float dx, flo
at dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight); |
| 363 [DartSuppress] ImageData webkitGetImageDataHD(float sx, float sy, float sw,
float sh); | 366 [DartSuppress] ImageData webkitGetImageDataHD(float sx, float sy, float sw,
float sh); |
| 364 }; | 367 }; |
| 365 | 368 |
| 366 [DartSupplemental] | 369 [DartSupplemental] interface AudioParam { |
| 367 interface AudioParam { | |
| 368 [DartSuppress] void setTargetValueAtTime(float target, double time, double t
imeConstant); | 370 [DartSuppress] void setTargetValueAtTime(float target, double time, double t
imeConstant); |
| 369 void setTargetAtTime(float target, double time, double timeConstant); | 371 void setTargetAtTime(float target, double time, double timeConstant); |
| 370 }; | 372 }; |
| 371 | 373 |
| 372 [DartSupplemental] | 374 [DartSupplemental] interface AudioContext { |
| 373 interface AudioContext { | |
| 374 // Number of AudioBufferSourceNodes that are currently playing. | 375 // Number of AudioBufferSourceNodes that are currently playing. |
| 375 [DartSuppress] readonly attribute unsigned long activeSourceCount; | 376 [DartSuppress] readonly attribute unsigned long activeSourceCount; |
| 376 [DartSuppress] ScriptProcessorNode createJavaScriptNode(unsigned long buffer
Size, optional unsigned long numberOfInputChannels, optional unsigned long numbe
rOfOutputChannels); | 377 [DartSuppress] ScriptProcessorNode createJavaScriptNode(unsigned long buffer
Size, optional unsigned long numberOfInputChannels, optional unsigned long numbe
rOfOutputChannels); |
| 377 [DartSuppress] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMo
no); | 378 [DartSuppress] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMo
no); |
| 378 [DartSuppress] GainNode createGainNode(); | 379 [DartSuppress] GainNode createGainNode(); |
| 379 [DartSuppress] DelayNode createDelayNode(optional double maxDelayTime); | 380 [DartSuppress] DelayNode createDelayNode(optional double maxDelayTime); |
| 380 }; | 381 }; |
| 381 | 382 |
| 382 [DartSupplemental] | 383 [DartSupplemental] interface HTMLInputElement { |
| 383 interface HTMLInputElement { | |
| 384 [DartSuppress] attribute boolean webkitSpeech; | 384 [DartSuppress] attribute boolean webkitSpeech; |
| 385 [DartSuppress] attribute boolean webkitGrammar; | 385 [DartSuppress] attribute boolean webkitGrammar; |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 [DartSupplemental] | 388 [DartSupplemental] interface ShadowRoot { |
| 389 interface ShadowRoot { | |
| 390 [DartSuppress] attribute boolean applyAuthorStyles; | 389 [DartSuppress] attribute boolean applyAuthorStyles; |
| 391 }; | 390 }; |
| 392 | 391 |
| 393 [DartSupplemental] | 392 [DartSupplemental] interface BeforeLoadEvent { |
| 394 interface BeforeLoadEvent { | |
| 395 [DartSuppress] readonly attribute DOMString url; | 393 [DartSuppress] readonly attribute DOMString url; |
| 396 }; | 394 }; |
| 397 | 395 |
| 398 [DartSupplemental] | 396 [DartSupplemental] interface OscillatorNode { |
| 399 interface OscillatorNode { | |
| 400 [DartSuppress] readonly attribute unsigned short playbackState; | 397 [DartSuppress] readonly attribute unsigned short playbackState; |
| 401 }; | 398 }; |
| 402 | 399 |
| 403 [DartSupplemental] | 400 [DartSupplemental] interface SVGElementInstance { |
| 404 interface SVGElementInstance { | |
| 405 [DartSuppress] readonly attribute SVGElementInstanceList childNodes; | 401 [DartSuppress] readonly attribute SVGElementInstanceList childNodes; |
| 406 }; | 402 }; |
| 407 | 403 |
| 408 [DartSupplemental] | 404 [DartSupplemental] interface DOMImplementation { |
| 409 interface DOMImplementation { | |
| 410 [DartSuppress] | 405 [DartSuppress] |
| 411 CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString tit
le, | 406 CSSStyleSheet createCSSStyleSheet([Default=Undefined] optional DOMString tit
le, |
| 412 [Default=Undefined] optional DOMString med
ia); | 407 [Default=Undefined] optional DOMString med
ia); |
| 413 }; | 408 }; |
| 414 | 409 |
| 415 [DartSupplemental] | 410 [DartSupplemental] interface SVGSVGElement { |
| 416 interface SVGSVGElement { | |
| 417 [DartSuppress] attribute DOMString contentStyleType; | 411 [DartSuppress] attribute DOMString contentStyleType; |
| 418 [DartSuppress] attribute DOMString contentScriptType; | 412 [DartSuppress] attribute DOMString contentScriptType; |
| 419 }; | 413 }; |
| 420 | 414 |
| 421 [DartSupplemental] | 415 [DartSupplemental] interface WorkerGlobalScope { |
| 422 interface WorkerGlobalScope { | |
| 423 [DartSuppress] readonly attribute NotificationCenter webkitNotifications; | 416 [DartSuppress] readonly attribute NotificationCenter webkitNotifications; |
| 424 }; | 417 }; |
| 425 | 418 |
| 426 [DartSupplemental] | 419 [DartSupplemental] interface AudioBuffer { |
| 427 interface AudioBuffer { | |
| 428 [DartSuppress] attribute float gain; | 420 [DartSuppress] attribute float gain; |
| 429 }; | 421 }; |
| 430 | 422 |
| 431 [DartSupplemental] | 423 [DartSupplemental] interface WorkerCrypto { |
| 432 interface WorkerCrypto { | |
| 433 [DartSuppress] ArrayBufferView getRandomValues(ArrayBufferView array); | 424 [DartSuppress] ArrayBufferView getRandomValues(ArrayBufferView array); |
| 434 }; | 425 }; |
| 435 | 426 |
| 436 [DartSupplemental] | 427 [DartSupplemental] interface HTMLFormElement { |
| 437 interface HTMLFormElement { | |
| 438 void requestAutocomplete([Default=Undefined] optional Dictionary details); | 428 void requestAutocomplete([Default=Undefined] optional Dictionary details); |
| 439 [DartSuppress] void requestAutocomplete(); | 429 [DartSuppress] void requestAutocomplete(); |
| 440 }; | 430 }; |
| 441 | 431 |
| 442 [DartSupplemental] | 432 [DartSupplemental] interface AudioBufferSourceNode { |
| 443 interface AudioBufferSourceNode { | |
| 444 [DartSuppress] readonly attribute unsigned short playbackState; | 433 [DartSuppress] readonly attribute unsigned short playbackState; |
| 445 }; | 434 }; |
| 446 | 435 |
| 447 [DartSupplemental] | 436 [DartSupplemental] interface AudioBufferSourceNode : AudioSourceNode { |
| 448 interface AudioBufferSourceNode : AudioSourceNode { | |
| 449 [DartSuppress] readonly attribute AudioParam gain; | 437 [DartSuppress] readonly attribute AudioParam gain; |
| 450 }; | 438 }; |
| 451 | 439 |
| 452 // Remove operations webkitRequestFullscreen replaced w/ requestFullscreen. | 440 // Remove backward compatible operation requestPointerLock exist now too. |
| 453 [DartSupplemental] | 441 [DartSupplemental] interface Element : Node { |
| 454 interface Element : Node { | 442 [DartSuppress] void webkitRequestPointerLock(); |
| 455 [DartSuppress] void webkitRequestFullScreen([Default=Undefined] optional uns
igned short flags); | |
| 456 [DartSuppress] void webkitRequestFullscreen(); | |
| 457 }; | 443 }; |
| 458 | 444 |
| 459 [DartSupplemental] | 445 [DartSupplemental] interface CSSStyleDeclaration { |
| 460 interface CSSStyleDeclaration { | |
| 461 // Expose __propertyQuery__ a getter with a special operation in the IDL | 446 // Expose __propertyQuery__ a getter with a special operation in the IDL |
| 462 // when used with Custom=PropertyQuery will emit __propertyQuery__. | 447 // when used with Custom=PropertyQuery will emit __propertyQuery__. |
| 463 [Custom=PropertyQuery] getter boolean (DOMString name); | 448 [Custom=PropertyQuery] getter boolean (DOMString name); |
| 464 }; | 449 }; |
| 465 | 450 |
| 466 [DartSupplemental] | |
| 467 interface MIDIOutput : MIDIPort { | |
| 468 // TODO(terry): Need to support both send operations where the first param | |
| 469 // is Uint8Array or sequence<unsigned long>. For now suppress | |
| 470 // the new operation. Vijay suggestion, and I think this makes | |
| 471 // sense, change dart:html to have a send operation that takes | |
| 472 // a List<int> and have custom handler to call the correct | |
| 473 // method. The dart:blink library needs to do something else | |
| 474 // postfix the name with send_sequence (?). | |
| 475 [DartSuppress] void send(sequence<unsigned long> data, optional double times
tamp); | |
| 476 }; | |
| 477 | |
| 478 Element implements GlobalEventHandlers; | 451 Element implements GlobalEventHandlers; |
| OLD | NEW |