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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/ListWidget.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/ui/ListWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js b/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
index d96d1c66e543bdeb8cd738f0a64ae7a0299c4f2d..4e83137d10818a6d17bcfb447d17908cafca531c 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
@@ -264,7 +264,7 @@ UI.ListWidget.Editor = class {
this._contentElement = this.element.createChild('div', 'editor-content');
var buttonsRow = this.element.createChild('div', 'editor-buttons');
- this._commitButton = UI.createTextButton('', this._commitClicked.bind(this));
+ this._commitButton = UI.createTextButton('', this._commitClicked.bind(this), '', true /* primary */);
buttonsRow.appendChild(this._commitButton);
this._cancelButton = UI.createTextButton(Common.UIString('Cancel'), this._cancelClicked.bind(this));
this._cancelButton.addEventListener(
@@ -307,16 +307,6 @@ UI.ListWidget.Editor = class {
return this._contentElement;
}
- /**
- * @param {boolean} material
- */
- setMaterial(material) {
- this._commitButton.classList.toggle('material-button', material);
- this._commitButton.classList.toggle('default', material);
- this._cancelButton.classList.toggle('material-button', material);
- this.element.classList.toggle('material', material);
- }
-
/**
* @param {string} name
* @param {string} type

Powered by Google App Engine
This is Rietveld 408576698