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

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

Issue 2562453003: [DevTools] Remove Common.Event.target field. (Closed)
Patch Set: works Created 4 years 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 * @implements {SDK.TargetManager.Observer} 5 * @implements {SDK.TargetManager.Observer}
6 * @unrestricted 6 * @unrestricted
7 */ 7 */
8 Sources.ThreadsSidebarPane = class extends UI.VBox { 8 Sources.ThreadsSidebarPane = class extends UI.VBox {
9 constructor() { 9 constructor() {
10 super(); 10 super();
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if (!target) 192 if (!target)
193 return pendingTarget.name(); 193 return pendingTarget.name();
194 var executionContext = target.runtimeModel.defaultExecutionContext(); 194 var executionContext = target.runtimeModel.defaultExecutionContext();
195 return executionContext && executionContext.label() ? executionContext.label () : target.name(); 195 return executionContext && executionContext.label() ? executionContext.label () : target.name();
196 } 196 }
197 197
198 /** 198 /**
199 * @param {!Common.Event} event 199 * @param {!Common.Event} event
200 */ 200 */
201 _onDebuggerStateChanged(event) { 201 _onDebuggerStateChanged(event) {
202 var debuggerModel = /** @type {!SDK.DebuggerModel} */ (event.target); 202 var debuggerModel = /** @type {!SDK.DebuggerModel} */ (event.data);
203 var pendingTarget = this._targetToPending.get(debuggerModel.target()); 203 var pendingTarget = this._targetToPending.get(debuggerModel.target());
204 this._updateDebuggerState(pendingTarget); 204 this._updateDebuggerState(pendingTarget);
205 } 205 }
206 206
207 /** 207 /**
208 * @param {!Common.Event} event 208 * @param {!Common.Event} event
209 */ 209 */
210 _onExecutionContextChanged(event) { 210 _onExecutionContextChanged(event) {
211 var executionContext = /** @type {!SDK.ExecutionContext} */ (event.data); 211 var executionContext = /** @type {!SDK.ExecutionContext} */ (event.data);
212 if (!executionContext.isDefault) 212 if (!executionContext.isDefault)
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 } 343 }
344 344
345 /** 345 /**
346 * @override 346 * @override
347 * @return {string} 347 * @return {string}
348 */ 348 */
349 name() { 349 name() {
350 return this._target.name(); 350 return this._target.name();
351 } 351 }
352 }; 352 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698