| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 function callFunctionCallback(callback, object, wasThrown) | 223 function callFunctionCallback(callback, object, wasThrown) |
| 224 { | 224 { |
| 225 callback({ | 225 callback({ |
| 226 object: object, | 226 object: object, |
| 227 wasThrown: wasThrown | 227 wasThrown: wasThrown |
| 228 }); | 228 }); |
| 229 } | 229 } |
| 230 }, | 230 }, |
| 231 | 231 |
| 232 /** | 232 /** |
| 233 * @param {function(this:Object, ...)} functionDeclaration | 233 * @template T |
| 234 * @param {function(this:Object, ...):T} functionDeclaration |
| 234 * @param {!Array<!RuntimeAgent.CallArgument>|undefined} args | 235 * @param {!Array<!RuntimeAgent.CallArgument>|undefined} args |
| 235 * @param {function(*)} callback | 236 * @param {function(T)} callback |
| 236 */ | 237 */ |
| 237 callFunctionJSON: function(functionDeclaration, args, callback) | 238 callFunctionJSON: function(functionDeclaration, args, callback) |
| 238 { | 239 { |
| 239 throw "Not implemented"; | 240 throw "Not implemented"; |
| 240 }, | 241 }, |
| 241 | 242 |
| 242 /** | 243 /** |
| 243 * @param {function(this:Object, ...):T} functionDeclaration | 244 * @param {function(this:Object, ...):T} functionDeclaration |
| 244 * @param {!Array<!RuntimeAgent.CallArgument>|undefined} args | 245 * @param {!Array<!RuntimeAgent.CallArgument>|undefined} args |
| 245 * @return {!Promise<T>} | 246 * @return {!Promise<T>} |
| (...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1658 { | 1659 { |
| 1659 if (!this._cachedDescription) { | 1660 if (!this._cachedDescription) { |
| 1660 var children = this._children(); | 1661 var children = this._children(); |
| 1661 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; | 1662 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; |
| 1662 } | 1663 } |
| 1663 return this._cachedDescription; | 1664 return this._cachedDescription; |
| 1664 }, | 1665 }, |
| 1665 | 1666 |
| 1666 __proto__: WebInspector.LocalJSONObject.prototype | 1667 __proto__: WebInspector.LocalJSONObject.prototype |
| 1667 } | 1668 } |
| OLD | NEW |