Changeset 83715 in webkit
- Timestamp:
- Apr 13, 2011 2:51:26 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83713 r83715 1 2011-04-13 Pavel Feldman <pfeldman@google.com> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: enumerate properties in Inspector.json using array, not object keys. 6 https://bugs.webkit.org/show_bug.cgi?id=58418 7 8 * inspector/Inspector.json: 9 1 10 2011-04-06 Pavel Podivilov <podivilov@chromium.org> 2 11 -
trunk/Source/WebCore/inspector/Inspector.json
r83706 r83715 91 91 "name": "getCookies", 92 92 "returns": [ 93 { "name": "cookies", "type": "array", "items": { "$ref" 93 { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"} }, 94 94 { "name": "cookiesString", "type": "string" } 95 95 ] … … 126 126 { 127 127 "domain": "Runtime", 128 "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.", 128 "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.", 129 129 "types": [ 130 130 { … … 132 132 "type": "object", 133 133 "description": "Mirror object referencing original JavaScript object.", 134 "properties": {135 "description": {"type": "string", "description": "String representation of the object." },136 "hasChildren": {"type": "integer", "optional": true, "description": "True when this object can be queried for children." },137 "objectId": {"type": "string", "optional": true, "description": "Unique object identifier (for non-primitive values)." },138 "type": {"type": "string", "enum": ["object", "array", "function", "null", "node", "undefined", "string", "number", "boolean", "error", "regexp", "date"], "description": "Object type." }139 }134 "properties": [ 135 { "name": "description", "type": "string", "description": "String representation of the object." }, 136 { "name": "hasChildren", "type": "integer", "optional": true, "description": "True when this object can be queried for children." }, 137 { "name": "objectId", "type": "string", "optional": true, "description": "Unique object identifier (for non-primitive values)." }, 138 { "name": "type", "type": "string", "enum": ["object", "array", "function", "null", "node", "undefined", "string", "number", "boolean", "error", "regexp", "date"], "description": "Object type." } 139 ] 140 140 }, 141 141 { … … 143 143 "type": "object", 144 144 "description": "Mirror object property.", 145 "properties": {146 "name": {"type": "string", "description": "Property name." },147 "value": {"$ref": "RemoteObject", "description": "Property value." },148 "isGetter": {"type": "string", "description": "True if this property is getter." }149 }145 "properties": [ 146 { "name": "name", "type": "string", "description": "Property name." }, 147 { "name": "value", "$ref": "RemoteObject", "description": "Property value." }, 148 { "name": "isGetter", "type": "string", "description": "True if this property is getter." } 149 ] 150 150 } 151 151 ], … … 181 181 ], 182 182 "returns": [ 183 { "name": "result", "type": "array", "items": { "$ref" 183 { "name": "result", "type": "array", "items": { "$ref": "RuntimeProperty"}, "description": "Object properties." } 184 184 ], 185 185 "description": "Returns properties of a given object." … … 212 212 { 213 213 "domain": "Console", 214 "description": "Console domain defines methods and events for interaction with the JavaScript console. One needs to enable this domain using <code>enable</code> function in order to start receiving the console messages.", 214 "description": "Console domain defines methods and events for interaction with the JavaScript console. One needs to enable this domain using <code>enable</code> function in order to start receiving the console messages.", 215 215 "types": [ 216 216 { … … 218 218 "type": "object", 219 219 "description": "Console message.", 220 "properties": {221 "source": {"type": "string", "enum": ["html", "wml", "xml", "javascript", "css", "other"], "description": "Message source." },222 "type": {"type": "string", "enum": ["log", "other", "trace", "startGroup", "startGroupCollapsed", "endGroup", "assert", "uncaughtException", "networkError", "result"], "description": "Message type." },223 "level": {"type": "string", "enum": ["tip", "log", "warning", "error", "debug"], "description": "Message severity." },224 "line": {"type": "integer", "description": "JavaScript source line that created console message." },225 "url": {"type": "string", "description": "JavaScript source url that created console message." },226 "repeatCount": {"type": "integer", "optional": true, "description": "Repeat count for repeated messages." },227 "text": {"type": "string", "description": "Message text." },228 "networkIdentifier": {"type": "integer", "optional": true, "description": "Identifier of the network request associated with the console message." },229 "parameters": {"type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "description": "Message parameters in case of the formatted message." },230 "stackTrace": {"type": "array", "optional": true, "items": { "$ref": "CallFrame" }, "description": "Call frames for assert and error messages." }231 }220 "properties": [ 221 { "name": "source", "type": "string", "enum": ["html", "wml", "xml", "javascript", "css", "other"], "description": "Message source." }, 222 { "name": "type", "type": "string", "enum": ["log", "other", "trace", "startGroup", "startGroupCollapsed", "endGroup", "assert", "uncaughtException", "networkError", "result"], "description": "Message type." }, 223 { "name": "level", "type": "string", "enum": ["tip", "log", "warning", "error", "debug"], "description": "Message severity." }, 224 { "name": "line", "type": "integer", "description": "JavaScript source line that created console message." }, 225 { "name": "url", "type": "string", "description": "JavaScript source url that created console message." }, 226 { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." }, 227 { "name": "text", "type": "string", "description": "Message text." }, 228 { "name": "networkIdentifier", "type": "integer", "optional": true, "description": "Identifier of the network request associated with the console message." }, 229 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "description": "Message parameters in case of the formatted message." }, 230 { "name": "stackTrace", "type": "array", "optional": true, "items": { "$ref": "CallFrame" }, "description": "Call frames for assert and error messages." } 231 ] 232 232 }, 233 233 { … … 235 235 "type": "object", 236 236 "description": "Stack entry for console errors and assertions.", 237 "properties": {238 "functionName": {"type": "string", "description": "JavaScript function name." },239 "url": {"type": "string", "description": "JavaScript source name / url." },240 "lineNumber": {"type": "string", "description": "JavaScript source line number." },241 "columnNumber": {"type": "string", "description": "JavaScript source column number." }242 }237 "properties": [ 238 { "name": "functionName", "type": "string", "description": "JavaScript function name." }, 239 { "name": "url", "type": "string", "description": "JavaScript source name / url." }, 240 { "name": "lineNumber", "type": "string", "description": "JavaScript source line number." }, 241 { "name": "columnNumber", "type": "string", "description": "JavaScript source column number." } 242 ] 243 243 } 244 244 ], … … 303 303 "type": "object", 304 304 "description": "Timing information for the request.", 305 "properties": {306 "requestTime": {"type": "number", "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime." },307 "proxyStart": {"type": "number", "description": "Started resolving proxy." },308 "proxyEnd": {"type": "number", "description": "Finished resolving proxy." },309 "dnsStart": {"type": "number", "description": "Started DNS address resolve." },310 "dnsEnd": {"type": "number", "description": "Finished DNS address resolve." },311 "connectStart": {"type": "number", "description": "Started connecting to the remote host." },312 "connectEnd": {"type": "number", "description": "Connected to the remote host." },313 "sslStart": {"type": "number", "description": "Started SSL handshake." },314 "sslEnd": {"type": "number", "description": "Finished SSL handshake." },315 "sendStart": {"type": "number", "description": "Started sending request." },316 "sendEnd": {"type": "number", "description": "Finished sending request." },317 "receiveHeadersEnd": {"type": "number", "description": "Finished receiving response headers." }318 }305 "properties": [ 306 { "name": "requestTime", "type": "number", "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime." }, 307 { "name": "proxyStart", "type": "number", "description": "Started resolving proxy." }, 308 { "name": "proxyEnd", "type": "number", "description": "Finished resolving proxy." }, 309 { "name": "dnsStart", "type": "number", "description": "Started DNS address resolve." }, 310 { "name": "dnsEnd", "type": "number", "description": "Finished DNS address resolve." }, 311 { "name": "connectStart", "type": "number", "description": "Started connecting to the remote host." }, 312 { "name": "connectEnd", "type": "number", "description": "Connected to the remote host." }, 313 { "name": "sslStart", "type": "number", "description": "Started SSL handshake." }, 314 { "name": "sslEnd", "type": "number", "description": "Finished SSL handshake." }, 315 { "name": "sendStart", "type": "number", "description": "Started sending request." }, 316 { "name": "sendEnd", "type": "number", "description": "Finished sending request." }, 317 { "name": "receiveHeadersEnd", "type": "number", "description": "Finished receiving response headers." } 318 ] 319 319 }, 320 320 { … … 322 322 "type": "object", 323 323 "description": "HTTP request data.", 324 "properties": {325 "url": {"type": "string", "description": "Request URL." },326 "method": {"type": "string", "description": "HTTP request method." },327 "headers": {"type": "object", "description": "HTTP request headers." },328 "postData": {"type": "string", "optional": true, "description": "HTTP POST request data." }329 }324 "properties": [ 325 { "name": "url", "type": "string", "description": "Request URL." }, 326 { "name": "method", "type": "string", "description": "HTTP request method." }, 327 { "name": "headers", "type": "object", "description": "HTTP request headers." }, 328 { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." } 329 ] 330 330 }, 331 331 { … … 333 333 "type": "object", 334 334 "description": "HTTP response data.", 335 "properties": {336 "status": {"type": "number", "description": "HTTP response status code." },337 "statusText": {"type": "string", "description": "HTTP response status text." },338 "headers": {"type": "object", "description": "HTTP response headers." },339 "mimeType": {"type": "string", "description": "Resource mimeType as determined by the browser." },340 "requestHeaders": {"type": "object", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." },341 "connectionReused": {"type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." },342 "connectionID": {"type": "number", "description": "Physical connection id that was actually used for this request." },343 "fromDiskCache": {"type": "boolean", "optional": true, "description": "Specifies that the resource was loaded from the disk cache." },344 "timing": {"$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." }345 }335 "properties": [ 336 { "name": "status", "type": "number", "description": "HTTP response status code." }, 337 { "name": "statusText", "type": "string", "description": "HTTP response status text." }, 338 { "name": "headers", "type": "object", "description": "HTTP response headers." }, 339 { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." }, 340 { "name": "requestHeaders", "type": "object", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." }, 341 { "name": "connectionReused", "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." }, 342 { "name": "connectionID", "type": "number", "description": "Physical connection id that was actually used for this request." }, 343 { "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the resource was loaded from the disk cache." }, 344 { "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." } 345 ] 346 346 }, 347 347 { … … 355 355 "type": "object", 356 356 "description": "Information about the cached resource.", 357 "properties": {358 "url": {"type": "string", "description": "Resource URL." },359 "type": {"$ref": "ResourceType", "description": "Type of this resource." },360 "response": {"$ref": "ResourceResponse", "description": "Cached response data." },361 "bodySize": {"type": "number", "description": "Cached response body size." }362 }357 "properties": [ 358 { "name": "url", "type": "string", "description": "Resource URL." }, 359 { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." }, 360 { "name": "response", "$ref": "ResourceResponse", "description": "Cached response data." }, 361 { "name": "bodySize", "type": "number", "description": "Cached response body size." } 362 ] 363 363 }, 364 364 { … … 366 366 "type": "object", 367 367 "description": "Information about the Frame on the page.", 368 "properties": {369 "id": {"type": "string", "description": "Frame unique identifier." },370 "parentId": {"type": "string", "description": "Parent frame identifier." },371 "loaderId": {"type": "string", "description": "Identifier of the loader associated with this frame." },372 "name": {"type": "string", "optional": true, "description": "Frame's name as specified in the tag." },373 "url": {"type": "string", "description": "Frame document's URL." }374 }368 "properties": [ 369 { "name": "id", "type": "string", "description": "Frame unique identifier." }, 370 { "name": "parentId", "type": "string", "description": "Parent frame identifier." }, 371 { "name": "loaderId", "type": "string", "description": "Identifier of the loader associated with this frame." }, 372 { "name": "name", "type": "string", "optional": true, "description": "Frame's name as specified in the tag." }, 373 { "name": "url", "type": "string", "description": "Frame document's URL." } 374 ] 375 375 }, 376 376 { … … 378 378 "type": "object", 379 379 "description": "Information about the Frame hierarchy along with their cached resources.", 380 "properties": {381 "frame": {"$ref": "Frame", "description": "Frame information for this tree item." },382 "childFrames": {"type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },383 "resources": {"type": "array",380 "properties": [ 381 { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." }, 382 { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." }, 383 { "name": "resources", "type": "array", 384 384 "items": { 385 385 "type": "object", 386 "properties": {387 "url": {"type": "string", "description": "Resource URL." },388 "type": {"$ref": "ResourceType", "description": "Type of this resource." }389 }386 "properties": [ 387 { "name": "url", "type": "string", "description": "Resource URL." }, 388 { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." } 389 ] 390 390 }, 391 391 "description": "Information about frame resources." 392 392 } 393 }393 ] 394 394 } 395 395 ], … … 449 449 { "name": "redirectResponse", "optional": true, "$ref": "ResourceResponse", "description": "Redirect response data." }, 450 450 { "name": "timestamp", "type": "number", "description": "Timestamp." }, 451 { "name": "stackTrace", "type": "array", "items": { "$ref" 451 { "name": "stackTrace", "type": "array", "items": { "$ref": "Console.CallFrame"}, "description": "JavaScript stack trace upon issuing this request." } 452 452 ] 453 453 }, … … 620 620 ], 621 621 "returns": [ 622 { "name": "entries", "type": "array", "items": { "$ref" 622 { "name": "entries", "type": "array", "items": { "$ref": "DOMStorageEntry"} } 623 623 ] 624 624 }, … … 693 693 "id": "DOMNode", 694 694 "type": "object", 695 "properties": { 696 "id": { "type": "integer", "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client." }, 697 "nodeType": { "type": "integer", "description": "<code>Node</code>'s nodeType." }, 698 "nodeName": { "type": "string", "description": "<code>Node</code>'s nodeName." }, 699 "localName": { "type": "string", "description": "<code>Node</code>'s localName." }, 700 "nodeValue": { "type": "string", "description": "<code>Node</code>'s nodeValue." }, 701 702 "childNodeCount": { "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." }, 703 "children": { "type": "array", "optional": true, "items": { "$ref" : "DOMNode" }, "description": "Child nodes of this node when requested with children." }, 704 "attributes": { "type": "array", "optional": true, "items": { "type" : "string" }, "description": "Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>." }, 705 "documentURL": { "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." }, 706 "publicId": { "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId. // FIXME" }, 707 "systemId": { "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId. // FIXME" }, 708 "internalSubset": { "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset. // FIXME" }, 709 "name": { "type": "string", "optional": true, "description": "<code>Attr</code>'s name. // FIXME" }, 710 "value": { "type": "string", "optional": true, "description": "<code>Attr</code>'s value. // FIXME" } 711 }, 695 "properties": [ 696 { "name": "id", "type": "integer", "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client." }, 697 { "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." }, 698 { "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." }, 699 { "name": "localName", "type": "string", "description": "<code>Node</code>'s localName." }, 700 { "name": "nodeValue", "type": "string", "description": "<code>Node</code>'s nodeValue." }, 701 { "name": "childNodeCount", "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." }, 702 { "name": "children", "type": "array", "optional": true, "items": { "$ref": "DOMNode" }, "description": "Child nodes of this node when requested with children." }, 703 { "name": "attributes", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>." }, 704 { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." }, 705 { "name": "publicId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId. // FIXME" }, 706 { "name": "systemId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId. // FIXME" }, 707 { "name": "internalSubset", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset. // FIXME" }, 708 { "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name. // FIXME" }, 709 { "name": "value", "type": "string", "optional": true, "description": "<code>Attr</code>'s value. // FIXME" } 710 ], 712 711 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type." 713 712 }, … … 715 714 "id": "DOMEventListener", 716 715 "type": "object", 717 "properties": {718 "type": {"type": "string", "description": "<code>EventListener</code>'s type." },719 "useCapture": {"type": "boolean", "description": "<code>EventListener</code>'s useCapture." },720 "isAttribute": {"type": "boolean", "description": "<code>EventListener</code>'s isAttribute." },721 "nodeId": { "type": "integer","description": "Target <code>DOMNode</code> id." },722 "listenerBody": {"type": "string", "description": "Listener function body." },723 "sourceName": { "type": "string", "optional": true, "description": "Handler location source name." },724 "lineNumber": { "type": "number", "optional": true, "description": "Handler location line number." }725 },716 "properties": [ 717 { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." }, 718 { "name": "useCapture", "type": "boolean", "description": "<code>EventListener</code>'s useCapture." }, 719 { "name": "isAttribute", "type": "boolean", "description": "<code>EventListener</code>'s isAttribute." }, 720 { "name": "nodeId", "type": "integer", "description": "Target <code>DOMNode</code> id." }, 721 { "name": "listenerBody", "type": "string", "description": "Listener function body." }, 722 { "name": "sourceName", "type": "string", "optional": true, "description": "Handler location source name." }, 723 { "name": "lineNumber", "type": "number", "optional": true, "description": "Handler location line number." } 724 ], 726 725 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type." 727 726 } … … 813 812 ], 814 813 "returns": [ 815 { "name": "listeners", "type": "array", "items": { "$ref" 814 { "name": "listeners", "type": "array", "items": { "$ref": "DOMEventListener"}, "description": "Array of relevant listeners." } 816 815 ], 817 816 "description": "Returns event listeners relevant to the node." … … 891 890 "name": "hideFrameHighlight" 892 891 }, 893 894 892 { 895 893 "name": "pushNodeByPathToFrontend", … … 922 920 "parameters": [ 923 921 { "name": "parentId", "type": "integer", "description": "Parent node id to populate with children." }, 924 { "name": "nodes", "type": "array", "items": { "$ref" 922 { "name": "nodes", "type": "array", "items": { "$ref": "DOMNode"}, "description": "Child nodes array." } 925 923 ], 926 924 "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids." … … 930 928 "parameters": [ 931 929 { "name": "id", "type": "integer", "description": "Id of the node that has changed." }, 932 { "name": "attributes", "type": "array", "items": { "$ref" 930 { "name": "attributes", "type": "array", "items": { "$ref": "DOMAttribute"}, "description": "New attributes value." } 933 931 ], 934 932 "description": "Fired when <code>Element</code>'s attributes are updated." … … 983 981 "id": "CSSStyleId", 984 982 "type": "object", 985 "properties": {986 "styleSheetId": {"type": "string", "description": "Enclosing stylesheet identifier." },987 "ordinal": {"type": "integer", "description": "The style ordinal within the stylesheet." }988 },983 "properties": [ 984 { "name": "styleSheetId", "type": "string", "description": "Enclosing stylesheet identifier." }, 985 { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." } 986 ], 989 987 "description": "This object identifies a CSS style in a unique way." 990 988 }, … … 992 990 "id": "CSSRuleId", 993 991 "type": "object", 994 "properties": {995 "styleSheetId": {"type": "string", "description": "Enclosing stylesheet identifier." },996 "ordinal": {"type": "integer", "description": "The rule ordinal within the stylesheet." }997 },992 "properties": [ 993 { "name": "styleSheetId", "type": "string", "description": "Enclosing stylesheet identifier." }, 994 { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." } 995 ], 998 996 "description": "This object identifies a CSS rule in a unique way." 999 997 }, … … 1001 999 "id": "CSSNodeStyles", 1002 1000 "type": "object", 1003 "properties": {1004 "inlineStyle": {"$ref": "CSSStyle", "optional": true, "description": "The node's inline style, if any." },1005 "computedStyle": {"$ref": "CSSComputedStyle", "description": "The node's computed style." },1006 "matchedCSSRules": {"type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules matching this node, from all applicable stylesheets." },1007 "styleAttributes": {"type": "array", "items": { "$ref": "CSSStyleAttribute" }, "description": "Entries for style-related element attributes (e.g. width=20)."},1008 "pseudoElements": {"type": "array", "items": { "$ref": "PseudoIdRules" }, "description": "Pseudo style rules for this node." },1009 "inherited": {"type": "array", "items": { "$ref": "InheritedStyleEntry" }, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." }1010 },1001 "properties": [ 1002 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The node's inline style, if any." }, 1003 { "name": "computedStyle", "$ref": "CSSComputedStyle", "description": "The node's computed style." }, 1004 { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules matching this node, from all applicable stylesheets." }, 1005 { "name": "styleAttributes", "type": "array", "items": { "$ref": "CSSStyleAttribute" }, "description": "Entries for style-related element attributes (e.g. width=20)."}, 1006 { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdRules" }, "description": "Pseudo style rules for this node." }, 1007 { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." } 1008 ], 1011 1009 "description": "A holder for all CSS styles applicable to a particular DOM node." 1012 1010 }, … … 1014 1012 "id": "PseudoIdRules", 1015 1013 "type": "object", 1016 "properties": {1017 "pseudoId": {"type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>)."},1018 "rules": {"type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules applicable to the pseudo style."}1019 },1014 "properties": [ 1015 { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>)."}, 1016 { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules applicable to the pseudo style."} 1017 ], 1020 1018 "description": "CSS rule collection for a single pseudo style." 1021 1019 }, … … 1023 1021 "id": "InheritedStyleEntry", 1024 1022 "type": "object", 1025 "properties": {1026 "inlineStyle": {"$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." },1027 "matchedCSSRules": {"type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules matching the ancestor node in the style inheritance chain." }1028 },1023 "properties": [ 1024 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." }, 1025 { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules matching the ancestor node in the style inheritance chain." } 1026 ], 1029 1027 "description": "CSS rule collection for a single pseudo style." 1030 1028 }, … … 1032 1030 "id": "CSSStyleAttribute", 1033 1031 "type": "object", 1034 "properties": {1035 "name": {"type": "string", "description": "DOM attribute name (e.g. \"width\")."},1036 "style": {"$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."}1037 },1032 "properties": [ 1033 { "name": "name", "type": "string", "description": "DOM attribute name (e.g. \"width\")."}, 1034 { "name": "style", "$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."} 1035 ], 1038 1036 "description": "CSS style information for a DOM style attribute." 1039 1037 }, … … 1041 1039 "id": "CSSStyleSheetHeader", 1042 1040 "type": "object", 1043 "properties": {1044 "styleSheetId": {"type": "string", "description": "The stylesheet identifier."},1045 "sourceURL": {"type": "string", "description": "Stylesheet resource URL."},1046 "title": {"type": "string", "description": "Stylesheet title."},1047 "disabled": {"type": "boolean", "description": "Denotes whether the stylesheet is disabled."}1048 },1041 "properties": [ 1042 { "name": "styleSheetId", "type": "string", "description": "The stylesheet identifier."}, 1043 { "name": "sourceURL", "type": "string", "description": "Stylesheet resource URL."}, 1044 { "name": "title", "type": "string", "description": "Stylesheet title."}, 1045 { "name": "disabled", "type": "boolean", "description": "Denotes whether the stylesheet is disabled."} 1046 ], 1049 1047 "description": "CSS stylesheet metainformation." 1050 1048 }, … … 1052 1050 "id": "CSSStyleSheetBody", 1053 1051 "type": "object", 1054 "properties": {1055 "styleSheetId": {"type": "string", "description": "The stylesheet identifier."},1056 "rules": {"type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."},1057 "text": {"type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."}1058 },1052 "properties": [ 1053 { "name": "styleSheetId", "type": "string", "description": "The stylesheet identifier."}, 1054 { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."}, 1055 { "name": "text", "type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."} 1056 ], 1059 1057 "description": "CSS stylesheet contents." 1060 1058 }, … … 1062 1060 "id": "CSSRule", 1063 1061 "type": "object", 1064 "properties": {1065 "ruleId": {"$ref": "CSSRuleId", "description": "The CSS rule identifier."},1066 "selectorText": {"type": "string", "description": "Rule selector."},1067 "sourceURL": {"type": "string", "optional": true, "description": "Parent stylesheet resource URL (for regular rules)."},1068 "sourceLine": {"type": "integer", "description": "Line ordinal of the rule selector start character in the resource."},1069 "origin": {"type": "string", "enum": ["user", "user-agent", "inspector", ""], "description": "The parent stylesheet type: \"user\" for user stylesheets, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding new rules created with <code>addRule()</code>), \"\" for regular stylesheets."},1070 "style": {"$ref": "CSSStyle", "description": "Associated style declaration." },1071 "selectorRange": {"$ref": "SourceRange", "optional": true, "description": "The rule selector range in the underlying resource (if available)." }1072 },1062 "properties": [ 1063 { "name": "ruleId", "$ref": "CSSRuleId", "description": "The CSS rule identifier."}, 1064 { "name": "selectorText", "type": "string", "description": "Rule selector."}, 1065 { "name": "sourceURL", "type": "string", "optional": true, "description": "Parent stylesheet resource URL (for regular rules)."}, 1066 { "name": "sourceLine", "type": "integer", "description": "Line ordinal of the rule selector start character in the resource."}, 1067 { "name": "origin", "type": "string", "enum": ["user", "user-agent", "inspector", ""], "description": "The parent stylesheet type: \"user\" for user stylesheets, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding new rules created with <code>addRule()</code>), \"\" for regular stylesheets."}, 1068 { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." }, 1069 { "name": "selectorRange", "$ref": "SourceRange", "optional": true, "description": "The rule selector range in the underlying resource (if available)." } 1070 ], 1073 1071 "description": "CSS rule representation." 1074 1072 }, … … 1076 1074 "id": "SourceRange", 1077 1075 "type": "object", 1078 "properties": {1079 "start": {"type": "integer", "description": "Start of range (inclusive)."},1080 "end": {"type": "integer", "description": "End of range (exclusive)."}1081 },1076 "properties": [ 1077 { "name": "start", "type": "integer", "description": "Start of range (inclusive)."}, 1078 { "name": "end", "type": "integer", "description": "End of range (exclusive)."} 1079 ], 1082 1080 "description": "Text range within a resource." 1083 1081 }, … … 1085 1083 "id": "CSSStyle", 1086 1084 "type": "object", 1087 "properties": {1088 "styleId": {"$ref": "CSSStyleId", "description": "The CSS style identifier."},1089 "cssProperties": {"type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style."},1090 "shorthandEntries": {"type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." },1091 "cssText": {"type": "string", "optional": true, "description": "Style declaration text (if available)."},1092 "range": {"$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." },1093 "width": {"type": "integer", "description": "The effective \"width\" property value from this style." },1094 "height": {"type": "integer", "description": "The effective \"height\" property value from this style." }1095 },1085 "properties": [ 1086 { "name": "styleId", "$ref": "CSSStyleId", "description": "The CSS style identifier."}, 1087 { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style."}, 1088 { "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." }, 1089 { "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)."}, 1090 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." }, 1091 { "name": "width", "type": "integer", "description": "The effective \"width\" property value from this style." }, 1092 { "name": "height", "type": "integer", "description": "The effective \"height\" property value from this style." } 1093 ], 1096 1094 "description": "CSS style representation." 1097 1095 }, … … 1099 1097 "id": "CSSProperty", 1100 1098 "type": "object", 1101 "properties": {1102 "name": {"type": "string", "description": "The property name." },1103 "value": {"type": "string", "description": "The property value." },1104 "priority": {"type": "string", "optional": true, "description": "The property priority (implies \"\" if absent)." },1105 "implicit": {"type": "boolean", "optional": true, "description": "Whether the property is implicit (implies <code>false</code> if absent)." },1106 "parsedOk": {"type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." },1107 "status": {"type": "string", "enum": ["active", "inactive", "disabled", "style"], "optional": true, "description": "The property status: \"active\" (implied if absent) if the property is effective in the style, \"inactive\" if the property is overridden by a same-named property in this style later on, \"disabled\" if the property is disabled by the user, \"style\" if the property is reported by the browser rather than by the CSS source parser." },1108 "shorthandName": {"type": "string", "description": "The related shorthand property name (absent if this property is not a longhand)." },1109 "range": {"$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." }1110 },1099 "properties": [ 1100 { "name": "name", "type": "string", "description": "The property name." }, 1101 { "name": "value", "type": "string", "description": "The property value." }, 1102 { "name": "priority", "type": "string", "optional": true, "description": "The property priority (implies \"\" if absent)." }, 1103 { "name": "implicit", "type": "boolean", "optional": true, "description": "Whether the property is implicit (implies <code>false</code> if absent)." }, 1104 { "name": "parsedOk", "type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." }, 1105 { "name": "status", "type": "string", "enum": ["active", "inactive", "disabled", "style"], "optional": true, "description": "The property status: \"active\" (implied if absent) if the property is effective in the style, \"inactive\" if the property is overridden by a same-named property in this style later on, \"disabled\" if the property is disabled by the user, \"style\" if the property is reported by the browser rather than by the CSS source parser." }, 1106 { "name": "shorthandName", "type": "string", "description": "The related shorthand property name (absent if this property is not a longhand)." }, 1107 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." } 1108 ], 1111 1109 "description": "CSS style effective visual dimensions and source offsets." 1112 1110 } … … 1245 1243 "id": "TimelineRecord", 1246 1244 "type": "object", 1247 "properties": {1248 "type": {"type": "string", "description": "Event type." },1249 "data": {"type": "object", "description": "Event data." },1250 "children": { "type": "array", "optional": true, "items": { "$ref": "TimelineRecord" }, "description": "Nested records." }1251 },1245 "properties": [ 1246 { "name": "type", "type": "string", "description": "Event type." }, 1247 { "name": "data", "type": "object", "description": "Event data." }, 1248 { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineRecord" }, "description": "Nested records." } 1249 ], 1252 1250 "description": "Timeline record contains information about the recorded activity." 1253 1251 } … … 1288 1286 "id": "Location", 1289 1287 "type": "object", 1290 "properties": {1291 "sourceID": { "type": "string","description": "Script identifier as reported by the <code>scriptParsed</code>" },1292 "lineNumber": {"type": "integer", "description": "Line number in the script." },1293 "columnNumber": {"type": "integer", "optional": true, "description": "Column number in the script." }1294 },1288 "properties": [ 1289 { "name": "sourceID", "type": "string", "description": "Script identifier as reported by the <code>scriptParsed</code>" }, 1290 { "name": "lineNumber", "type": "integer", "description": "Line number in the script." }, 1291 { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number in the script." } 1292 ], 1295 1293 "description": "Location in the source code." 1296 1294 }, … … 1298 1296 "id": "CallFrame", 1299 1297 "type": "object", 1300 "properties": {1301 "id": { "type": "string","description": "Call frame identifier." },1302 "functionName": {"type": "string", "description": "Name of the function called on this frame." },1303 "location": {"$ref": "Location", "description": "Location in the source code." },1304 "scopeChain": {"type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for given call frame." }1305 },1298 "properties": [ 1299 { "name": "id", "type": "string", "description": "Call frame identifier." }, 1300 { "name": "functionName", "type": "string", "description": "Name of the function called on this frame." }, 1301 { "name": "location", "$ref": "Location", "description": "Location in the source code." }, 1302 { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for given call frame." } 1303 ], 1306 1304 "description": "Debugger call frame. Array of call frames form call stack." 1307 1305 }, … … 1309 1307 "id": "Scope", 1310 1308 "type": "object", 1311 "properties": {1312 "type": { "type": "string","enum": ["global", "local", "with", "closure", "catch"], "description": "Scope type." },1313 "object": {"$ref": "Runtime.RemoteObject", "description": "Object representing the scope." },1314 "this": {"$ref": "Runtime.RemoteObject", "optional": true, "description": "<code>this</code> object for local scope." }1315 },1309 "properties": [ 1310 { "name": "type", "type": "string", "enum": ["global", "local", "with", "closure", "catch"], "description": "Scope type." }, 1311 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope." }, 1312 { "name": "this", "$ref": "Runtime.RemoteObject", "optional": true, "description": "<code>this</code> object for local scope." } 1313 ], 1316 1314 "description": "Debugger call frame. Array of call frames form call stack." 1317 1315 } … … 1343 1341 "returns": [ 1344 1342 { "name": "breakpointId", "type": "string", "description": "Id of the created breakpoint for further manipulations." }, 1345 { "name": "locations", "optional": true, "type": "array", "items": { "$ref" 1343 { "name": "locations", "optional": true, "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into." } 1346 1344 ], 1347 1345 "description": "Sets JavaScript breakpoint at a given location specified by URL. This breakpoint will survive page reload." … … 1355 1353 "returns": [ 1356 1354 { "name": "breakpointId", "type": "string", "description": "Id of the created breakpoint for further manipulations." }, 1357 { "name": "actualLocation", "$ref" 1355 { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." } 1358 1356 ], 1359 1357 "description": "Sets JavaScript breakpoint at a given location." … … 1400 1398 ], 1401 1399 "returns": [ 1402 { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref" 1400 { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." } 1403 1401 ], 1404 1402 "description": "Edits JavaScript script live." … … 1481 1479 "name": "details", 1482 1480 "type": "object", 1483 "properties": {1484 "callFrames": {"type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }1485 },1481 "properties": [ 1482 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." } 1483 ], 1486 1484 "description": "Call stack information." 1487 1485 } … … 1570 1568 "name": "getProfileHeaders", 1571 1569 "returns": [ 1572 { "name": "headers", "type": "array", "items": { "$ref" 1570 { "name": "headers", "type": "array", "items": { "$ref": "ProfileHeader"} } 1573 1571 ] 1574 1572 },
Note: See TracChangeset
for help on using the changeset viewer.