| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 } | 357 } |
| 358 | 358 |
| 359 _onSetSidebarPage(message, port) { | 359 _onSetSidebarPage(message, port) { |
| 360 var sidebar = this._clientObjects[message.id]; | 360 var sidebar = this._clientObjects[message.id]; |
| 361 if (!sidebar) | 361 if (!sidebar) |
| 362 return this._status.E_NOTFOUND(message.id); | 362 return this._status.E_NOTFOUND(message.id); |
| 363 sidebar.setPage(this._expandResourcePath(port._extensionOrigin, message.page
)); | 363 sidebar.setPage(this._expandResourcePath(port._extensionOrigin, message.page
)); |
| 364 } | 364 } |
| 365 | 365 |
| 366 _onOpenResource(message) { | 366 _onOpenResource(message) { |
| 367 var uiSourceCode = Bindings.networkMapping.uiSourceCodeForURLForAnyTarget(me
ssage.url); | 367 var uiSourceCode = Workspace.workspace.uiSourceCodeForURL(message.url); |
| 368 if (uiSourceCode) { | 368 if (uiSourceCode) { |
| 369 Common.Revealer.reveal(uiSourceCode.uiLocation(message.lineNumber, 0)); | 369 Common.Revealer.reveal(uiSourceCode.uiLocation(message.lineNumber, 0)); |
| 370 return this._status.OK(); | 370 return this._status.OK(); |
| 371 } | 371 } |
| 372 | 372 |
| 373 var resource = Bindings.resourceForURL(message.url); | 373 var resource = Bindings.resourceForURL(message.url); |
| 374 if (resource) { | 374 if (resource) { |
| 375 Common.Revealer.reveal(resource); | 375 Common.Revealer.reveal(resource); |
| 376 return this._status.OK(); | 376 return this._status.OK(); |
| 377 } | 377 } |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 /** | 1041 /** |
| 1042 * @typedef {{code: string, description: string, details: !Array.<*>}} | 1042 * @typedef {{code: string, description: string, details: !Array.<*>}} |
| 1043 */ | 1043 */ |
| 1044 Extensions.ExtensionStatus.Record; | 1044 Extensions.ExtensionStatus.Record; |
| 1045 | 1045 |
| 1046 Extensions.extensionAPI = {}; | 1046 Extensions.extensionAPI = {}; |
| 1047 defineCommonExtensionSymbols(Extensions.extensionAPI); | 1047 defineCommonExtensionSymbols(Extensions.extensionAPI); |
| 1048 | 1048 |
| 1049 /** @type {!Extensions.ExtensionServer} */ | 1049 /** @type {!Extensions.ExtensionServer} */ |
| 1050 Extensions.extensionServer; | 1050 Extensions.extensionServer; |
| OLD | NEW |