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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 if (!(target instanceof WebInspector.UISourceCode)) | 871 if (!(target instanceof WebInspector.UISourceCode)) |
872 return; | 872 return; |
873 | 873 |
874 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (target); | 874 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (target); |
875 var project = uiSourceCode.project(); | 875 var project = uiSourceCode.project(); |
876 if (project.type() !== WebInspector.projectTypes.FileSystem) | 876 if (project.type() !== WebInspector.projectTypes.FileSystem) |
877 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles() ? "Local modifications\u2026" : "Local Modifications\u2026"), thi
s._showLocalHistory.bind(this, uiSourceCode)); | 877 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles() ? "Local modifications\u2026" : "Local Modifications\u2026"), thi
s._showLocalHistory.bind(this, uiSourceCode)); |
878 this._appendUISourceCodeMappingItems(contextMenu, uiSourceCode); | 878 this._appendUISourceCodeMappingItems(contextMenu, uiSourceCode); |
879 | 879 |
880 if (uiSourceCode.contentType() === WebInspector.resourceTypes.Script &&
project.type() !== WebInspector.projectTypes.Snippets) | 880 if (uiSourceCode.contentType() === WebInspector.resourceTypes.Script &&
project.type() !== WebInspector.projectTypes.Snippets) |
881 this.sidebarPanes.callstack.appendBlackboxURLContextMenuItems(contex
tMenu, uiSourceCode.url); | 881 this.sidebarPanes.callstack.appendBlackboxURLContextMenuItems(contex
tMenu, uiSourceCode.url, project.type() === WebInspector.projectTypes.ContentScr
ipts); |
882 | 882 |
883 if (!event.target.isSelfOrDescendant(this.editorView.sidebarElement()))
{ | 883 if (!event.target.isSelfOrDescendant(this.editorView.sidebarElement()))
{ |
884 contextMenu.appendSeparator(); | 884 contextMenu.appendSeparator(); |
885 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles() ? "Reveal in navigator" : "Reveal in Navigator"), this._handleCon
textMenuReveal.bind(this, uiSourceCode)); | 885 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles() ? "Reveal in navigator" : "Reveal in Navigator"), this._handleCon
textMenuReveal.bind(this, uiSourceCode)); |
886 } | 886 } |
887 }, | 887 }, |
888 | 888 |
889 /** | 889 /** |
890 * @param {!WebInspector.UISourceCode} uiSourceCode | 890 * @param {!WebInspector.UISourceCode} uiSourceCode |
891 */ | 891 */ |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 */ | 1342 */ |
1343 handleAction: function() | 1343 handleAction: function() |
1344 { | 1344 { |
1345 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); | 1345 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); |
1346 if (!panel) | 1346 if (!panel) |
1347 return false; | 1347 return false; |
1348 panel.togglePause(); | 1348 panel.togglePause(); |
1349 return true; | 1349 return true; |
1350 } | 1350 } |
1351 } | 1351 } |
OLD | NEW |