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

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

Issue 2875793004: Coverage: misc UI polish (Closed)
Patch Set: review comments, dropped some stray lines Created 3 years, 7 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/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;
+};

Powered by Google App Engine
This is Rietveld 408576698