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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/externs.js
diff --git a/Source/devtools/front_end/externs.js b/Source/devtools/front_end/externs.js
index 40703b5ccd9ce88d510110ff96c5e32f97a4d9ac..5af02955f4ccc6d690a1b4925383abecfc0bb318 100644
--- a/Source/devtools/front_end/externs.js
+++ b/Source/devtools/front_end/externs.js
@@ -462,6 +462,7 @@ function Symbol(description) {}
/**
* @interface
+ * @extends $jscomp.Iterable.<T>
* @template T
*/
var Iterator = function() { }
@@ -470,14 +471,20 @@ Iterator.prototype = {
/**
* @return {{done: boolean, value: (T|undefined)}}
*/
- next: function() { }
+ next: function() { },
+
+ // FIXME: This should be removed once transpilation is not required for closure compiler ES6
+ $$iterator: function() { }
}
+// FIXME: $jscomp.Iterable hack below should be removed once transpilation is not required for closure compiler ES6
/**
* @constructor
+ * @implements $jscomp.Iterable.<!Array.<K|V>>
+ * @param {!Array.<!Array.<K|V>>|!Iterator.<!Array.<K|V>>=} iterable
* @template K, V
*/
-var Map = function() { }
+var Map = function(iterable) { }
Map.prototype = {
/**
@@ -503,6 +510,11 @@ Map.prototype = {
values: function() { },
/**
+ * @return {!Array.<!Array.<K|V>>}
+ */
+ entries: function() { },
+
+ /**
* @param {K} key
* @return {V}
*/
@@ -519,7 +531,10 @@ Map.prototype = {
/**
* @return {number}
*/
- get size() { }
+ get size() { },
+
+ // FIXME: This should be removed once transpilation is not required for closure compiler ES6
+ $$iterator: function() { }
}
// FIXME: $jscomp.Iterable hack below should be removed once transpilation is not required for closure compiler ES6

Powered by Google App Engine
This is Rietveld 408576698