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

Unified Diff: Source/devtools/front_end/console/ConsoleView.js

Issue 732603002: DevTools: align more status bar button usages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/components/InspectorView.js ('k') | Source/devtools/front_end/inspectorStyle.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/console/ConsoleView.js
diff --git a/Source/devtools/front_end/console/ConsoleView.js b/Source/devtools/front_end/console/ConsoleView.js
index 908af5059261eaf8247a8edd19d09d2ae619d6c1..886f3ed7b587eb07addfb1211decda6954b4e4c1 100644
--- a/Source/devtools/front_end/console/ConsoleView.js
+++ b/Source/devtools/front_end/console/ConsoleView.js
@@ -68,8 +68,11 @@ WebInspector.ConsoleView = function()
WebInspector.SettingsUI.bindCheckbox(this._preserveLogCheckbox.inputElement, WebInspector.settings.preserveConsoleLog);
this._preserveLogCheckbox.element.title = WebInspector.UIString("Do not clear log on page reload / navigation.");
- var statusBarElement = this._contentsElement.createChild("div", "console-status-bar");
- statusBarElement.appendChildren(this._clearConsoleButton.element, this._filterBar.filterButton().element, this._executionContextSelector.element, this._preserveLogCheckbox.element);
+ var statusBar = new WebInspector.StatusBar(this._contentsElement);
+ statusBar.appendStatusBarItem(this._clearConsoleButton);
+ statusBar.appendStatusBarItem(this._filterBar.filterButton());
+ statusBar.appendStatusBarItem(this._executionContextSelector);
+ statusBar.appendStatusBarItem(this._preserveLogCheckbox);
this._filtersContainer = this._contentsElement.createChild("div", "console-filters-header hidden");
this._filtersContainer.appendChild(this._filterBar.filtersElement());
@@ -113,7 +116,7 @@ WebInspector.ConsoleView = function()
this._showAllMessagesCheckbox.element.classList.add("hidden");
- statusBarElement.appendChild(this._showAllMessagesCheckbox.element);
+ statusBar.appendStatusBarItem(this._showAllMessagesCheckbox);
this._registerShortcuts();
« no previous file with comments | « Source/devtools/front_end/components/InspectorView.js ('k') | Source/devtools/front_end/inspectorStyle.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698