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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js

Issue 2652173002: DevTools: migrate UI.ListWidget icons over to UI.Icon (Closed)
Patch Set: Created 3 years, 11 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 0832723a1696e0faadb7e1c81456b6909001c854..8593e998edf78f90e4d028e5e5e5dd160edfb908 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js
@@ -117,11 +117,13 @@ UI.ListWidget = class extends UI.VBox {
controls.createChild('div', 'controls-gradient');
var buttons = controls.createChild('div', 'controls-buttons');
- var editButton = buttons.createChild('div', 'edit-button');
+ var editButton = UI.Icon.create('largeicon-edit', 'edit-button');
+ buttons.appendChild(editButton);
editButton.title = Common.UIString('Edit');
editButton.addEventListener('click', onEditClicked.bind(this), false);
- var removeButton = buttons.createChild('div', 'remove-button');
+ var removeButton = UI.Icon.create('largeicon-trash-bin', 'remove-button');
+ buttons.appendChild(removeButton);
removeButton.title = Common.UIString('Remove');
removeButton.addEventListener('click', onRemoveClicked.bind(this), false);

Powered by Google App Engine
This is Rietveld 408576698