OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |