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

Unified Diff: third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js

Issue 2881453003: DevTools: update buttons to new style (Closed)
Patch Set: fix test 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..505603b59c9640d4eec70a3ca2f1440fbedb8beb 100644
--- a/third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js
+++ b/third_party/WebKit/Source/devtools/front_end/devices/DevicesView.js
@@ -481,7 +481,7 @@ Devices.DevicesView.NetworkDiscoveryView = class extends UI.VBox {
var addButton = UI.createTextButton(
nodeFrontend ? Common.UIString('Add connection') : Common.UIString('Add address'),
- this._addNetworkTargetButtonClicked.bind(this), 'add-network-target-button');
+ this._addNetworkTargetButtonClicked.bind(this), 'add-network-target-button', true /* primary */);
this.element.appendChild(addButton);
/** @type {!Array<{address: string}>} */
@@ -491,7 +491,6 @@ Devices.DevicesView.NetworkDiscoveryView = class extends UI.VBox {
if (nodeFrontend) {
this.element.classList.add('node-frontend');
this._list.element.classList.add('node-frontend');
- addButton.classList.add('material-button', 'default');
}
}
@@ -584,7 +583,6 @@ Devices.DevicesView.NetworkDiscoveryView = class extends UI.VBox {
return this._editor;
var editor = new UI.ListWidget.Editor();
- editor.setMaterial(this._nodeFrontend);
this._editor = editor;
var content = editor.contentElement();
var fields = content.createChild('div', 'network-discovery-edit-row');

Powered by Google App Engine
This is Rietveld 408576698