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

Side by Side Diff: Source/devtools/front_end/externs.js

Issue 701153002: DevTools: [Elements] Highlight DOM updates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments, add setting Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 var symbol; 455 var symbol;
456 456
457 /** 457 /**
458 * @param {string} description 458 * @param {string} description
459 * @return {symbol} 459 * @return {symbol}
460 */ 460 */
461 function Symbol(description) {} 461 function Symbol(description) {}
462 462
463 /** 463 /**
464 * @interface 464 * @interface
465 * @extends $jscomp.Iterable.<T>
465 * @template T 466 * @template T
466 */ 467 */
467 var Iterator = function() { } 468 var Iterator = function() { }
468 469
469 Iterator.prototype = { 470 Iterator.prototype = {
470 /** 471 /**
471 * @return {{done: boolean, value: (T|undefined)}} 472 * @return {{done: boolean, value: (T|undefined)}}
472 */ 473 */
473 next: function() { } 474 next: function() { },
475
476 // FIXME: This should be removed once transpilation is not required for clos ure compiler ES6
477 $$iterator: function() { }
474 } 478 }
475 479
480 // FIXME: $jscomp.Iterable hack below should be removed once transpilation is no t required for closure compiler ES6
476 /** 481 /**
477 * @constructor 482 * @constructor
483 * @implements $jscomp.Iterable.<!Array.<K|V>>
484 * @param {!Array.<!Array.<K|V>>|!Iterator.<!Array.<K|V>>=} iterable
478 * @template K, V 485 * @template K, V
479 */ 486 */
480 var Map = function() { } 487 var Map = function(iterable) { }
481 488
482 Map.prototype = { 489 Map.prototype = {
483 /** 490 /**
484 * @param {K} key 491 * @param {K} key
485 * @param {V} value 492 * @param {V} value
486 */ 493 */
487 set: function(key, value) { }, 494 set: function(key, value) { },
488 495
489 /** 496 /**
490 * @param {K} key 497 * @param {K} key
491 * @return {boolean} 498 * @return {boolean}
492 */ 499 */
493 delete: function(key) { }, 500 delete: function(key) { },
494 501
495 /** 502 /**
496 * @return {!Iterator.<K>} 503 * @return {!Iterator.<K>}
497 */ 504 */
498 keys: function() { }, 505 keys: function() { },
499 506
500 /** 507 /**
501 * @return {!Iterator.<V>} 508 * @return {!Iterator.<V>}
502 */ 509 */
503 values: function() { }, 510 values: function() { },
504 511
505 /** 512 /**
513 * @return {!Array.<!Array.<K|V>>}
514 */
515 entries: function() { },
516
517 /**
506 * @param {K} key 518 * @param {K} key
507 * @return {V} 519 * @return {V}
508 */ 520 */
509 get: function(key) { }, 521 get: function(key) { },
510 522
511 /** 523 /**
512 * @param {K} key 524 * @param {K} key
513 * @return {boolean} 525 * @return {boolean}
514 */ 526 */
515 has: function(key) { }, 527 has: function(key) { },
516 528
517 clear: function() { }, 529 clear: function() { },
518 530
519 /** 531 /**
520 * @return {number} 532 * @return {number}
521 */ 533 */
522 get size() { } 534 get size() { },
535
536 // FIXME: This should be removed once transpilation is not required for clos ure compiler ES6
537 $$iterator: function() { }
523 } 538 }
524 539
525 // FIXME: $jscomp.Iterable hack below should be removed once transpilation is no t required for closure compiler ES6 540 // FIXME: $jscomp.Iterable hack below should be removed once transpilation is no t required for closure compiler ES6
526 /** 541 /**
527 * @constructor 542 * @constructor
528 * @implements $jscomp.Iterable.<V> 543 * @implements $jscomp.Iterable.<V>
529 * @param {!Array.<V>|!Iterator.<V>=} iterable 544 * @param {!Array.<V>|!Iterator.<V>=} iterable
530 * @template V 545 * @template V
531 */ 546 */
532 var Set = function(iterable) { } 547 var Set = function(iterable) { }
(...skipping 24 matching lines...) Expand all
557 clear: function() { }, 572 clear: function() { },
558 573
559 /** 574 /**
560 * @return {number} 575 * @return {number}
561 */ 576 */
562 get size() { }, 577 get size() { },
563 578
564 // FIXME: This should be removed once transpilation is not required for clos ure compiler ES6 579 // FIXME: This should be removed once transpilation is not required for clos ure compiler ES6
565 $$iterator: function() { } 580 $$iterator: function() { }
566 } 581 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698