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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 /** | 85 /** |
86 * @param {function(?Array.<!WebInspector.RemoteObjectProperty>, ?Array.<!We
bInspector.RemoteObjectProperty>)} callback | 86 * @param {function(?Array.<!WebInspector.RemoteObjectProperty>, ?Array.<!We
bInspector.RemoteObjectProperty>)} callback |
87 */ | 87 */ |
88 getOwnProperties: function(callback) | 88 getOwnProperties: function(callback) |
89 { | 89 { |
90 throw "Not implemented"; | 90 throw "Not implemented"; |
91 }, | 91 }, |
92 | 92 |
93 /** | 93 /** |
94 * @return {!Promise.<!{properties: ?Array.<!WebInspector.RemoteObjectProper
ty>, internalProperties: ?Array.<!WebInspector.RemoteObjectProperty>}>} | 94 * @return {!Promise<!{properties: ?Array.<!WebInspector.RemoteObjectPropert
y>, internalProperties: ?Array.<!WebInspector.RemoteObjectProperty>}>} |
95 */ | 95 */ |
96 getOwnPropertiesPromise: function() | 96 getOwnPropertiesPromise: function() |
97 { | 97 { |
98 return new Promise(promiseConstructor.bind(this)); | 98 return new Promise(promiseConstructor.bind(this)); |
99 | 99 |
100 /** | 100 /** |
101 * @param {function(!{properties: ?Array.<!WebInspector.RemoteObjectProp
erty>, internalProperties: ?Array.<!WebInspector.RemoteObjectProperty>})} succes
s | 101 * @param {function(!{properties: ?Array.<!WebInspector.RemoteObjectProp
erty>, internalProperties: ?Array.<!WebInspector.RemoteObjectProperty>})} succes
s |
102 * @this {WebInspector.RemoteObject} | 102 * @this {WebInspector.RemoteObject} |
103 */ | 103 */ |
104 function promiseConstructor(success) | 104 function promiseConstructor(success) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 * @param {function(this:Object, ...)} functionDeclaration | 223 * @param {function(this:Object, ...)} functionDeclaration |
224 * @param {!Array<!RuntimeAgent.CallArgument>|undefined} args | 224 * @param {!Array<!RuntimeAgent.CallArgument>|undefined} args |
225 * @param {function(*)} callback | 225 * @param {function(*)} callback |
226 */ | 226 */ |
227 callFunctionJSON: function(functionDeclaration, args, callback) | 227 callFunctionJSON: function(functionDeclaration, args, callback) |
228 { | 228 { |
229 throw "Not implemented"; | 229 throw "Not implemented"; |
230 }, | 230 }, |
231 | 231 |
232 /** | 232 /** |
233 * @param {function(this:Object, ...)} functionDeclaration | 233 * @param {function(this:Object, ...):T} functionDeclaration |
234 * @param {!Array<!RuntimeAgent.CallArgument>|undefined} args | 234 * @param {!Array<!RuntimeAgent.CallArgument>|undefined} args |
235 * @return {!Promise<*>} | 235 * @return {!Promise<T>} |
| 236 * @template T |
236 */ | 237 */ |
237 callFunctionJSONPromise: function(functionDeclaration, args) | 238 callFunctionJSONPromise: function(functionDeclaration, args) |
238 { | 239 { |
239 return new Promise(promiseConstructor.bind(this)); | 240 return new Promise(promiseConstructor.bind(this)); |
240 | 241 |
241 /** | 242 /** |
242 * @this {WebInspector.RemoteObject} | 243 * @this {WebInspector.RemoteObject} |
243 */ | 244 */ |
244 function promiseConstructor(success) | 245 function promiseConstructor(success) |
245 { | 246 { |
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1534 { | 1535 { |
1535 if (!this._cachedDescription) { | 1536 if (!this._cachedDescription) { |
1536 var children = this._children(); | 1537 var children = this._children(); |
1537 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; | 1538 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; |
1538 } | 1539 } |
1539 return this._cachedDescription; | 1540 return this._cachedDescription; |
1540 }, | 1541 }, |
1541 | 1542 |
1542 __proto__: WebInspector.LocalJSONObject.prototype | 1543 __proto__: WebInspector.LocalJSONObject.prototype |
1543 } | 1544 } |
OLD | NEW |