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

Side by Side Diff: Source/devtools/front_end/sdk/Target.js

Issue 310463003: DevTools: introduce TargetBreakpoints as a presentation of breakpoint and its state within target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {Protocol.Agents} 9 * @extends {Protocol.Agents}
10 * @param {!InspectorBackendClass.Connection} connection 10 * @param {!InspectorBackendClass.Connection} connection
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 this._observers = []; 222 this._observers = [];
223 } 223 }
224 224
225 WebInspector.TargetManager.prototype = { 225 WebInspector.TargetManager.prototype = {
226 226
227 /** 227 /**
228 * @param {!WebInspector.TargetManager.Observer} targetObserver 228 * @param {!WebInspector.TargetManager.Observer} targetObserver
229 */ 229 */
230 observeTargets: function(targetObserver) 230 observeTargets: function(targetObserver)
231 { 231 {
232 WebInspector.targetManager.targets().forEach(targetObserver.targetAdded. bind(targetObserver)); 232 this.targets().forEach(targetObserver.targetAdded.bind(targetObserver));
233 this._observers.push(targetObserver); 233 this._observers.push(targetObserver);
234 }, 234 },
235 235
236 /** 236 /**
237 * @param {!WebInspector.TargetManager.Observer} targetObserver
238 */
239 removeTargetObserver: function(targetObserver)
240 {
241 this._observers.remove(targetObserver);
242 },
243
244 /**
237 * @param {!InspectorBackendClass.Connection} connection 245 * @param {!InspectorBackendClass.Connection} connection
238 * @param {function(!WebInspector.Target)=} callback 246 * @param {function(!WebInspector.Target)=} callback
239 */ 247 */
240 createTarget: function(connection, callback) 248 createTarget: function(connection, callback)
241 { 249 {
242 var target = new WebInspector.Target(connection, callbackWrapper.bind(th is)); 250 var target = new WebInspector.Target(connection, callbackWrapper.bind(th is));
243 251
244 /** 252 /**
245 * @this {WebInspector.TargetManager} 253 * @this {WebInspector.TargetManager}
246 * @param newTarget 254 * @param newTarget
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 /** 298 /**
291 * @param {!WebInspector.Target} target 299 * @param {!WebInspector.Target} target
292 */ 300 */
293 targetRemoved: function(target) { }, 301 targetRemoved: function(target) { },
294 } 302 }
295 303
296 /** 304 /**
297 * @type {!WebInspector.TargetManager} 305 * @type {!WebInspector.TargetManager}
298 */ 306 */
299 WebInspector.targetManager; 307 WebInspector.targetManager;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698