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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 /** | 171 /** |
172 * @param {!RuntimeAgent.CallArgument} name | 172 * @param {!RuntimeAgent.CallArgument} name |
173 * @param {function(string=)} callback | 173 * @param {function(string=)} callback |
174 */ | 174 */ |
175 deleteProperty: function(name, callback) | 175 deleteProperty: function(name, callback) |
176 { | 176 { |
177 throw "Not implemented"; | 177 throw "Not implemented"; |
178 }, | 178 }, |
179 | 179 |
180 /** | 180 /** |
| 181 * @param {string|!RuntimeAgent.CallArgument} name |
| 182 * @param {string} value |
| 183 * @param {function(string=)} callback |
| 184 */ |
| 185 setPropertyValue: function(name, value, callback) |
| 186 { |
| 187 throw "Not implemented"; |
| 188 }, |
| 189 |
| 190 /** |
181 * @param {function(this:Object, ...)} functionDeclaration | 191 * @param {function(this:Object, ...)} functionDeclaration |
182 * @param {!Array<!RuntimeAgent.CallArgument>=} args | 192 * @param {!Array<!RuntimeAgent.CallArgument>=} args |
183 * @param {function(?WebInspector.RemoteObject, boolean=)=} callback | 193 * @param {function(?WebInspector.RemoteObject, boolean=)=} callback |
184 */ | 194 */ |
185 callFunction: function(functionDeclaration, args, callback) | 195 callFunction: function(functionDeclaration, args, callback) |
186 { | 196 { |
187 throw "Not implemented"; | 197 throw "Not implemented"; |
188 }, | 198 }, |
189 | 199 |
190 /** | 200 /** |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 var propertyValue = this._target.runtimeModel.createRemoteOb
ject(property.value); | 710 var propertyValue = this._target.runtimeModel.createRemoteOb
ject(property.value); |
701 internalPropertiesResult.push(new WebInspector.RemoteObjectP
roperty(property.name, propertyValue, true, false)); | 711 internalPropertiesResult.push(new WebInspector.RemoteObjectP
roperty(property.name, propertyValue, true, false)); |
702 } | 712 } |
703 } | 713 } |
704 callback(result, internalPropertiesResult); | 714 callback(result, internalPropertiesResult); |
705 } | 715 } |
706 this._runtimeAgent.getProperties(this._objectId, ownProperties, accessor
PropertiesOnly, generatePreview, remoteObjectBinder.bind(this)); | 716 this._runtimeAgent.getProperties(this._objectId, ownProperties, accessor
PropertiesOnly, generatePreview, remoteObjectBinder.bind(this)); |
707 }, | 717 }, |
708 | 718 |
709 /** | 719 /** |
| 720 * @override |
710 * @param {string|!RuntimeAgent.CallArgument} name | 721 * @param {string|!RuntimeAgent.CallArgument} name |
711 * @param {string} value | 722 * @param {string} value |
712 * @param {function(string=)} callback | 723 * @param {function(string=)} callback |
713 */ | 724 */ |
714 setPropertyValue: function(name, value, callback) | 725 setPropertyValue: function(name, value, callback) |
715 { | 726 { |
716 if (!this._objectId) { | 727 if (!this._objectId) { |
717 callback("Can't set a property of non-object."); | 728 callback("Can't set a property of non-object."); |
718 return; | 729 return; |
719 } | 730 } |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 | 1055 |
1045 // Scope objects always fetch preview. | 1056 // Scope objects always fetch preview. |
1046 generatePreview = true; | 1057 generatePreview = true; |
1047 | 1058 |
1048 WebInspector.RemoteObjectImpl.prototype.doGetProperties.call(this, ownPr
operties, accessorPropertiesOnly, generatePreview, wrappedCallback.bind(this)); | 1059 WebInspector.RemoteObjectImpl.prototype.doGetProperties.call(this, ownPr
operties, accessorPropertiesOnly, generatePreview, wrappedCallback.bind(this)); |
1049 }, | 1060 }, |
1050 | 1061 |
1051 /** | 1062 /** |
1052 * @override | 1063 * @override |
1053 * @param {!RuntimeAgent.RemoteObject} result | 1064 * @param {!RuntimeAgent.RemoteObject} result |
1054 * @param {!RuntimeAgent.CallArgument} name | 1065 * @param {!RuntimeAgent.CallArgument} argumentName |
1055 * @param {function(string=)} callback | 1066 * @param {function(string=)} callback |
1056 */ | 1067 */ |
1057 doSetObjectPropertyValue: function(result, name, callback) | 1068 doSetObjectPropertyValue: function(result, argumentName, callback) |
1058 { | 1069 { |
1059 this._debuggerModel.setVariableValue(this._scopeRef.number, /** @type {s
tring} */ (name.value), WebInspector.RemoteObject.toCallArgument(result), this._
scopeRef.callFrameId, this._scopeRef.functionId, setVariableValueCallback.bind(t
his)); | 1070 var name = /** @type {string} */ (argumentName.value); |
| 1071 this._debuggerModel.setVariableValue(this._scopeRef.number, name, WebIns
pector.RemoteObject.toCallArgument(result), this._scopeRef.callFrameId, this._sc
opeRef.functionId, setVariableValueCallback.bind(this)); |
1060 | 1072 |
1061 /** | 1073 /** |
1062 * @param {string=} error | 1074 * @param {string=} error |
1063 * @this {WebInspector.ScopeRemoteObject} | 1075 * @this {WebInspector.ScopeRemoteObject} |
1064 */ | 1076 */ |
1065 function setVariableValueCallback(error) | 1077 function setVariableValueCallback(error) |
1066 { | 1078 { |
1067 if (error) { | 1079 if (error) { |
1068 callback(error); | 1080 callback(error); |
1069 return; | 1081 return; |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 { | 1627 { |
1616 if (!this._cachedDescription) { | 1628 if (!this._cachedDescription) { |
1617 var children = this._children(); | 1629 var children = this._children(); |
1618 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; | 1630 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; |
1619 } | 1631 } |
1620 return this._cachedDescription; | 1632 return this._cachedDescription; |
1621 }, | 1633 }, |
1622 | 1634 |
1623 __proto__: WebInspector.LocalJSONObject.prototype | 1635 __proto__: WebInspector.LocalJSONObject.prototype |
1624 } | 1636 } |
OLD | NEW |