Index: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
index 66d61ac971923f8b646837771dbf9a96e81d5f93..d952835790792d5407b3e3abc269ce4a9fd56e7b 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
@@ -2014,3 +2014,17 @@ UI.ConfirmDialog = class extends UI.VBox { |
buttonsBar.appendChild(UI.createTextButton(Common.UIString('Cancel'), cancelCallback)); |
} |
}; |
+ |
+/** |
+ * @param {!UI.ToolbarToggle} toolbarButton |
+ * @return {!Element} |
+ */ |
+UI.createInlineButton = function(toolbarButton) { |
+ var element = createElement('span'); |
+ var shadowRoot = UI.createShadowRootWithCoreStyles(element, 'ui/inlineButton.css'); |
+ element.classList.add('inline-button'); |
+ var toolbar = new UI.Toolbar(''); |
+ toolbar.appendToolbarItem(toolbarButton); |
+ shadowRoot.appendChild(toolbar.element); |
+ return element; |
+}; |