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

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

Issue 2721233003: DevTools: create help sub-menu (Closed)
Patch Set: 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
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.appendItem(
751 'Documentation',
752 () => InspectorFrontendHost.openInNewTab('https://developers.google.com/ web/tools/chrome-devtools/'));
753 if (Runtime.experiments.isEnabled('releaseNote'))
754 helpSubMenu.appendItem('Release Note', () => InspectorFrontendHost.openInN ewTab(Help.latestReleaseNote().link));
alph 2017/03/01 17:26:47 Release Notes?
chenwilliam 2017/03/01 19:43:26 Done.
749 contextMenu.show(); 755 contextMenu.show();
750 } 756 }
751 }; 757 };
752 758
753 /** 759 /**
754 * @unrestricted 760 * @unrestricted
755 */ 761 */
756 Main.NetworkPanelIndicator = class { 762 Main.NetworkPanelIndicator = class {
757 constructor() { 763 constructor() {
758 // TODO: we should not access network from other modules. 764 // TODO: we should not access network from other modules.
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 * @override 987 * @override
982 * @return {?Element} 988 * @return {?Element}
983 */ 989 */
984 settingElement() { 990 settingElement() {
985 return UI.SettingsUI.createSettingCheckbox( 991 return UI.SettingsUI.createSettingCheckbox(
986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' )); 992 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers' ));
987 } 993 }
988 }; 994 };
989 995
990 new Main.Main(); 996 new Main.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698