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

Unified Diff: Source/devtools/front_end/ui/Toolbar.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
« no previous file with comments | « Source/devtools/front_end/ui/SidebarPane.js ('k') | Source/devtools/front_end/ui/Widget.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/Toolbar.js
diff --git a/Source/devtools/front_end/ui/Toolbar.js b/Source/devtools/front_end/ui/Toolbar.js
index 43298dc7b11d7cb4206ee4c7c108a183fd8419d3..977c7d2e67c6dc3171e873e52fb1b99ffa84cd2a 100644
--- a/Source/devtools/front_end/ui/Toolbar.js
+++ b/Source/devtools/front_end/ui/Toolbar.js
@@ -37,7 +37,6 @@ WebInspector.Toolbar = function(parentElement)
/** @type {!Array.<!WebInspector.ToolbarItem>} */
this._items = [];
this.element = parentElement ? parentElement.createChild("div", "toolbar") : createElementWithClass("div", "toolbar");
-
this._shadowRoot = WebInspector.createShadowRootWithCoreStyles(this.element);
this._shadowRoot.appendChild(WebInspector.Widget.createStyleElement("ui/toolbar.css"));
this._contentElement = this._shadowRoot.createChild("div", "toolbar-shadow");
@@ -538,7 +537,7 @@ WebInspector.ToolbarButtonBase.prototype = {
for (var i = 0; i < buttons.length; ++i) {
if (buttons[i].element.classList.contains("emulate-active")) {
buttons[i].element.classList.remove("emulate-active");
- buttons[i]._clicked();
+ buttons[i]._clicked(e);
break;
}
}
« no previous file with comments | « Source/devtools/front_end/ui/SidebarPane.js ('k') | Source/devtools/front_end/ui/Widget.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698