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

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: UI update for sensors panel 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 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 /** 1512 /**
1513 * @param {string} value 1513 * @param {string} value
1514 */ 1514 */
1515 function setValue(value) 1515 function setValue(value)
1516 { 1516 {
1517 if (value === input.value) 1517 if (value === input.value)
1518 return; 1518 return;
1519 var valid = validate(value); 1519 var valid = validate(value);
1520 input.classList.toggle("error-input", !valid); 1520 input.classList.toggle("error-input", !valid);
1521 input.value = value; 1521 input.value = value;
1522 input.setSelectionRange(value.length, value.length); 1522 if (input.type !== "number")
lushnikov 2016/04/23 00:19:46 why do we avoid this for number inputs?
luoe 2016/04/25 19:26:41 According to the spec, number inputs are not suppo
lushnikov 2016/04/25 23:33:04 Yeah, tricky! I would leave a comment here, thanks
luoe 2016/04/26 02:16:22 Done.
1523 input.setSelectionRange(value.length, value.length);
1523 } 1524 }
1524 1525
1525 return setValue; 1526 return setValue;
1526 } 1527 }
1527 1528
1528 /** 1529 /**
1529 * @constructor 1530 * @constructor
1530 */ 1531 */
1531 WebInspector.StringFormatter = function() 1532 WebInspector.StringFormatter = function()
1532 { 1533 {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1830 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], 1831 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")],
1831 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")] 1832 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")]
1832 ]); 1833 ]);
1833 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; 1834 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap;
1834 } 1835 }
1835 return labelMap.get(priority) || WebInspector.UIString("Unknown"); 1836 return labelMap.get(priority) || WebInspector.UIString("Unknown");
1836 } 1837 }
1837 1838
1838 /** @type {!WebInspector.ThemeSupport} */ 1839 /** @type {!WebInspector.ThemeSupport} */
1839 WebInspector.themeSupport; 1840 WebInspector.themeSupport;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698