Changeset 83715 in webkit


Ignore:
Timestamp:
Apr 13, 2011 2:51:26 AM (13 years ago)
Author:
pfeldman@chromium.org
Message:

2011-04-13 Pavel Feldman <pfeldman@google.com>

Reviewed by Yury Semikhatsky.

Web Inspector: enumerate properties in Inspector.json using array, not object keys.
https://bugs.webkit.org/show_bug.cgi?id=58418

  • inspector/Inspector.json:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83713 r83715  
     12011-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
    1102011-04-06  Pavel Podivilov  <podivilov@chromium.org>
    211
  • trunk/Source/WebCore/inspector/Inspector.json

    r83706 r83715  
    9191                "name": "getCookies",
    9292                "returns": [
    93                     { "name": "cookies", "type": "array", "items": { "$ref" : "Cookie"} },
     93                    { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"} },
    9494                    { "name": "cookiesString", "type": "string" }
    9595                ]
     
    126126    {
    127127        "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.",
    129129        "types": [
    130130            {
     
    132132                "type": "object",
    133133                "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                ]
    140140            },
    141141            {
     
    143143                "type": "object",
    144144                "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                ]
    150150            }
    151151        ],
     
    181181                ],
    182182                "returns": [
    183                     { "name": "result", "type": "array", "items": { "$ref" : "RuntimeProperty"}, "description": "Object properties." }
     183                    { "name": "result", "type": "array", "items": { "$ref": "RuntimeProperty"}, "description": "Object properties." }
    184184                ],
    185185                "description": "Returns properties of a given object."
     
    212212    {
    213213        "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.",
    215215        "types": [
    216216            {
     
    218218                "type": "object",
    219219                "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                ]
    232232            },
    233233            {
     
    235235                "type": "object",
    236236                "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                ]
    243243            }
    244244        ],
     
    303303                "type": "object",
    304304                "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                ]
    319319            },
    320320            {
     
    322322                "type": "object",
    323323                "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                ]
    330330            },
    331331            {
     
    333333                "type": "object",
    334334                "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                ]
    346346            },
    347347            {
     
    355355                "type": "object",
    356356                "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                ]
    363363            },
    364364            {
     
    366366                "type": "object",
    367367                "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                ]
    375375            },
    376376            {
     
    378378                "type": "object",
    379379                "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",
    384384                        "items": {
    385385                            "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                            ]
    390390                        },
    391391                        "description": "Information about frame resources."
    392392                    }
    393                 }
     393                ]
    394394            }
    395395        ],
     
    449449                    { "name": "redirectResponse", "optional": true, "$ref": "ResourceResponse", "description": "Redirect response data." },
    450450                    { "name": "timestamp", "type": "number", "description": "Timestamp." },
    451                     { "name": "stackTrace", "type": "array", "items": { "$ref" : "Console.CallFrame"}, "description": "JavaScript stack trace upon issuing this request." }
     451                    { "name": "stackTrace", "type": "array", "items": { "$ref": "Console.CallFrame"}, "description": "JavaScript stack trace upon issuing this request." }
    452452                ]
    453453            },
     
    620620                ],
    621621                "returns": [
    622                     { "name": "entries", "type": "array", "items": { "$ref" : "DOMStorageEntry"} }
     622                    { "name": "entries", "type": "array", "items": { "$ref": "DOMStorageEntry"} }
    623623                ]
    624624            },
     
    693693                "id": "DOMNode",
    694694                "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                ],
    712711                "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
    713712            },
     
    715714                "id": "DOMEventListener",
    716715                "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                ],
    726725                "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
    727726            }
     
    813812                ],
    814813                "returns": [
    815                     { "name": "listeners", "type": "array", "items": { "$ref" : "DOMEventListener"}, "description": "Array of relevant listeners." }
     814                    { "name": "listeners", "type": "array", "items": { "$ref": "DOMEventListener"}, "description": "Array of relevant listeners." }
    816815                ],
    817816                "description": "Returns event listeners relevant to the node."
     
    891890                "name": "hideFrameHighlight"
    892891            },
    893 
    894892            {
    895893                "name": "pushNodeByPathToFrontend",
     
    922920                "parameters": [
    923921                    { "name": "parentId", "type": "integer", "description": "Parent node id to populate with children." },
    924                     { "name": "nodes", "type": "array", "items": { "$ref" : "DOMNode"}, "description": "Child nodes array." }
     922                    { "name": "nodes", "type": "array", "items": { "$ref": "DOMNode"}, "description": "Child nodes array." }
    925923                ],
    926924                "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids."
     
    930928                "parameters": [
    931929                    { "name": "id", "type": "integer", "description": "Id of the node that has changed." },
    932                     { "name": "attributes", "type": "array", "items": { "$ref" : "DOMAttribute"}, "description": "New attributes value." }
     930                    { "name": "attributes", "type": "array", "items": { "$ref": "DOMAttribute"}, "description": "New attributes value." }
    933931                ],
    934932                "description": "Fired when <code>Element</code>'s attributes are updated."
     
    983981                "id": "CSSStyleId",
    984982                "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                ],
    989987                "description": "This object identifies a CSS style in a unique way."
    990988            },
     
    992990                "id": "CSSRuleId",
    993991                "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                ],
    998996                "description": "This object identifies a CSS rule in a unique way."
    999997            },
     
    1001999                "id": "CSSNodeStyles",
    10021000                "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                ],
    10111009                "description": "A holder for all CSS styles applicable to a particular DOM node."
    10121010            },
     
    10141012                "id": "PseudoIdRules",
    10151013                "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                ],
    10201018                "description": "CSS rule collection for a single pseudo style."
    10211019            },
     
    10231021                "id": "InheritedStyleEntry",
    10241022                "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                ],
    10291027                "description": "CSS rule collection for a single pseudo style."
    10301028            },
     
    10321030                "id": "CSSStyleAttribute",
    10331031                "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                ],
    10381036                "description": "CSS style information for a DOM style attribute."
    10391037            },
     
    10411039                "id": "CSSStyleSheetHeader",
    10421040                "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                ],
    10491047                "description": "CSS stylesheet metainformation."
    10501048            },
     
    10521050                "id": "CSSStyleSheetBody",
    10531051                "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                ],
    10591057                "description": "CSS stylesheet contents."
    10601058            },
     
    10621060                "id": "CSSRule",
    10631061                "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                ],
    10731071                "description": "CSS rule representation."
    10741072            },
     
    10761074                "id": "SourceRange",
    10771075                "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                ],
    10821080                "description": "Text range within a resource."
    10831081            },
     
    10851083                "id": "CSSStyle",
    10861084                "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                ],
    10961094                "description": "CSS style representation."
    10971095            },
     
    10991097                "id": "CSSProperty",
    11001098                "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                ],
    11111109                "description": "CSS style effective visual dimensions and source offsets."
    11121110            }
     
    12451243                "id": "TimelineRecord",
    12461244                "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                ],
    12521250                "description": "Timeline record contains information about the recorded activity."
    12531251            }
     
    12881286                "id": "Location",
    12891287                "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                ],
    12951293                "description": "Location in the source code."
    12961294            },
     
    12981296                "id": "CallFrame",
    12991297                "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                ],
    13061304                "description": "Debugger call frame. Array of call frames form call stack."
    13071305            },
     
    13091307                "id": "Scope",
    13101308                "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                ],
    13161314                "description": "Debugger call frame. Array of call frames form call stack."
    13171315            }
     
    13431341                "returns": [
    13441342                    { "name": "breakpointId", "type": "string", "description": "Id of the created breakpoint for further manipulations." },
    1345                     { "name": "locations", "optional": true, "type": "array", "items": { "$ref" : "Location"}, "description": "List of the locations this breakpoint resolved into." }
     1343                    { "name": "locations", "optional": true, "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into." }
    13461344                ],
    13471345                "description": "Sets JavaScript breakpoint at a given location specified by URL. This breakpoint will survive page reload."
     
    13551353                "returns": [
    13561354                    { "name": "breakpointId", "type": "string", "description": "Id of the created breakpoint for further manipulations." },
    1357                     { "name": "actualLocation", "$ref" : "Location", "description": "Location this breakpoint resolved into." }
     1355                    { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." }
    13581356                ],
    13591357                "description": "Sets JavaScript breakpoint at a given location."
     
    14001398                ],
    14011399                "returns": [
    1402                     { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref" : "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." }
     1400                    { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." }
    14031401                ],
    14041402                "description": "Edits JavaScript script live."
     
    14811479                        "name": "details",
    14821480                        "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                        ],
    14861484                        "description": "Call stack information."
    14871485                    }
     
    15701568                "name": "getProfileHeaders",
    15711569                "returns": [
    1572                     { "name": "headers", "type": "array", "items": { "$ref" : "ProfileHeader"} }
     1570                    { "name": "headers", "type": "array", "items": { "$ref": "ProfileHeader"} }
    15731571                ]
    15741572            },
Note: See TracChangeset for help on using the changeset viewer.