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

Side by Side Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 14976004: Remove more question marks. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev'; 6 import 'dart:_collection-dev';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 656
657 @DomName('Blob.size') 657 @DomName('Blob.size')
658 @DocsEditable 658 @DocsEditable
659 int get size native "Blob_size_Getter"; 659 int get size native "Blob_size_Getter";
660 660
661 @DomName('Blob.type') 661 @DomName('Blob.type')
662 @DocsEditable 662 @DocsEditable
663 String get type native "Blob_type_Getter"; 663 String get type native "Blob_type_Getter";
664 664
665 Blob slice([int start, int end, String contentType]) { 665 Blob slice([int start, int end, String contentType]) {
666 if (?contentType) { 666 if (contentType != null) {
667 return _slice_1(start, end, contentType); 667 return _slice_1(start, end, contentType);
668 } 668 }
669 if (?end) { 669 if (end != null) {
670 return _slice_2(start, end); 670 return _slice_2(start, end);
671 } 671 }
672 if (?start) { 672 if (start != null) {
673 return _slice_3(start); 673 return _slice_3(start);
674 } 674 }
675 return _slice_4(); 675 return _slice_4();
676 } 676 }
677 677
678 Blob _slice_1(start, end, contentType) native "Blob__slice_1_Callback"; 678 Blob _slice_1(start, end, contentType) native "Blob__slice_1_Callback";
679 679
680 Blob _slice_2(start, end) native "Blob__slice_2_Callback"; 680 Blob _slice_2(start, end) native "Blob__slice_2_Callback";
681 681
682 Blob _slice_3(start) native "Blob__slice_3_Callback"; 682 Blob _slice_3(start) native "Blob__slice_3_Callback";
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 1361
1362 @DomName('CanvasRenderingContext2D.bezierCurveTo') 1362 @DomName('CanvasRenderingContext2D.bezierCurveTo')
1363 @DocsEditable 1363 @DocsEditable
1364 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e "CanvasRenderingContext2D_bezierCurveTo_Callback"; 1364 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e "CanvasRenderingContext2D_bezierCurveTo_Callback";
1365 1365
1366 @DomName('CanvasRenderingContext2D.clearRect') 1366 @DomName('CanvasRenderingContext2D.clearRect')
1367 @DocsEditable 1367 @DocsEditable
1368 void clearRect(num x, num y, num width, num height) native "CanvasRenderingCon text2D_clearRect_Callback"; 1368 void clearRect(num x, num y, num width, num height) native "CanvasRenderingCon text2D_clearRect_Callback";
1369 1369
1370 void clip([String winding]) { 1370 void clip([String winding]) {
1371 if (?winding) { 1371 if (winding != null) {
1372 _clip_1(winding); 1372 _clip_1(winding);
1373 return; 1373 return;
1374 } 1374 }
1375 _clip_2(); 1375 _clip_2();
1376 return; 1376 return;
1377 } 1377 }
1378 1378
1379 void _clip_1(winding) native "CanvasRenderingContext2D__clip_1_Callback"; 1379 void _clip_1(winding) native "CanvasRenderingContext2D__clip_1_Callback";
1380 1380
1381 void _clip_2() native "CanvasRenderingContext2D__clip_2_Callback"; 1381 void _clip_2() native "CanvasRenderingContext2D__clip_2_Callback";
(...skipping 26 matching lines...) Expand all
1408 1408
1409 CanvasPattern _createPattern_1(canvas_OR_image, repetitionType) native "Canvas RenderingContext2D__createPattern_1_Callback"; 1409 CanvasPattern _createPattern_1(canvas_OR_image, repetitionType) native "Canvas RenderingContext2D__createPattern_1_Callback";
1410 1410
1411 CanvasPattern _createPattern_2(canvas_OR_image, repetitionType) native "Canvas RenderingContext2D__createPattern_2_Callback"; 1411 CanvasPattern _createPattern_2(canvas_OR_image, repetitionType) native "Canvas RenderingContext2D__createPattern_2_Callback";
1412 1412
1413 @DomName('CanvasRenderingContext2D.createRadialGradient') 1413 @DomName('CanvasRenderingContext2D.createRadialGradient')
1414 @DocsEditable 1414 @DocsEditable
1415 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native "CanvasRenderingContext2D_createRadialGradient_Callback"; 1415 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1) native "CanvasRenderingContext2D_createRadialGradient_Callback";
1416 1416
1417 void $dom_drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num s w_OR_width, num height_OR_sh, num dx, num dy, num dw, num dh]) { 1417 void $dom_drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num s w_OR_width, num height_OR_sh, num dx, num dy, num dw, num dh]) {
1418 if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && !?sw_OR_width && !?height_OR_sh && !?dx && !?dy && !?dw && !?dh) { 1418 if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && sw_OR_width == null && height_OR_sh == null && dx == null && dy == null && dw == null && dh == null) {
1419 _drawImage_1(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y); 1419 _drawImage_1(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y);
1420 return; 1420 return;
1421 } 1421 }
1422 if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || h eight_OR_sh == null) && !?dx && !?dy && !?dw && !?dh) { 1422 if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || h eight_OR_sh == null) && dx == null && dy == null && dw == null && dh == null) {
1423 _drawImage_2(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh); 1423 _drawImage_2(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh);
1424 return; 1424 return;
1425 } 1425 }
1426 if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || h eight_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) & & (dw is num || dw == null) && (dh is num || dh == null)) { 1426 if ((canvas_OR_image_OR_video is ImageElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || h eight_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) & & (dw is num || dw == null) && (dh is num || dh == null)) {
1427 _drawImage_3(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh, dx, dy, dw, dh); 1427 _drawImage_3(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh, dx, dy, dw, dh);
1428 return; 1428 return;
1429 } 1429 }
1430 if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video = = null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && !?sw_OR_width && !?height_OR_sh && !?dx && !?dy && !?dw && !?dh) { 1430 if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video = = null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && sw_OR_width == null && height_OR_sh == null && dx == null && dy == null && dw == null && dh == null) {
1431 _drawImage_4(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y); 1431 _drawImage_4(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y);
1432 return; 1432 return;
1433 } 1433 }
1434 if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video = = null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && !?dx && !?dy && !?dw && !?dh) { 1434 if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video = = null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && dx == null && dy == null && dw == null && dh == null) {
1435 _drawImage_5(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh); 1435 _drawImage_5(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh);
1436 return; 1436 return;
1437 } 1437 }
1438 if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video = = null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) && (dw is num || dw == null) && (dh is num || dh == null)) { 1438 if ((canvas_OR_image_OR_video is CanvasElement || canvas_OR_image_OR_video = = null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == null) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || height_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) && (dw is num || dw == null) && (dh is num || dh == null)) {
1439 _drawImage_6(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh, dx, dy, dw, dh); 1439 _drawImage_6(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh, dx, dy, dw, dh);
1440 return; 1440 return;
1441 } 1441 }
1442 if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && !?sw_OR_width && !?height_OR_sh && !?dx && !?dy && !?dw && !?dh) { 1442 if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && sw_OR_width == null && height_OR_sh == null && dx == null && dy == null && dw == null && dh == null) {
1443 _drawImage_7(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y); 1443 _drawImage_7(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y);
1444 return; 1444 return;
1445 } 1445 }
1446 if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || h eight_OR_sh == null) && !?dx && !?dy && !?dw && !?dh) { 1446 if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || h eight_OR_sh == null) && dx == null && dy == null && dw == null && dh == null) {
1447 _drawImage_8(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh); 1447 _drawImage_8(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh);
1448 return; 1448 return;
1449 } 1449 }
1450 if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || h eight_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) & & (dw is num || dw == null) && (dh is num || dh == null)) { 1450 if ((canvas_OR_image_OR_video is VideoElement || canvas_OR_image_OR_video == null) && (sx_OR_x is num || sx_OR_x == null) && (sy_OR_y is num || sy_OR_y == n ull) && (sw_OR_width is num || sw_OR_width == null) && (height_OR_sh is num || h eight_OR_sh == null) && (dx is num || dx == null) && (dy is num || dy == null) & & (dw is num || dw == null) && (dh is num || dh == null)) {
1451 _drawImage_9(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh, dx, dy, dw, dh); 1451 _drawImage_9(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, heig ht_OR_sh, dx, dy, dw, dh);
1452 return; 1452 return;
1453 } 1453 }
1454 throw new ArgumentError("Incorrect number or type of arguments"); 1454 throw new ArgumentError("Incorrect number or type of arguments");
1455 } 1455 }
1456 1456
1457 void _drawImage_1(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRe nderingContext2D__drawImage_1_Callback"; 1457 void _drawImage_1(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRe nderingContext2D__drawImage_1_Callback";
1458 1458
1459 void _drawImage_2(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh) native "CanvasRenderingContext2D__drawImage_2_Callback"; 1459 void _drawImage_2(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh) native "CanvasRenderingContext2D__drawImage_2_Callback";
1460 1460
1461 void _drawImage_3(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D__drawImage_3_Callbac k"; 1461 void _drawImage_3(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D__drawImage_3_Callbac k";
1462 1462
1463 void _drawImage_4(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRe nderingContext2D__drawImage_4_Callback"; 1463 void _drawImage_4(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRe nderingContext2D__drawImage_4_Callback";
1464 1464
1465 void _drawImage_5(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh) native "CanvasRenderingContext2D__drawImage_5_Callback"; 1465 void _drawImage_5(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh) native "CanvasRenderingContext2D__drawImage_5_Callback";
1466 1466
1467 void _drawImage_6(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D__drawImage_6_Callbac k"; 1467 void _drawImage_6(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D__drawImage_6_Callbac k";
1468 1468
1469 void _drawImage_7(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRe nderingContext2D__drawImage_7_Callback"; 1469 void _drawImage_7(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y) native "CanvasRe nderingContext2D__drawImage_7_Callback";
1470 1470
1471 void _drawImage_8(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh) native "CanvasRenderingContext2D__drawImage_8_Callback"; 1471 void _drawImage_8(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh) native "CanvasRenderingContext2D__drawImage_8_Callback";
1472 1472
1473 void _drawImage_9(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D__drawImage_9_Callbac k"; 1473 void _drawImage_9(canvas_OR_image_OR_video, sx_OR_x, sy_OR_y, sw_OR_width, hei ght_OR_sh, dx, dy, dw, dh) native "CanvasRenderingContext2D__drawImage_9_Callbac k";
1474 1474
1475 void fill([String winding]) { 1475 void fill([String winding]) {
1476 if (?winding) { 1476 if (winding != null) {
1477 _fill_1(winding); 1477 _fill_1(winding);
1478 return; 1478 return;
1479 } 1479 }
1480 _fill_2(); 1480 _fill_2();
1481 return; 1481 return;
1482 } 1482 }
1483 1483
1484 void _fill_1(winding) native "CanvasRenderingContext2D__fill_1_Callback"; 1484 void _fill_1(winding) native "CanvasRenderingContext2D__fill_1_Callback";
1485 1485
1486 void _fill_2() native "CanvasRenderingContext2D__fill_2_Callback"; 1486 void _fill_2() native "CanvasRenderingContext2D__fill_2_Callback";
1487 1487
1488 @DomName('CanvasRenderingContext2D.fillRect') 1488 @DomName('CanvasRenderingContext2D.fillRect')
1489 @DocsEditable 1489 @DocsEditable
1490 void fillRect(num x, num y, num width, num height) native "CanvasRenderingCont ext2D_fillRect_Callback"; 1490 void fillRect(num x, num y, num width, num height) native "CanvasRenderingCont ext2D_fillRect_Callback";
1491 1491
1492 void fillText(String text, num x, num y, [num maxWidth]) { 1492 void fillText(String text, num x, num y, [num maxWidth]) {
1493 if (?maxWidth) { 1493 if (maxWidth != null) {
1494 _fillText_1(text, x, y, maxWidth); 1494 _fillText_1(text, x, y, maxWidth);
1495 return; 1495 return;
1496 } 1496 }
1497 _fillText_2(text, x, y); 1497 _fillText_2(text, x, y);
1498 return; 1498 return;
1499 } 1499 }
1500 1500
1501 void _fillText_1(text, x, y, maxWidth) native "CanvasRenderingContext2D__fillT ext_1_Callback"; 1501 void _fillText_1(text, x, y, maxWidth) native "CanvasRenderingContext2D__fillT ext_1_Callback";
1502 1502
1503 void _fillText_2(text, x, y) native "CanvasRenderingContext2D__fillText_2_Call back"; 1503 void _fillText_2(text, x, y) native "CanvasRenderingContext2D__fillText_2_Call back";
1504 1504
1505 @DomName('CanvasRenderingContext2D.getImageData') 1505 @DomName('CanvasRenderingContext2D.getImageData')
1506 @DocsEditable 1506 @DocsEditable
1507 ImageData getImageData(num sx, num sy, num sw, num sh) native "CanvasRendering Context2D_getImageData_Callback"; 1507 ImageData getImageData(num sx, num sy, num sw, num sh) native "CanvasRendering Context2D_getImageData_Callback";
1508 1508
1509 @DomName('CanvasRenderingContext2D.getLineDash') 1509 @DomName('CanvasRenderingContext2D.getLineDash')
1510 @DocsEditable 1510 @DocsEditable
1511 List<num> getLineDash() native "CanvasRenderingContext2D_getLineDash_Callback" ; 1511 List<num> getLineDash() native "CanvasRenderingContext2D_getLineDash_Callback" ;
1512 1512
1513 bool isPointInPath(num x, num y, [String winding]) { 1513 bool isPointInPath(num x, num y, [String winding]) {
1514 if (?winding) { 1514 if (winding != null) {
1515 return _isPointInPath_1(x, y, winding); 1515 return _isPointInPath_1(x, y, winding);
1516 } 1516 }
1517 return _isPointInPath_2(x, y); 1517 return _isPointInPath_2(x, y);
1518 } 1518 }
1519 1519
1520 bool _isPointInPath_1(x, y, winding) native "CanvasRenderingContext2D__isPoint InPath_1_Callback"; 1520 bool _isPointInPath_1(x, y, winding) native "CanvasRenderingContext2D__isPoint InPath_1_Callback";
1521 1521
1522 bool _isPointInPath_2(x, y) native "CanvasRenderingContext2D__isPointInPath_2_ Callback"; 1522 bool _isPointInPath_2(x, y) native "CanvasRenderingContext2D__isPointInPath_2_ Callback";
1523 1523
1524 @DomName('CanvasRenderingContext2D.isPointInStroke') 1524 @DomName('CanvasRenderingContext2D.isPointInStroke')
1525 @DocsEditable 1525 @DocsEditable
1526 bool isPointInStroke(num x, num y) native "CanvasRenderingContext2D_isPointInS troke_Callback"; 1526 bool isPointInStroke(num x, num y) native "CanvasRenderingContext2D_isPointInS troke_Callback";
1527 1527
1528 @DomName('CanvasRenderingContext2D.lineTo') 1528 @DomName('CanvasRenderingContext2D.lineTo')
1529 @DocsEditable 1529 @DocsEditable
1530 void lineTo(num x, num y) native "CanvasRenderingContext2D_lineTo_Callback"; 1530 void lineTo(num x, num y) native "CanvasRenderingContext2D_lineTo_Callback";
1531 1531
1532 @DomName('CanvasRenderingContext2D.measureText') 1532 @DomName('CanvasRenderingContext2D.measureText')
1533 @DocsEditable 1533 @DocsEditable
1534 TextMetrics measureText(String text) native "CanvasRenderingContext2D_measureT ext_Callback"; 1534 TextMetrics measureText(String text) native "CanvasRenderingContext2D_measureT ext_Callback";
1535 1535
1536 @DomName('CanvasRenderingContext2D.moveTo') 1536 @DomName('CanvasRenderingContext2D.moveTo')
1537 @DocsEditable 1537 @DocsEditable
1538 void moveTo(num x, num y) native "CanvasRenderingContext2D_moveTo_Callback"; 1538 void moveTo(num x, num y) native "CanvasRenderingContext2D_moveTo_Callback";
1539 1539
1540 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]) { 1540 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]) {
1541 if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == nul l) && (dy is num || dy == null) && !?dirtyX && !?dirtyY && !?dirtyWidth && !?dir tyHeight) { 1541 if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == nul l) && (dy is num || dy == null) && dirtyX == null && dirtyY == null && dirtyWidt h == null && dirtyHeight == null) {
1542 _putImageData_1(imagedata, dx, dy); 1542 _putImageData_1(imagedata, dx, dy);
1543 return; 1543 return;
1544 } 1544 }
1545 if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == nul l) && (dy is num || dy == null) && (dirtyX is num || dirtyX == null) && (dirtyY is num || dirtyY == null) && (dirtyWidth is num || dirtyWidth == null) && (dirty Height is num || dirtyHeight == null)) { 1545 if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == nul l) && (dy is num || dy == null) && (dirtyX is num || dirtyX == null) && (dirtyY is num || dirtyY == null) && (dirtyWidth is num || dirtyWidth == null) && (dirty Height is num || dirtyHeight == null)) {
1546 _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight ); 1546 _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight );
1547 return; 1547 return;
1548 } 1548 }
1549 throw new ArgumentError("Incorrect number or type of arguments"); 1549 throw new ArgumentError("Incorrect number or type of arguments");
1550 } 1550 }
1551 1551
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 1583
1584 @DomName('CanvasRenderingContext2D.setTransform') 1584 @DomName('CanvasRenderingContext2D.setTransform')
1585 @DocsEditable 1585 @DocsEditable
1586 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native " CanvasRenderingContext2D_setTransform_Callback"; 1586 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native " CanvasRenderingContext2D_setTransform_Callback";
1587 1587
1588 @DomName('CanvasRenderingContext2D.stroke') 1588 @DomName('CanvasRenderingContext2D.stroke')
1589 @DocsEditable 1589 @DocsEditable
1590 void stroke() native "CanvasRenderingContext2D_stroke_Callback"; 1590 void stroke() native "CanvasRenderingContext2D_stroke_Callback";
1591 1591
1592 void strokeRect(num x, num y, num width, num height, [num lineWidth]) { 1592 void strokeRect(num x, num y, num width, num height, [num lineWidth]) {
1593 if (?lineWidth) { 1593 if (lineWidth != null) {
1594 _strokeRect_1(x, y, width, height, lineWidth); 1594 _strokeRect_1(x, y, width, height, lineWidth);
1595 return; 1595 return;
1596 } 1596 }
1597 _strokeRect_2(x, y, width, height); 1597 _strokeRect_2(x, y, width, height);
1598 return; 1598 return;
1599 } 1599 }
1600 1600
1601 void _strokeRect_1(x, y, width, height, lineWidth) native "CanvasRenderingCont ext2D__strokeRect_1_Callback"; 1601 void _strokeRect_1(x, y, width, height, lineWidth) native "CanvasRenderingCont ext2D__strokeRect_1_Callback";
1602 1602
1603 void _strokeRect_2(x, y, width, height) native "CanvasRenderingContext2D__stro keRect_2_Callback"; 1603 void _strokeRect_2(x, y, width, height) native "CanvasRenderingContext2D__stro keRect_2_Callback";
1604 1604
1605 void strokeText(String text, num x, num y, [num maxWidth]) { 1605 void strokeText(String text, num x, num y, [num maxWidth]) {
1606 if (?maxWidth) { 1606 if (maxWidth != null) {
1607 _strokeText_1(text, x, y, maxWidth); 1607 _strokeText_1(text, x, y, maxWidth);
1608 return; 1608 return;
1609 } 1609 }
1610 _strokeText_2(text, x, y); 1610 _strokeText_2(text, x, y);
1611 return; 1611 return;
1612 } 1612 }
1613 1613
1614 void _strokeText_1(text, x, y, maxWidth) native "CanvasRenderingContext2D__str okeText_1_Callback"; 1614 void _strokeText_1(text, x, y, maxWidth) native "CanvasRenderingContext2D__str okeText_1_Callback";
1615 1615
1616 void _strokeText_2(text, x, y) native "CanvasRenderingContext2D__strokeText_2_ Callback"; 1616 void _strokeText_2(text, x, y) native "CanvasRenderingContext2D__strokeText_2_ Callback";
1617 1617
1618 @DomName('CanvasRenderingContext2D.transform') 1618 @DomName('CanvasRenderingContext2D.transform')
1619 @DocsEditable 1619 @DocsEditable
1620 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native "Can vasRenderingContext2D_transform_Callback"; 1620 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native "Can vasRenderingContext2D_transform_Callback";
1621 1621
1622 @DomName('CanvasRenderingContext2D.translate') 1622 @DomName('CanvasRenderingContext2D.translate')
1623 @DocsEditable 1623 @DocsEditable
1624 void translate(num tx, num ty) native "CanvasRenderingContext2D_translate_Call back"; 1624 void translate(num tx, num ty) native "CanvasRenderingContext2D_translate_Call back";
1625 1625
1626 @DomName('CanvasRenderingContext2D.webkitGetImageDataHD') 1626 @DomName('CanvasRenderingContext2D.webkitGetImageDataHD')
1627 @DocsEditable 1627 @DocsEditable
1628 @SupportedBrowser(SupportedBrowser.CHROME) 1628 @SupportedBrowser(SupportedBrowser.CHROME)
1629 @SupportedBrowser(SupportedBrowser.SAFARI) 1629 @SupportedBrowser(SupportedBrowser.SAFARI)
1630 @Experimental 1630 @Experimental
1631 ImageData getImageDataHD(num sx, num sy, num sw, num sh) native "CanvasRenderi ngContext2D_webkitGetImageDataHD_Callback"; 1631 ImageData getImageDataHD(num sx, num sy, num sw, num sh) native "CanvasRenderi ngContext2D_webkitGetImageDataHD_Callback";
1632 1632
1633 void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirt yY, num dirtyWidth, num dirtyHeight]) { 1633 void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirt yY, num dirtyWidth, num dirtyHeight]) {
1634 if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == nul l) && (dy is num || dy == null) && !?dirtyX && !?dirtyY && !?dirtyWidth && !?dir tyHeight) { 1634 if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == nul l) && (dy is num || dy == null) && dirtyX == null && dirtyY == null && dirtyWidt h == null && dirtyHeight == null) {
1635 _webkitPutImageDataHD_1(imagedata, dx, dy); 1635 _webkitPutImageDataHD_1(imagedata, dx, dy);
1636 return; 1636 return;
1637 } 1637 }
1638 if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == nul l) && (dy is num || dy == null) && (dirtyX is num || dirtyX == null) && (dirtyY is num || dirtyY == null) && (dirtyWidth is num || dirtyWidth == null) && (dirty Height is num || dirtyHeight == null)) { 1638 if ((imagedata is ImageData || imagedata == null) && (dx is num || dx == nul l) && (dy is num || dy == null) && (dirtyX is num || dirtyX == null) && (dirtyY is num || dirtyY == null) && (dirtyWidth is num || dirtyWidth == null) && (dirty Height is num || dirtyHeight == null)) {
1639 _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dir tyHeight); 1639 _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dir tyHeight);
1640 return; 1640 return;
1641 } 1641 }
1642 throw new ArgumentError("Incorrect number or type of arguments"); 1642 throw new ArgumentError("Incorrect number or type of arguments");
1643 } 1643 }
1644 1644
(...skipping 4137 matching lines...) Expand 10 before | Expand all | Expand 10 after
5782 5782
5783 @DomName('CSSStyleSheet.ownerRule') 5783 @DomName('CSSStyleSheet.ownerRule')
5784 @DocsEditable 5784 @DocsEditable
5785 CssRule get ownerRule native "CSSStyleSheet_ownerRule_Getter"; 5785 CssRule get ownerRule native "CSSStyleSheet_ownerRule_Getter";
5786 5786
5787 @DomName('CSSStyleSheet.rules') 5787 @DomName('CSSStyleSheet.rules')
5788 @DocsEditable 5788 @DocsEditable
5789 List<CssRule> get rules native "CSSStyleSheet_rules_Getter"; 5789 List<CssRule> get rules native "CSSStyleSheet_rules_Getter";
5790 5790
5791 int addRule(String selector, String style, [int index]) { 5791 int addRule(String selector, String style, [int index]) {
5792 if (?index) { 5792 if (index != null) {
5793 return _addRule_1(selector, style, index); 5793 return _addRule_1(selector, style, index);
5794 } 5794 }
5795 return _addRule_2(selector, style); 5795 return _addRule_2(selector, style);
5796 } 5796 }
5797 5797
5798 int _addRule_1(selector, style, index) native "CSSStyleSheet__addRule_1_Callba ck"; 5798 int _addRule_1(selector, style, index) native "CSSStyleSheet__addRule_1_Callba ck";
5799 5799
5800 int _addRule_2(selector, style) native "CSSStyleSheet__addRule_2_Callback"; 5800 int _addRule_2(selector, style) native "CSSStyleSheet__addRule_2_Callback";
5801 5801
5802 @DomName('CSSStyleSheet.deleteRule') 5802 @DomName('CSSStyleSheet.deleteRule')
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
6037 @DocsEditable 6037 @DocsEditable
6038 @DomName('DataTransferItemList') 6038 @DomName('DataTransferItemList')
6039 class DataTransferItemList extends NativeFieldWrapperClass1 { 6039 class DataTransferItemList extends NativeFieldWrapperClass1 {
6040 DataTransferItemList.internal(); 6040 DataTransferItemList.internal();
6041 6041
6042 @DomName('DataTransferItemList.length') 6042 @DomName('DataTransferItemList.length')
6043 @DocsEditable 6043 @DocsEditable
6044 int get length native "DataTransferItemList_length_Getter"; 6044 int get length native "DataTransferItemList_length_Getter";
6045 6045
6046 void add(data_OR_file, [String type]) { 6046 void add(data_OR_file, [String type]) {
6047 if ((data_OR_file is File || data_OR_file == null) && !?type) { 6047 if ((data_OR_file is File || data_OR_file == null) && type == null) {
6048 _add_1(data_OR_file); 6048 _add_1(data_OR_file);
6049 return; 6049 return;
6050 } 6050 }
6051 if ((data_OR_file is String || data_OR_file == null) && (type is String || t ype == null)) { 6051 if ((data_OR_file is String || data_OR_file == null) && (type is String || t ype == null)) {
6052 _add_2(data_OR_file, type); 6052 _add_2(data_OR_file, type);
6053 return; 6053 return;
6054 } 6054 }
6055 throw new ArgumentError("Incorrect number or type of arguments"); 6055 throw new ArgumentError("Incorrect number or type of arguments");
6056 } 6056 }
6057 6057
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
6602 6602
6603 @DomName('Document.createCDATASection') 6603 @DomName('Document.createCDATASection')
6604 @DocsEditable 6604 @DocsEditable
6605 CDataSection createCDataSection(String data) native "Document_createCDATASecti on_Callback"; 6605 CDataSection createCDataSection(String data) native "Document_createCDATASecti on_Callback";
6606 6606
6607 @DomName('Document.createDocumentFragment') 6607 @DomName('Document.createDocumentFragment')
6608 @DocsEditable 6608 @DocsEditable
6609 DocumentFragment createDocumentFragment() native "Document_createDocumentFragm ent_Callback"; 6609 DocumentFragment createDocumentFragment() native "Document_createDocumentFragm ent_Callback";
6610 6610
6611 Element $dom_createElement(String localName_OR_tagName, [String typeExtension] ) { 6611 Element $dom_createElement(String localName_OR_tagName, [String typeExtension] ) {
6612 if ((localName_OR_tagName is String || localName_OR_tagName == null) && !?ty peExtension) { 6612 if ((localName_OR_tagName is String || localName_OR_tagName == null) && type Extension == null) {
6613 return _createElement_1(localName_OR_tagName); 6613 return _createElement_1(localName_OR_tagName);
6614 } 6614 }
6615 if ((localName_OR_tagName is String || localName_OR_tagName == null) && (typ eExtension is String || typeExtension == null)) { 6615 if ((localName_OR_tagName is String || localName_OR_tagName == null) && (typ eExtension is String || typeExtension == null)) {
6616 return _createElement_2(localName_OR_tagName, typeExtension); 6616 return _createElement_2(localName_OR_tagName, typeExtension);
6617 } 6617 }
6618 throw new ArgumentError("Incorrect number or type of arguments"); 6618 throw new ArgumentError("Incorrect number or type of arguments");
6619 } 6619 }
6620 6620
6621 Element _createElement_1(localName_OR_tagName) native "Document__createElement _1_Callback"; 6621 Element _createElement_1(localName_OR_tagName) native "Document__createElement _1_Callback";
6622 6622
6623 Element _createElement_2(localName_OR_tagName, typeExtension) native "Document __createElement_2_Callback"; 6623 Element _createElement_2(localName_OR_tagName, typeExtension) native "Document __createElement_2_Callback";
6624 6624
6625 Element $dom_createElementNS(String namespaceURI, String qualifiedName, [Strin g typeExtension]) { 6625 Element $dom_createElementNS(String namespaceURI, String qualifiedName, [Strin g typeExtension]) {
6626 if ((namespaceURI is String || namespaceURI == null) && (qualifiedName is St ring || qualifiedName == null) && !?typeExtension) { 6626 if ((namespaceURI is String || namespaceURI == null) && (qualifiedName is St ring || qualifiedName == null) && typeExtension == null) {
6627 return _createElementNS_1(namespaceURI, qualifiedName); 6627 return _createElementNS_1(namespaceURI, qualifiedName);
6628 } 6628 }
6629 if ((namespaceURI is String || namespaceURI == null) && (qualifiedName is St ring || qualifiedName == null) && (typeExtension is String || typeExtension == n ull)) { 6629 if ((namespaceURI is String || namespaceURI == null) && (qualifiedName is St ring || qualifiedName == null) && (typeExtension is String || typeExtension == n ull)) {
6630 return _createElementNS_2(namespaceURI, qualifiedName, typeExtension); 6630 return _createElementNS_2(namespaceURI, qualifiedName, typeExtension);
6631 } 6631 }
6632 throw new ArgumentError("Incorrect number or type of arguments"); 6632 throw new ArgumentError("Incorrect number or type of arguments");
6633 } 6633 }
6634 6634
6635 Element _createElementNS_1(namespaceURI, qualifiedName) native "Document__crea teElementNS_1_Callback"; 6635 Element _createElementNS_1(namespaceURI, qualifiedName) native "Document__crea teElementNS_1_Callback";
6636 6636
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
7305 7305
7306 @DomName('DOMTokenList.item') 7306 @DomName('DOMTokenList.item')
7307 @DocsEditable 7307 @DocsEditable
7308 String item(int index) native "DOMTokenList_item_Callback"; 7308 String item(int index) native "DOMTokenList_item_Callback";
7309 7309
7310 @DomName('DOMTokenList.toString') 7310 @DomName('DOMTokenList.toString')
7311 @DocsEditable 7311 @DocsEditable
7312 String toString() native "DOMTokenList_toString_Callback"; 7312 String toString() native "DOMTokenList_toString_Callback";
7313 7313
7314 bool toggle(String token, [bool force]) { 7314 bool toggle(String token, [bool force]) {
7315 if (?force) { 7315 if (force != null) {
7316 return _toggle_1(token, force); 7316 return _toggle_1(token, force);
7317 } 7317 }
7318 return _toggle_2(token); 7318 return _toggle_2(token);
7319 } 7319 }
7320 7320
7321 bool _toggle_1(token, force) native "DOMTokenList__toggle_1_Callback"; 7321 bool _toggle_1(token, force) native "DOMTokenList__toggle_1_Callback";
7322 7322
7323 bool _toggle_2(token) native "DOMTokenList__toggle_2_Callback"; 7323 bool _toggle_2(token) native "DOMTokenList__toggle_2_Callback";
7324 7324
7325 } 7325 }
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
8253 8253
8254 @DomName('Element.scrollByLines') 8254 @DomName('Element.scrollByLines')
8255 @DocsEditable 8255 @DocsEditable
8256 void scrollByLines(int lines) native "Element_scrollByLines_Callback"; 8256 void scrollByLines(int lines) native "Element_scrollByLines_Callback";
8257 8257
8258 @DomName('Element.scrollByPages') 8258 @DomName('Element.scrollByPages')
8259 @DocsEditable 8259 @DocsEditable
8260 void scrollByPages(int pages) native "Element_scrollByPages_Callback"; 8260 void scrollByPages(int pages) native "Element_scrollByPages_Callback";
8261 8261
8262 void $dom_scrollIntoView([bool alignWithTop]) { 8262 void $dom_scrollIntoView([bool alignWithTop]) {
8263 if (?alignWithTop) { 8263 if (alignWithTop != null) {
8264 _scrollIntoView_1(alignWithTop); 8264 _scrollIntoView_1(alignWithTop);
8265 return; 8265 return;
8266 } 8266 }
8267 _scrollIntoView_2(); 8267 _scrollIntoView_2();
8268 return; 8268 return;
8269 } 8269 }
8270 8270
8271 void _scrollIntoView_1(alignWithTop) native "Element__scrollIntoView_1_Callbac k"; 8271 void _scrollIntoView_1(alignWithTop) native "Element__scrollIntoView_1_Callbac k";
8272 8272
8273 void _scrollIntoView_2() native "Element__scrollIntoView_2_Callback"; 8273 void _scrollIntoView_2() native "Element__scrollIntoView_2_Callback";
8274 8274
8275 void $dom_scrollIntoViewIfNeeded([bool centerIfNeeded]) { 8275 void $dom_scrollIntoViewIfNeeded([bool centerIfNeeded]) {
8276 if (?centerIfNeeded) { 8276 if (centerIfNeeded != null) {
8277 _scrollIntoViewIfNeeded_1(centerIfNeeded); 8277 _scrollIntoViewIfNeeded_1(centerIfNeeded);
8278 return; 8278 return;
8279 } 8279 }
8280 _scrollIntoViewIfNeeded_2(); 8280 _scrollIntoViewIfNeeded_2();
8281 return; 8281 return;
8282 } 8282 }
8283 8283
8284 void _scrollIntoViewIfNeeded_1(centerIfNeeded) native "Element__scrollIntoView IfNeeded_1_Callback"; 8284 void _scrollIntoViewIfNeeded_1(centerIfNeeded) native "Element__scrollIntoView IfNeeded_1_Callback";
8285 8285
8286 void _scrollIntoViewIfNeeded_2() native "Element__scrollIntoViewIfNeeded_2_Cal lback"; 8286 void _scrollIntoViewIfNeeded_2() native "Element__scrollIntoViewIfNeeded_2_Cal lback";
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
8816 8816
8817 @DomName('Entry.isFile') 8817 @DomName('Entry.isFile')
8818 @DocsEditable 8818 @DocsEditable
8819 bool get isFile native "Entry_isFile_Getter"; 8819 bool get isFile native "Entry_isFile_Getter";
8820 8820
8821 @DomName('Entry.name') 8821 @DomName('Entry.name')
8822 @DocsEditable 8822 @DocsEditable
8823 String get name native "Entry_name_Getter"; 8823 String get name native "Entry_name_Getter";
8824 8824
8825 void _copyTo(DirectoryEntry parent, {String name, _EntryCallback successCallba ck, _ErrorCallback errorCallback}) { 8825 void _copyTo(DirectoryEntry parent, {String name, _EntryCallback successCallba ck, _ErrorCallback errorCallback}) {
8826 if (?name) { 8826 if (name != null) {
8827 _copyTo_1(parent, name, successCallback, errorCallback); 8827 _copyTo_1(parent, name, successCallback, errorCallback);
8828 return; 8828 return;
8829 } 8829 }
8830 _copyTo_2(parent); 8830 _copyTo_2(parent);
8831 return; 8831 return;
8832 } 8832 }
8833 8833
8834 void _copyTo_1(parent, name, successCallback, errorCallback) native "Entry__co pyTo_1_Callback"; 8834 void _copyTo_1(parent, name, successCallback, errorCallback) native "Entry__co pyTo_1_Callback";
8835 8835
8836 void _copyTo_2(parent) native "Entry__copyTo_2_Callback"; 8836 void _copyTo_2(parent) native "Entry__copyTo_2_Callback";
(...skipping 24 matching lines...) Expand all
8861 8861
8862 Future<Entry> getParent() { 8862 Future<Entry> getParent() {
8863 var completer = new Completer<Entry>(); 8863 var completer = new Completer<Entry>();
8864 _getParent( 8864 _getParent(
8865 (value) { completer.complete(value); }, 8865 (value) { completer.complete(value); },
8866 (error) { completer.completeError(error); }); 8866 (error) { completer.completeError(error); });
8867 return completer.future; 8867 return completer.future;
8868 } 8868 }
8869 8869
8870 void _moveTo(DirectoryEntry parent, {String name, _EntryCallback successCallba ck, _ErrorCallback errorCallback}) { 8870 void _moveTo(DirectoryEntry parent, {String name, _EntryCallback successCallba ck, _ErrorCallback errorCallback}) {
8871 if (?name) { 8871 if (name != null) {
8872 _moveTo_1(parent, name, successCallback, errorCallback); 8872 _moveTo_1(parent, name, successCallback, errorCallback);
8873 return; 8873 return;
8874 } 8874 }
8875 _moveTo_2(parent); 8875 _moveTo_2(parent);
8876 return; 8876 return;
8877 } 8877 }
8878 8878
8879 void _moveTo_1(parent, name, successCallback, errorCallback) native "Entry__mo veTo_1_Callback"; 8879 void _moveTo_1(parent, name, successCallback, errorCallback) native "Entry__mo veTo_1_Callback";
8880 8880
8881 void _moveTo_2(parent) native "Entry__moveTo_2_Callback"; 8881 void _moveTo_2(parent) native "Entry__moveTo_2_Callback";
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
9634 9634
9635 @DomName('FileReader.readAsBinaryString') 9635 @DomName('FileReader.readAsBinaryString')
9636 @DocsEditable 9636 @DocsEditable
9637 void readAsBinaryString(Blob blob) native "FileReader_readAsBinaryString_Callb ack"; 9637 void readAsBinaryString(Blob blob) native "FileReader_readAsBinaryString_Callb ack";
9638 9638
9639 @DomName('FileReader.readAsDataURL') 9639 @DomName('FileReader.readAsDataURL')
9640 @DocsEditable 9640 @DocsEditable
9641 void readAsDataUrl(Blob blob) native "FileReader_readAsDataURL_Callback"; 9641 void readAsDataUrl(Blob blob) native "FileReader_readAsDataURL_Callback";
9642 9642
9643 void readAsText(Blob blob, [String encoding]) { 9643 void readAsText(Blob blob, [String encoding]) {
9644 if (?encoding) { 9644 if (encoding != null) {
9645 _readAsText_1(blob, encoding); 9645 _readAsText_1(blob, encoding);
9646 return; 9646 return;
9647 } 9647 }
9648 _readAsText_2(blob); 9648 _readAsText_2(blob);
9649 return; 9649 return;
9650 } 9650 }
9651 9651
9652 void _readAsText_1(blob, encoding) native "FileReader__readAsText_1_Callback"; 9652 void _readAsText_1(blob, encoding) native "FileReader__readAsText_1_Callback";
9653 9653
9654 void _readAsText_2(blob) native "FileReader__readAsText_2_Callback"; 9654 void _readAsText_2(blob) native "FileReader__readAsText_2_Callback";
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after
11949 11949
11950 @DomName('HTMLInputElement.select') 11950 @DomName('HTMLInputElement.select')
11951 @DocsEditable 11951 @DocsEditable
11952 void select() native "HTMLInputElement_select_Callback"; 11952 void select() native "HTMLInputElement_select_Callback";
11953 11953
11954 @DomName('HTMLInputElement.setCustomValidity') 11954 @DomName('HTMLInputElement.setCustomValidity')
11955 @DocsEditable 11955 @DocsEditable
11956 void setCustomValidity(String error) native "HTMLInputElement_setCustomValidit y_Callback"; 11956 void setCustomValidity(String error) native "HTMLInputElement_setCustomValidit y_Callback";
11957 11957
11958 void setRangeText(String replacement, {int start, int end, String selectionMod e}) { 11958 void setRangeText(String replacement, {int start, int end, String selectionMod e}) {
11959 if ((replacement is String || replacement == null) && !?start && !?end && !? selectionMode) { 11959 if ((replacement is String || replacement == null) && start == null && end = = null && selectionMode == null) {
11960 _setRangeText_1(replacement); 11960 _setRangeText_1(replacement);
11961 return; 11961 return;
11962 } 11962 }
11963 if ((replacement is String || replacement == null) && (start is int || start == null) && (end is int || end == null) && (selectionMode is String || selectio nMode == null)) { 11963 if ((replacement is String || replacement == null) && (start is int || start == null) && (end is int || end == null) && (selectionMode is String || selectio nMode == null)) {
11964 _setRangeText_2(replacement, start, end, selectionMode); 11964 _setRangeText_2(replacement, start, end, selectionMode);
11965 return; 11965 return;
11966 } 11966 }
11967 throw new ArgumentError("Incorrect number or type of arguments"); 11967 throw new ArgumentError("Incorrect number or type of arguments");
11968 } 11968 }
11969 11969
11970 void _setRangeText_1(replacement) native "HTMLInputElement__setRangeText_1_Cal lback"; 11970 void _setRangeText_1(replacement) native "HTMLInputElement__setRangeText_1_Cal lback";
11971 11971
11972 void _setRangeText_2(replacement, start, end, selectionMode) native "HTMLInput Element__setRangeText_2_Callback"; 11972 void _setRangeText_2(replacement, start, end, selectionMode) native "HTMLInput Element__setRangeText_2_Callback";
11973 11973
11974 @DomName('HTMLInputElement.setSelectionRange') 11974 @DomName('HTMLInputElement.setSelectionRange')
11975 @DocsEditable 11975 @DocsEditable
11976 void setSelectionRange(int start, int end, [String direction]) native "HTMLInp utElement_setSelectionRange_Callback"; 11976 void setSelectionRange(int start, int end, [String direction]) native "HTMLInp utElement_setSelectionRange_Callback";
11977 11977
11978 void stepDown([int n]) { 11978 void stepDown([int n]) {
11979 if (?n) { 11979 if (n != null) {
11980 _stepDown_1(n); 11980 _stepDown_1(n);
11981 return; 11981 return;
11982 } 11982 }
11983 _stepDown_2(); 11983 _stepDown_2();
11984 return; 11984 return;
11985 } 11985 }
11986 11986
11987 void _stepDown_1(n) native "HTMLInputElement__stepDown_1_Callback"; 11987 void _stepDown_1(n) native "HTMLInputElement__stepDown_1_Callback";
11988 11988
11989 void _stepDown_2() native "HTMLInputElement__stepDown_2_Callback"; 11989 void _stepDown_2() native "HTMLInputElement__stepDown_2_Callback";
11990 11990
11991 void stepUp([int n]) { 11991 void stepUp([int n]) {
11992 if (?n) { 11992 if (n != null) {
11993 _stepUp_1(n); 11993 _stepUp_1(n);
11994 return; 11994 return;
11995 } 11995 }
11996 _stepUp_2(); 11996 _stepUp_2();
11997 return; 11997 return;
11998 } 11998 }
11999 11999
12000 void _stepUp_1(n) native "HTMLInputElement__stepUp_1_Callback"; 12000 void _stepUp_1(n) native "HTMLInputElement__stepUp_1_Callback";
12001 12001
12002 void _stepUp_2() native "HTMLInputElement__stepUp_2_Callback"; 12002 void _stepUp_2() native "HTMLInputElement__stepUp_2_Callback";
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
13490 void set preservesPitch(bool value) native "HTMLMediaElement_webkitPreservesPi tch_Setter"; 13490 void set preservesPitch(bool value) native "HTMLMediaElement_webkitPreservesPi tch_Setter";
13491 13491
13492 @DomName('HTMLMediaElement.webkitVideoDecodedByteCount') 13492 @DomName('HTMLMediaElement.webkitVideoDecodedByteCount')
13493 @DocsEditable 13493 @DocsEditable
13494 @SupportedBrowser(SupportedBrowser.CHROME) 13494 @SupportedBrowser(SupportedBrowser.CHROME)
13495 @SupportedBrowser(SupportedBrowser.SAFARI) 13495 @SupportedBrowser(SupportedBrowser.SAFARI)
13496 @Experimental 13496 @Experimental
13497 int get videoDecodedByteCount native "HTMLMediaElement_webkitVideoDecodedByteC ount_Getter"; 13497 int get videoDecodedByteCount native "HTMLMediaElement_webkitVideoDecodedByteC ount_Getter";
13498 13498
13499 TextTrack addTextTrack(String kind, [String label, String language]) { 13499 TextTrack addTextTrack(String kind, [String label, String language]) {
13500 if (?language) { 13500 if (language != null) {
13501 return _addTextTrack_1(kind, label, language); 13501 return _addTextTrack_1(kind, label, language);
13502 } 13502 }
13503 if (?label) { 13503 if (label != null) {
13504 return _addTextTrack_2(kind, label); 13504 return _addTextTrack_2(kind, label);
13505 } 13505 }
13506 return _addTextTrack_3(kind); 13506 return _addTextTrack_3(kind);
13507 } 13507 }
13508 13508
13509 TextTrack _addTextTrack_1(kind, label, language) native "HTMLMediaElement__add TextTrack_1_Callback"; 13509 TextTrack _addTextTrack_1(kind, label, language) native "HTMLMediaElement__add TextTrack_1_Callback";
13510 13510
13511 TextTrack _addTextTrack_2(kind, label) native "HTMLMediaElement__addTextTrack_ 2_Callback"; 13511 TextTrack _addTextTrack_2(kind, label) native "HTMLMediaElement__addTextTrack_ 2_Callback";
13512 13512
13513 TextTrack _addTextTrack_3(kind) native "HTMLMediaElement__addTextTrack_3_Callb ack"; 13513 TextTrack _addTextTrack_3(kind) native "HTMLMediaElement__addTextTrack_3_Callb ack";
13514 13514
13515 @DomName('HTMLMediaElement.canPlayType') 13515 @DomName('HTMLMediaElement.canPlayType')
13516 @DocsEditable 13516 @DocsEditable
13517 String canPlayType(String type, String keySystem) native "HTMLMediaElement_can PlayType_Callback"; 13517 String canPlayType(String type, String keySystem) native "HTMLMediaElement_can PlayType_Callback";
13518 13518
13519 @DomName('HTMLMediaElement.load') 13519 @DomName('HTMLMediaElement.load')
13520 @DocsEditable 13520 @DocsEditable
13521 void load() native "HTMLMediaElement_load_Callback"; 13521 void load() native "HTMLMediaElement_load_Callback";
13522 13522
13523 @DomName('HTMLMediaElement.pause') 13523 @DomName('HTMLMediaElement.pause')
13524 @DocsEditable 13524 @DocsEditable
13525 void pause() native "HTMLMediaElement_pause_Callback"; 13525 void pause() native "HTMLMediaElement_pause_Callback";
13526 13526
13527 @DomName('HTMLMediaElement.play') 13527 @DomName('HTMLMediaElement.play')
13528 @DocsEditable 13528 @DocsEditable
13529 void play() native "HTMLMediaElement_play_Callback"; 13529 void play() native "HTMLMediaElement_play_Callback";
13530 13530
13531 void addKey(String keySystem, Uint8List key, [Uint8List initData, String sessi onId]) { 13531 void addKey(String keySystem, Uint8List key, [Uint8List initData, String sessi onId]) {
13532 if (?initData) { 13532 if (initData != null) {
13533 _webkitAddKey_1(keySystem, key, initData, sessionId); 13533 _webkitAddKey_1(keySystem, key, initData, sessionId);
13534 return; 13534 return;
13535 } 13535 }
13536 _webkitAddKey_2(keySystem, key); 13536 _webkitAddKey_2(keySystem, key);
13537 return; 13537 return;
13538 } 13538 }
13539 13539
13540 void _webkitAddKey_1(keySystem, key, initData, sessionId) native "HTMLMediaEle ment__webkitAddKey_1_Callback"; 13540 void _webkitAddKey_1(keySystem, key, initData, sessionId) native "HTMLMediaEle ment__webkitAddKey_1_Callback";
13541 13541
13542 void _webkitAddKey_2(keySystem, key) native "HTMLMediaElement__webkitAddKey_2_ Callback"; 13542 void _webkitAddKey_2(keySystem, key) native "HTMLMediaElement__webkitAddKey_2_ Callback";
13543 13543
13544 @DomName('HTMLMediaElement.webkitCancelKeyRequest') 13544 @DomName('HTMLMediaElement.webkitCancelKeyRequest')
13545 @DocsEditable 13545 @DocsEditable
13546 @SupportedBrowser(SupportedBrowser.CHROME) 13546 @SupportedBrowser(SupportedBrowser.CHROME)
13547 @SupportedBrowser(SupportedBrowser.SAFARI) 13547 @SupportedBrowser(SupportedBrowser.SAFARI)
13548 @Experimental 13548 @Experimental
13549 void cancelKeyRequest(String keySystem, String sessionId) native "HTMLMediaEle ment_webkitCancelKeyRequest_Callback"; 13549 void cancelKeyRequest(String keySystem, String sessionId) native "HTMLMediaEle ment_webkitCancelKeyRequest_Callback";
13550 13550
13551 void generateKeyRequest(String keySystem, [Uint8List initData]) { 13551 void generateKeyRequest(String keySystem, [Uint8List initData]) {
13552 if (?initData) { 13552 if (initData != null) {
13553 _webkitGenerateKeyRequest_1(keySystem, initData); 13553 _webkitGenerateKeyRequest_1(keySystem, initData);
13554 return; 13554 return;
13555 } 13555 }
13556 _webkitGenerateKeyRequest_2(keySystem); 13556 _webkitGenerateKeyRequest_2(keySystem);
13557 return; 13557 return;
13558 } 13558 }
13559 13559
13560 void _webkitGenerateKeyRequest_1(keySystem, initData) native "HTMLMediaElement __webkitGenerateKeyRequest_1_Callback"; 13560 void _webkitGenerateKeyRequest_1(keySystem, initData) native "HTMLMediaElement __webkitGenerateKeyRequest_1_Callback";
13561 13561
13562 void _webkitGenerateKeyRequest_2(keySystem) native "HTMLMediaElement__webkitGe nerateKeyRequest_2_Callback"; 13562 void _webkitGenerateKeyRequest_2(keySystem) native "HTMLMediaElement__webkitGe nerateKeyRequest_2_Callback";
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
13931 @DocsEditable 13931 @DocsEditable
13932 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 13932 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
13933 13933
13934 @DomName('MediaStream.removetrackEvent') 13934 @DomName('MediaStream.removetrackEvent')
13935 @DocsEditable 13935 @DocsEditable
13936 static const EventStreamProvider<Event> removeTrackEvent = const EventStreamPr ovider<Event>('removetrack'); 13936 static const EventStreamProvider<Event> removeTrackEvent = const EventStreamPr ovider<Event>('removetrack');
13937 13937
13938 @DomName('MediaStream.MediaStream') 13938 @DomName('MediaStream.MediaStream')
13939 @DocsEditable 13939 @DocsEditable
13940 factory MediaStream([stream_OR_tracks]) { 13940 factory MediaStream([stream_OR_tracks]) {
13941 if (!?stream_OR_tracks) { 13941 if (stream_OR_tracks == null) {
13942 return MediaStream._create_1(); 13942 return MediaStream._create_1();
13943 } 13943 }
13944 if ((stream_OR_tracks is MediaStream || stream_OR_tracks == null)) { 13944 if ((stream_OR_tracks is MediaStream || stream_OR_tracks == null)) {
13945 return MediaStream._create_2(stream_OR_tracks); 13945 return MediaStream._create_2(stream_OR_tracks);
13946 } 13946 }
13947 if ((stream_OR_tracks is List<MediaStreamTrack> || stream_OR_tracks == null) ) { 13947 if ((stream_OR_tracks is List<MediaStreamTrack> || stream_OR_tracks == null) ) {
13948 return MediaStream._create_3(stream_OR_tracks); 13948 return MediaStream._create_3(stream_OR_tracks);
13949 } 13949 }
13950 throw new ArgumentError("Incorrect number or type of arguments"); 13950 throw new ArgumentError("Incorrect number or type of arguments");
13951 } 13951 }
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after
16379 16379
16380 16380
16381 @DocsEditable 16381 @DocsEditable
16382 @DomName('Path') 16382 @DomName('Path')
16383 class Path extends NativeFieldWrapperClass1 { 16383 class Path extends NativeFieldWrapperClass1 {
16384 Path.internal(); 16384 Path.internal();
16385 16385
16386 @DomName('Path.DOMPath') 16386 @DomName('Path.DOMPath')
16387 @DocsEditable 16387 @DocsEditable
16388 factory Path([path_OR_text]) { 16388 factory Path([path_OR_text]) {
16389 if (!?path_OR_text) { 16389 if (path_OR_text == null) {
16390 return Path._create_1(); 16390 return Path._create_1();
16391 } 16391 }
16392 if ((path_OR_text is Path || path_OR_text == null)) { 16392 if ((path_OR_text is Path || path_OR_text == null)) {
16393 return Path._create_2(path_OR_text); 16393 return Path._create_2(path_OR_text);
16394 } 16394 }
16395 if ((path_OR_text is String || path_OR_text == null)) { 16395 if ((path_OR_text is String || path_OR_text == null)) {
16396 return Path._create_3(path_OR_text); 16396 return Path._create_3(path_OR_text);
16397 } 16397 }
16398 throw new ArgumentError("Incorrect number or type of arguments"); 16398 throw new ArgumentError("Incorrect number or type of arguments");
16399 } 16399 }
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
17490 17490
17491 @DomName('RTCDTMFSender.addEventListener') 17491 @DomName('RTCDTMFSender.addEventListener')
17492 @DocsEditable 17492 @DocsEditable
17493 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "RTCDTMFSender_addEventListener_Callback"; 17493 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "RTCDTMFSender_addEventListener_Callback";
17494 17494
17495 @DomName('RTCDTMFSender.dispatchEvent') 17495 @DomName('RTCDTMFSender.dispatchEvent')
17496 @DocsEditable 17496 @DocsEditable
17497 bool dispatchEvent(Event event) native "RTCDTMFSender_dispatchEvent_Callback"; 17497 bool dispatchEvent(Event event) native "RTCDTMFSender_dispatchEvent_Callback";
17498 17498
17499 void insertDtmf(String tones, [int duration, int interToneGap]) { 17499 void insertDtmf(String tones, [int duration, int interToneGap]) {
17500 if (?interToneGap) { 17500 if (interToneGap != null) {
17501 _insertDTMF_1(tones, duration, interToneGap); 17501 _insertDTMF_1(tones, duration, interToneGap);
17502 return; 17502 return;
17503 } 17503 }
17504 if (?duration) { 17504 if (duration != null) {
17505 _insertDTMF_2(tones, duration); 17505 _insertDTMF_2(tones, duration);
17506 return; 17506 return;
17507 } 17507 }
17508 _insertDTMF_3(tones); 17508 _insertDTMF_3(tones);
17509 return; 17509 return;
17510 } 17510 }
17511 17511
17512 void _insertDTMF_1(tones, duration, interToneGap) native "RTCDTMFSender__inser tDTMF_1_Callback"; 17512 void _insertDTMF_1(tones, duration, interToneGap) native "RTCDTMFSender__inser tDTMF_1_Callback";
17513 17513
17514 void _insertDTMF_2(tones, duration) native "RTCDTMFSender__insertDTMF_2_Callba ck"; 17514 void _insertDTMF_2(tones, duration) native "RTCDTMFSender__insertDTMF_2_Callba ck";
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
18806 // SpeechGrammar is the element type. 18806 // SpeechGrammar is the element type.
18807 18807
18808 18808
18809 void set length(int value) { 18809 void set length(int value) {
18810 throw new UnsupportedError("Cannot resize immutable List."); 18810 throw new UnsupportedError("Cannot resize immutable List.");
18811 } 18811 }
18812 18812
18813 // -- end List<SpeechGrammar> mixins. 18813 // -- end List<SpeechGrammar> mixins.
18814 18814
18815 void addFromString(String string, [num weight]) { 18815 void addFromString(String string, [num weight]) {
18816 if (?weight) { 18816 if (weight != null) {
18817 _addFromString_1(string, weight); 18817 _addFromString_1(string, weight);
18818 return; 18818 return;
18819 } 18819 }
18820 _addFromString_2(string); 18820 _addFromString_2(string);
18821 return; 18821 return;
18822 } 18822 }
18823 18823
18824 void _addFromString_1(string, weight) native "SpeechGrammarList__addFromString _1_Callback"; 18824 void _addFromString_1(string, weight) native "SpeechGrammarList__addFromString _1_Callback";
18825 18825
18826 void _addFromString_2(string) native "SpeechGrammarList__addFromString_2_Callb ack"; 18826 void _addFromString_2(string) native "SpeechGrammarList__addFromString_2_Callb ack";
18827 18827
18828 void addFromUri(String src, [num weight]) { 18828 void addFromUri(String src, [num weight]) {
18829 if (?weight) { 18829 if (weight != null) {
18830 _addFromUri_1(src, weight); 18830 _addFromUri_1(src, weight);
18831 return; 18831 return;
18832 } 18832 }
18833 _addFromUri_2(src); 18833 _addFromUri_2(src);
18834 return; 18834 return;
18835 } 18835 }
18836 18836
18837 void _addFromUri_1(src, weight) native "SpeechGrammarList__addFromUri_1_Callba ck"; 18837 void _addFromUri_1(src, weight) native "SpeechGrammarList__addFromUri_1_Callba ck";
18838 18838
18839 void _addFromUri_2(src) native "SpeechGrammarList__addFromUri_2_Callback"; 18839 void _addFromUri_2(src) native "SpeechGrammarList__addFromUri_2_Callback";
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
20049 20049
20050 @DomName('HTMLTextAreaElement.select') 20050 @DomName('HTMLTextAreaElement.select')
20051 @DocsEditable 20051 @DocsEditable
20052 void select() native "HTMLTextAreaElement_select_Callback"; 20052 void select() native "HTMLTextAreaElement_select_Callback";
20053 20053
20054 @DomName('HTMLTextAreaElement.setCustomValidity') 20054 @DomName('HTMLTextAreaElement.setCustomValidity')
20055 @DocsEditable 20055 @DocsEditable
20056 void setCustomValidity(String error) native "HTMLTextAreaElement_setCustomVali dity_Callback"; 20056 void setCustomValidity(String error) native "HTMLTextAreaElement_setCustomVali dity_Callback";
20057 20057
20058 void setRangeText(String replacement, [int start, int end, String selectionMod e]) { 20058 void setRangeText(String replacement, [int start, int end, String selectionMod e]) {
20059 if ((replacement is String || replacement == null) && !?start && !?end && !? selectionMode) { 20059 if ((replacement is String || replacement == null) && start == null && end = = null && selectionMode == null) {
20060 _setRangeText_1(replacement); 20060 _setRangeText_1(replacement);
20061 return; 20061 return;
20062 } 20062 }
20063 if ((replacement is String || replacement == null) && (start is int || start == null) && (end is int || end == null) && (selectionMode is String || selectio nMode == null)) { 20063 if ((replacement is String || replacement == null) && (start is int || start == null) && (end is int || end == null) && (selectionMode is String || selectio nMode == null)) {
20064 _setRangeText_2(replacement, start, end, selectionMode); 20064 _setRangeText_2(replacement, start, end, selectionMode);
20065 return; 20065 return;
20066 } 20066 }
20067 throw new ArgumentError("Incorrect number or type of arguments"); 20067 throw new ArgumentError("Incorrect number or type of arguments");
20068 } 20068 }
20069 20069
20070 void _setRangeText_1(replacement) native "HTMLTextAreaElement__setRangeText_1_ Callback"; 20070 void _setRangeText_1(replacement) native "HTMLTextAreaElement__setRangeText_1_ Callback";
20071 20071
20072 void _setRangeText_2(replacement, start, end, selectionMode) native "HTMLTextA reaElement__setRangeText_2_Callback"; 20072 void _setRangeText_2(replacement, start, end, selectionMode) native "HTMLTextA reaElement__setRangeText_2_Callback";
20073 20073
20074 void setSelectionRange(int start, int end, [String direction]) { 20074 void setSelectionRange(int start, int end, [String direction]) {
20075 if (?direction) { 20075 if (direction != null) {
20076 _setSelectionRange_1(start, end, direction); 20076 _setSelectionRange_1(start, end, direction);
20077 return; 20077 return;
20078 } 20078 }
20079 _setSelectionRange_2(start, end); 20079 _setSelectionRange_2(start, end);
20080 return; 20080 return;
20081 } 20081 }
20082 20082
20083 void _setSelectionRange_1(start, end, direction) native "HTMLTextAreaElement__ setSelectionRange_1_Callback"; 20083 void _setSelectionRange_1(start, end, direction) native "HTMLTextAreaElement__ setSelectionRange_1_Callback";
20084 20084
20085 void _setSelectionRange_2(start, end) native "HTMLTextAreaElement__setSelectio nRange_2_Callback"; 20085 void _setSelectionRange_2(start, end) native "HTMLTextAreaElement__setSelectio nRange_2_Callback";
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
21250 @DocsEditable 21250 @DocsEditable
21251 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message'); 21251 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea mProvider<MessageEvent>('message');
21252 21252
21253 @DomName('WebSocket.openEvent') 21253 @DomName('WebSocket.openEvent')
21254 @DocsEditable 21254 @DocsEditable
21255 static const EventStreamProvider<Event> openEvent = const EventStreamProvider< Event>('open'); 21255 static const EventStreamProvider<Event> openEvent = const EventStreamProvider< Event>('open');
21256 21256
21257 @DomName('WebSocket.WebSocket') 21257 @DomName('WebSocket.WebSocket')
21258 @DocsEditable 21258 @DocsEditable
21259 factory WebSocket(String url, [protocol_OR_protocols]) { 21259 factory WebSocket(String url, [protocol_OR_protocols]) {
21260 if ((url is String || url == null) && !?protocol_OR_protocols) { 21260 if ((url is String || url == null) && protocol_OR_protocols == null) {
21261 return WebSocket._create_1(url); 21261 return WebSocket._create_1(url);
21262 } 21262 }
21263 if ((url is String || url == null) && (protocol_OR_protocols is List<String> || protocol_OR_protocols == null)) { 21263 if ((url is String || url == null) && (protocol_OR_protocols is List<String> || protocol_OR_protocols == null)) {
21264 return WebSocket._create_2(url, protocol_OR_protocols); 21264 return WebSocket._create_2(url, protocol_OR_protocols);
21265 } 21265 }
21266 if ((url is String || url == null) && (protocol_OR_protocols is String || pr otocol_OR_protocols == null)) { 21266 if ((url is String || url == null) && (protocol_OR_protocols is String || pr otocol_OR_protocols == null)) {
21267 return WebSocket._create_3(url, protocol_OR_protocols); 21267 return WebSocket._create_3(url, protocol_OR_protocols);
21268 } 21268 }
21269 throw new ArgumentError("Incorrect number or type of arguments"); 21269 throw new ArgumentError("Incorrect number or type of arguments");
21270 } 21270 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
21319 21319
21320 @DomName('WebSocket.url') 21320 @DomName('WebSocket.url')
21321 @DocsEditable 21321 @DocsEditable
21322 String get url native "WebSocket_url_Getter"; 21322 String get url native "WebSocket_url_Getter";
21323 21323
21324 @DomName('WebSocket.addEventListener') 21324 @DomName('WebSocket.addEventListener')
21325 @DocsEditable 21325 @DocsEditable
21326 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "WebSocket_addEventListener_Callback"; 21326 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "WebSocket_addEventListener_Callback";
21327 21327
21328 void close([int code, String reason]) { 21328 void close([int code, String reason]) {
21329 if (?reason) { 21329 if (reason != null) {
21330 _close_1(code, reason); 21330 _close_1(code, reason);
21331 return; 21331 return;
21332 } 21332 }
21333 if (?code) { 21333 if (code != null) {
21334 _close_2(code); 21334 _close_2(code);
21335 return; 21335 return;
21336 } 21336 }
21337 _close_3(); 21337 _close_3();
21338 return; 21338 return;
21339 } 21339 }
21340 21340
21341 void _close_1(code, reason) native "WebSocket__close_1_Callback"; 21341 void _close_1(code, reason) native "WebSocket__close_1_Callback";
21342 21342
21343 void _close_2(code) native "WebSocket__close_2_Callback"; 21343 void _close_2(code) native "WebSocket__close_2_Callback";
(...skipping 5955 matching lines...) Expand 10 before | Expand all | Expand 10 after
27299 } 27299 }
27300 27300
27301 _send(msg) { 27301 _send(msg) {
27302 _sendToHelperIsolate(msg, _sendPort); 27302 _sendToHelperIsolate(msg, _sendPort);
27303 } 27303 }
27304 } 27304 }
27305 27305
27306 get _pureIsolateTimerFactoryClosure => 27306 get _pureIsolateTimerFactoryClosure =>
27307 ((int milliSeconds, void callback(Timer time), bool repeating) => 27307 ((int milliSeconds, void callback(Timer time), bool repeating) =>
27308 new _PureIsolateTimer(milliSeconds, callback, repeating)); 27308 new _PureIsolateTimer(milliSeconds, callback, repeating));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698