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

Unified Diff: Source/devtools/front_end/promises/PromisePane.js

Issue 720223002: DevTools: only allow status bar items in status bars. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined 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
Index: Source/devtools/front_end/promises/PromisePane.js
diff --git a/Source/devtools/front_end/promises/PromisePane.js b/Source/devtools/front_end/promises/PromisePane.js
index cf0daaf87499b4b8150555e36b1b31f0200c79c0..9ce2839540ef6e464369f4f31527fff7cda7c531 100644
--- a/Source/devtools/front_end/promises/PromisePane.js
+++ b/Source/devtools/front_end/promises/PromisePane.js
@@ -12,21 +12,21 @@ WebInspector.PromisePane = function()
this.registerRequiredCSS("promises/promisePane.css");
this.element.classList.add("promises");
- var statusBar = this.element.createChild("div", "panel-status-bar");
+ var statusBar = new WebInspector.StatusBar(this.element);
this._recordButton = new WebInspector.StatusBarButton(WebInspector.UIString("Record Promises"), "record-profile-status-bar-item");
this._recordButton.addEventListener("click", this._recordButtonClicked.bind(this));
- statusBar.appendChild(this._recordButton.element);
+ statusBar.appendStatusBarItem(this._recordButton);
var clearButton = new WebInspector.StatusBarButton(WebInspector.UIString("Clear"), "clear-status-bar-item");
clearButton.addEventListener("click", this._clearButtonClicked.bind(this));
- statusBar.appendChild(clearButton.element);
+ statusBar.appendStatusBarItem(clearButton);
this._refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString("Refresh"), "refresh-storage-status-bar-item");
this._refreshButton.addEventListener("click", this._refreshButtonClicked.bind(this));
this._refreshButton.setEnabled(false);
- statusBar.appendChild(this._refreshButton.element);
+ statusBar.appendStatusBarItem(this._refreshButton);
this._liveCheckbox = new WebInspector.StatusBarCheckbox(WebInspector.UIString("Live"));
this._liveCheckbox.element.title = WebInspector.UIString("Live Recording");
this._liveCheckbox.inputElement.disabled = true;
- statusBar.appendChild(this._liveCheckbox.element);
+ statusBar.appendStatusBarItem(this._liveCheckbox);
this._dataGridContainer = new WebInspector.VBox();
this._dataGridContainer.show(this.element);
« no previous file with comments | « Source/devtools/front_end/profiler/profilesPanel.css ('k') | Source/devtools/front_end/resources/ApplicationCacheItemsView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698