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

Side by Side Diff: Source/devtools/front_end/sources/SourcesPanel.js

Issue 1176343002: DevTools: make toolbar button click targets square (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 // Step into. 735 // Step into.
736 title = WebInspector.UIString("Step into next function call (%s)."); 736 title = WebInspector.UIString("Step into next function call (%s).");
737 this._stepIntoButton = this._createButtonAndRegisterShortcutsForAction(" step-in-toolbar-item", title, "debugger.step-into"); 737 this._stepIntoButton = this._createButtonAndRegisterShortcutsForAction(" step-in-toolbar-item", title, "debugger.step-into");
738 debugToolbar.appendToolbarItem(this._stepIntoButton); 738 debugToolbar.appendToolbarItem(this._stepIntoButton);
739 739
740 // Step out. 740 // Step out.
741 title = WebInspector.UIString("Step out of current function (%s)."); 741 title = WebInspector.UIString("Step out of current function (%s).");
742 this._stepOutButton = this._createButtonAndRegisterShortcutsForAction("s tep-out-toolbar-item", title, "debugger.step-out"); 742 this._stepOutButton = this._createButtonAndRegisterShortcutsForAction("s tep-out-toolbar-item", title, "debugger.step-out");
743 debugToolbar.appendToolbarItem(this._stepOutButton); 743 debugToolbar.appendToolbarItem(this._stepOutButton);
744 744
745 debugToolbar.appendSeparator();
746
745 // Toggle Breakpoints 747 // Toggle Breakpoints
746 this._toggleBreakpointsButton = new WebInspector.ToolbarButton(WebInspec tor.UIString("Deactivate breakpoints."), "breakpoint-toolbar-item"); 748 this._toggleBreakpointsButton = new WebInspector.ToolbarButton(WebInspec tor.UIString("Deactivate breakpoints."), "breakpoint-toolbar-item");
747 this._toggleBreakpointsButton.setToggled(false); 749 this._toggleBreakpointsButton.setToggled(false);
748 this._toggleBreakpointsButton.addEventListener("click", this._toggleBrea kpointsClicked, this); 750 this._toggleBreakpointsButton.addEventListener("click", this._toggleBrea kpointsClicked, this);
749 debugToolbar.appendToolbarItem(this._toggleBreakpointsButton); 751 debugToolbar.appendToolbarItem(this._toggleBreakpointsButton);
750 752
751 // Pause on Exception 753 // Pause on Exception
752 this._pauseOnExceptionButton = new WebInspector.ToolbarButton("", "pause -on-exceptions-toolbar-item"); 754 this._pauseOnExceptionButton = new WebInspector.ToolbarButton("", "pause -on-exceptions-toolbar-item");
753 this._pauseOnExceptionButton.addEventListener("click", this._togglePause OnExceptions, this); 755 this._pauseOnExceptionButton.addEventListener("click", this._togglePause OnExceptions, this);
754 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); 756 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton);
755 757
758 debugToolbar.appendSeparator();
759
756 // Async operations 760 // Async operations
757 debugToolbar.appendToolbarItem(new WebInspector.ToolbarCheckbox(WebInspe ctor.UIString("Async"), WebInspector.UIString("Capture async stack traces"), Web Inspector.moduleSetting("enableAsyncStackTraces"))); 761 debugToolbar.appendToolbarItem(new WebInspector.ToolbarCheckbox(WebInspe ctor.UIString("Async"), WebInspector.UIString("Capture async stack traces"), Web Inspector.moduleSetting("enableAsyncStackTraces")));
758 762
759 return debugToolbar; 763 return debugToolbar;
760 }, 764 },
761 765
762 _createDebugToolbarDrawer: function() 766 _createDebugToolbarDrawer: function()
763 { 767 {
764 var debugToolbarDrawer = createElementWithClass("div", "scripts-debug-to olbar-drawer"); 768 var debugToolbarDrawer = createElementWithClass("div", "scripts-debug-to olbar-drawer");
765 769
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 WebInspector.SourcesPanelFactory.prototype = { 1456 WebInspector.SourcesPanelFactory.prototype = {
1453 /** 1457 /**
1454 * @override 1458 * @override
1455 * @return {!WebInspector.Panel} 1459 * @return {!WebInspector.Panel}
1456 */ 1460 */
1457 createPanel: function() 1461 createPanel: function()
1458 { 1462 {
1459 return WebInspector.SourcesPanel.instance(); 1463 return WebInspector.SourcesPanel.instance();
1460 } 1464 }
1461 } 1465 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sidebarPane.css ('k') | Source/devtools/front_end/sources/sourcesPanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698