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

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: only using latin1 in css 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..8fee07412dd97e3992e9d43c1089db489a232bda 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(WebInspector.UIString("Force element state"));
+ 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());
}
« no previous file with comments | « Source/devtools/front_end/components/eventListenersView.css ('k') | Source/devtools/front_end/elements/ElementsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698