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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 var element = createElement("label", "dt-radio"); 1249 var element = createElement("label", "dt-radio");
1250 element.radioElement.name = name; 1250 element.radioElement.name = name;
1251 element.radioElement.checked = !!checked; 1251 element.radioElement.checked = !!checked;
1252 element.createTextChild(title); 1252 element.createTextChild(title);
1253 return element; 1253 return element;
1254 } 1254 }
1255 1255
1256 /** 1256 /**
1257 * @param {string=} title 1257 * @param {string=} title
1258 * @param {boolean=} checked 1258 * @param {boolean=} checked
1259 * @param {string=} subtitle
1259 * @return {!Element} 1260 * @return {!Element}
1260 */ 1261 */
1261 function createCheckboxLabel(title, checked) 1262 function createCheckboxLabel(title, checked, subtitle)
1262 { 1263 {
1263 var element = createElement("label", "dt-checkbox"); 1264 var element = createElement("label", "dt-checkbox");
1264 element.checkboxElement.checked = !!checked; 1265 element.checkboxElement.checked = !!checked;
1265 if (title !== undefined) { 1266 if (title !== undefined) {
1266 element.textElement = element.createChild("div", "dt-checkbox-text"); 1267 element.textElement = element.createChild("div", "dt-checkbox-text");
1267 element.textElement.textContent = title; 1268 element.textElement.textContent = title;
1269 if (subtitle !== undefined) {
1270 element.subtitleElement = element.textElement.createChild("div", "dt -checkbox-subtitle");
lushnikov 2016/04/19 22:37:45 Don't you also need to put the default subtitle st
luoe 2016/04/22 00:44:50 Done.
1271 element.subtitleElement.textContent = subtitle;
1272 }
1268 } 1273 }
1269 return element; 1274 return element;
1270 } 1275 }
1271 1276
1272 /** 1277 /**
1273 * @param {!Node} node 1278 * @param {!Node} node
1274 * @param {string} cssFile 1279 * @param {string} cssFile
1275 * @suppressGlobalPropertiesCheck 1280 * @suppressGlobalPropertiesCheck
1276 */ 1281 */
1277 WebInspector.appendStyle = function(node, cssFile) 1282 WebInspector.appendStyle = function(node, cssFile)
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1830 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], 1835 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")],
1831 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")] 1836 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")]
1832 ]); 1837 ]);
1833 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; 1838 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap;
1834 } 1839 }
1835 return labelMap.get(priority) || WebInspector.UIString("Unknown"); 1840 return labelMap.get(priority) || WebInspector.UIString("Unknown");
1836 } 1841 }
1837 1842
1838 /** @type {!WebInspector.ThemeSupport} */ 1843 /** @type {!WebInspector.ThemeSupport} */
1839 WebInspector.themeSupport; 1844 WebInspector.themeSupport;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698