OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |