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

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

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 years, 8 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 * @return {!WebInspector.Target} 115 * @return {!WebInspector.Target}
116 */ 116 */
117 target: function() 117 target: function()
118 { 118 {
119 return this._target; 119 return this._target;
120 } 120 }
121 } 121 }
122 122
123 /** 123 /**
124 * @constructor 124 * @constructor
125 * @extends {WebInspector.Object}
126 * @param {!WebInspector.Target} target
127 */
128 WebInspector.TargetAwareObject = function(target)
129 {
130 WebInspector.Object.call(this);
131 this._target = target;
132 }
133
134 WebInspector.TargetAwareObject.prototype = {
135 /**
136 * @return {!WebInspector.Target}
137 */
138 target: function()
139 {
140 return this._target;
141 },
142
143 __proto__: WebInspector.Object.prototype
144 }
145
146 /**
147 * @constructor
125 */ 148 */
126 WebInspector.TargetManager = function() 149 WebInspector.TargetManager = function()
127 { 150 {
128 /** @type {!Array.<!WebInspector.Target>} */ 151 /** @type {!Array.<!WebInspector.Target>} */
129 this._targets = []; 152 this._targets = [];
130 this._observers = []; 153 this._observers = [];
131 } 154 }
132 155
133 WebInspector.TargetManager.Events = { 156 WebInspector.TargetManager.Events = {
134 TargetAdded: "TargetAdded", 157 TargetAdded: "TargetAdded",
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 /** 235 /**
213 * @param {?WebInspector.Target} target 236 * @param {?WebInspector.Target} target
214 */ 237 */
215 activeTargetChanged: function(target) { } 238 activeTargetChanged: function(target) { }
216 } 239 }
217 240
218 /** 241 /**
219 * @type {!WebInspector.TargetManager} 242 * @type {!WebInspector.TargetManager}
220 */ 243 */
221 WebInspector.targetManager; 244 WebInspector.targetManager;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/StylesSourceMapping.js ('k') | Source/devtools/front_end/UISourceCode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698