| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 var extensions = self.runtime.extensions('view', undefined, true); | 739 var extensions = self.runtime.extensions('view', undefined, true); |
| 740 for (var extension of extensions) { | 740 for (var extension of extensions) { |
| 741 var descriptor = extension.descriptor(); | 741 var descriptor = extension.descriptor(); |
| 742 if (descriptor['persistence'] !== 'closeable') | 742 if (descriptor['persistence'] !== 'closeable') |
| 743 continue; | 743 continue; |
| 744 if (descriptor['location'] !== 'drawer-view' && descriptor['location'] !==
'panel') | 744 if (descriptor['location'] !== 'drawer-view' && descriptor['location'] !==
'panel') |
| 745 continue; | 745 continue; |
| 746 moreTools.appendItem(extension.title(), UI.viewManager.showView.bind(UI.vi
ewManager, descriptor['id'])); | 746 moreTools.appendItem(extension.title(), UI.viewManager.showView.bind(UI.vi
ewManager, descriptor['id'])); |
| 747 } | 747 } |
| 748 | 748 |
| 749 var helpSubMenu = contextMenu.namedSubMenu('mainMenuHelp'); |
| 750 helpSubMenu.appendAction('settings.documentation'); |
| 751 if (Runtime.experiments.isEnabled('releaseNote')) |
| 752 helpSubMenu.appendItem('Release Notes', () => InspectorFrontendHost.openIn
NewTab(Help.latestReleaseNote().link)); |
| 749 contextMenu.show(); | 753 contextMenu.show(); |
| 750 } | 754 } |
| 751 }; | 755 }; |
| 752 | 756 |
| 753 /** | 757 /** |
| 754 * @unrestricted | 758 * @unrestricted |
| 755 */ | 759 */ |
| 756 Main.NetworkPanelIndicator = class { | 760 Main.NetworkPanelIndicator = class { |
| 757 constructor() { | 761 constructor() { |
| 758 // TODO: we should not access network from other modules. | 762 // TODO: we should not access network from other modules. |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 * @override | 985 * @override |
| 982 * @return {?Element} | 986 * @return {?Element} |
| 983 */ | 987 */ |
| 984 settingElement() { | 988 settingElement() { |
| 985 return UI.SettingsUI.createSettingCheckbox( | 989 return UI.SettingsUI.createSettingCheckbox( |
| 986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 990 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 987 } | 991 } |
| 988 }; | 992 }; |
| 989 | 993 |
| 990 new Main.Main(); | 994 new Main.Main(); |
| OLD | NEW |