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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js

Issue 2875193002: DevTools: update text inputs to new style (Closed)
Patch Set: ac Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
index 0aefce0e9ee7ca8e81191c3d3af76f500165caa0..2ad4f24efae5953f324ae256fb2c297b3b21c5bd 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
@@ -93,9 +93,8 @@ Emulation.DeviceModeToolbar = class {
* @param {!UI.Toolbar} toolbar
*/
_fillMainToolbar(toolbar) {
- var widthInput = createElementWithClass('input', 'device-mode-size-input');
+ var widthInput = UI.createInput('device-mode-size-input', 'text');
widthInput.maxLength = 4;
- widthInput.type = 'text';
widthInput.title = Common.UIString('Width');
this._updateWidthInput =
UI.bindInput(widthInput, this._applyWidth.bind(this), Emulation.DeviceModeModel.deviceSizeValidator, true);
@@ -108,9 +107,8 @@ Emulation.DeviceModeToolbar = class {
this._xItem = this._wrapToolbarItem(xElement);
toolbar.appendToolbarItem(this._xItem);
- var heightInput = createElementWithClass('input', 'device-mode-size-input');
+ var heightInput = UI.createInput('device-mode-size-input', 'text');
heightInput.maxLength = 4;
- heightInput.type = 'text';
heightInput.title = Common.UIString('Height (leave empty for full)');
this._updateHeightInput = UI.bindInput(heightInput, this._applyHeight.bind(this), validateHeight, true);
this._heightInput = heightInput;

Powered by Google App Engine
This is Rietveld 408576698