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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineHistoryManager.js

Issue 2916743002: [DevTools] Introduce Common.List used as a backend for list controls (Closed)
Patch Set: Tests.js Created 3 years, 7 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/timeline/TimelineHistoryManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineHistoryManager.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineHistoryManager.js
index 68ffb79f8765752401a1202bf9a1d7694d8acc41..8e2522b544452d8c95872a24f3c79071613ddc64 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineHistoryManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineHistoryManager.js
@@ -253,9 +253,10 @@ Timeline.TimelineHistoryManager.DropDown = class {
UI.createShadowRootWithCoreStyles(this._glassPane.contentElement, 'timeline/timelineHistoryManager.css');
var contentElement = shadowRoot.createChild('div', 'drop-down');
- this._listControl = new UI.ListControl(this, UI.ListMode.NonViewport);
+ var listModel = new UI.ListModel();
+ this._listControl = new UI.ListControl(listModel, this, UI.ListMode.NonViewport);
this._listControl.element.addEventListener('mousemove', this._onMouseMove.bind(this), false);
- this._listControl.replaceAllItems(models);
+ listModel.replaceAllItems(models);
contentElement.appendChild(this._listControl.element);
contentElement.addEventListener('keydown', this._onKeyDown.bind(this), false);

Powered by Google App Engine
This is Rietveld 408576698