OLD | NEW |
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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 } | 496 } |
497 var uiSourceCodes = WebInspector.workspace.uiSourceCodesForProjectType(W
ebInspector.projectTypes.Network); | 497 var uiSourceCodes = WebInspector.workspace.uiSourceCodesForProjectType(W
ebInspector.projectTypes.Network); |
498 uiSourceCodes = uiSourceCodes.concat(WebInspector.workspace.uiSourceCode
sForProjectType(WebInspector.projectTypes.ContentScripts)); | 498 uiSourceCodes = uiSourceCodes.concat(WebInspector.workspace.uiSourceCode
sForProjectType(WebInspector.projectTypes.ContentScripts)); |
499 uiSourceCodes.forEach(pushResourceData.bind(this)); | 499 uiSourceCodes.forEach(pushResourceData.bind(this)); |
500 WebInspector.resourceTreeModel.forAllResources(pushResourceData.bind(thi
s)); | 500 WebInspector.resourceTreeModel.forAllResources(pushResourceData.bind(thi
s)); |
501 return Object.values(resources); | 501 return Object.values(resources); |
502 }, | 502 }, |
503 | 503 |
504 /** | 504 /** |
505 * @param {!WebInspector.ContentProvider} contentProvider | 505 * @param {!WebInspector.ContentProvider} contentProvider |
| 506 * @param {!Object} message |
| 507 * @param {!MessagePort} port |
506 */ | 508 */ |
507 _getResourceContent: function(contentProvider, message, port) | 509 _getResourceContent: function(contentProvider, message, port) |
508 { | 510 { |
509 /** | 511 /** |
510 * @param {?string} content | 512 * @param {?string} content |
511 * @this {WebInspector.ExtensionServer} | 513 * @this {WebInspector.ExtensionServer} |
512 */ | 514 */ |
513 function onContentAvailable(content) | 515 function onContentAvailable(content) |
514 { | 516 { |
515 var response = { | 517 var response = { |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 /** | 1077 /** |
1076 * @typedef {{code: string, description: string, details: !Array.<*>}} | 1078 * @typedef {{code: string, description: string, details: !Array.<*>}} |
1077 */ | 1079 */ |
1078 WebInspector.ExtensionStatus.Record; | 1080 WebInspector.ExtensionStatus.Record; |
1079 | 1081 |
1080 WebInspector.extensionAPI = {}; | 1082 WebInspector.extensionAPI = {}; |
1081 defineCommonExtensionSymbols(WebInspector.extensionAPI); | 1083 defineCommonExtensionSymbols(WebInspector.extensionAPI); |
1082 | 1084 |
1083 importScript("ExtensionPanel.js"); | 1085 importScript("ExtensionPanel.js"); |
1084 importScript("ExtensionView.js"); | 1086 importScript("ExtensionView.js"); |
OLD | NEW |