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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js

Issue 2163093003: [DevTools] Remove Object.values and Object.isEmpty from utilities.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 { 1274 {
1275 this._dispatchWhenDocumentAvailable(this._agent.pushNodeByPathToFrontend .bind(this._agent, path), callback); 1275 this._dispatchWhenDocumentAvailable(this._agent.pushNodeByPathToFrontend .bind(this._agent, path), callback);
1276 }, 1276 },
1277 1277
1278 /** 1278 /**
1279 * @param {!Set<number>} backendNodeIds 1279 * @param {!Set<number>} backendNodeIds
1280 * @param {function(?Map<number, ?WebInspector.DOMNode>)} callback 1280 * @param {function(?Map<number, ?WebInspector.DOMNode>)} callback
1281 */ 1281 */
1282 pushNodesByBackendIdsToFrontend: function(backendNodeIds, callback) 1282 pushNodesByBackendIdsToFrontend: function(backendNodeIds, callback)
1283 { 1283 {
1284 var backendNodeIdsArray = Array.from(backendNodeIds.values()); 1284 var backendNodeIdsArray = backendNodeIds.valuesArray();
1285 /** 1285 /**
1286 * @param {?Array<!DOMAgent.NodeId>} nodeIds 1286 * @param {?Array<!DOMAgent.NodeId>} nodeIds
1287 * @this {!WebInspector.DOMModel} 1287 * @this {!WebInspector.DOMModel}
1288 */ 1288 */
1289 function mycallback(nodeIds) 1289 function mycallback(nodeIds)
1290 { 1290 {
1291 if (!nodeIds) { 1291 if (!nodeIds) {
1292 callback(null); 1292 callback(null);
1293 return; 1293 return;
1294 } 1294 }
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
2277 } 2277 }
2278 2278
2279 /** 2279 /**
2280 * @param {!WebInspector.Target} target 2280 * @param {!WebInspector.Target} target
2281 * @return {?WebInspector.DOMModel} 2281 * @return {?WebInspector.DOMModel}
2282 */ 2282 */
2283 WebInspector.DOMModel.fromTarget = function(target) 2283 WebInspector.DOMModel.fromTarget = function(target)
2284 { 2284 {
2285 return /** @type {?WebInspector.DOMModel} */ (target.model(WebInspector.DOMM odel)); 2285 return /** @type {?WebInspector.DOMModel} */ (target.model(WebInspector.DOMM odel));
2286 } 2286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698