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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/ThreadsSidebarPane.js

Issue 2238003002: DevTools: migrate sources panel sidebar to views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.SimpleView} 7 * @extends {WebInspector.VBox}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.ThreadsSidebarPane = function() 10 WebInspector.ThreadsSidebarPane = function()
11 { 11 {
12 WebInspector.SimpleView.call(this, WebInspector.UIString("Threads")); 12 WebInspector.VBox.call(this);
13 13
14 /** @type {!Map.<!WebInspector.DebuggerModel, !WebInspector.UIList.Item>} */ 14 /** @type {!Map.<!WebInspector.DebuggerModel, !WebInspector.UIList.Item>} */
15 this._debuggerModelToListItems = new Map(); 15 this._debuggerModelToListItems = new Map();
16 /** @type {!Map.<!WebInspector.UIList.Item, !WebInspector.Target>} */ 16 /** @type {!Map.<!WebInspector.UIList.Item, !WebInspector.Target>} */
17 this._listItemsToTargets = new Map(); 17 this._listItemsToTargets = new Map();
18 /** @type {?WebInspector.UIList.Item} */ 18 /** @type {?WebInspector.UIList.Item} */
19 this._selectedListItem = null; 19 this._selectedListItem = null;
20 this.threadList = new WebInspector.UIList(); 20 this.threadList = new WebInspector.UIList();
21 this.threadList.show(this.element); 21 this.threadList.show(this.element);
22 WebInspector.targetManager.addModelListener(WebInspector.DebuggerModel, WebI nspector.DebuggerModel.Events.DebuggerPaused, this._onDebuggerStateChanged, this ); 22 WebInspector.targetManager.addModelListener(WebInspector.DebuggerModel, WebI nspector.DebuggerModel.Events.DebuggerPaused, this._onDebuggerStateChanged, this );
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 /** 130 /**
131 * @param {!WebInspector.UIList.Item} listItem 131 * @param {!WebInspector.UIList.Item} listItem
132 */ 132 */
133 _onListItemClick: function(listItem) 133 _onListItemClick: function(listItem)
134 { 134 {
135 WebInspector.context.setFlavor(WebInspector.Target, this._listItemsToTar gets.get(listItem)); 135 WebInspector.context.setFlavor(WebInspector.Target, this._listItemsToTar gets.get(listItem));
136 listItem.element.scrollIntoViewIfNeeded(); 136 listItem.element.scrollIntoViewIfNeeded();
137 }, 137 },
138 138
139 139
140 __proto__: WebInspector.SimpleView.prototype 140 __proto__: WebInspector.VBox.prototype
141 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698