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

Unified Diff: third_party/WebKit/Source/devtools/front_end/devices/DevicesView.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/devices/DevicesView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js b/third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js
index 91d23713b89d57aec6c440a006f0072e8d716b0a..ed5688b6c65e0162e39f0a22d06a70b1546daba0 100644
--- a/third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js
+++ b/third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js
@@ -685,8 +685,8 @@ Devices.DevicesView.DeviceView = class extends UI.VBox {
var newTabRow = element.createChild('div', 'device-browser-new-tab');
newTabRow.createChild('div', '').textContent = Common.UIString('New tab:');
- var newTabInput = newTabRow.createChild('input', '');
- newTabInput.type = 'text';
+ var newTabInput = UI.createInput('', 'text');
+ newTabRow.appendChild(newTabInput);
newTabInput.placeholder = Common.UIString('Enter URL');
newTabInput.addEventListener('keydown', newTabKeyDown, false);
var newTabButton = UI.createTextButton(Common.UIString('Open'), openNewTab);

Powered by Google App Engine
This is Rietveld 408576698