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

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: Don't access |document| directly 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 */ 466 */
467 var Iterator = function() { } 467 var Iterator = function() { }
468 468
469 Iterator.prototype = { 469 Iterator.prototype = {
470 /** 470 /**
471 * @return {{done: boolean, value: (T|undefined)}} 471 * @return {{done: boolean, value: (T|undefined)}}
472 */ 472 */
473 next: function() { } 473 next: function() { }
474 } 474 }
475 475
476 //FIXME: $jscomp.Iterable hack below should be removed once transpilation is not required for closure compiler ES6
476 /** 477 /**
477 * @constructor 478 * @constructor
479 * @implements $jscomp.Iterable.<!Array.<K|V>>
480 * @param {!Array.<!Array.<K|V>>|!Iterator.<!Array.<K|V>>=} iterable
478 * @template K, V 481 * @template K, V
479 */ 482 */
480 var Map = function() { } 483 var Map = function(iterable) { }
481 484
482 Map.prototype = { 485 Map.prototype = {
483 /** 486 /**
484 * @param {K} key 487 * @param {K} key
485 * @param {V} value 488 * @param {V} value
486 */ 489 */
487 set: function(key, value) { }, 490 set: function(key, value) { },
488 491
489 /** 492 /**
490 * @param {K} key 493 * @param {K} key
491 * @return {boolean} 494 * @return {boolean}
492 */ 495 */
493 delete: function(key) { }, 496 delete: function(key) { },
494 497
495 /** 498 /**
496 * @return {!Iterator.<K>} 499 * @return {!Iterator.<K>}
497 */ 500 */
498 keys: function() { }, 501 keys: function() { },
499 502
500 /** 503 /**
501 * @return {!Iterator.<V>} 504 * @return {!Iterator.<V>}
502 */ 505 */
503 values: function() { }, 506 values: function() { },
504 507
505 /** 508 /**
509 * @return {!Array.<!Array.<K|V>>}
510 */
511 entries: function() { },
512
513 /**
506 * @param {K} key 514 * @param {K} key
507 * @return {V} 515 * @return {V}
508 */ 516 */
509 get: function(key) { }, 517 get: function(key) { },
510 518
511 /** 519 /**
512 * @param {K} key 520 * @param {K} key
513 * @return {boolean} 521 * @return {boolean}
514 */ 522 */
515 has: function(key) { }, 523 has: function(key) { },
516 524
517 clear: function() { }, 525 clear: function() { },
518 526
519 /** 527 /**
520 * @return {number} 528 * @return {number}
521 */ 529 */
522 get size() { } 530 get size() { },
531
532 // FIXME: This should be removed once transpilation is not required for clos ure compiler ES6
533 $$iterator: function() { }
523 } 534 }
524 535
525 // FIXME: $jscomp.Iterable hack below should be removed once transpilation is no t required for closure compiler ES6 536 // FIXME: $jscomp.Iterable hack below should be removed once transpilation is no t required for closure compiler ES6
526 /** 537 /**
527 * @constructor 538 * @constructor
528 * @implements $jscomp.Iterable.<V> 539 * @implements $jscomp.Iterable.<V>
529 * @param {!Array.<V>|!Iterator.<V>=} iterable 540 * @param {!Array.<V>|!Iterator.<V>=} iterable
530 * @template V 541 * @template V
531 */ 542 */
532 var Set = function(iterable) { } 543 var Set = function(iterable) { }
(...skipping 24 matching lines...) Expand all
557 clear: function() { }, 568 clear: function() { },
558 569
559 /** 570 /**
560 * @return {number} 571 * @return {number}
561 */ 572 */
562 get size() { }, 573 get size() { },
563 574
564 // FIXME: This should be removed once transpilation is not required for clos ure compiler ES6 575 // FIXME: This should be removed once transpilation is not required for clos ure compiler ES6
565 $$iterator: function() { } 576 $$iterator: function() { }
566 } 577 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698