Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1275 function createCheckboxLabel(title, checked, subtitle) | 1275 function createCheckboxLabel(title, checked, subtitle) |
| 1276 { | 1276 { |
| 1277 var element = createElement("label", "dt-checkbox"); | 1277 var element = createElement("label", "dt-checkbox"); |
| 1278 element.checkboxElement.checked = !!checked; | 1278 element.checkboxElement.checked = !!checked; |
| 1279 if (title !== undefined) { | 1279 if (title !== undefined) { |
| 1280 element.textElement = element.createChild("div", "dt-checkbox-text"); | 1280 element.textElement = element.createChild("div", "dt-checkbox-text"); |
| 1281 element.textElement.textContent = title; | 1281 element.textElement.textContent = title; |
| 1282 if (subtitle !== undefined) { | 1282 if (subtitle !== undefined) { |
| 1283 element.subtitleElement = element.textElement.createChild("div", "dt -checkbox-subtitle"); | 1283 element.subtitleElement = element.textElement.createChild("div", "dt -checkbox-subtitle"); |
| 1284 element.subtitleElement.textContent = subtitle; | 1284 element.subtitleElement.textContent = subtitle; |
| 1285 element.textElement.classList.add("small-subtitle"); | |
|
pfeldman
2016/05/02 17:31:52
Do you want to add this style to the subtitle, not
luoe
2016/05/02 17:39:42
Really, I want style for the text to change, bigge
pfeldman
2016/05/02 18:51:52
I don't think the text style should change based o
| |
| 1285 } | 1286 } |
| 1286 } | 1287 } |
| 1287 return element; | 1288 return element; |
| 1288 } | 1289 } |
| 1289 | 1290 |
| 1290 /** | 1291 /** |
| 1291 * @param {!Node} node | 1292 * @param {!Node} node |
| 1292 * @param {string} cssFile | 1293 * @param {string} cssFile |
| 1293 * @suppressGlobalPropertiesCheck | 1294 * @suppressGlobalPropertiesCheck |
| 1294 */ | 1295 */ |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1852 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], | 1853 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], |
| 1853 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")] | 1854 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")] |
| 1854 ]); | 1855 ]); |
| 1855 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; | 1856 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; |
| 1856 } | 1857 } |
| 1857 return labelMap.get(priority) || WebInspector.UIString("Unknown"); | 1858 return labelMap.get(priority) || WebInspector.UIString("Unknown"); |
| 1858 } | 1859 } |
| 1859 | 1860 |
| 1860 /** @type {!WebInspector.ThemeSupport} */ | 1861 /** @type {!WebInspector.ThemeSupport} */ |
| 1861 WebInspector.themeSupport; | 1862 WebInspector.themeSupport; |
| OLD | NEW |