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

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

Issue 369853002: DevTools: Rename TargetAwareObject into SDKObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 6 years, 5 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 {string} name 10 * @param {string} name
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 this.debuggerModel.dispose(); 188 this.debuggerModel.dispose();
189 this.networkManager.dispose(); 189 this.networkManager.dispose();
190 this.debuggerScriptMapping.dispose(); 190 this.debuggerScriptMapping.dispose();
191 }, 191 },
192 192
193 __proto__: Protocol.Agents.prototype 193 __proto__: Protocol.Agents.prototype
194 } 194 }
195 195
196 /** 196 /**
197 * @constructor 197 * @constructor
198 * @param {!WebInspector.Target} target
199 */
200 WebInspector.TargetAware = function(target)
201 {
202 this._target = target;
203 }
204
205 WebInspector.TargetAware.prototype = {
206 /**
207 * @return {!WebInspector.Target}
208 */
209 target: function()
210 {
211 return this._target;
212 }
213 }
214
215 /**
216 * @constructor
217 * @extends {WebInspector.Object} 198 * @extends {WebInspector.Object}
218 * @param {!WebInspector.Target} target 199 * @param {!WebInspector.Target} target
219 */ 200 */
220 WebInspector.TargetAwareObject = function(target) 201 WebInspector.SDKObject = function(target)
221 { 202 {
222 WebInspector.Object.call(this); 203 WebInspector.Object.call(this);
223 this._target = target; 204 this._target = target;
224 } 205 }
225 206
226 WebInspector.TargetAwareObject.prototype = { 207 WebInspector.SDKObject.prototype = {
227 /** 208 /**
228 * @return {!WebInspector.Target} 209 * @return {!WebInspector.Target}
229 */ 210 */
230 target: function() 211 target: function()
231 { 212 {
232 return this._target; 213 return this._target;
233 }, 214 },
234 215
235 __proto__: WebInspector.Object.prototype 216 __proto__: WebInspector.Object.prototype
236 } 217 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 /** 323 /**
343 * @param {!WebInspector.Target} target 324 * @param {!WebInspector.Target} target
344 */ 325 */
345 targetRemoved: function(target) { }, 326 targetRemoved: function(target) { },
346 } 327 }
347 328
348 /** 329 /**
349 * @type {!WebInspector.TargetManager} 330 * @type {!WebInspector.TargetManager}
350 */ 331 */
351 WebInspector.targetManager; 332 WebInspector.targetManager;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/Script.js ('k') | Source/devtools/front_end/sdk/TimelineManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698