| 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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 * @param {?Event} event | 881 * @param {?Event} event |
| 882 * @param {!WebInspector.ContextMenu} contextMenu | 882 * @param {!WebInspector.ContextMenu} contextMenu |
| 883 * @param {!Object} target | 883 * @param {!Object} target |
| 884 */ | 884 */ |
| 885 _appendUISourceCodeItems: function(event, contextMenu, target) | 885 _appendUISourceCodeItems: function(event, contextMenu, target) |
| 886 { | 886 { |
| 887 if (!(target instanceof WebInspector.UISourceCode)) | 887 if (!(target instanceof WebInspector.UISourceCode)) |
| 888 return; | 888 return; |
| 889 | 889 |
| 890 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (target); | 890 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (target); |
| 891 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe
nuTitles() ? "Local modifications\u2026" : "Local Modifications\u2026"), this._s
howLocalHistory.bind(this, uiSourceCode)); | 891 var project = uiSourceCode.project(); |
| 892 if (project.type() !== WebInspector.projectTypes.FileSystem) |
| 893 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles() ? "Local modifications\u2026" : "Local Modifications\u2026"), thi
s._showLocalHistory.bind(this, uiSourceCode)); |
| 892 this._appendUISourceCodeMappingItems(contextMenu, uiSourceCode); | 894 this._appendUISourceCodeMappingItems(contextMenu, uiSourceCode); |
| 893 | 895 |
| 894 if (!event.target.isSelfOrDescendant(this.editorView.sidebarElement()))
{ | 896 if (!event.target.isSelfOrDescendant(this.editorView.sidebarElement()))
{ |
| 895 contextMenu.appendSeparator(); | 897 contextMenu.appendSeparator(); |
| 896 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles() ? "Reveal in navigator" : "Reveal in Navigator"), this._handleCon
textMenuReveal.bind(this, uiSourceCode)); | 898 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles() ? "Reveal in navigator" : "Reveal in Navigator"), this._handleCon
textMenuReveal.bind(this, uiSourceCode)); |
| 897 } | 899 } |
| 898 }, | 900 }, |
| 899 | 901 |
| 900 /** | 902 /** |
| 901 * @param {!WebInspector.UISourceCode} uiSourceCode | 903 * @param {!WebInspector.UISourceCode} uiSourceCode |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 var disabled = forbidden || (status === "disabled"); | 1390 var disabled = forbidden || (status === "disabled"); |
| 1389 | 1391 |
| 1390 this._disableJSInfo.classList.toggle("hidden", !forbidden); | 1392 this._disableJSInfo.classList.toggle("hidden", !forbidden); |
| 1391 this._disableJSCheckbox.checked = disabled; | 1393 this._disableJSCheckbox.checked = disabled; |
| 1392 this._disableJSCheckbox.disabled = forbidden; | 1394 this._disableJSCheckbox.disabled = forbidden; |
| 1393 } | 1395 } |
| 1394 }, | 1396 }, |
| 1395 | 1397 |
| 1396 __proto__: WebInspector.UISettingDelegate.prototype | 1398 __proto__: WebInspector.UISettingDelegate.prototype |
| 1397 } | 1399 } |
| OLD | NEW |