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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/HandlerRegistry.js

Issue 2333543002: DevTools: Open link in s/Resources/Application/ panel (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698