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

Side by Side Diff: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

Issue 18054021: Fixing up DOM constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 library dart.dom.web_gl; 1 library dart.dom.web_gl;
2 2
3 import 'dart:collection'; 3 import 'dart:collection';
4 import 'dart:_collection-dev'; 4 import 'dart:_collection-dev';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure ToJS; 8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure ToJS;
9 import 'dart:_foreign_helper' show JS; 9 import 'dart:_foreign_helper' show JS;
10 import 'dart:_interceptors' show Interceptor, JSExtendableArray; 10 import 'dart:_interceptors' show Interceptor, JSExtendableArray;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 const int VIEWPORT = RenderingContext.VIEWPORT; 318 const int VIEWPORT = RenderingContext.VIEWPORT;
319 const int ZERO = RenderingContext.ZERO; 319 const int ZERO = RenderingContext.ZERO;
320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
321 // for details. All rights reserved. Use of this source code is governed by a 321 // for details. All rights reserved. Use of this source code is governed by a
322 // BSD-style license that can be found in the LICENSE file. 322 // BSD-style license that can be found in the LICENSE file.
323 323
324 324
325 @DocsEditable 325 @DocsEditable
326 @DomName('WebGLActiveInfo') 326 @DomName('WebGLActiveInfo')
327 @Unstable 327 @Unstable
328 class ActiveInfo native "WebGLActiveInfo" { 328 class ActiveInfo extends Interceptor native "WebGLActiveInfo" {
329 329
330 @DomName('WebGLActiveInfo.name') 330 @DomName('WebGLActiveInfo.name')
331 @DocsEditable 331 @DocsEditable
332 final String name; 332 final String name;
333 333
334 @DomName('WebGLActiveInfo.size') 334 @DomName('WebGLActiveInfo.size')
335 @DocsEditable 335 @DocsEditable
336 final int size; 336 final int size;
337 337
338 @DomName('WebGLActiveInfo.type') 338 @DomName('WebGLActiveInfo.type')
339 @DocsEditable 339 @DocsEditable
340 final int type; 340 final int type;
341 } 341 }
342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
343 // for details. All rights reserved. Use of this source code is governed by a 343 // for details. All rights reserved. Use of this source code is governed by a
344 // BSD-style license that can be found in the LICENSE file. 344 // BSD-style license that can be found in the LICENSE file.
345 345
346 346
347 @DocsEditable 347 @DocsEditable
348 @DomName('WebGLBuffer') 348 @DomName('WebGLBuffer')
349 @Unstable 349 @Unstable
350 class Buffer native "WebGLBuffer" { 350 class Buffer extends Interceptor native "WebGLBuffer" {
351 } 351 }
352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
353 // for details. All rights reserved. Use of this source code is governed by a 353 // for details. All rights reserved. Use of this source code is governed by a
354 // BSD-style license that can be found in the LICENSE file. 354 // BSD-style license that can be found in the LICENSE file.
355 355
356 356
357 @DocsEditable 357 @DocsEditable
358 @DomName('WebGLCompressedTextureATC') 358 @DomName('WebGLCompressedTextureATC')
359 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc / 359 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc /
360 @Experimental 360 @Experimental
361 class CompressedTextureAtc native "WebGLCompressedTextureATC" { 361 class CompressedTextureAtc extends Interceptor native "WebGLCompressedTextureATC " {
362 362
363 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') 363 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL')
364 @DocsEditable 364 @DocsEditable
365 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; 365 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93;
366 366
367 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL') 367 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL')
368 @DocsEditable 368 @DocsEditable
369 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; 369 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
370 370
371 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') 371 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL')
372 @DocsEditable 372 @DocsEditable
373 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; 373 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
374 } 374 }
375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
376 // for details. All rights reserved. Use of this source code is governed by a 376 // for details. All rights reserved. Use of this source code is governed by a
377 // BSD-style license that can be found in the LICENSE file. 377 // BSD-style license that can be found in the LICENSE file.
378 378
379 379
380 @DocsEditable 380 @DocsEditable
381 @DomName('WebGLCompressedTexturePVRTC') 381 @DomName('WebGLCompressedTexturePVRTC')
382 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/ 382 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/
383 @Experimental // experimental 383 @Experimental // experimental
384 class CompressedTexturePvrtc native "WebGLCompressedTexturePVRTC" { 384 class CompressedTexturePvrtc extends Interceptor native "WebGLCompressedTextureP VRTC" {
385 385
386 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') 386 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG')
387 @DocsEditable 387 @DocsEditable
388 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; 388 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03;
389 389
390 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') 390 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG')
391 @DocsEditable 391 @DocsEditable
392 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; 392 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
393 393
394 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') 394 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG')
395 @DocsEditable 395 @DocsEditable
396 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; 396 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01;
397 397
398 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') 398 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG')
399 @DocsEditable 399 @DocsEditable
400 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; 400 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
401 } 401 }
402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
403 // for details. All rights reserved. Use of this source code is governed by a 403 // for details. All rights reserved. Use of this source code is governed by a
404 // BSD-style license that can be found in the LICENSE file. 404 // BSD-style license that can be found in the LICENSE file.
405 405
406 406
407 @DocsEditable 407 @DocsEditable
408 @DomName('WebGLCompressedTextureS3TC') 408 @DomName('WebGLCompressedTextureS3TC')
409 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/ 409 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/
410 @Experimental // experimental 410 @Experimental // experimental
411 class CompressedTextureS3TC native "WebGLCompressedTextureS3TC" { 411 class CompressedTextureS3TC extends Interceptor native "WebGLCompressedTextureS3 TC" {
412 412
413 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') 413 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT')
414 @DocsEditable 414 @DocsEditable
415 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 415 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
416 416
417 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') 417 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT')
418 @DocsEditable 418 @DocsEditable
419 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 419 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
420 420
421 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') 421 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT')
422 @DocsEditable 422 @DocsEditable
423 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 423 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
424 424
425 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') 425 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT')
426 @DocsEditable 426 @DocsEditable
427 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 427 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
428 } 428 }
429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
430 // for details. All rights reserved. Use of this source code is governed by a 430 // for details. All rights reserved. Use of this source code is governed by a
431 // BSD-style license that can be found in the LICENSE file. 431 // BSD-style license that can be found in the LICENSE file.
432 432
433 433
434 @DocsEditable 434 @DocsEditable
435 @DomName('WebGLContextAttributes') 435 @DomName('WebGLContextAttributes')
436 @Unstable 436 @Unstable
437 class ContextAttributes native "WebGLContextAttributes" { 437 class ContextAttributes extends Interceptor native "WebGLContextAttributes" {
438 438
439 @DomName('WebGLContextAttributes.alpha') 439 @DomName('WebGLContextAttributes.alpha')
440 @DocsEditable 440 @DocsEditable
441 bool alpha; 441 bool alpha;
442 442
443 @DomName('WebGLContextAttributes.antialias') 443 @DomName('WebGLContextAttributes.antialias')
444 @DocsEditable 444 @DocsEditable
445 bool antialias; 445 bool antialias;
446 446
447 @DomName('WebGLContextAttributes.depth') 447 @DomName('WebGLContextAttributes.depth')
(...skipping 14 matching lines...) Expand all
462 } 462 }
463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
464 // for details. All rights reserved. Use of this source code is governed by a 464 // for details. All rights reserved. Use of this source code is governed by a
465 // BSD-style license that can be found in the LICENSE file. 465 // BSD-style license that can be found in the LICENSE file.
466 466
467 467
468 @DocsEditable 468 @DocsEditable
469 @DomName('WebGLContextEvent') 469 @DomName('WebGLContextEvent')
470 @Unstable 470 @Unstable
471 class ContextEvent extends Event native "WebGLContextEvent" { 471 class ContextEvent extends Event native "WebGLContextEvent" {
472 // To suppress missing implicit constructor warnings.
473 factory ContextEvent._() { throw new UnsupportedError("Not supported"); }
472 474
473 @DomName('WebGLContextEvent.statusMessage') 475 @DomName('WebGLContextEvent.statusMessage')
474 @DocsEditable 476 @DocsEditable
475 final String statusMessage; 477 final String statusMessage;
476 } 478 }
477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
478 // for details. All rights reserved. Use of this source code is governed by a 480 // for details. All rights reserved. Use of this source code is governed by a
479 // BSD-style license that can be found in the LICENSE file. 481 // BSD-style license that can be found in the LICENSE file.
480 482
481 483
482 @DocsEditable 484 @DocsEditable
483 @DomName('WebGLDebugRendererInfo') 485 @DomName('WebGLDebugRendererInfo')
484 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ 486 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/
485 @Experimental // experimental 487 @Experimental // experimental
486 class DebugRendererInfo native "WebGLDebugRendererInfo" { 488 class DebugRendererInfo extends Interceptor native "WebGLDebugRendererInfo" {
487 489
488 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') 490 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL')
489 @DocsEditable 491 @DocsEditable
490 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 492 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
491 493
492 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') 494 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL')
493 @DocsEditable 495 @DocsEditable
494 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 496 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
495 } 497 }
496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
497 // for details. All rights reserved. Use of this source code is governed by a 499 // for details. All rights reserved. Use of this source code is governed by a
498 // BSD-style license that can be found in the LICENSE file. 500 // BSD-style license that can be found in the LICENSE file.
499 501
500 502
501 @DocsEditable 503 @DocsEditable
502 @DomName('WebGLDebugShaders') 504 @DomName('WebGLDebugShaders')
503 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ 505 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/
504 @Experimental // experimental 506 @Experimental // experimental
505 class DebugShaders native "WebGLDebugShaders" { 507 class DebugShaders extends Interceptor native "WebGLDebugShaders" {
506 508
507 @DomName('WebGLDebugShaders.getTranslatedShaderSource') 509 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
508 @DocsEditable 510 @DocsEditable
509 String getTranslatedShaderSource(Shader shader) native; 511 String getTranslatedShaderSource(Shader shader) native;
510 } 512 }
511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
512 // for details. All rights reserved. Use of this source code is governed by a 514 // for details. All rights reserved. Use of this source code is governed by a
513 // BSD-style license that can be found in the LICENSE file. 515 // BSD-style license that can be found in the LICENSE file.
514 516
515 517
516 @DocsEditable 518 @DocsEditable
517 @DomName('WebGLDepthTexture') 519 @DomName('WebGLDepthTexture')
518 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 520 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/
519 @Experimental // experimental 521 @Experimental // experimental
520 class DepthTexture native "WebGLDepthTexture" { 522 class DepthTexture extends Interceptor native "WebGLDepthTexture" {
521 523
522 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') 524 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL')
523 @DocsEditable 525 @DocsEditable
524 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 526 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
525 } 527 }
526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
527 // for details. All rights reserved. Use of this source code is governed by a 529 // for details. All rights reserved. Use of this source code is governed by a
528 // BSD-style license that can be found in the LICENSE file. 530 // BSD-style license that can be found in the LICENSE file.
529 531
530 532
531 @DocsEditable 533 @DocsEditable
532 @DomName('EXTDrawBuffers') 534 @DomName('EXTDrawBuffers')
533 // http://www.khronos.org/registry/webgl/specs/latest/ 535 // http://www.khronos.org/registry/webgl/specs/latest/
534 @Experimental // stable 536 @Experimental // stable
535 class ExtDrawBuffers native "EXTDrawBuffers" { 537 class ExtDrawBuffers extends Interceptor native "EXTDrawBuffers" {
536 538
537 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT') 539 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT')
538 @DocsEditable 540 @DocsEditable
539 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0; 541 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0;
540 542
541 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT') 543 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT')
542 @DocsEditable 544 @DocsEditable
543 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA; 545 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA;
544 546
545 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT11_EXT') 547 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT11_EXT')
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 } 679 }
678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
679 // for details. All rights reserved. Use of this source code is governed by a 681 // for details. All rights reserved. Use of this source code is governed by a
680 // BSD-style license that can be found in the LICENSE file. 682 // BSD-style license that can be found in the LICENSE file.
681 683
682 684
683 @DocsEditable 685 @DocsEditable
684 @DomName('EXTFragDepth') 686 @DomName('EXTFragDepth')
685 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ 687 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/
686 @Experimental 688 @Experimental
687 class ExtFragDepth native "EXTFragDepth" { 689 class ExtFragDepth extends Interceptor native "EXTFragDepth" {
688 } 690 }
689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
690 // for details. All rights reserved. Use of this source code is governed by a 692 // for details. All rights reserved. Use of this source code is governed by a
691 // BSD-style license that can be found in the LICENSE file. 693 // BSD-style license that can be found in the LICENSE file.
692 694
693 695
694 @DocsEditable 696 @DocsEditable
695 @DomName('EXTTextureFilterAnisotropic') 697 @DomName('EXTTextureFilterAnisotropic')
696 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/ 698 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/
697 @Experimental 699 @Experimental
698 class ExtTextureFilterAnisotropic native "EXTTextureFilterAnisotropic" { 700 class ExtTextureFilterAnisotropic extends Interceptor native "EXTTextureFilterAn isotropic" {
699 701
700 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') 702 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT')
701 @DocsEditable 703 @DocsEditable
702 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 704 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
703 705
704 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') 706 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT')
705 @DocsEditable 707 @DocsEditable
706 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 708 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
707 } 709 }
708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 710 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
709 // for details. All rights reserved. Use of this source code is governed by a 711 // for details. All rights reserved. Use of this source code is governed by a
710 // BSD-style license that can be found in the LICENSE file. 712 // BSD-style license that can be found in the LICENSE file.
711 713
712 714
713 @DocsEditable 715 @DocsEditable
714 @DomName('WebGLFramebuffer') 716 @DomName('WebGLFramebuffer')
715 @Unstable 717 @Unstable
716 class Framebuffer native "WebGLFramebuffer" { 718 class Framebuffer extends Interceptor native "WebGLFramebuffer" {
717 } 719 }
718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
719 // for details. All rights reserved. Use of this source code is governed by a 721 // for details. All rights reserved. Use of this source code is governed by a
720 // BSD-style license that can be found in the LICENSE file. 722 // BSD-style license that can be found in the LICENSE file.
721 723
722 724
723 @DocsEditable 725 @DocsEditable
724 @DomName('WebGLLoseContext') 726 @DomName('WebGLLoseContext')
725 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 727 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
726 @Experimental 728 @Experimental
727 class LoseContext native "WebGLLoseContext" { 729 class LoseContext extends Interceptor native "WebGLLoseContext" {
728 730
729 @DomName('WebGLLoseContext.loseContext') 731 @DomName('WebGLLoseContext.loseContext')
730 @DocsEditable 732 @DocsEditable
731 void loseContext() native; 733 void loseContext() native;
732 734
733 @DomName('WebGLLoseContext.restoreContext') 735 @DomName('WebGLLoseContext.restoreContext')
734 @DocsEditable 736 @DocsEditable
735 void restoreContext() native; 737 void restoreContext() native;
736 } 738 }
737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
738 // for details. All rights reserved. Use of this source code is governed by a 740 // for details. All rights reserved. Use of this source code is governed by a
739 // BSD-style license that can be found in the LICENSE file. 741 // BSD-style license that can be found in the LICENSE file.
740 742
741 743
742 @DocsEditable 744 @DocsEditable
743 @DomName('OESElementIndexUint') 745 @DomName('OESElementIndexUint')
744 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ 746 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/
745 @Experimental // experimental 747 @Experimental // experimental
746 class OesElementIndexUint native "OESElementIndexUint" { 748 class OesElementIndexUint extends Interceptor native "OESElementIndexUint" {
747 } 749 }
748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
749 // for details. All rights reserved. Use of this source code is governed by a 751 // for details. All rights reserved. Use of this source code is governed by a
750 // BSD-style license that can be found in the LICENSE file. 752 // BSD-style license that can be found in the LICENSE file.
751 753
752 754
753 @DocsEditable 755 @DocsEditable
754 @DomName('OESStandardDerivatives') 756 @DomName('OESStandardDerivatives')
755 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ 757 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/
756 @Experimental // experimental 758 @Experimental // experimental
757 class OesStandardDerivatives native "OESStandardDerivatives" { 759 class OesStandardDerivatives extends Interceptor native "OESStandardDerivatives" {
758 760
759 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') 761 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES')
760 @DocsEditable 762 @DocsEditable
761 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 763 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
762 } 764 }
763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
764 // for details. All rights reserved. Use of this source code is governed by a 766 // for details. All rights reserved. Use of this source code is governed by a
765 // BSD-style license that can be found in the LICENSE file. 767 // BSD-style license that can be found in the LICENSE file.
766 768
767 769
768 @DocsEditable 770 @DocsEditable
769 @DomName('OESTextureFloat') 771 @DomName('OESTextureFloat')
770 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 772 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/
771 @Experimental // experimental 773 @Experimental // experimental
772 class OesTextureFloat native "OESTextureFloat" { 774 class OesTextureFloat extends Interceptor native "OESTextureFloat" {
773 } 775 }
774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
775 // for details. All rights reserved. Use of this source code is governed by a 777 // for details. All rights reserved. Use of this source code is governed by a
776 // BSD-style license that can be found in the LICENSE file. 778 // BSD-style license that can be found in the LICENSE file.
777 779
778 780
779 @DocsEditable 781 @DocsEditable
780 @DomName('OESTextureFloatLinear') 782 @DomName('OESTextureFloatLinear')
781 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ 783 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/
782 @Experimental 784 @Experimental
783 class OesTextureFloatLinear native "OESTextureFloatLinear" { 785 class OesTextureFloatLinear extends Interceptor native "OESTextureFloatLinear" {
784 } 786 }
785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
786 // for details. All rights reserved. Use of this source code is governed by a 788 // for details. All rights reserved. Use of this source code is governed by a
787 // BSD-style license that can be found in the LICENSE file. 789 // BSD-style license that can be found in the LICENSE file.
788 790
789 791
790 @DocsEditable 792 @DocsEditable
791 @DomName('OESTextureHalfFloat') 793 @DomName('OESTextureHalfFloat')
792 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ 794 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
793 @Experimental // experimental 795 @Experimental // experimental
794 class OesTextureHalfFloat native "OESTextureHalfFloat" { 796 class OesTextureHalfFloat extends Interceptor native "OESTextureHalfFloat" {
795 797
796 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') 798 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES')
797 @DocsEditable 799 @DocsEditable
798 static const int HALF_FLOAT_OES = 0x8D61; 800 static const int HALF_FLOAT_OES = 0x8D61;
799 } 801 }
800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
801 // for details. All rights reserved. Use of this source code is governed by a 803 // for details. All rights reserved. Use of this source code is governed by a
802 // BSD-style license that can be found in the LICENSE file. 804 // BSD-style license that can be found in the LICENSE file.
803 805
804 806
805 @DocsEditable 807 @DocsEditable
806 @DomName('OESTextureHalfFloatLinear') 808 @DomName('OESTextureHalfFloatLinear')
807 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/ 809 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/
808 @Experimental 810 @Experimental
809 class OesTextureHalfFloatLinear native "OESTextureHalfFloatLinear" { 811 class OesTextureHalfFloatLinear extends Interceptor native "OESTextureHalfFloatL inear" {
810 } 812 }
811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 813 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
812 // for details. All rights reserved. Use of this source code is governed by a 814 // for details. All rights reserved. Use of this source code is governed by a
813 // BSD-style license that can be found in the LICENSE file. 815 // BSD-style license that can be found in the LICENSE file.
814 816
815 817
816 @DocsEditable 818 @DocsEditable
817 @DomName('OESVertexArrayObject') 819 @DomName('OESVertexArrayObject')
818 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 820 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
819 @Experimental // experimental 821 @Experimental // experimental
820 class OesVertexArrayObject native "OESVertexArrayObject" { 822 class OesVertexArrayObject extends Interceptor native "OESVertexArrayObject" {
821 823
822 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') 824 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES')
823 @DocsEditable 825 @DocsEditable
824 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 826 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
825 827
826 @JSName('bindVertexArrayOES') 828 @JSName('bindVertexArrayOES')
827 @DomName('OESVertexArrayObject.bindVertexArrayOES') 829 @DomName('OESVertexArrayObject.bindVertexArrayOES')
828 @DocsEditable 830 @DocsEditable
829 void bindVertexArray(VertexArrayObject arrayObject) native; 831 void bindVertexArray(VertexArrayObject arrayObject) native;
830 832
(...skipping 13 matching lines...) Expand all
844 bool isVertexArray(VertexArrayObject arrayObject) native; 846 bool isVertexArray(VertexArrayObject arrayObject) native;
845 } 847 }
846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
847 // for details. All rights reserved. Use of this source code is governed by a 849 // for details. All rights reserved. Use of this source code is governed by a
848 // BSD-style license that can be found in the LICENSE file. 850 // BSD-style license that can be found in the LICENSE file.
849 851
850 852
851 @DocsEditable 853 @DocsEditable
852 @DomName('WebGLProgram') 854 @DomName('WebGLProgram')
853 @Unstable 855 @Unstable
854 class Program native "WebGLProgram" { 856 class Program extends Interceptor native "WebGLProgram" {
855 } 857 }
856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
857 // for details. All rights reserved. Use of this source code is governed by a 859 // for details. All rights reserved. Use of this source code is governed by a
858 // BSD-style license that can be found in the LICENSE file. 860 // BSD-style license that can be found in the LICENSE file.
859 861
860 862
861 @DocsEditable 863 @DocsEditable
862 @DomName('WebGLRenderbuffer') 864 @DomName('WebGLRenderbuffer')
863 @Unstable 865 @Unstable
864 class Renderbuffer native "WebGLRenderbuffer" { 866 class Renderbuffer extends Interceptor native "WebGLRenderbuffer" {
865 } 867 }
866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
867 // for details. All rights reserved. Use of this source code is governed by a 869 // for details. All rights reserved. Use of this source code is governed by a
868 // BSD-style license that can be found in the LICENSE file. 870 // BSD-style license that can be found in the LICENSE file.
869 871
870 872
871 @DocsEditable 873 @DocsEditable
872 @DomName('WebGLRenderingContext') 874 @DomName('WebGLRenderingContext')
873 @SupportedBrowser(SupportedBrowser.CHROME) 875 @SupportedBrowser(SupportedBrowser.CHROME)
874 @SupportedBrowser(SupportedBrowser.FIREFOX) 876 @SupportedBrowser(SupportedBrowser.FIREFOX)
875 @Experimental 877 @Experimental
876 @Unstable 878 @Unstable
877 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont ext" { 879 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont ext" {
880 // To suppress missing implicit constructor warnings.
881 factory RenderingContext._() { throw new UnsupportedError("Not supported"); }
878 882
879 /// Checks if this type is supported on the current platform. 883 /// Checks if this type is supported on the current platform.
880 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); 884 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)');
881 885
882 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') 886 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES')
883 @DocsEditable 887 @DocsEditable
884 static const int ACTIVE_ATTRIBUTES = 0x8B89; 888 static const int ACTIVE_ATTRIBUTES = 0x8B89;
885 889
886 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') 890 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE')
887 @DocsEditable 891 @DocsEditable
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2715 @DocsEditable 2719 @DocsEditable
2716 void viewport(int x, int y, int width, int height) native; 2720 void viewport(int x, int y, int width, int height) native;
2717 } 2721 }
2718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2719 // for details. All rights reserved. Use of this source code is governed by a 2723 // for details. All rights reserved. Use of this source code is governed by a
2720 // BSD-style license that can be found in the LICENSE file. 2724 // BSD-style license that can be found in the LICENSE file.
2721 2725
2722 2726
2723 @DocsEditable 2727 @DocsEditable
2724 @DomName('WebGLShader') 2728 @DomName('WebGLShader')
2725 class Shader native "WebGLShader" { 2729 class Shader extends Interceptor native "WebGLShader" {
2726 } 2730 }
2727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2728 // for details. All rights reserved. Use of this source code is governed by a 2732 // for details. All rights reserved. Use of this source code is governed by a
2729 // BSD-style license that can be found in the LICENSE file. 2733 // BSD-style license that can be found in the LICENSE file.
2730 2734
2731 2735
2732 @DocsEditable 2736 @DocsEditable
2733 @DomName('WebGLShaderPrecisionFormat') 2737 @DomName('WebGLShaderPrecisionFormat')
2734 class ShaderPrecisionFormat native "WebGLShaderPrecisionFormat" { 2738 class ShaderPrecisionFormat extends Interceptor native "WebGLShaderPrecisionForm at" {
2735 2739
2736 @DomName('WebGLShaderPrecisionFormat.precision') 2740 @DomName('WebGLShaderPrecisionFormat.precision')
2737 @DocsEditable 2741 @DocsEditable
2738 final int precision; 2742 final int precision;
2739 2743
2740 @DomName('WebGLShaderPrecisionFormat.rangeMax') 2744 @DomName('WebGLShaderPrecisionFormat.rangeMax')
2741 @DocsEditable 2745 @DocsEditable
2742 final int rangeMax; 2746 final int rangeMax;
2743 2747
2744 @DomName('WebGLShaderPrecisionFormat.rangeMin') 2748 @DomName('WebGLShaderPrecisionFormat.rangeMin')
2745 @DocsEditable 2749 @DocsEditable
2746 final int rangeMin; 2750 final int rangeMin;
2747 } 2751 }
2748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2749 // for details. All rights reserved. Use of this source code is governed by a 2753 // for details. All rights reserved. Use of this source code is governed by a
2750 // BSD-style license that can be found in the LICENSE file. 2754 // BSD-style license that can be found in the LICENSE file.
2751 2755
2752 2756
2753 @DocsEditable 2757 @DocsEditable
2754 @DomName('WebGLTexture') 2758 @DomName('WebGLTexture')
2755 class Texture native "WebGLTexture" { 2759 class Texture extends Interceptor native "WebGLTexture" {
2756 } 2760 }
2757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2758 // for details. All rights reserved. Use of this source code is governed by a 2762 // for details. All rights reserved. Use of this source code is governed by a
2759 // BSD-style license that can be found in the LICENSE file. 2763 // BSD-style license that can be found in the LICENSE file.
2760 2764
2761 2765
2762 @DocsEditable 2766 @DocsEditable
2763 @DomName('WebGLUniformLocation') 2767 @DomName('WebGLUniformLocation')
2764 class UniformLocation native "WebGLUniformLocation" { 2768 class UniformLocation extends Interceptor native "WebGLUniformLocation" {
2765 } 2769 }
2766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2767 // for details. All rights reserved. Use of this source code is governed by a 2771 // for details. All rights reserved. Use of this source code is governed by a
2768 // BSD-style license that can be found in the LICENSE file. 2772 // BSD-style license that can be found in the LICENSE file.
2769 2773
2770 2774
2771 @DocsEditable 2775 @DocsEditable
2772 @DomName('WebGLVertexArrayObjectOES') 2776 @DomName('WebGLVertexArrayObjectOES')
2773 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2777 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2774 @Experimental // experimental 2778 @Experimental // experimental
2775 class VertexArrayObject native "WebGLVertexArrayObjectOES" { 2779 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" {
2776 } 2780 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698