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

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

Issue 1897383002: DevTools: Update styling for rendering drawer panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename commit Created 4 years, 8 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 9b462083694f1c3a7b0797f5c505f7162305af29..2c29c7111761417a0802611b20fbd3f1cf5c9151 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -1256,15 +1256,20 @@ function createRadioLabel(name, title, checked)
/**
* @param {string=} title
* @param {boolean=} checked
+ * @param {string=} subtitle
* @return {!Element}
*/
-function createCheckboxLabel(title, checked)
+function createCheckboxLabel(title, checked, subtitle)
{
var element = createElement("label", "dt-checkbox");
element.checkboxElement.checked = !!checked;
if (title !== undefined) {
element.textElement = element.createChild("div", "dt-checkbox-text");
element.textElement.textContent = title;
+ if (subtitle !== undefined) {
+ element.subtitleElement = element.textElement.createChild("div", "dt-checkbox-subtitle");
+ element.subtitleElement.textContent = subtitle;
+ }
}
return element;
}

Powered by Google App Engine
This is Rietveld 408576698