| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 */ | 197 */ |
| 198 function openInResourcesPanel(resourceURL) | 198 function openInResourcesPanel(resourceURL) |
| 199 { | 199 { |
| 200 var resource = WebInspector.resourceForURL(resourceURL); | 200 var resource = WebInspector.resourceForURL(resourceURL); |
| 201 if (resource) | 201 if (resource) |
| 202 WebInspector.Revealer.reveal(resource); | 202 WebInspector.Revealer.reveal(resource); |
| 203 else | 203 else |
| 204 InspectorFrontendHost.openInNewTab(resourceURL); | 204 InspectorFrontendHost.openInNewTab(resourceURL); |
| 205 } | 205 } |
| 206 if (!targetNode.enclosingNodeOrSelfWithClassList(["resources", "panel"])
&& WebInspector.resourceForURL(resourceURL)) | 206 if (!targetNode.enclosingNodeOrSelfWithClassList(["resources", "panel"])
&& WebInspector.resourceForURL(resourceURL)) |
| 207 contextMenu.appendItem(WebInspector.UIString.capitalize("Open ^link
in Resources ^panel"), openInResourcesPanel.bind(null, resourceURL)); | 207 contextMenu.appendItem(WebInspector.UIString.capitalize("Open ^link
in Application ^panel"), openInResourcesPanel.bind(null, resourceURL)); |
| 208 | 208 |
| 209 | 209 |
| 210 contextMenu.appendItem(WebInspector.copyLinkAddressLabel(), InspectorFro
ntendHost.copyText.bind(InspectorFrontendHost, resourceURL)); | 210 contextMenu.appendItem(WebInspector.copyLinkAddressLabel(), InspectorFro
ntendHost.copyText.bind(InspectorFrontendHost, resourceURL)); |
| 211 }, | 211 }, |
| 212 | 212 |
| 213 __proto__: WebInspector.Object.prototype | 213 __proto__: WebInspector.Object.prototype |
| 214 } | 214 } |
| 215 | 215 |
| 216 /** @enum {symbol} */ | 216 /** @enum {symbol} */ |
| 217 WebInspector.HandlerRegistry.Events = { | 217 WebInspector.HandlerRegistry.Events = { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 var handlerSelector = new WebInspector.HandlerSelector(WebInspector.open
AnchorLocationRegistry); | 318 var handlerSelector = new WebInspector.HandlerSelector(WebInspector.open
AnchorLocationRegistry); |
| 319 return WebInspector.SettingsUI.createCustomSetting(WebInspector.UIString
("Link handling:"), handlerSelector.element); | 319 return WebInspector.SettingsUI.createCustomSetting(WebInspector.UIString
("Link handling:"), handlerSelector.element); |
| 320 } | 320 } |
| 321 } | 321 } |
| 322 | 322 |
| 323 /** | 323 /** |
| 324 * @type {!WebInspector.HandlerRegistry} | 324 * @type {!WebInspector.HandlerRegistry} |
| 325 */ | 325 */ |
| 326 WebInspector.openAnchorLocationRegistry; | 326 WebInspector.openAnchorLocationRegistry; |
| OLD | NEW |