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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js

Issue 1663723002: [DevTools] Add sourceMap support for blackboxing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@call-set-blackboxed-ranges-on-script-parsed
Patch Set: Created 4 years, 10 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698