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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2721233003: DevTools: create help sub-menu (Closed)
Patch Set: fixup Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/main/module.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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();
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/main/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698