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

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

Issue 2453673002: [DevTools] Scope common protocol infrastructure under Protocol namespace in a separate module. (Closed)
Patch Set: Created 4 years, 1 month 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 /* 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.Target} 9 * @extends {Protocol.Target}
10 * @param {!WebInspector.TargetManager} targetManager 10 * @param {!WebInspector.TargetManager} targetManager
11 * @param {string} name 11 * @param {string} name
12 * @param {number} capabilitiesMask 12 * @param {number} capabilitiesMask
13 * @param {!InspectorBackendClass.Connection.Factory} connectionFactory 13 * @param {!Protocol.Connection.Factory} connectionFactory
14 * @param {?WebInspector.Target} parentTarget 14 * @param {?WebInspector.Target} parentTarget
15 */ 15 */
16 WebInspector.Target = function(targetManager, name, capabilitiesMask, connection Factory, parentTarget) 16 WebInspector.Target = function(targetManager, name, capabilitiesMask, connection Factory, parentTarget)
17 { 17 {
18 Protocol.Target.call(this, connectionFactory); 18 Protocol.Target.call(this, connectionFactory);
19 this._targetManager = targetManager; 19 this._targetManager = targetManager;
20 this._name = name; 20 this._name = name;
21 this._inspectedURL = ""; 21 this._inspectedURL = "";
22 this._capabilitiesMask = capabilitiesMask; 22 this._capabilitiesMask = capabilitiesMask;
23 this._parentTarget = parentTarget; 23 this._parentTarget = parentTarget;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 _targetDisposed: function(event) 269 _targetDisposed: function(event)
270 { 270 {
271 var target = /** @type {!WebInspector.Target} */ (event.data); 271 var target = /** @type {!WebInspector.Target} */ (event.data);
272 if (target !== this._target) 272 if (target !== this._target)
273 return; 273 return;
274 this.dispose(); 274 this.dispose();
275 }, 275 },
276 276
277 __proto__: WebInspector.SDKObject.prototype 277 __proto__: WebInspector.SDKObject.prototype
278 }; 278 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698