Home | History | Annotate | Download | only in sdk

Lines Matching defs:Target

12  * @param {function(?WebInspector.Target)=} callback
14 WebInspector.Target = function(name, connection, callback)
20 this._id = WebInspector.Target._nextId++;
27 this.pageAgent().canScreencast(this._initializeCapability.bind(this, WebInspector.Target.Capabilities.CanScreencast, null));
28 this.pageAgent().canEmulate(this._initializeCapability.bind(this, WebInspector.Target.Capabilities.CanEmulate, null));
30 this.powerAgent().canProfilePower(this._initializeCapability.bind(this, WebInspector.Target.Capabilities.CanProfilePower, null));
31 this.workerAgent().canInspectWorkers(this._initializeCapability.bind(this, WebInspector.Target.Capabilities.CanInspectWorkers, this._loadedWithCapabilities.bind(this, callback)));
39 WebInspector.Target.Capabilities = {
47 WebInspector.Target._nextId = 1;
49 WebInspector.Target.prototype = {
91 * @param {function(?WebInspector.Target)=} callback
135 this.workerManager = new WebInspector.WorkerManager(this, this.hasCapability(WebInspector.Target.Capabilities.CanInspectWorkers));
139 if (this.hasCapability(WebInspector.Target.Capabilities.CanProfilePower))
188 return !this.hasCapability(WebInspector.Target.Capabilities.CanInspectWorkers);
196 return this.hasCapability(WebInspector.Target.Capabilities.CanEmulate);
226 * @param {!WebInspector.Target} target
228 WebInspector.SDKObject = function(target)
231 this._target = target;
236 * @return {!WebInspector.Target}
238 target: function()
250 * @param {!WebInspector.Target} target
252 WebInspector.SDKModel = function(modelClass, target)
254 WebInspector.SDKObject.call(this, target);
255 target._modelByConstructor.set(modelClass, this);
269 /** @type {!Array.<!WebInspector.Target>} */
386 * @param {function(?WebInspector.Target)=} callback
390 var target = new WebInspector.Target(name, connection, callbackWrapper.bind(this));
394 * @param {?WebInspector.Target} newTarget
406 * @param {!WebInspector.Target} target
408 addTarget: function(target)
410 this._targets.push(target);
412 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.InspectedURLChanged, this._redispatchEvent, this);
413 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, this._redispatchEvent, this);
414 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.Load, this._redispatchEvent, this);
415 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.WillReloadPage, this._redispatchEvent, this);
419 copy[i].targetAdded(target);
424 var model = target._modelByConstructor.get(listeners[i].modelClass);
431 * @param {!WebInspector.Target} target
433 removeTarget: function(target)
435 this._targets.remove(target);
437 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.InspectedURLChanged, this._redispatchEvent, this);
438 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, this._redispatchEvent, this);
439 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.Load, this._redispatchEvent, this);
440 target.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.WillReloadPage, this._redispatchEvent, this);
444 copy[i].targetRemoved(target);
449 var model = target._modelByConstructor.get(listeners[i].modelClass);
464 * @return {!Array.<!WebInspector.Target>}
472 * @return {?WebInspector.Target}
491 * @param {!WebInspector.Target} target
493 targetAdded: function(target) { },
496 * @param {!WebInspector.Target} target
498 targetRemoved: function(target) { },