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

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

Issue 1917543002: DevTools: Update styles for sensors drawer panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor updates Created 4 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/emulation/sensors.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 /** 1517 /**
1518 * @param {string} value 1518 * @param {string} value
1519 */ 1519 */
1520 function setValue(value) 1520 function setValue(value)
1521 { 1521 {
1522 if (value === input.value) 1522 if (value === input.value)
1523 return; 1523 return;
1524 var valid = validate(value); 1524 var valid = validate(value);
1525 input.classList.toggle("error-input", !valid); 1525 input.classList.toggle("error-input", !valid);
1526 input.value = value; 1526 input.value = value;
1527 input.setSelectionRange(value.length, value.length); 1527
1528 // Selection range operations are not supported by type "number" inputs. This browser
1529 // behavior is detailed by the WHATWG forms spec.
1530 if (input.type !== "number")
1531 input.setSelectionRange(value.length, value.length);
1528 } 1532 }
1529 1533
1530 return setValue; 1534 return setValue;
1531 } 1535 }
1532 1536
1533 /** 1537 /**
1534 * @constructor 1538 * @constructor
1535 */ 1539 */
1536 WebInspector.StringFormatter = function() 1540 WebInspector.StringFormatter = function()
1537 { 1541 {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], 1839 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")],
1836 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")] 1840 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")]
1837 ]); 1841 ]);
1838 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; 1842 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap;
1839 } 1843 }
1840 return labelMap.get(priority) || WebInspector.UIString("Unknown"); 1844 return labelMap.get(priority) || WebInspector.UIString("Unknown");
1841 } 1845 }
1842 1846
1843 /** @type {!WebInspector.ThemeSupport} */ 1847 /** @type {!WebInspector.ThemeSupport} */
1844 WebInspector.themeSupport; 1848 WebInspector.themeSupport;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/emulation/sensors.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698