| 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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 function createRadioLabel(name, title, checked) | 1247 function createRadioLabel(name, title, checked) |
| 1248 { | 1248 { |
| 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 |
| 1258 * @param {string} iconClass |
| 1259 * @return {!Element} |
| 1260 */ |
| 1261 function createLabel(title, iconClass) |
| 1262 { |
| 1263 var element = createElement("label", "dt-icon-label"); |
| 1264 element.createChild("span").textContent = title; |
| 1265 element.type = iconClass; |
| 1266 return element; |
| 1267 } |
| 1268 |
| 1269 /** |
| 1257 * @param {string=} title | 1270 * @param {string=} title |
| 1258 * @param {boolean=} checked | 1271 * @param {boolean=} checked |
| 1259 * @param {string=} subtitle | 1272 * @param {string=} subtitle |
| 1260 * @return {!Element} | 1273 * @return {!Element} |
| 1261 */ | 1274 */ |
| 1262 function createCheckboxLabel(title, checked, subtitle) | 1275 function createCheckboxLabel(title, checked, subtitle) |
| 1263 { | 1276 { |
| 1264 var element = createElement("label", "dt-checkbox"); | 1277 var element = createElement("label", "dt-checkbox"); |
| 1265 element.checkboxElement.checked = !!checked; | 1278 element.checkboxElement.checked = !!checked; |
| 1266 if (title !== undefined) { | 1279 if (title !== undefined) { |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1839 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], | 1852 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], |
| 1840 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High
est")] | 1853 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High
est")] |
| 1841 ]); | 1854 ]); |
| 1842 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; | 1855 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; |
| 1843 } | 1856 } |
| 1844 return labelMap.get(priority) || WebInspector.UIString("Unknown"); | 1857 return labelMap.get(priority) || WebInspector.UIString("Unknown"); |
| 1845 } | 1858 } |
| 1846 | 1859 |
| 1847 /** @type {!WebInspector.ThemeSupport} */ | 1860 /** @type {!WebInspector.ThemeSupport} */ |
| 1848 WebInspector.themeSupport; | 1861 WebInspector.themeSupport; |
| OLD | NEW |