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

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

Issue 1564363005: [DevTools] Device Mode polish. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 d7105d0f6a46d9e07e4d8e3093a5c51fb66817b4..02804461d57ed6b5eef39c7f8c2170346d9182a6 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js
@@ -334,6 +334,12 @@ WebInspector.ToolbarLabel.prototype = {
this.element.classList.toggle("toolbar-dimmed", dimmed);
},
+ addDropDownArrow: function()
+ {
+ this.element.classList.add("toolbar-has-dropdown");
+ this.element.createChild("div", "toolbar-dropdown-arrow");
+ },
+
__proto__: WebInspector.ToolbarItem.prototype
}
@@ -720,7 +726,7 @@ WebInspector.ToolbarComboBox = function(changeHandler, className)
WebInspector.ToolbarItem.call(this, createElementWithClass("span", "toolbar-select-container"));
this._selectElement = this.element.createChild("select", "toolbar-item");
- this.element.createChild("div", "toolbar-select-arrow");
+ this.element.createChild("div", "toolbar-dropdown-arrow");
if (changeHandler)
this._selectElement.addEventListener("change", changeHandler, false);
if (className)

Powered by Google App Engine
This is Rietveld 408576698