OLD | NEW |
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 Loading... |
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 Loading... |
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; |
OLD | NEW |