| 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 {!WebInspector.TargetManager} targetManager | 10 * @param {!WebInspector.TargetManager} targetManager |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 /** | 169 /** |
| 170 * @param {!Function} modelClass | 170 * @param {!Function} modelClass |
| 171 * @return {?WebInspector.SDKModel} | 171 * @return {?WebInspector.SDKModel} |
| 172 */ | 172 */ |
| 173 model: function(modelClass) | 173 model: function(modelClass) |
| 174 { | 174 { |
| 175 return this._modelByConstructor.get(modelClass) || null; | 175 return this._modelByConstructor.get(modelClass) || null; |
| 176 }, | 176 }, |
| 177 | 177 |
| 178 /** |
| 179 * @return {!Array<!WebInspector.SDKModel>} |
| 180 */ |
| 181 models: function() |
| 182 { |
| 183 return this._modelByConstructor.valuesArray(); |
| 184 }, |
| 185 |
| 178 __proto__: Protocol.Agents.prototype | 186 __proto__: Protocol.Agents.prototype |
| 179 } | 187 } |
| 180 | 188 |
| 181 /** | 189 /** |
| 182 * @constructor | 190 * @constructor |
| 183 * @extends {WebInspector.Object} | 191 * @extends {WebInspector.Object} |
| 184 * @param {!WebInspector.Target} target | 192 * @param {!WebInspector.Target} target |
| 185 */ | 193 */ |
| 186 WebInspector.SDKObject = function(target) | 194 WebInspector.SDKObject = function(target) |
| 187 { | 195 { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 /** | 233 /** |
| 226 * @return {!Promise} | 234 * @return {!Promise} |
| 227 */ | 235 */ |
| 228 resumeModel: function() | 236 resumeModel: function() |
| 229 { | 237 { |
| 230 return Promise.resolve(); | 238 return Promise.resolve(); |
| 231 }, | 239 }, |
| 232 | 240 |
| 233 __proto__: WebInspector.SDKObject.prototype | 241 __proto__: WebInspector.SDKObject.prototype |
| 234 } | 242 } |
| OLD | NEW |