| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 if (contentType.hasScripts()) { | 921 if (contentType.hasScripts()) { |
| 922 var target = WebInspector.context.flavor(WebInspector.Target); | 922 var target = WebInspector.context.flavor(WebInspector.Target); |
| 923 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); | 923 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); |
| 924 if (debuggerModel && debuggerModel.isPaused()) | 924 if (debuggerModel && debuggerModel.isPaused()) |
| 925 contextMenu.appendItem(WebInspector.UIString.capitalize("Continu
e to ^here"), this._continueToLocation.bind(this, uiLocation)); | 925 contextMenu.appendItem(WebInspector.UIString.capitalize("Continu
e to ^here"), this._continueToLocation.bind(this, uiLocation)); |
| 926 } | 926 } |
| 927 | 927 |
| 928 if (contentType.hasScripts() && projectType !== WebInspector.projectType
s.Snippets) { | 928 if (contentType.hasScripts() && projectType !== WebInspector.projectType
s.Snippets) { |
| 929 var networkURL = this._networkMapping.networkURL(uiSourceCode); | 929 var networkURL = this._networkMapping.networkURL(uiSourceCode); |
| 930 var url = projectType === WebInspector.projectTypes.Formatter ? uiSo
urceCode.url() : networkURL; | 930 var url = projectType === WebInspector.projectTypes.Formatter ? uiSo
urceCode.url() : networkURL; |
| 931 this.sidebarPanes.callstack.appendBlackboxURLContextMenuItems(contex
tMenu, url, projectType === WebInspector.projectTypes.ContentScripts); | 931 var isBlackboxed = WebInspector.blackboxManager.isBlackboxedUISource
Code(uiSourceCode); |
| 932 this.sidebarPanes.callstack.appendBlackboxURLContextMenuItems(contex
tMenu, url, projectType === WebInspector.projectTypes.ContentScripts, isBlackbox
ed); |
| 932 } | 933 } |
| 933 }, | 934 }, |
| 934 | 935 |
| 935 /** | 936 /** |
| 936 * @param {!WebInspector.UISourceCode} uiSourceCode | 937 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 937 */ | 938 */ |
| 938 _handleContextMenuReveal: function(uiSourceCode) | 939 _handleContextMenuReveal: function(uiSourceCode) |
| 939 { | 940 { |
| 940 this.editorView.showBoth(); | 941 this.editorView.showBoth(); |
| 941 this._revealInNavigator(uiSourceCode); | 942 this._revealInNavigator(uiSourceCode); |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1419 WebInspector.SourcesPanelFactory.prototype = { | 1420 WebInspector.SourcesPanelFactory.prototype = { |
| 1420 /** | 1421 /** |
| 1421 * @override | 1422 * @override |
| 1422 * @return {!WebInspector.Panel} | 1423 * @return {!WebInspector.Panel} |
| 1423 */ | 1424 */ |
| 1424 createPanel: function() | 1425 createPanel: function() |
| 1425 { | 1426 { |
| 1426 return WebInspector.SourcesPanel.instance(); | 1427 return WebInspector.SourcesPanel.instance(); |
| 1427 } | 1428 } |
| 1428 } | 1429 } |
| OLD | NEW |