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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 * @return {number} | 42 * @return {number} |
43 */ | 43 */ |
44 id: function() | 44 id: function() |
45 { | 45 { |
46 return this._id; | 46 return this._id; |
47 }, | 47 }, |
48 | 48 |
49 /** | 49 /** |
50 * @param {string} name | 50 * @param {string} name |
51 * @param {function()|null} callback | 51 * @param {function()|null} callback |
| 52 * @param {?Protocol.Error} error |
| 53 * @param {*} result |
52 */ | 54 */ |
53 _initializeCapability: function(name, callback, error, result) | 55 _initializeCapability: function(name, callback, error, result) |
54 { | 56 { |
55 this[name] = result; | 57 this[name] = result; |
56 if (!Capabilities[name]) | 58 if (!Capabilities[name]) |
57 Capabilities[name] = result; | 59 Capabilities[name] = result; |
58 if (callback) | 60 if (callback) |
59 callback(); | 61 callback(); |
60 }, | 62 }, |
61 | 63 |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 /** | 292 /** |
291 * @param {!WebInspector.Target} target | 293 * @param {!WebInspector.Target} target |
292 */ | 294 */ |
293 targetRemoved: function(target) { }, | 295 targetRemoved: function(target) { }, |
294 } | 296 } |
295 | 297 |
296 /** | 298 /** |
297 * @type {!WebInspector.TargetManager} | 299 * @type {!WebInspector.TargetManager} |
298 */ | 300 */ |
299 WebInspector.targetManager; | 301 WebInspector.targetManager; |
OLD | NEW |