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 17063007: Making all DOM types abstract and removing superfluous Dartium constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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; 10 import 'dart:_interceptors' show Interceptor;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 native "WebGLActiveInfo" {
329 // To suppress missing implicit constructor warnings.
330 factory ActiveInfo._() { throw new UnsupportedError("Not supported"); }
329 331
330 @DomName('WebGLActiveInfo.name') 332 @DomName('WebGLActiveInfo.name')
331 @DocsEditable 333 @DocsEditable
332 final String name; 334 final String name;
333 335
334 @DomName('WebGLActiveInfo.size') 336 @DomName('WebGLActiveInfo.size')
335 @DocsEditable 337 @DocsEditable
336 final int size; 338 final int size;
337 339
338 @DomName('WebGLActiveInfo.type') 340 @DomName('WebGLActiveInfo.type')
339 @DocsEditable 341 @DocsEditable
340 final int type; 342 final int type;
341 } 343 }
342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 344 // 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 345 // 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. 346 // BSD-style license that can be found in the LICENSE file.
345 347
346 348
347 @DocsEditable 349 @DocsEditable
348 @DomName('WebGLBuffer') 350 @DomName('WebGLBuffer')
349 @Unstable 351 @Unstable
350 class Buffer native "WebGLBuffer" { 352 class Buffer native "WebGLBuffer" {
353 // To suppress missing implicit constructor warnings.
354 factory Buffer._() { throw new UnsupportedError("Not supported"); }
351 } 355 }
352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 356 // 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 357 // 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. 358 // BSD-style license that can be found in the LICENSE file.
355 359
356 360
357 @DocsEditable 361 @DocsEditable
358 @DomName('WebGLCompressedTextureATC') 362 @DomName('WebGLCompressedTextureATC')
359 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc / 363 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc /
360 @Experimental 364 @Experimental
361 class CompressedTextureAtc native "WebGLCompressedTextureATC" { 365 class CompressedTextureAtc native "WebGLCompressedTextureATC" {
366 // To suppress missing implicit constructor warnings.
367 factory CompressedTextureAtc._() { throw new UnsupportedError("Not supported") ; }
362 368
363 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') 369 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL')
364 @DocsEditable 370 @DocsEditable
365 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; 371 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93;
366 372
367 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL') 373 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL')
368 @DocsEditable 374 @DocsEditable
369 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; 375 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
370 376
371 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') 377 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL')
372 @DocsEditable 378 @DocsEditable
373 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; 379 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
374 } 380 }
375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 381 // 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 382 // 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. 383 // BSD-style license that can be found in the LICENSE file.
378 384
379 385
380 @DocsEditable 386 @DocsEditable
381 @DomName('WebGLCompressedTexturePVRTC') 387 @DomName('WebGLCompressedTexturePVRTC')
382 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/ 388 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/
383 @Experimental // experimental 389 @Experimental // experimental
384 class CompressedTexturePvrtc native "WebGLCompressedTexturePVRTC" { 390 class CompressedTexturePvrtc native "WebGLCompressedTexturePVRTC" {
391 // To suppress missing implicit constructor warnings.
392 factory CompressedTexturePvrtc._() { throw new UnsupportedError("Not supported "); }
385 393
386 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') 394 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG')
387 @DocsEditable 395 @DocsEditable
388 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; 396 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03;
389 397
390 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') 398 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG')
391 @DocsEditable 399 @DocsEditable
392 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; 400 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
393 401
394 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') 402 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG')
395 @DocsEditable 403 @DocsEditable
396 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; 404 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01;
397 405
398 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') 406 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG')
399 @DocsEditable 407 @DocsEditable
400 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; 408 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
401 } 409 }
402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 410 // 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 411 // 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. 412 // BSD-style license that can be found in the LICENSE file.
405 413
406 414
407 @DocsEditable 415 @DocsEditable
408 @DomName('WebGLCompressedTextureS3TC') 416 @DomName('WebGLCompressedTextureS3TC')
409 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/ 417 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/
410 @Experimental // experimental 418 @Experimental // experimental
411 class CompressedTextureS3TC native "WebGLCompressedTextureS3TC" { 419 class CompressedTextureS3TC native "WebGLCompressedTextureS3TC" {
420 // To suppress missing implicit constructor warnings.
421 factory CompressedTextureS3TC._() { throw new UnsupportedError("Not supported" ); }
412 422
413 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') 423 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT')
414 @DocsEditable 424 @DocsEditable
415 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 425 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
416 426
417 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') 427 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT')
418 @DocsEditable 428 @DocsEditable
419 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 429 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
420 430
421 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') 431 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT')
422 @DocsEditable 432 @DocsEditable
423 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 433 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
424 434
425 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') 435 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT')
426 @DocsEditable 436 @DocsEditable
427 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 437 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
428 } 438 }
429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 439 // 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 440 // 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. 441 // BSD-style license that can be found in the LICENSE file.
432 442
433 443
434 @DocsEditable 444 @DocsEditable
435 @DomName('WebGLContextAttributes') 445 @DomName('WebGLContextAttributes')
436 @Unstable 446 @Unstable
437 class ContextAttributes native "WebGLContextAttributes" { 447 class ContextAttributes native "WebGLContextAttributes" {
448 // To suppress missing implicit constructor warnings.
449 factory ContextAttributes._() { throw new UnsupportedError("Not supported"); }
438 450
439 @DomName('WebGLContextAttributes.alpha') 451 @DomName('WebGLContextAttributes.alpha')
440 @DocsEditable 452 @DocsEditable
441 bool alpha; 453 bool alpha;
442 454
443 @DomName('WebGLContextAttributes.antialias') 455 @DomName('WebGLContextAttributes.antialias')
444 @DocsEditable 456 @DocsEditable
445 bool antialias; 457 bool antialias;
446 458
447 @DomName('WebGLContextAttributes.depth') 459 @DomName('WebGLContextAttributes.depth')
(...skipping 14 matching lines...) Expand all
462 } 474 }
463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 475 // 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 476 // 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. 477 // BSD-style license that can be found in the LICENSE file.
466 478
467 479
468 @DocsEditable 480 @DocsEditable
469 @DomName('WebGLContextEvent') 481 @DomName('WebGLContextEvent')
470 @Unstable 482 @Unstable
471 class ContextEvent extends Event native "WebGLContextEvent" { 483 class ContextEvent extends Event native "WebGLContextEvent" {
484 // To suppress missing implicit constructor warnings.
485 factory ContextEvent._() { throw new UnsupportedError("Not supported"); }
472 486
473 @DomName('WebGLContextEvent.statusMessage') 487 @DomName('WebGLContextEvent.statusMessage')
474 @DocsEditable 488 @DocsEditable
475 final String statusMessage; 489 final String statusMessage;
476 } 490 }
477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 491 // 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 492 // 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. 493 // BSD-style license that can be found in the LICENSE file.
480 494
481 495
482 @DocsEditable 496 @DocsEditable
483 @DomName('WebGLDebugRendererInfo') 497 @DomName('WebGLDebugRendererInfo')
484 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ 498 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/
485 @Experimental // experimental 499 @Experimental // experimental
486 class DebugRendererInfo native "WebGLDebugRendererInfo" { 500 class DebugRendererInfo native "WebGLDebugRendererInfo" {
501 // To suppress missing implicit constructor warnings.
502 factory DebugRendererInfo._() { throw new UnsupportedError("Not supported"); }
487 503
488 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') 504 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL')
489 @DocsEditable 505 @DocsEditable
490 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 506 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
491 507
492 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') 508 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL')
493 @DocsEditable 509 @DocsEditable
494 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 510 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
495 } 511 }
496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 512 // 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 513 // 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. 514 // BSD-style license that can be found in the LICENSE file.
499 515
500 516
501 @DocsEditable 517 @DocsEditable
502 @DomName('WebGLDebugShaders') 518 @DomName('WebGLDebugShaders')
503 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ 519 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/
504 @Experimental // experimental 520 @Experimental // experimental
505 class DebugShaders native "WebGLDebugShaders" { 521 class DebugShaders native "WebGLDebugShaders" {
522 // To suppress missing implicit constructor warnings.
523 factory DebugShaders._() { throw new UnsupportedError("Not supported"); }
506 524
507 @DomName('WebGLDebugShaders.getTranslatedShaderSource') 525 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
508 @DocsEditable 526 @DocsEditable
509 String getTranslatedShaderSource(Shader shader) native; 527 String getTranslatedShaderSource(Shader shader) native;
510 } 528 }
511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 529 // 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 530 // 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. 531 // BSD-style license that can be found in the LICENSE file.
514 532
515 533
516 @DocsEditable 534 @DocsEditable
517 @DomName('WebGLDepthTexture') 535 @DomName('WebGLDepthTexture')
518 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 536 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/
519 @Experimental // experimental 537 @Experimental // experimental
520 class DepthTexture native "WebGLDepthTexture" { 538 class DepthTexture native "WebGLDepthTexture" {
539 // To suppress missing implicit constructor warnings.
540 factory DepthTexture._() { throw new UnsupportedError("Not supported"); }
521 541
522 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') 542 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL')
523 @DocsEditable 543 @DocsEditable
524 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 544 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
525 } 545 }
526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 546 // 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 547 // 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. 548 // BSD-style license that can be found in the LICENSE file.
529 549
530 550
531 @DocsEditable 551 @DocsEditable
532 @DomName('EXTDrawBuffers') 552 @DomName('EXTDrawBuffers')
533 // http://www.khronos.org/registry/webgl/specs/latest/ 553 // http://www.khronos.org/registry/webgl/specs/latest/
534 @Experimental // stable 554 @Experimental // stable
535 class ExtDrawBuffers native "EXTDrawBuffers" { 555 class ExtDrawBuffers native "EXTDrawBuffers" {
556 // To suppress missing implicit constructor warnings.
557 factory ExtDrawBuffers._() { throw new UnsupportedError("Not supported"); }
536 558
537 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT') 559 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT')
538 @DocsEditable 560 @DocsEditable
539 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0; 561 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0;
540 562
541 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT') 563 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT')
542 @DocsEditable 564 @DocsEditable
543 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA; 565 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA;
544 566
545 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT11_EXT') 567 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT11_EXT')
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
674 // for details. All rights reserved. Use of this source code is governed by a 696 // for details. All rights reserved. Use of this source code is governed by a
675 // BSD-style license that can be found in the LICENSE file. 697 // BSD-style license that can be found in the LICENSE file.
676 698
677 699
678 @DocsEditable 700 @DocsEditable
679 @DomName('EXTFragDepth') 701 @DomName('EXTFragDepth')
680 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ 702 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/
681 @Experimental 703 @Experimental
682 class ExtFragDepth native "EXTFragDepth" { 704 class ExtFragDepth native "EXTFragDepth" {
705 // To suppress missing implicit constructor warnings.
706 factory ExtFragDepth._() { throw new UnsupportedError("Not supported"); }
683 } 707 }
684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
685 // for details. All rights reserved. Use of this source code is governed by a 709 // for details. All rights reserved. Use of this source code is governed by a
686 // BSD-style license that can be found in the LICENSE file. 710 // BSD-style license that can be found in the LICENSE file.
687 711
688 712
689 @DocsEditable 713 @DocsEditable
690 @DomName('EXTTextureFilterAnisotropic') 714 @DomName('EXTTextureFilterAnisotropic')
691 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/ 715 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/
692 @Experimental 716 @Experimental
693 class ExtTextureFilterAnisotropic native "EXTTextureFilterAnisotropic" { 717 class ExtTextureFilterAnisotropic native "EXTTextureFilterAnisotropic" {
718 // To suppress missing implicit constructor warnings.
719 factory ExtTextureFilterAnisotropic._() { throw new UnsupportedError("Not supp orted"); }
694 720
695 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') 721 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT')
696 @DocsEditable 722 @DocsEditable
697 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 723 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
698 724
699 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') 725 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT')
700 @DocsEditable 726 @DocsEditable
701 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 727 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
702 } 728 }
703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 729 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
704 // for details. All rights reserved. Use of this source code is governed by a 730 // for details. All rights reserved. Use of this source code is governed by a
705 // BSD-style license that can be found in the LICENSE file. 731 // BSD-style license that can be found in the LICENSE file.
706 732
707 733
708 @DocsEditable 734 @DocsEditable
709 @DomName('WebGLFramebuffer') 735 @DomName('WebGLFramebuffer')
710 @Unstable 736 @Unstable
711 class Framebuffer native "WebGLFramebuffer" { 737 class Framebuffer native "WebGLFramebuffer" {
738 // To suppress missing implicit constructor warnings.
739 factory Framebuffer._() { throw new UnsupportedError("Not supported"); }
712 } 740 }
713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
714 // for details. All rights reserved. Use of this source code is governed by a 742 // for details. All rights reserved. Use of this source code is governed by a
715 // BSD-style license that can be found in the LICENSE file. 743 // BSD-style license that can be found in the LICENSE file.
716 744
717 745
718 @DocsEditable 746 @DocsEditable
719 @DomName('WebGLLoseContext') 747 @DomName('WebGLLoseContext')
720 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 748 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
721 @Experimental 749 @Experimental
722 class LoseContext native "WebGLLoseContext" { 750 class LoseContext native "WebGLLoseContext" {
751 // To suppress missing implicit constructor warnings.
752 factory LoseContext._() { throw new UnsupportedError("Not supported"); }
723 753
724 @DomName('WebGLLoseContext.loseContext') 754 @DomName('WebGLLoseContext.loseContext')
725 @DocsEditable 755 @DocsEditable
726 void loseContext() native; 756 void loseContext() native;
727 757
728 @DomName('WebGLLoseContext.restoreContext') 758 @DomName('WebGLLoseContext.restoreContext')
729 @DocsEditable 759 @DocsEditable
730 void restoreContext() native; 760 void restoreContext() native;
731 } 761 }
732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 762 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
733 // for details. All rights reserved. Use of this source code is governed by a 763 // for details. All rights reserved. Use of this source code is governed by a
734 // BSD-style license that can be found in the LICENSE file. 764 // BSD-style license that can be found in the LICENSE file.
735 765
736 766
737 @DocsEditable 767 @DocsEditable
738 @DomName('OESElementIndexUint') 768 @DomName('OESElementIndexUint')
739 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ 769 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/
740 @Experimental // experimental 770 @Experimental // experimental
741 class OesElementIndexUint native "OESElementIndexUint" { 771 class OesElementIndexUint native "OESElementIndexUint" {
772 // To suppress missing implicit constructor warnings.
773 factory OesElementIndexUint._() { throw new UnsupportedError("Not supported"); }
742 } 774 }
743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 775 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
744 // for details. All rights reserved. Use of this source code is governed by a 776 // for details. All rights reserved. Use of this source code is governed by a
745 // BSD-style license that can be found in the LICENSE file. 777 // BSD-style license that can be found in the LICENSE file.
746 778
747 779
748 @DocsEditable 780 @DocsEditable
749 @DomName('OESStandardDerivatives') 781 @DomName('OESStandardDerivatives')
750 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ 782 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/
751 @Experimental // experimental 783 @Experimental // experimental
752 class OesStandardDerivatives native "OESStandardDerivatives" { 784 class OesStandardDerivatives native "OESStandardDerivatives" {
785 // To suppress missing implicit constructor warnings.
786 factory OesStandardDerivatives._() { throw new UnsupportedError("Not supported "); }
753 787
754 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') 788 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES')
755 @DocsEditable 789 @DocsEditable
756 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 790 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
757 } 791 }
758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 792 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
759 // for details. All rights reserved. Use of this source code is governed by a 793 // for details. All rights reserved. Use of this source code is governed by a
760 // BSD-style license that can be found in the LICENSE file. 794 // BSD-style license that can be found in the LICENSE file.
761 795
762 796
763 @DocsEditable 797 @DocsEditable
764 @DomName('OESTextureFloat') 798 @DomName('OESTextureFloat')
765 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 799 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/
766 @Experimental // experimental 800 @Experimental // experimental
767 class OesTextureFloat native "OESTextureFloat" { 801 class OesTextureFloat native "OESTextureFloat" {
802 // To suppress missing implicit constructor warnings.
803 factory OesTextureFloat._() { throw new UnsupportedError("Not supported"); }
768 } 804 }
769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
770 // for details. All rights reserved. Use of this source code is governed by a 806 // for details. All rights reserved. Use of this source code is governed by a
771 // BSD-style license that can be found in the LICENSE file. 807 // BSD-style license that can be found in the LICENSE file.
772 808
773 809
774 @DocsEditable 810 @DocsEditable
775 @DomName('OESTextureFloatLinear') 811 @DomName('OESTextureFloatLinear')
776 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ 812 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/
777 @Experimental 813 @Experimental
778 class OesTextureFloatLinear native "OESTextureFloatLinear" { 814 class OesTextureFloatLinear native "OESTextureFloatLinear" {
815 // To suppress missing implicit constructor warnings.
816 factory OesTextureFloatLinear._() { throw new UnsupportedError("Not supported" ); }
779 } 817 }
780 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
781 // for details. All rights reserved. Use of this source code is governed by a 819 // for details. All rights reserved. Use of this source code is governed by a
782 // BSD-style license that can be found in the LICENSE file. 820 // BSD-style license that can be found in the LICENSE file.
783 821
784 822
785 @DocsEditable 823 @DocsEditable
786 @DomName('OESTextureHalfFloat') 824 @DomName('OESTextureHalfFloat')
787 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ 825 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
788 @Experimental // experimental 826 @Experimental // experimental
789 class OesTextureHalfFloat native "OESTextureHalfFloat" { 827 class OesTextureHalfFloat native "OESTextureHalfFloat" {
828 // To suppress missing implicit constructor warnings.
829 factory OesTextureHalfFloat._() { throw new UnsupportedError("Not supported"); }
790 830
791 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') 831 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES')
792 @DocsEditable 832 @DocsEditable
793 static const int HALF_FLOAT_OES = 0x8D61; 833 static const int HALF_FLOAT_OES = 0x8D61;
794 } 834 }
795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 835 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
796 // for details. All rights reserved. Use of this source code is governed by a 836 // for details. All rights reserved. Use of this source code is governed by a
797 // BSD-style license that can be found in the LICENSE file. 837 // BSD-style license that can be found in the LICENSE file.
798 838
799 839
800 @DocsEditable 840 @DocsEditable
801 @DomName('OESTextureHalfFloatLinear') 841 @DomName('OESTextureHalfFloatLinear')
802 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/ 842 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/
803 @Experimental 843 @Experimental
804 class OesTextureHalfFloatLinear native "OESTextureHalfFloatLinear" { 844 class OesTextureHalfFloatLinear native "OESTextureHalfFloatLinear" {
845 // To suppress missing implicit constructor warnings.
846 factory OesTextureHalfFloatLinear._() { throw new UnsupportedError("Not suppor ted"); }
805 } 847 }
806 // 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
807 // 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
808 // BSD-style license that can be found in the LICENSE file. 850 // BSD-style license that can be found in the LICENSE file.
809 851
810 852
811 @DocsEditable 853 @DocsEditable
812 @DomName('OESVertexArrayObject') 854 @DomName('OESVertexArrayObject')
813 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 855 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
814 @Experimental // experimental 856 @Experimental // experimental
815 class OesVertexArrayObject native "OESVertexArrayObject" { 857 class OesVertexArrayObject native "OESVertexArrayObject" {
858 // To suppress missing implicit constructor warnings.
859 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported") ; }
816 860
817 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') 861 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES')
818 @DocsEditable 862 @DocsEditable
819 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 863 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
820 864
821 @JSName('bindVertexArrayOES') 865 @JSName('bindVertexArrayOES')
822 @DomName('OESVertexArrayObject.bindVertexArrayOES') 866 @DomName('OESVertexArrayObject.bindVertexArrayOES')
823 @DocsEditable 867 @DocsEditable
824 void bindVertexArray(VertexArrayObject arrayObject) native; 868 void bindVertexArray(VertexArrayObject arrayObject) native;
825 869
(...skipping 14 matching lines...) Expand all
840 } 884 }
841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
842 // for details. All rights reserved. Use of this source code is governed by a 886 // for details. All rights reserved. Use of this source code is governed by a
843 // BSD-style license that can be found in the LICENSE file. 887 // BSD-style license that can be found in the LICENSE file.
844 888
845 889
846 @DocsEditable 890 @DocsEditable
847 @DomName('WebGLProgram') 891 @DomName('WebGLProgram')
848 @Unstable 892 @Unstable
849 class Program native "WebGLProgram" { 893 class Program native "WebGLProgram" {
894 // To suppress missing implicit constructor warnings.
895 factory Program._() { throw new UnsupportedError("Not supported"); }
850 } 896 }
851 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
852 // for details. All rights reserved. Use of this source code is governed by a 898 // for details. All rights reserved. Use of this source code is governed by a
853 // BSD-style license that can be found in the LICENSE file. 899 // BSD-style license that can be found in the LICENSE file.
854 900
855 901
856 @DocsEditable 902 @DocsEditable
857 @DomName('WebGLRenderbuffer') 903 @DomName('WebGLRenderbuffer')
858 @Unstable 904 @Unstable
859 class Renderbuffer native "WebGLRenderbuffer" { 905 class Renderbuffer native "WebGLRenderbuffer" {
906 // To suppress missing implicit constructor warnings.
907 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); }
860 } 908 }
861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
862 // for details. All rights reserved. Use of this source code is governed by a 910 // for details. All rights reserved. Use of this source code is governed by a
863 // BSD-style license that can be found in the LICENSE file. 911 // BSD-style license that can be found in the LICENSE file.
864 912
865 913
866 @DocsEditable 914 @DocsEditable
867 @DomName('WebGLRenderingContext') 915 @DomName('WebGLRenderingContext')
868 @SupportedBrowser(SupportedBrowser.CHROME) 916 @SupportedBrowser(SupportedBrowser.CHROME)
869 @SupportedBrowser(SupportedBrowser.FIREFOX) 917 @SupportedBrowser(SupportedBrowser.FIREFOX)
870 @Experimental 918 @Experimental
871 @Unstable 919 @Unstable
872 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont ext" { 920 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont ext" {
921 // To suppress missing implicit constructor warnings.
922 factory RenderingContext._() { throw new UnsupportedError("Not supported"); }
873 923
874 /// Checks if this type is supported on the current platform. 924 /// Checks if this type is supported on the current platform.
875 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); 925 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)');
876 926
877 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') 927 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES')
878 @DocsEditable 928 @DocsEditable
879 static const int ACTIVE_ATTRIBUTES = 0x8B89; 929 static const int ACTIVE_ATTRIBUTES = 0x8B89;
880 930
881 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') 931 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE')
882 @DocsEditable 932 @DocsEditable
(...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 void viewport(int x, int y, int width, int height) native; 2761 void viewport(int x, int y, int width, int height) native;
2712 } 2762 }
2713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2714 // for details. All rights reserved. Use of this source code is governed by a 2764 // for details. All rights reserved. Use of this source code is governed by a
2715 // BSD-style license that can be found in the LICENSE file. 2765 // BSD-style license that can be found in the LICENSE file.
2716 2766
2717 2767
2718 @DocsEditable 2768 @DocsEditable
2719 @DomName('WebGLShader') 2769 @DomName('WebGLShader')
2720 class Shader native "WebGLShader" { 2770 class Shader native "WebGLShader" {
2771 // To suppress missing implicit constructor warnings.
2772 factory Shader._() { throw new UnsupportedError("Not supported"); }
2721 } 2773 }
2722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2723 // for details. All rights reserved. Use of this source code is governed by a 2775 // for details. All rights reserved. Use of this source code is governed by a
2724 // BSD-style license that can be found in the LICENSE file. 2776 // BSD-style license that can be found in the LICENSE file.
2725 2777
2726 2778
2727 @DocsEditable 2779 @DocsEditable
2728 @DomName('WebGLShaderPrecisionFormat') 2780 @DomName('WebGLShaderPrecisionFormat')
2729 class ShaderPrecisionFormat native "WebGLShaderPrecisionFormat" { 2781 class ShaderPrecisionFormat native "WebGLShaderPrecisionFormat" {
2782 // To suppress missing implicit constructor warnings.
2783 factory ShaderPrecisionFormat._() { throw new UnsupportedError("Not supported" ); }
2730 2784
2731 @DomName('WebGLShaderPrecisionFormat.precision') 2785 @DomName('WebGLShaderPrecisionFormat.precision')
2732 @DocsEditable 2786 @DocsEditable
2733 final int precision; 2787 final int precision;
2734 2788
2735 @DomName('WebGLShaderPrecisionFormat.rangeMax') 2789 @DomName('WebGLShaderPrecisionFormat.rangeMax')
2736 @DocsEditable 2790 @DocsEditable
2737 final int rangeMax; 2791 final int rangeMax;
2738 2792
2739 @DomName('WebGLShaderPrecisionFormat.rangeMin') 2793 @DomName('WebGLShaderPrecisionFormat.rangeMin')
2740 @DocsEditable 2794 @DocsEditable
2741 final int rangeMin; 2795 final int rangeMin;
2742 } 2796 }
2743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2744 // for details. All rights reserved. Use of this source code is governed by a 2798 // for details. All rights reserved. Use of this source code is governed by a
2745 // BSD-style license that can be found in the LICENSE file. 2799 // BSD-style license that can be found in the LICENSE file.
2746 2800
2747 2801
2748 @DocsEditable 2802 @DocsEditable
2749 @DomName('WebGLTexture') 2803 @DomName('WebGLTexture')
2750 class Texture native "WebGLTexture" { 2804 class Texture native "WebGLTexture" {
2805 // To suppress missing implicit constructor warnings.
2806 factory Texture._() { throw new UnsupportedError("Not supported"); }
2751 } 2807 }
2752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2753 // for details. All rights reserved. Use of this source code is governed by a 2809 // for details. All rights reserved. Use of this source code is governed by a
2754 // BSD-style license that can be found in the LICENSE file. 2810 // BSD-style license that can be found in the LICENSE file.
2755 2811
2756 2812
2757 @DocsEditable 2813 @DocsEditable
2758 @DomName('WebGLUniformLocation') 2814 @DomName('WebGLUniformLocation')
2759 class UniformLocation native "WebGLUniformLocation" { 2815 class UniformLocation native "WebGLUniformLocation" {
2816 // To suppress missing implicit constructor warnings.
2817 factory UniformLocation._() { throw new UnsupportedError("Not supported"); }
2760 } 2818 }
2761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2762 // for details. All rights reserved. Use of this source code is governed by a 2820 // for details. All rights reserved. Use of this source code is governed by a
2763 // BSD-style license that can be found in the LICENSE file. 2821 // BSD-style license that can be found in the LICENSE file.
2764 2822
2765 2823
2766 @DocsEditable 2824 @DocsEditable
2767 @DomName('WebGLVertexArrayObjectOES') 2825 @DomName('WebGLVertexArrayObjectOES')
2768 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2826 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2769 @Experimental // experimental 2827 @Experimental // experimental
2770 class VertexArrayObject native "WebGLVertexArrayObjectOES" { 2828 class VertexArrayObject native "WebGLVertexArrayObjectOES" {
2829 // To suppress missing implicit constructor warnings.
2830 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); }
2771 } 2831 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698