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

Unified Diff: Source/devtools/front_end/elements/ElementStatePaneWidget.js

Issue 1172643002: DevTools: migrate sidebar pane's titleElement to use Toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/elements/ElementStatePaneWidget.js
diff --git a/Source/devtools/front_end/elements/ElementStatePaneWidget.js b/Source/devtools/front_end/elements/ElementStatePaneWidget.js
index ba2c98a30902a854644a083c2ef3733220654843..207c595f8842063373fb70f58ee87826bf219396 100644
--- a/Source/devtools/front_end/elements/ElementStatePaneWidget.js
+++ b/Source/devtools/front_end/elements/ElementStatePaneWidget.js
@@ -10,8 +10,9 @@
WebInspector.ElementStatePaneWidget = function(toolbarItem)
{
WebInspector.StylesSidebarPane.BaseToolbarPaneWidget.call(this, toolbarItem);
- this.element.className = "styles-element-state-pane source-code";
- var table = createElement("table");
+ this.element.className = "styles-element-state-pane";
+ this.element.createChild("div").createTextChild("Force element state");
dgozman 2015/06/09 13:27:02 UIString
pfeldman 2015/06/09 13:40:59 Done.
+ var table = createElementWithClass("table", "source-code");
var inputs = [];
this._inputs = inputs;
@@ -122,7 +123,7 @@ WebInspector.ElementStatePaneWidget.prototype = {
*/
WebInspector.ElementStatePaneWidget.ButtonProvider = function()
{
- this._button = new WebInspector.ToolbarButton(WebInspector.UIString("Toggle Element State"), "element-state-toolbar-item");
+ this._button = new WebInspector.ToolbarButton(WebInspector.UIString("Toggle Element State"), "pin-toolbar-item");
this._button.addEventListener("click", this._clicked, this);
this._view = new WebInspector.ElementStatePaneWidget(this.item());
}

Powered by Google App Engine
This is Rietveld 408576698