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

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: Removed logic from patch 3 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
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 if (input.type !== "number")
1528 input.setSelectionRange(value.length, value.length);
1528 } 1529 }
1529 1530
1530 return setValue; 1531 return setValue;
1531 } 1532 }
1532 1533
1533 /** 1534 /**
1534 * @constructor 1535 * @constructor
1535 */ 1536 */
1536 WebInspector.StringFormatter = function() 1537 WebInspector.StringFormatter = function()
1537 { 1538 {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], 1836 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")],
1836 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")] 1837 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High est")]
1837 ]); 1838 ]);
1838 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; 1839 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap;
1839 } 1840 }
1840 return labelMap.get(priority) || WebInspector.UIString("Unknown"); 1841 return labelMap.get(priority) || WebInspector.UIString("Unknown");
1841 } 1842 }
1842 1843
1843 /** @type {!WebInspector.ThemeSupport} */ 1844 /** @type {!WebInspector.ThemeSupport} */
1844 WebInspector.themeSupport; 1845 WebInspector.themeSupport;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698