| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 this.functionDetails(success); | 307 this.functionDetails(success); |
| 308 } | 308 } |
| 309 }, | 309 }, |
| 310 | 310 |
| 311 /** | 311 /** |
| 312 * @param {function(?WebInspector.DebuggerModel.GeneratorObjectDetails)} cal
lback | 312 * @param {function(?WebInspector.DebuggerModel.GeneratorObjectDetails)} cal
lback |
| 313 */ | 313 */ |
| 314 generatorObjectDetails: function(callback) | 314 generatorObjectDetails: function(callback) |
| 315 { | 315 { |
| 316 callback(null); | 316 callback(null); |
| 317 }, | |
| 318 | |
| 319 /** | |
| 320 * @param {function(?Array<!DebuggerAgent.CollectionEntry>)} callback | |
| 321 */ | |
| 322 collectionEntries: function(callback) | |
| 323 { | |
| 324 callback(null); | |
| 325 } | 317 } |
| 326 } | 318 } |
| 327 | 319 |
| 328 /** | 320 /** |
| 329 * @param {*} value | 321 * @param {*} value |
| 330 * @return {!WebInspector.RemoteObject} | 322 * @return {!WebInspector.RemoteObject} |
| 331 */ | 323 */ |
| 332 WebInspector.RemoteObject.fromLocalObject = function(value) | 324 WebInspector.RemoteObject.fromLocalObject = function(value) |
| 333 { | 325 { |
| 334 return new WebInspector.LocalJSONObject(value); | 326 return new WebInspector.LocalJSONObject(value); |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 | 879 |
| 888 /** | 880 /** |
| 889 * @override | 881 * @override |
| 890 * @param {function(?WebInspector.DebuggerModel.GeneratorObjectDetails)} cal
lback | 882 * @param {function(?WebInspector.DebuggerModel.GeneratorObjectDetails)} cal
lback |
| 891 */ | 883 */ |
| 892 generatorObjectDetails: function(callback) | 884 generatorObjectDetails: function(callback) |
| 893 { | 885 { |
| 894 this._debuggerModel.generatorObjectDetails(this, callback); | 886 this._debuggerModel.generatorObjectDetails(this, callback); |
| 895 }, | 887 }, |
| 896 | 888 |
| 897 /** | |
| 898 * @override | |
| 899 * @param {function(?Array.<!DebuggerAgent.CollectionEntry>)} callback | |
| 900 */ | |
| 901 collectionEntries: function(callback) | |
| 902 { | |
| 903 if (!this._objectId) { | |
| 904 callback(null); | |
| 905 return; | |
| 906 } | |
| 907 this._debuggerModel.getCollectionEntries(this._objectId, callback); | |
| 908 }, | |
| 909 | |
| 910 __proto__: WebInspector.RemoteObject.prototype | 889 __proto__: WebInspector.RemoteObject.prototype |
| 911 }; | 890 }; |
| 912 | 891 |
| 913 | 892 |
| 914 /** | 893 /** |
| 915 * @param {!WebInspector.RemoteObject} object | 894 * @param {!WebInspector.RemoteObject} object |
| 916 * @param {function(?Array.<!WebInspector.RemoteObjectProperty>, ?Array.<!WebIns
pector.RemoteObjectProperty>)} callback | 895 * @param {function(?Array.<!WebInspector.RemoteObjectProperty>, ?Array.<!WebIns
pector.RemoteObjectProperty>)} callback |
| 917 */ | 896 */ |
| 918 WebInspector.RemoteObject.loadFromObjectPerProto = function(object, callback) | 897 WebInspector.RemoteObject.loadFromObjectPerProto = function(object, callback) |
| 919 { | 898 { |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1581 }, | 1560 }, |
| 1582 | 1561 |
| 1583 /** | 1562 /** |
| 1584 * @return {!WebInspector.RemoteObject} | 1563 * @return {!WebInspector.RemoteObject} |
| 1585 */ | 1564 */ |
| 1586 object: function() | 1565 object: function() |
| 1587 { | 1566 { |
| 1588 return this._object; | 1567 return this._object; |
| 1589 } | 1568 } |
| 1590 } | 1569 } |
| 1591 | |
| 1592 /** | |
| 1593 * @constructor | |
| 1594 * @extends {WebInspector.LocalJSONObject} | |
| 1595 * @param {*} value | |
| 1596 */ | |
| 1597 WebInspector.MapEntryLocalJSONObject = function(value) | |
| 1598 { | |
| 1599 WebInspector.LocalJSONObject.call(this, value); | |
| 1600 } | |
| 1601 | |
| 1602 WebInspector.MapEntryLocalJSONObject.prototype = { | |
| 1603 /** | |
| 1604 * @override | |
| 1605 * @return {string} | |
| 1606 */ | |
| 1607 get description() | |
| 1608 { | |
| 1609 if (!this._cachedDescription) { | |
| 1610 var children = this._children(); | |
| 1611 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; | |
| 1612 } | |
| 1613 return this._cachedDescription; | |
| 1614 }, | |
| 1615 | |
| 1616 __proto__: WebInspector.LocalJSONObject.prototype | |
| 1617 } | |
| OLD | NEW |