| 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 var contentType = uiSourceCode.contentType(); | 903 var contentType = uiSourceCode.contentType(); |
| 904 if (contentType.hasScripts()) { | 904 if (contentType.hasScripts()) { |
| 905 var target = WebInspector.context.flavor(WebInspector.Target); | 905 var target = WebInspector.context.flavor(WebInspector.Target); |
| 906 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); | 906 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); |
| 907 if (debuggerModel && debuggerModel.isPaused()) | 907 if (debuggerModel && debuggerModel.isPaused()) |
| 908 contextMenu.appendItem(WebInspector.UIString.capitalize("Continu
e to ^here"), this._continueToLocation.bind(this, uiLocation)); | 908 contextMenu.appendItem(WebInspector.UIString.capitalize("Continu
e to ^here"), this._continueToLocation.bind(this, uiLocation)); |
| 909 } | 909 } |
| 910 | 910 |
| 911 if (contentType.hasScripts() && projectType !== WebInspector.projectType
s.Snippets) { | 911 if (contentType.hasScripts() && projectType !== WebInspector.projectType
s.Snippets) { |
| 912 var networkURL = this._networkMapping.networkURL(uiSourceCode); | 912 var networkURL = this._networkMapping.networkURL(uiSourceCode); |
| 913 var url = projectType === WebInspector.projectTypes.Formatter ? uiSo
urceCode.originURL() : networkURL; | 913 var url = projectType === WebInspector.projectTypes.Formatter ? uiSo
urceCode.url() : networkURL; |
| 914 this.sidebarPanes.callstack.appendBlackboxURLContextMenuItems(contex
tMenu, url, projectType === WebInspector.projectTypes.ContentScripts); | 914 this.sidebarPanes.callstack.appendBlackboxURLContextMenuItems(contex
tMenu, url, projectType === WebInspector.projectTypes.ContentScripts); |
| 915 } | 915 } |
| 916 }, | 916 }, |
| 917 | 917 |
| 918 /** | 918 /** |
| 919 * @param {!WebInspector.UISourceCode} uiSourceCode | 919 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 920 */ | 920 */ |
| 921 _handleContextMenuReveal: function(uiSourceCode) | 921 _handleContextMenuReveal: function(uiSourceCode) |
| 922 { | 922 { |
| 923 this.editorView.showBoth(); | 923 this.editorView.showBoth(); |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1402 WebInspector.SourcesPanelFactory.prototype = { | 1402 WebInspector.SourcesPanelFactory.prototype = { |
| 1403 /** | 1403 /** |
| 1404 * @override | 1404 * @override |
| 1405 * @return {!WebInspector.Panel} | 1405 * @return {!WebInspector.Panel} |
| 1406 */ | 1406 */ |
| 1407 createPanel: function() | 1407 createPanel: function() |
| 1408 { | 1408 { |
| 1409 return WebInspector.SourcesPanel.instance(); | 1409 return WebInspector.SourcesPanel.instance(); |
| 1410 } | 1410 } |
| 1411 } | 1411 } |
| OLD | NEW |