OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 */ | 203 */ |
204 function instantiate(extension) | 204 function instantiate(extension) |
205 { | 205 { |
206 return extension.instance(); | 206 return extension.instance(); |
207 } | 207 } |
208 return this.extensions(type, context).filter(instantiate).map(instantiat
e); | 208 return this.extensions(type, context).filter(instantiate).map(instantiat
e); |
209 }, | 209 }, |
210 | 210 |
211 /** | 211 /** |
212 * @param {string|!Function} type | 212 * @param {string|!Function} type |
| 213 * @param {?Object=} context |
213 * @return {?Object} | 214 * @return {?Object} |
214 */ | 215 */ |
215 instance: function(type, context) | 216 instance: function(type, context) |
216 { | 217 { |
217 var extension = this.extension(type, context); | 218 var extension = this.extension(type, context); |
218 return extension ? extension.instance() : null; | 219 return extension ? extension.instance() : null; |
219 }, | 220 }, |
220 | 221 |
221 /** | 222 /** |
222 * @param {string|!Function} type | 223 * @param {string|!Function} type |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 } | 478 } |
478 | 479 |
479 WebInspector.Revealer.prototype = { | 480 WebInspector.Revealer.prototype = { |
480 /** | 481 /** |
481 * @param {!Object} object | 482 * @param {!Object} object |
482 */ | 483 */ |
483 reveal: function(object) {} | 484 reveal: function(object) {} |
484 } | 485 } |
485 | 486 |
486 WebInspector.moduleManager = new WebInspector.ModuleManager(allDescriptors); | 487 WebInspector.moduleManager = new WebInspector.ModuleManager(allDescriptors); |
OLD | NEW |