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

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

Issue 2191333003: DevTools: Show/hide console -> 'console drawer' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | no next file » | 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 832
833 /** 833 /**
834 * @param {string} side 834 * @param {string} side
835 */ 835 */
836 function setDockSide(side) 836 function setDockSide(side)
837 { 837 {
838 WebInspector.dockController.setDockSide(side); 838 WebInspector.dockController.setDockSide(side);
839 contextMenu.discard(); 839 contextMenu.discard();
840 } 840 }
841 841
842 contextMenu.appendAction("main.toggle-drawer", WebInspector.inspectorVie w.drawerVisible() ? WebInspector.UIString("Hide console") : WebInspector.UIStrin g("Show console")); 842 contextMenu.appendAction("main.toggle-drawer", WebInspector.inspectorVie w.drawerVisible() ? WebInspector.UIString("Hide console drawer") : WebInspector. UIString("Show console drawer"));
843 contextMenu.appendItemsAtLocation("mainMenu"); 843 contextMenu.appendItemsAtLocation("mainMenu");
844 var moreTools = contextMenu.namedSubMenu("mainMenuMoreTools"); 844 var moreTools = contextMenu.namedSubMenu("mainMenuMoreTools");
845 var extensions = self.runtime.extensions("drawer-view", undefined, true) ; 845 var extensions = self.runtime.extensions("drawer-view", undefined, true) ;
846 for (var extension of extensions) { 846 for (var extension of extensions) {
847 var descriptor = extension.descriptor(); 847 var descriptor = extension.descriptor();
848 moreTools.appendItem(extension.title(), WebInspector.inspectorView.s howViewInDrawer.bind(WebInspector.inspectorView, descriptor["name"])); 848 moreTools.appendItem(extension.title(), WebInspector.inspectorView.s howViewInDrawer.bind(WebInspector.inspectorView, descriptor["name"]));
849 } 849 }
850 850
851 contextMenu.show(); 851 contextMenu.show();
852 } 852 }
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 * @return {?Element} 1101 * @return {?Element}
1102 */ 1102 */
1103 settingElement: function() 1103 settingElement: function()
1104 { 1104 {
1105 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1105 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1106 } 1106 }
1107 } 1107 }
1108 1108
1109 1109
1110 new WebInspector.Main(); 1110 new WebInspector.Main();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698