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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js

Issue 1599603002: [DevTools] Device Mode toolbar updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 11 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: third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js b/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
index 7175fe987d8af836c3b8df728c9ef3eb610e8c6f..64b1078552750fc59e2d3e71385f02d2999b4ae2 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
@@ -350,17 +350,14 @@ WebInspector.ToolbarButton.prototype = {
},
/**
- * @param {boolean} dimmed
+ * @param {number=} width
*/
- setDimmed: function(dimmed)
- {
- this.element.classList.toggle("toolbar-dimmed", dimmed);
- },
-
- addDropDownArrow: function()
+ turnIntoSelect: function(width)
{
this.element.classList.add("toolbar-has-dropdown");
this.element.createChild("div", "toolbar-dropdown-arrow");
+ if (width)
+ this.element.style.width = width + "px";
},
/**

Powered by Google App Engine
This is Rietveld 408576698