Changeset 83576 in webkit
- Timestamp:
- Apr 12, 2011 4:37:10 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83575 r83576 1 2011-04-12 Pavel Feldman <pfeldman@google.com> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: document runtime agent, share remote object definition between domains. 6 https://bugs.webkit.org/show_bug.cgi?id=58246 7 8 * inspector/Inspector.json: 9 1 10 2011-04-12 Pavel Feldman <pfeldman@google.com> 2 11 -
trunk/Source/WebCore/inspector/Inspector.json
r83575 r83576 44 44 "name": "inspect", 45 45 "parameters": [ 46 { "name": "object", "$ref": "R emoteObject" },46 { "name": "object", "$ref": "Runtime.RemoteObject" }, 47 47 { "name": "hints", "type": "object" } 48 48 ] … … 133 133 { 134 134 "domain": "Runtime", 135 "types": [], 135 "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose type, string representation and unique identifier that can be used for further object interaction. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.", 136 "types": [ 137 { 138 "id": "RemoteObject", 139 "type": "object", 140 "description": "Mirror object referencing original JavaScript object.", 141 "properties": { 142 "description": { "type": "string", "description": "String representation of the object." }, 143 "hasChildren": { "type": "integer", "optional": true, "description": "True when this object can be queried for children." }, 144 "objectId": { "type": "string", "optional": true, "description": "Unique object identifier (for non-primitive values)." }, 145 "type": { "type": "string", "enum": ["object", "array", "function", "null", "node", "undefined", "string", "number", "boolean", "error", "regexp", "date"], "description": "Object type." } 146 } 147 }, 148 { 149 "id": "RemoteProperty", 150 "type": "object", 151 "description": "Mirror object property.", 152 "properties": { 153 "name": { "type": "string", "description": "Property name." }, 154 "value": { "$ref": "RemoteObject", "description": "Property value." }, 155 "isGetter": { "type": "string", "description": "True if this property is getter." } 156 } 157 } 158 ], 136 159 "commands": [ 137 160 { 138 161 "name": "evaluate", 139 162 "parameters": [ 140 { "name": "expression", "type": "string" }, 141 { "name": "objectGroup", "type": "string" }, 142 { "name": "includeCommandLineAPI", "type": "boolean", "optional": true } 143 ], 144 "returns": [ 145 { "name": "result", "$ref": "RuntimeObject" } 146 ] 163 { "name": "expression", "type": "string", "description": "Expression to evaluate." }, 164 { "name": "objectGroup", "type": "string", "description": "Symbolic group name that can be used to release multiple objects." }, 165 { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Determines whether Command Line API should be available during the evaluation." } 166 ], 167 "returns": [ 168 { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." } 169 ], 170 "description": "Evaluate expression on global object." 147 171 }, 148 172 { 149 173 "name": "evaluateOn", 150 174 "parameters": [ 151 { "name": "objectId", "type": "string" }, 152 { "name": "expression", "type": "string" } 153 ], 154 "returns": [ 155 { "name": "result", "$ref": "RuntimeObject" } 156 ] 175 { "name": "objectId", "type": "string", "description": "Identifier of the object to evaluate expression on." }, 176 { "name": "expression", "type": "string", "description": "Expression to evaluate." } 177 ], 178 "returns": [ 179 { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." } 180 ], 181 "description": "Evaluate expression on given object using it as <code>this</code>." 157 182 }, 158 183 { 159 184 "name": "getProperties", 160 185 "parameters": [ 161 { "name": "objectId", "type": "string" }, 162 { "name": "ignoreHasOwnProperty", "type": "boolean" } 163 ], 164 "returns": [ 165 { "name": "result", "type": "array", "items": { "$ref" : "RuntimeProperty"} } 166 ] 186 { "name": "objectId", "type": "string", "description": "Identifier of the object to return properties for." }, 187 { "name": "ignoreHasOwnProperty", "type": "boolean", "description": "If true, returns properties belonging to any element of the prototype chain." } 188 ], 189 "returns": [ 190 { "name": "result", "type": "array", "items": { "$ref" : "RuntimeProperty"}, "description": "Object properties." } 191 ], 192 "description": "Returns properties of a given object." 167 193 }, 168 194 { 169 195 "name": "setPropertyValue", 170 196 "parameters": [ 171 { "name": "objectId", "type": "string" }, 172 { "name": "propertyName", "type": "string" }, 173 { "name": "expression", "type": "string" } 174 ] 197 { "name": "objectId", "type": "string", "description": "Identifier of the object to set property on." }, 198 { "name": "propertyName", "type": "string", "description": "Property name to set value for." }, 199 { "name": "expression", "type": "string", "description": "Expression to evaluate." } 200 ], 201 "description": "Makes property with given name equal to the expression evaluation result." 175 202 }, 176 203 { 177 204 "name": "releaseObject", 178 205 "parameters": [ 179 { "name": "objectId", "type": "string" } 180 ] 206 { "name": "objectId", "type": "string", "description": "Identifier of the object to release." } 207 ], 208 "description": "Releases remote object with given id." 181 209 }, 182 210 { 183 211 "name": "releaseObjectGroup", 184 212 "parameters": [ 185 { "name": "objectGroup", "type": "string" } 186 ] 213 { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." } 214 ], 215 "description": "Releases all remote objects that belong to a given group." 187 216 } 188 217 ] … … 205 234 "text": { "type": "string", "description": "Message text." }, 206 235 "networkIdentifier": { "type": "integer", "optional": true, "description": "Identifier of the network request associated with the console message." }, 207 "parameters": { "type": "array", "items": { "$ref": "Runtime Object" }, "description": "Message parameters in case of the formatted message." },236 "parameters": { "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "description": "Message parameters in case of the formatted message." }, 208 237 "stackTrace": { "type": "array", "optional": true, "items": { "$ref": "CallFrame" }, "description": "Call frames for assert and error messages." } 209 238 } … … 889 918 ], 890 919 "returns": [ 891 { "name": "object", "$ref": " Object", "description": "JavaScript object wrapper for given node." }920 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "JavaScript object wrapper for given node." } 892 921 ], 893 922 "description": "Resolves JavaScript node object for given node id." … … 1292 1321 "properties": { 1293 1322 "type": { "type": "string", "enum": ["global", "local", "with", "closure", "catch"], "description": "Scope type." }, 1294 "object": { "$ref": "R emoteObject", "description": "Object representing the scope." },1295 "this": { "$ref": "R emoteObject", "optional": true, "description": "<code>this</code> object for local scope." }1323 "object": { "$ref": "Runtime.RemoteObject", "description": "Object representing the scope." }, 1324 "this": { "$ref": "Runtime.RemoteObject", "optional": true, "description": "<code>this</code> object for local scope." } 1296 1325 }, 1297 1326 "description": "Debugger call frame. Array of call frames form call stack." … … 1411 1440 ], 1412 1441 "returns": [ 1413 { "name": "result", "$ref": " Object", "description": "Object wrapper for the evaluation result." }1442 { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for the evaluation result." } 1414 1443 ], 1415 1444 "description": "Evaluates expression on a given call frame." … … 1419 1448 { 1420 1449 "name": "debuggerWasEnabled", 1421 "description": "Fired when debugger gets enabled ."1450 "description": "Fired when debugger gets enabled (deprecated)." 1422 1451 }, 1423 1452 { 1424 1453 "name": "debuggerWasDisabled", 1425 "description": "Fired when debugger gets disabled ."1454 "description": "Fired when debugger gets disabled (deprecated)." 1426 1455 }, 1427 1456 {
Note: See TracChangeset
for help on using the changeset viewer.