Changeset 218898 in webkit
- Timestamp:
- Jun 28, 2017, 3:53:22 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r218897 r218898 1 2017-06-28 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Cleanup Protocol JSON files 4 https://bugs.webkit.org/show_bug.cgi?id=173934 5 6 Reviewed by Matt Baker. 7 8 * inspector/protocol/ApplicationCache.json: 9 * inspector/protocol/CSS.json: 10 * inspector/protocol/Console.json: 11 * inspector/protocol/DOM.json: 12 * inspector/protocol/DOMDebugger.json: 13 * inspector/protocol/Debugger.json: 14 * inspector/protocol/LayerTree.json: 15 * inspector/protocol/Network.json: 16 * inspector/protocol/Page.json: 17 * inspector/protocol/Runtime.json: 18 Be more consistent about placement of `description` property. 19 1 20 2017-06-27 Joseph Pecoraro <pecoraro@apple.com> 2 21 -
trunk/Source/JavaScriptCore/inspector/protocol/ApplicationCache.json
r174906 r218898 39 39 { 40 40 "name": "getFramesWithManifests", 41 "description": "Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache.", 41 42 "returns": [ 42 43 { "name": "frameIds", "type": "array", "items": { "$ref": "FrameWithManifest" }, "description": "Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache." } 43 ], 44 "description": "Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache." 44 ] 45 45 }, 46 46 { … … 50 50 { 51 51 "name": "getManifestForFrame", 52 "description": "Returns manifest URL for document in the given frame.", 52 53 "parameters": [ 53 54 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." } … … 55 56 "returns": [ 56 57 { "name": "manifestURL", "type": "string", "description": "Manifest URL for document in the given frame." } 57 ], 58 "description": "Returns manifest URL for document in the given frame." 58 ] 59 59 }, 60 60 { 61 61 "name": "getApplicationCacheForFrame", 62 "description": "Returns relevant application cache data for the document in given frame.", 62 63 "parameters": [ 63 64 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieved." } … … 65 66 "returns": [ 66 67 { "name": "applicationCache", "$ref": "ApplicationCache", "description": "Relevant application cache data for the document in given frame." } 67 ], 68 "description": "Returns relevant application cache data for the document in given frame." 68 ] 69 69 } 70 70 ], -
trunk/Source/JavaScriptCore/inspector/protocol/CSS.json
r189104 r218898 11 11 "id": "CSSStyleId", 12 12 "type": "object", 13 "description": "This object identifies a CSS style in a unique way.", 13 14 "properties": [ 14 15 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." }, 15 16 { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." } 16 ], 17 "description": "This object identifies a CSS style in a unique way." 17 ] 18 18 }, 19 19 { … … 26 26 "id": "CSSRuleId", 27 27 "type": "object", 28 "description": "This object identifies a CSS rule in a unique way.", 28 29 "properties": [ 29 30 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." }, 30 31 { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." } 31 ], 32 "description": "This object identifies a CSS rule in a unique way." 32 ] 33 33 }, 34 34 { 35 35 "id": "PseudoIdMatches", 36 36 "type": "object", 37 "description": "CSS rule collection for a single pseudo style.", 37 38 "properties": [ 38 39 { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>)."}, 39 40 { "name": "matches", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules applicable to the pseudo style."} 40 ], 41 "description": "CSS rule collection for a single pseudo style." 41 ] 42 42 }, 43 43 { 44 44 "id": "InheritedStyleEntry", 45 45 "type": "object", 46 "description": "CSS rule collection for a single pseudo style.", 46 47 "properties": [ 47 48 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." }, 48 49 { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules matching the ancestor node in the style inheritance chain." } 49 ], 50 "description": "CSS rule collection for a single pseudo style." 50 ] 51 51 }, 52 52 { 53 53 "id": "RuleMatch", 54 54 "type": "object", 55 "description": "Match data for a CSS rule.", 55 56 "properties": [ 56 57 { "name": "rule", "$ref": "CSSRule", "description": "CSS rule in the match." }, 57 58 { "name": "matchingSelectors", "type": "array", "items": { "type": "integer" }, "description": "Matching selector indices in the rule's selectorList selectors (0-based)." } 58 ], 59 "description": "Match data for a CSS rule." 59 ] 60 60 }, 61 61 { 62 62 "id": "CSSSelector", 63 63 "type": "object", 64 "description": "CSS selector.", 64 65 "properties": [ 65 66 { "name": "text", "type": "string", "description": "Canonicalized selector text." }, 66 67 { "name": "specificity", "optional": true, "type": "array", "items": { "type": "integer" }, "description": "Specificity (a, b, c) tuple. Included if the selector is sent in response to CSS.getMatchedStylesForNode which provides a context element." }, 67 68 { "name": "dynamic", "optional": true, "type": "boolean", "description": "Whether or not the specificity can be dynamic. Included if the selector is sent in response to CSS.getMatchedStylesForNode which provides a context element." } 68 ], 69 "description": "CSS selector." 69 ] 70 70 }, 71 71 { 72 72 "id": "SelectorList", 73 73 "type": "object", 74 "description": "Selector list data.", 74 75 "properties": [ 75 76 { "name": "selectors", "type": "array", "items": { "$ref": "CSSSelector" }, "description": "Selectors in the list." }, 76 77 { "name": "text", "type": "string", "description": "Rule selector text." }, 77 78 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Rule selector range in the underlying resource (if available)." } 78 ], 79 "description": "Selector list data." 79 ] 80 80 }, 81 81 { 82 82 "id": "CSSStyleAttribute", 83 83 "type": "object", 84 "description": "CSS style information for a DOM style attribute.", 84 85 "properties": [ 85 86 { "name": "name", "type": "string", "description": "DOM attribute name (e.g. \"width\")."}, 86 87 { "name": "style", "$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."} 87 ], 88 "description": "CSS style information for a DOM style attribute." 88 ] 89 89 }, 90 90 { 91 91 "id": "CSSStyleSheetHeader", 92 92 "type": "object", 93 "description": "CSS stylesheet meta-information.", 93 94 "properties": [ 94 95 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."}, … … 101 102 { "name": "startLine", "type": "number", "description": "Line offset of the stylesheet within the resource (zero based)." }, 102 103 { "name": "startColumn", "type": "number", "description": "Column offset of the stylesheet within the resource (zero based)." } 103 ], 104 "description": "CSS stylesheet metainformation." 104 ] 105 105 }, 106 106 { 107 107 "id": "CSSStyleSheetBody", 108 108 "type": "object", 109 "description": "CSS stylesheet contents.", 109 110 "properties": [ 110 111 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."}, 111 112 { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."}, 112 113 { "name": "text", "type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."} 113 ], 114 "description": "CSS stylesheet contents." 114 ] 115 115 }, 116 116 { 117 117 "id": "CSSRule", 118 118 "type": "object", 119 "description": "CSS rule representation.", 119 120 "properties": [ 120 121 { "name": "ruleId", "$ref": "CSSRuleId", "optional": true, "description": "The CSS rule identifier (absent for user agent stylesheet and user-specified stylesheet rules)."}, … … 125 126 { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." }, 126 127 { "name": "media", "type": "array", "items": { "$ref": "CSSMedia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." } 127 ], 128 "description": "CSS rule representation." 128 ] 129 129 }, 130 130 { 131 131 "id": "SourceRange", 132 132 "type": "object", 133 "description": "Text range within a resource.", 133 134 "properties": [ 134 135 { "name": "startLine", "type": "integer", "description": "Start line of range." }, … … 136 137 { "name": "endLine", "type": "integer", "description": "End line of range" }, 137 138 { "name": "endColumn", "type": "integer", "description": "End column of range (exclusive)." } 138 ], 139 "description": "Text range within a resource." 139 ] 140 140 }, 141 141 { … … 167 167 "id": "CSSStyle", 168 168 "type": "object", 169 "description": "CSS style representation.", 169 170 "properties": [ 170 171 { "name": "styleId", "$ref": "CSSStyleId", "optional": true, "description": "The CSS style identifier (absent for attribute styles)." }, … … 175 176 { "name": "width", "type": "string", "optional": true, "description": "The effective \"width\" property value from this style." }, 176 177 { "name": "height", "type": "string", "optional": true, "description": "The effective \"height\" property value from this style." } 177 ], 178 "description": "CSS style representation." 178 ] 179 179 }, 180 180 { … … 187 187 "id": "CSSProperty", 188 188 "type": "object", 189 "description": "CSS style effective visual dimensions and source offsets.", 189 190 "properties": [ 190 191 { "name": "name", "type": "string", "description": "The property name." }, … … 196 197 { "name": "status", "$ref": "CSSPropertyStatus", "optional": true, "description": "Whether the property is active or disabled." }, 197 198 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." } 198 ], 199 "description": "CSS style effective visual dimensions and source offsets." 199 ] 200 200 }, 201 201 { 202 202 "id": "CSSMedia", 203 203 "type": "object", 204 "description": "CSS media query descriptor.", 204 205 "properties": [ 205 206 { "name": "text", "type": "string", "description": "Media query text." }, … … 207 208 { "name": "sourceURL", "type": "string", "optional": true, "description": "URL of the document containing the media query description." }, 208 209 { "name": "sourceLine", "type": "integer", "optional": true, "description": "Line in the document containing the media query (not defined for the \"stylesheet\" source)." } 209 ], 210 "description": "CSS media query descriptor." 210 ] 211 211 }, 212 212 { 213 213 "id": "Region", 214 214 "type": "object", 215 "description": "This object represents a region that flows from a Named Flow.", 215 216 "properties": [ 216 217 { "name": "regionOverset", "type": "string", "enum": ["overset", "fit", "empty"], "description": "The \"overset\" attribute of a Named Flow." }, 217 218 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The corresponding DOM node id." } 218 ], 219 "description": "This object represents a region that flows from a Named Flow." 219 ] 220 220 }, 221 221 { 222 222 "id": "NamedFlow", 223 223 "type": "object", 224 "description": "This object represents a Named Flow.", 224 225 "properties": [ 225 226 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." }, … … 228 229 { "name": "content", "type": "array", "items": { "$ref": "DOM.NodeId" }, "description": "An array of nodes that flow into the Named Flow." }, 229 230 { "name": "regions", "type": "array", "items": { "$ref": "Region" }, "description": "An array of regions associated with the Named Flow." } 230 ], 231 "description": "This object represents a Named Flow." 231 ] 232 232 } 233 233 ], … … 243 243 { 244 244 "name": "getMatchedStylesForNode", 245 "description": "Returns requested styles for a DOM node identified by <code>nodeId</code>.", 245 246 "parameters": [ 246 247 { "name": "nodeId", "$ref": "DOM.NodeId" }, … … 252 253 { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdMatches" }, "optional": true, "description": "Pseudo style matches for this node." }, 253 254 { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "optional": true, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." } 254 ], 255 "description": "Returns requested styles for a DOM node identified by <code>nodeId</code>." 255 ] 256 256 }, 257 257 { 258 258 "name": "getInlineStylesForNode", 259 "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by <code>nodeId</code>.", 259 260 "parameters": [ 260 261 { "name": "nodeId", "$ref": "DOM.NodeId" } … … 263 264 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "Inline style for the specified DOM node." }, 264 265 { "name": "attributesStyle", "$ref": "CSSStyle", "optional": true, "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."} 265 ], 266 "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by <code>nodeId</code>." 266 ] 267 267 }, 268 268 { 269 269 "name": "getComputedStyleForNode", 270 "description": "Returns the computed style for a DOM node identified by <code>nodeId</code>.", 270 271 "parameters": [ 271 272 { "name": "nodeId", "$ref": "DOM.NodeId" } … … 273 274 "returns": [ 274 275 { "name": "computedStyle", "type": "array", "items": { "$ref": "CSSComputedStyleProperty" }, "description": "Computed style for the specified DOM node." } 275 ], 276 "description": "Returns the computed style for a DOM node identified by <code>nodeId</code>." 276 ] 277 277 }, 278 278 { 279 279 "name": "getAllStyleSheets", 280 "description": "Returns metainfo entries for all known stylesheets.", 280 281 "returns": [ 281 282 { "name": "headers", "type": "array", "items": { "$ref": "CSSStyleSheetHeader" }, "description": "Descriptor entries for all available stylesheets." } 282 ], 283 "description": "Returns metainfo entries for all known stylesheets." 283 ] 284 284 }, 285 285 { 286 286 "name": "getStyleSheet", 287 "description": "Returns stylesheet data for the specified <code>styleSheetId</code>.", 287 288 "parameters": [ 288 289 { "name": "styleSheetId", "$ref": "StyleSheetId" } … … 290 291 "returns": [ 291 292 { "name": "styleSheet", "$ref": "CSSStyleSheetBody", "description": "Stylesheet contents for the specified <code>styleSheetId</code>." } 292 ], 293 "description": "Returns stylesheet data for the specified <code>styleSheetId</code>." 293 ] 294 294 }, 295 295 { 296 296 "name": "getStyleSheetText", 297 "description": "Returns the current textual content and the URL for a stylesheet.", 297 298 "parameters": [ 298 299 { "name": "styleSheetId", "$ref": "StyleSheetId" } … … 300 301 "returns": [ 301 302 { "name": "text", "type": "string", "description": "The stylesheet text." } 302 ], 303 "description": "Returns the current textual content and the URL for a stylesheet." 303 ] 304 304 }, 305 305 { 306 306 "name": "setStyleSheetText", 307 "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet.", 307 308 "parameters": [ 308 309 { "name": "styleSheetId", "$ref": "StyleSheetId" }, 309 310 { "name": "text", "type": "string" } 310 ], 311 "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet." 311 ] 312 312 }, 313 313 { 314 314 "name": "setStyleText", 315 "description": "Sets the new <code>text</code> for the respective style.", 315 316 "parameters": [ 316 317 { "name": "styleId", "$ref": "CSSStyleId" }, … … 319 320 "returns": [ 320 321 { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the text modification." } 321 ], 322 "description": "Sets the new <code>text</code> for the respective style." 322 ] 323 323 }, 324 324 { 325 325 "name": "setRuleSelector", 326 "description": "Modifies the rule selector.", 326 327 "parameters": [ 327 328 { "name": "ruleId", "$ref": "CSSRuleId" }, … … 330 331 "returns": [ 331 332 { "name": "rule", "$ref": "CSSRule", "description": "The resulting rule after the selector modification." } 332 ], 333 "description": "Modifies the rule selector." 333 ] 334 334 }, 335 335 { 336 336 "name": "createStyleSheet", 337 "description": "Creates a new special \"inspector\" stylesheet in the frame with given <code>frameId</code>.", 337 338 "parameters": [ 338 339 { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame where the new \"inspector\" stylesheet should be created." } … … 340 341 "returns": [ 341 342 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the created \"inspector\" stylesheet." } 342 ], 343 "description": "Creates a new special \"inspector\" stylesheet in the frame with given <code>frameId</code>." 343 ] 344 344 }, 345 345 { 346 346 "name": "addRule", 347 "description": "Creates a new empty rule with the given <code>selector</code> in a stylesheet with given <code>styleSheetId</code>.", 347 348 "parameters": [ 348 349 { "name": "styleSheetId", "$ref": "StyleSheetId" }, … … 351 352 "returns": [ 352 353 { "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." } 353 ], 354 "description": "Creates a new empty rule with the given <code>selector</code> in a stylesheet with given <code>styleSheetId</code>." 354 ] 355 355 }, 356 356 { 357 357 "name": "getSupportedCSSProperties", 358 "description": "Returns all supported CSS property names.", 358 359 "returns": [ 359 360 { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSPropertyInfo" }, "description": "Supported property metainfo." } 360 ], 361 "description": "Returns all supported CSS property names." 361 ] 362 362 }, 363 363 { 364 364 "name": "getSupportedSystemFontFamilyNames", 365 "description": "Returns all supported system font family names.", 365 366 "returns": [ 366 367 { "name": "fontFamilyNames", "type": "array", "items": { "type": "string" }, "description": "Supported system font families." } 367 ], 368 "description": "Returns all supported system font family names." 368 ] 369 369 }, 370 370 { 371 371 "name": "forcePseudoState", 372 "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.", 372 373 "parameters": [ 373 374 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The element id for which to force the pseudo state." }, 374 375 { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "description": "Element pseudo classes to force when computing the element's style." } 375 ], 376 "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser." 376 ] 377 377 }, 378 378 { 379 379 "name": "getNamedFlowCollection", 380 "description": "Returns the Named Flows from the document.", 380 381 "parameters": [ 381 382 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id for which to get the Named Flow Collection." } … … 383 384 "returns": [ 384 385 { "name": "namedFlows", "type": "array", "items": { "$ref": "NamedFlow" }, "description": "An array containing the Named Flows in the document." } 385 ], 386 "description": "Returns the Named Flows from the document." 386 ] 387 387 } 388 388 ], … … 394 394 { 395 395 "name": "styleSheetChanged", 396 "description": "Fired whenever a stylesheet is changed as a result of the client operation.", 396 397 "parameters": [ 397 398 { "name": "styleSheetId", "$ref": "StyleSheetId" } 398 ], 399 "description": "Fired whenever a stylesheet is changed as a result of the client operation." 399 ] 400 400 }, 401 401 { 402 402 "name": "styleSheetAdded", 403 "description": "Fired whenever an active document stylesheet is added.", 403 404 "parameters": [ 404 405 { "name": "header", "$ref": "CSSStyleSheetHeader", "description": "Added stylesheet metainfo." } 405 ], 406 "description": "Fired whenever an active document stylesheet is added." 406 ] 407 407 }, 408 408 { 409 409 "name": "styleSheetRemoved", 410 "description": "Fired whenever an active document stylesheet is removed.", 410 411 "parameters": [ 411 412 { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the removed stylesheet." } 412 ], 413 "description": "Fired whenever an active document stylesheet is removed." 413 ] 414 414 }, 415 415 { 416 416 "name": "namedFlowCreated", 417 "description": "Fires when a Named Flow is created.", 417 418 "parameters": [ 418 419 { "name": "namedFlow", "$ref": "NamedFlow", "description": "The new Named Flow." } 419 ], 420 "description": "Fires when a Named Flow is created." 420 ] 421 421 }, 422 422 { 423 423 "name": "namedFlowRemoved", 424 "description": "Fires when a Named Flow is removed: has no associated content nodes and regions.", 424 425 "parameters": [ 425 426 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." }, 426 427 { "name": "flowName", "type": "string", "description": "Identifier of the removed Named Flow." } 427 ], 428 "description": "Fires when a Named Flow is removed: has no associated content nodes and regions." 428 ] 429 429 }, 430 430 { 431 431 "name": "regionOversetChanged", 432 "description": "Fires if any of the regionOverset values changed in a Named Flow's region chain.", 432 433 "parameters": [ 433 434 { "name": "namedFlow", "$ref": "NamedFlow", "description": "The Named Flow containing the regions whose regionOverset values changed." } 434 ], 435 "description": "Fires if any of the regionOverset values changed in a Named Flow's region chain." 435 ] 436 436 }, 437 437 { 438 438 "name": "registeredNamedFlowContentElement", 439 "description": "Fires when a Named Flow's has been registered with a new content node.", 439 440 "parameters": [ 440 441 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." }, … … 442 443 { "name": "contentNodeId", "$ref": "DOM.NodeId", "description": "The node id of the registered content node." }, 443 444 { "name": "nextContentNodeId", "$ref": "DOM.NodeId", "description": "The node id of the element following the registered content node." } 444 ], 445 "description": "Fires when a Named Flow's has been registered with a new content node." 445 ] 446 446 }, 447 447 { 448 448 "name": "unregisteredNamedFlowContentElement", 449 "description": "Fires when a Named Flow's has been registered with a new content node.", 449 450 "parameters": [ 450 451 { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." }, 451 452 { "name": "flowName", "type": "string", "description": "Named Flow identifier for which the new content element was unregistered." }, 452 453 { "name": "contentNodeId", "$ref": "DOM.NodeId", "description": "The node id of the unregistered content node." } 453 ], 454 "description": "Fires when a Named Flow's has been registered with a new content node." 454 ] 455 455 } 456 456 ] -
trunk/Source/JavaScriptCore/inspector/protocol/Console.json
r211385 r218898 61 61 { 62 62 "name": "setMonitoringXHREnabled", 63 "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued.", 63 64 "parameters": [ 64 65 { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." } 65 ], 66 "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued." 66 ] 67 67 }, 68 68 { 69 69 "name": "addInspectedNode", 70 "description": "Enables console to refer to the node with given id via $0 (see Command Line API for more details).", 70 71 "parameters": [ 71 72 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "DOM node id to be accessible by means of $0 command line API." } 72 ], 73 "description": "Enables console to refer to the node with given id via $0 (see Command Line API for more details)." 73 ] 74 74 } 75 75 ], … … 77 77 { 78 78 "name": "messageAdded", 79 "description": "Issued when new console message is added.", 79 80 "parameters": [ 80 81 { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." } 81 ], 82 "description": "Issued when new console message is added." 82 ] 83 83 }, 84 84 { 85 85 "name": "messageRepeatCountUpdated", 86 "description": "Issued when subsequent message(s) are equal to the previous one(s).", 86 87 "parameters": [ 87 88 { "name": "count", "type": "integer", "description": "New repeat count value." } 88 ], 89 "description": "Issued when subsequent message(s) are equal to the previous one(s)." 89 ] 90 90 }, 91 91 { -
trunk/Source/JavaScriptCore/inspector/protocol/DOM.json
r213873 r218898 41 41 "id": "Node", 42 42 "type": "object", 43 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.", 43 44 "properties": [ 44 45 { "name": "nodeId", "$ref": "NodeId", "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." }, … … 67 68 { "name": "role", "type": "string", "optional": true, "description": "Computed value for first recognized role token, default role per element, or overridden role." }, 68 69 { "name": "contentSecurityPolicyHash", "type": "string", "optional": true, "description": "Computed SHA-256 Content Security Policy hash source for given element." } 69 ], 70 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type." 70 ] 71 71 }, 72 72 { 73 73 "id": "EventListener", 74 74 "type": "object", 75 "description": "A structure holding event listener properties.", 75 76 "properties": [ 76 77 { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." }, … … 84 85 { "name": "passive", "type": "boolean", "optional": true, "description": "<code>EventListener</code>'s passive." }, 85 86 { "name": "once", "type": "boolean", "optional": true, "description": "<code>EventListener</code>'s once." } 86 ], 87 "description": "A structure holding event listener properties." 87 ] 88 88 }, 89 89 { … … 129 129 "id": "RGBAColor", 130 130 "type": "object", 131 "description": "A structure holding an RGBA color.", 131 132 "properties": [ 132 133 { "name": "r", "type": "integer", "description": "The red component, in the [0-255] range." }, … … 134 135 { "name": "b", "type": "integer", "description": "The blue component, in the [0-255] range." }, 135 136 { "name": "a", "type": "number", "optional": true, "description": "The alpha component, in the [0-1] range (default: 1)." } 136 ], 137 "description": "A structure holding an RGBA color." 137 ] 138 138 }, 139 139 { … … 148 148 "id": "HighlightConfig", 149 149 "type": "object", 150 "description": "Configuration data for the highlighting of page elements.", 150 151 "properties": [ 151 152 { "name": "showInfo", "type": "boolean", "optional": true, "description": "Whether the node info tooltip should be shown (default: false)." }, … … 154 155 { "name": "borderColor", "$ref": "RGBAColor", "optional": true, "description": "The border highlight fill color (default: transparent)." }, 155 156 { "name": "marginColor", "$ref": "RGBAColor", "optional": true, "description": "The margin highlight fill color (default: transparent)." } 156 ], 157 "description": "Configuration data for the highlighting of page elements." 157 ] 158 158 } 159 159 ], … … 161 161 { 162 162 "name": "getDocument", 163 "description": "Returns the root DOM node to the caller.", 163 164 "returns": [ 164 165 { "name": "root", "$ref": "Node", "description": "Resulting node." } 165 ], 166 "description": "Returns the root DOM node to the caller." 166 ] 167 167 }, 168 168 { 169 169 "name": "requestChildNodes", 170 "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events where not only immediate children are retrieved, but all children down to the specified depth.", 170 171 "parameters": [ 171 172 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." }, 172 173 { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0." } 173 ], 174 "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events where not only immediate children are retrieved, but all children down to the specified depth." 174 ] 175 175 }, 176 176 { 177 177 "name": "querySelector", 178 "description": "Executes <code>querySelector</code> on a given node.", 178 179 "parameters": [ 179 180 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." }, … … 182 183 "returns": [ 183 184 { "name": "nodeId", "$ref": "NodeId", "description": "Query selector result." } 184 ], 185 "description": "Executes <code>querySelector</code> on a given node." 185 ] 186 186 }, 187 187 { 188 188 "name": "querySelectorAll", 189 "description": "Executes <code>querySelectorAll</code> on a given node.", 189 190 "parameters": [ 190 191 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." }, … … 193 194 "returns": [ 194 195 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Query selector result." } 195 ], 196 "description": "Executes <code>querySelectorAll</code> on a given node." 196 ] 197 197 }, 198 198 { 199 199 "name": "setNodeName", 200 "description": "Sets node name for a node with given id.", 200 201 "parameters": [ 201 202 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set name for." }, … … 204 205 "returns": [ 205 206 { "name": "nodeId", "$ref": "NodeId", "description": "New node's id." } 206 ], 207 "description": "Sets node name for a node with given id." 207 ] 208 208 }, 209 209 { 210 210 "name": "setNodeValue", 211 "description": "Sets node value for a node with given id.", 211 212 "parameters": [ 212 213 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set value for." }, 213 214 { "name": "value", "type": "string", "description": "New node's value." } 214 ], 215 "description": "Sets node value for a node with given id." 215 ] 216 216 }, 217 217 { 218 218 "name": "removeNode", 219 "description": "Removes node with given id.", 219 220 "parameters": [ 220 221 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to remove." } 221 ], 222 "description": "Removes node with given id." 222 ] 223 223 }, 224 224 { 225 225 "name": "setAttributeValue", 226 "description": "Sets attribute for an element with given id.", 226 227 "parameters": [ 227 228 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attribute for." }, 228 229 { "name": "name", "type": "string", "description": "Attribute name." }, 229 230 { "name": "value", "type": "string", "description": "Attribute value." } 230 ], 231 "description": "Sets attribute for an element with given id." 231 ] 232 232 }, 233 233 { 234 234 "name": "setAttributesAsText", 235 "description": "Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.", 235 236 "parameters": [ 236 237 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attributes for." }, 237 238 { "name": "text", "type": "string", "description": "Text with a number of attributes. Will parse this text using HTML parser." }, 238 239 { "name": "name", "type": "string", "optional": true, "description": "Attribute name to replace with new attributes derived from text in case text parsed successfully." } 239 ], 240 "description": "Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs." 240 ] 241 241 }, 242 242 { 243 243 "name": "removeAttribute", 244 "description": "Removes attribute with given name from an element with given id.", 244 245 "parameters": [ 245 246 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to remove attribute from." }, 246 247 { "name": "name", "type": "string", "description": "Name of the attribute to remove." } 247 ], 248 "description": "Removes attribute with given name from an element with given id." 248 ] 249 249 }, 250 250 { 251 251 "name": "getEventListenersForNode", 252 "description": "Returns event listeners relevant to the node.", 252 253 "parameters": [ 253 254 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get listeners for." }, … … 256 257 "returns": [ 257 258 { "name": "listeners", "type": "array", "items": { "$ref": "EventListener"}, "description": "Array of relevant listeners." } 258 ], 259 "description": "Returns event listeners relevant to the node." 259 ] 260 260 }, 261 261 { … … 271 271 { 272 272 "name": "getOuterHTML", 273 "description": "Returns node's HTML markup.", 273 274 "parameters": [ 274 275 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get markup for." } … … 276 277 "returns": [ 277 278 { "name": "outerHTML", "type": "string", "description": "Outer HTML markup." } 278 ], 279 "description": "Returns node's HTML markup." 279 ] 280 280 }, 281 281 { 282 282 "name": "setOuterHTML", 283 "description": "Sets node HTML markup, returns new node id.", 283 284 "parameters": [ 284 285 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set markup for." }, 285 286 { "name": "outerHTML", "type": "string", "description": "Outer HTML markup to set." } 286 ], 287 "description": "Sets node HTML markup, returns new node id." 287 ] 288 288 }, 289 289 { 290 290 "name": "performSearch", 291 "description": "Searches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session.", 291 292 "parameters": [ 292 293 { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." }, … … 296 297 { "name": "searchId", "type": "string", "description": "Unique search session identifier." }, 297 298 { "name": "resultCount", "type": "integer", "description": "Number of search results." } 298 ], 299 "description": "Searches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session." 299 ] 300 300 }, 301 301 { 302 302 "name": "getSearchResults", 303 "description": "Returns search results from given <code>fromIndex</code> to given <code>toIndex</code> from the sarch with the given identifier.", 303 304 "parameters": [ 304 305 { "name": "searchId", "type": "string", "description": "Unique search session identifier." }, … … 308 309 "returns": [ 309 310 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the search result nodes." } 310 ], 311 "description": "Returns search results from given <code>fromIndex</code> to given <code>toIndex</code> from the sarch with the given identifier." 311 ] 312 312 }, 313 313 { 314 314 "name": "discardSearchResults", 315 "description": "Discards search results from the session with the given id. <code>getSearchResults</code> should no longer be called for that search.", 315 316 "parameters": [ 316 317 { "name": "searchId", "type": "string", "description": "Unique search session identifier." } 317 ], 318 "description": "Discards search results from the session with the given id. <code>getSearchResults</code> should no longer be called for that search." 318 ] 319 319 }, 320 320 { 321 321 "name": "requestNode", 322 "description": "Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of <code>setChildNodes</code> notifications.", 322 323 "parameters": [ 323 324 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "JavaScript object id to convert into node." } … … 325 326 "returns": [ 326 327 { "name": "nodeId", "$ref": "NodeId", "description": "Node id for given object." } 327 ], 328 "description": "Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of <code>setChildNodes</code> notifications." 328 ] 329 329 }, 330 330 { 331 331 "name": "setInspectModeEnabled", 332 "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection.", 332 333 "parameters": [ 333 334 { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." }, 334 335 { "name": "highlightConfig", "$ref": "HighlightConfig", "optional": true, "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if <code>enabled == false</code>." } 335 ], 336 "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection." 336 ] 337 337 }, 338 338 { 339 339 "name": "highlightRect", 340 "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.", 340 341 "parameters": [ 341 342 { "name": "x", "type": "integer", "description": "X coordinate" }, … … 346 347 { "name": "outlineColor", "$ref": "RGBAColor", "optional": true, "description": "The highlight outline color (default: transparent)." }, 347 348 { "name": "usePageCoordinates", "type": "boolean", "optional": true, "description": "Indicates whether the provided parameters are in page coordinates or in viewport coordinates (the default)." } 348 ], 349 "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport." 349 ] 350 350 }, 351 351 { 352 352 "name": "highlightQuad", 353 "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.", 353 354 "parameters": [ 354 355 { "name": "quad", "$ref": "Quad", "description": "Quad to highlight" }, … … 356 357 { "name": "outlineColor", "$ref": "RGBAColor", "optional": true, "description": "The highlight outline color (default: transparent)." }, 357 358 { "name": "usePageCoordinates", "type": "boolean", "optional": true, "description": "Indicates whether the provided parameters are in page coordinates or in viewport coordinates (the default)." } 358 ], 359 "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport." 359 ] 360 360 }, 361 361 { 362 362 "name": "highlightSelector", 363 "description": "Highlights all DOM nodes that match a given selector. A string containing a CSS selector must be specified.", 363 364 "parameters": [ 364 365 { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." }, 365 366 { "name": "selectorString", "type": "string", "description": "A CSS selector for finding matching nodes to highlight." }, 366 367 { "name": "frameId", "type": "string", "optional": true, "description": "Identifier of the frame which will be searched using the selector. If not provided, the main frame will be used." } 367 ], 368 "description": "Highlights all DOM nodes that match a given selector. A string containing a CSS selector must be specified." 368 ] 369 369 }, 370 370 { 371 371 "name": "highlightNode", 372 "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.", 372 373 "parameters": [ 373 374 { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." }, 374 375 { "name": "nodeId", "$ref": "NodeId", "optional": true, "description": "Identifier of the node to highlight." }, 375 376 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "JavaScript object id of the node to be highlighted." } 376 ], 377 "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified." 377 ] 378 378 }, 379 379 { … … 392 392 { 393 393 "name": "pushNodeByPathToFrontend", 394 "description": "Requests that the node is sent to the caller given its path.", 394 395 "parameters": [ 395 396 { "name": "path", "type": "string", "description": "Path to node in the proprietary format." } … … 397 398 "returns": [ 398 399 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for given path." } 399 ], 400 "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath" 400 ] 401 401 }, 402 402 { 403 403 "name": "pushNodeByBackendIdToFrontend", 404 "description": "Requests that the node is sent to the caller given its backend node id.", 404 405 "parameters": [ 405 406 { "name": "backendNodeId", "$ref": "BackendNodeId", "description": "The backend node id of the node." } … … 407 408 "returns": [ 408 409 { "name": "nodeId", "$ref": "NodeId", "description": "The pushed node's id." } 409 ], 410 "description": "Requests that the node is sent to the caller given its backend node id." 410 ] 411 411 }, 412 412 { 413 413 "name": "releaseBackendNodeIds", 414 "description": "Requests that group of <code>BackendNodeIds</code> is released.", 414 415 "parameters": [ 415 416 { "name": "nodeGroup", "type": "string", "description": "The backend node ids group name." } 416 ], 417 "description": "Requests that group of <code>BackendNodeIds</code> is released." 417 ] 418 418 }, 419 419 { 420 420 "name": "resolveNode", 421 "description": "Resolves JavaScript node object for given node id.", 421 422 "parameters": [ 422 423 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to resolve." }, … … 425 426 "returns": [ 426 427 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "JavaScript object wrapper for given node." } 427 ], 428 "description": "Resolves JavaScript node object for given node id." 428 ] 429 429 }, 430 430 { 431 431 "name": "getAttributes", 432 "parameters": [ 433 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." } 432 "description": "Returns attributes for the specified node.", 433 "parameters": [ 434 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attributes for." } 434 435 ], 435 436 "returns": [ 436 437 { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and values." } 437 ], 438 "description": "Returns attributes for the specified node." 438 ] 439 439 }, 440 440 { 441 441 "name": "moveTo", 442 "description": "Moves node into the new container, places it before the given anchor.", 442 443 "parameters": [ 443 444 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to drop." }, … … 447 448 "returns": [ 448 449 { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." } 449 ], 450 "description": "Moves node into the new container, places it before the given anchor." 450 ] 451 451 }, 452 452 { … … 464 464 { 465 465 "name": "focus", 466 "description": "Focuses the given element.", 466 467 "parameters": [ 467 468 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to focus." } 468 ], 469 "description": "Focuses the given element." 469 ] 470 470 } 471 471 ], … … 477 477 { 478 478 "name": "setChildNodes", 479 "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.", 479 480 "parameters": [ 480 481 { "name": "parentId", "$ref": "NodeId", "description": "Parent node id to populate with children." }, 481 482 { "name": "nodes", "type": "array", "items": { "$ref": "Node"}, "description": "Child nodes array." } 482 ], 483 "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids." 483 ] 484 484 }, 485 485 { 486 486 "name": "attributeModified", 487 "description": "Fired when <code>Element</code>'s attribute is modified.", 487 488 "parameters": [ 488 489 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, 489 490 { "name": "name", "type": "string", "description": "Attribute name." }, 490 491 { "name": "value", "type": "string", "description": "Attribute value." } 491 ], 492 "description": "Fired when <code>Element</code>'s attribute is modified." 492 ] 493 493 }, 494 494 { 495 495 "name": "attributeRemoved", 496 "description": "Fired when <code>Element</code>'s attribute is removed.", 496 497 "parameters": [ 497 498 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, 498 { "name": "name", "type": "string", "description": "A ttribute name." } 499 ], 500 "description": "Fired when <code>Element</code>'s attribute is removed." 499 { "name": "name", "type": "string", "description": "Attribute name." } 500 ] 501 501 }, 502 502 { 503 503 "name": "inlineStyleInvalidated", 504 "description": "Fired when <code>Element</code>'s inline style is modified via a CSS property modification.", 504 505 "parameters": [ 505 506 { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the nodes for which the inline styles have been invalidated." } 506 ], 507 "description": "Fired when <code>Element</code>'s inline style is modified via a CSS property modification." 507 ] 508 508 }, 509 509 { 510 510 "name": "characterDataModified", 511 "description": "Mirrors <code>DOMCharacterDataModified</code> event.", 511 512 "parameters": [ 512 513 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, 513 514 { "name": "characterData", "type": "string", "description": "New text value." } 514 ], 515 "description": "Mirrors <code>DOMCharacterDataModified</code> event." 515 ] 516 516 }, 517 517 { 518 518 "name": "childNodeCountUpdated", 519 "description": "Fired when <code>Container</code>'s child node count has changed.", 519 520 "parameters": [ 520 521 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, 521 522 { "name": "childNodeCount", "type": "integer", "description": "New node count." } 522 ], 523 "description": "Fired when <code>Container</code>'s child node count has changed." 523 ] 524 524 }, 525 525 { 526 526 "name": "childNodeInserted", 527 "description": "Mirrors <code>DOMNodeInserted</code> event.", 527 528 "parameters": [ 528 529 { "name": "parentNodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, 529 { "name": "previousNodeId", "$ref": "NodeId", "description": "I f of the previous siblint." },530 { "name": "previousNodeId", "$ref": "NodeId", "description": "Id of the previous sibling." }, 530 531 { "name": "node", "$ref": "Node", "description": "Inserted node data." } 531 ], 532 "description": "Mirrors <code>DOMNodeInserted</code> event." 532 ] 533 533 }, 534 534 { 535 535 "name": "childNodeRemoved", 536 "description": "Mirrors <code>DOMNodeRemoved</code> event.", 536 537 "parameters": [ 537 538 { "name": "parentNodeId", "$ref": "NodeId", "description": "Parent id." }, 538 539 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has been removed." } 539 ], 540 "description": "Mirrors <code>DOMNodeRemoved</code> event." 540 ] 541 541 }, 542 542 { 543 543 "name": "shadowRootPushed", 544 "description": "Called when shadow root is pushed into the element.", 544 545 "parameters": [ 545 546 { "name": "hostId", "$ref": "NodeId", "description": "Host element id." }, 546 547 { "name": "root", "$ref": "Node", "description": "Shadow root." } 547 ], 548 "description": "Called when shadow root is pushed into the element." 548 ] 549 549 }, 550 550 { 551 551 "name": "shadowRootPopped", 552 "description": "Called when shadow root is popped from the element.", 552 553 "parameters": [ 553 554 { "name": "hostId", "$ref": "NodeId", "description": "Host element id." }, 554 555 { "name": "rootId", "$ref": "NodeId", "description": "Shadow root id." } 555 ], 556 "description": "Called when shadow root is popped from the element." 556 ] 557 557 }, 558 558 { 559 559 "name": "customElementStateChanged", 560 "description": "Called when the custom element state is changed.", 560 561 "parameters": [ 561 562 { "name": "nodeId", "$ref": "NodeId", "description": "Element id." }, 562 563 { "name": "customElementState", "$ref": "CustomElementState", "description": "Custom element state." } 563 ], 564 "description": "Called when the custom element state is changed." 564 ] 565 565 }, 566 566 { 567 567 "name": "pseudoElementAdded", 568 "description": "Called when a pseudo element is added to an element.", 568 569 "parameters": [ 569 570 { "name": "parentId", "$ref": "NodeId", "description": "Pseudo element's parent element id." }, 570 571 { "name": "pseudoElement", "$ref": "Node", "description": "The added pseudo element." } 571 ], 572 "description": "Called when a pseudo element is added to an element." 572 ] 573 573 }, 574 574 { 575 575 "name": "pseudoElementRemoved", 576 "description": "Called when a pseudo element is removed from an element.", 576 577 "parameters": [ 577 578 { "name": "parentId", "$ref": "NodeId", "description": "Pseudo element's parent element id." }, 578 579 { "name": "pseudoElementId", "$ref": "NodeId", "description": "The removed pseudo element id." } 579 ], 580 "description": "Called when a pseudo element is removed from an element." 580 ] 581 581 } 582 582 ] -
trunk/Source/JavaScriptCore/inspector/protocol/DOMDebugger.json
r215584 r218898 14 14 { 15 15 "name": "setDOMBreakpoint", 16 "description": "Sets breakpoint on particular operation with DOM.", 16 17 "parameters": [ 17 18 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to set breakpoint on." }, 18 19 { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the operation to stop upon." } 19 ], 20 "description": "Sets breakpoint on particular operation with DOM." 20 ] 21 21 }, 22 22 { 23 23 "name": "removeDOMBreakpoint", 24 "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>.", 24 25 "parameters": [ 25 26 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to remove breakpoint from." }, 26 27 { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the breakpoint to remove." } 27 ], 28 "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>." 28 ] 29 29 }, 30 30 { 31 31 "name": "setEventListenerBreakpoint", 32 "description": "Sets breakpoint on particular DOM event.", 32 33 "parameters": [ 33 34 { "name": "eventName", "type": "string", "description": "DOM Event name to stop on (any DOM event will do)." } 34 ], 35 "description": "Sets breakpoint on particular DOM event." 35 ] 36 36 }, 37 37 { 38 38 "name": "removeEventListenerBreakpoint", 39 "description": "Removes breakpoint on particular DOM event.", 39 40 "parameters": [ 40 41 { "name": "eventName", "type": "string", "description": "Event name." } 41 ], 42 "description": "Removes breakpoint on particular DOM event." 42 ] 43 43 }, 44 44 { 45 45 "name": "setInstrumentationBreakpoint", 46 "description": "Sets breakpoint on particular native event.", 46 47 "parameters": [ 47 48 { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." } 48 ], 49 "description": "Sets breakpoint on particular native event." 49 ] 50 50 }, 51 51 { 52 52 "name": "removeInstrumentationBreakpoint", 53 "description": "Sets breakpoint on particular native event.", 53 54 "parameters": [ 54 55 { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." } 55 ], 56 "description": "Sets breakpoint on particular native event." 56 ] 57 57 }, 58 58 { 59 59 "name": "setXHRBreakpoint", 60 "description": "Sets breakpoint on XMLHttpRequest.", 60 61 "parameters": [ 61 62 { "name": "url", "type": "string", "description": "Resource URL substring or regular expression. All XHRs having this substring in the URL will get stopped upon. An empty string will pause on all XHRs." }, 62 { "name": "isRegex", "type": "boolean", "optional": true, "descriprion": "Whether the URL string is a regular expression." } 63 ], 64 "description": "Sets breakpoint on XMLHttpRequest." 63 { "name": "isRegex", "type": "boolean", "optional": true, "description": "Whether the URL string is a regular expression." } 64 ] 65 65 }, 66 66 { 67 67 "name": "removeXHRBreakpoint", 68 "description": "Removes breakpoint from XMLHttpRequest.", 68 69 "parameters": [ 69 70 { "name": "url", "type": "string", "description": "Resource URL substring. An empty string will stop pausing on all XHRs." } 70 ], 71 "description": "Removes breakpoint from XMLHttpRequest." 71 ] 72 72 } 73 73 ] -
trunk/Source/JavaScriptCore/inspector/protocol/Debugger.json
r211075 r218898 27 27 "id": "Location", 28 28 "type": "object", 29 "description": "Location in the source code.", 29 30 "properties": [ 30 31 { "name": "scriptId", "$ref": "ScriptId", "description": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." }, 31 32 { "name": "lineNumber", "type": "integer", "description": "Line number in the script." }, 32 33 { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number in the script." } 33 ], 34 "description": "Location in the source code." 34 ] 35 35 }, 36 36 { 37 37 "id": "BreakpointAction", 38 38 "type": "object", 39 "description": "Action to perform when a breakpoint is triggered.", 39 40 "properties": [ 40 41 { "name": "type", "type": "string", "enum": ["log", "evaluate", "sound", "probe"], "description": "Different kinds of breakpoint actions." }, 41 { "name": "data", "type": "string", "optional": true, "description": "Data associated with this breakpoint type (e.g. for type \"eval\" this is the JavaScript string to evalu late)." },42 { "name": "data", "type": "string", "optional": true, "description": "Data associated with this breakpoint type (e.g. for type \"eval\" this is the JavaScript string to evaluate)." }, 42 43 { "name": "id", "$ref": "BreakpointActionIdentifier", "optional": true, "description": "A frontend-assigned identifier for this breakpoint action." } 43 ], 44 "description": "Action to perform when a breakpoint is triggered." 44 ] 45 45 }, 46 46 { 47 47 "id": "BreakpointOptions", 48 48 "type": "object", 49 "description": "Extra options that modify breakpoint behavior.", 49 50 "properties": [ 50 51 { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." }, … … 52 53 { "name": "autoContinue", "type": "boolean", "optional": true, "description": "Automatically continue after hitting this breakpoint and running actions." }, 53 54 { "name": "ignoreCount", "type": "integer", "optional": true, "description": "Number of times to ignore this breakpoint, before stopping on the breakpoint and running actions." } 54 ], 55 "description": "Extra options that modify breakpoint behavior." 55 ] 56 56 }, 57 57 { 58 58 "id": "FunctionDetails", 59 59 "type": "object", 60 "description": "Information about the function.", 60 61 "properties": [ 61 62 { "name": "location", "$ref": "Location", "description": "Location of the function." }, … … 63 64 { "name": "displayName", "type": "string", "optional": true, "description": "Display name of the function(specified in 'displayName' property on the function object)." }, 64 65 { "name": "scopeChain", "type": "array", "optional": true, "items": { "$ref": "Scope" }, "description": "Scope chain for this closure." } 65 ], 66 "description": "Information about the function." 66 ] 67 67 }, 68 68 { 69 69 "id": "CallFrame", 70 70 "type": "object", 71 "description": "JavaScript call frame. Array of call frames form the call stack.", 71 72 "properties": [ 72 73 { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused." }, … … 76 77 { "name": "this", "$ref": "Runtime.RemoteObject", "description": "<code>this</code> object for this call frame." }, 77 78 { "name": "isTailDeleted", "type": "boolean", "description": "Is the current frame tail deleted from a tail call." } 78 ], 79 "description": "JavaScript call frame. Array of call frames form the call stack." 79 ] 80 80 }, 81 81 { 82 82 "id": "Scope", 83 83 "type": "object", 84 "description": "Scope description.", 84 85 "properties": [ 85 86 { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties." }, … … 88 89 { "name": "location", "$ref": "Location", "optional": true, "description": "Location if available of the scope definition." }, 89 90 { "name": "empty", "type": "boolean", "optional": true, "description": "Whether the scope has any variables." } 90 ], 91 "description": "Scope description." 91 ] 92 92 }, 93 93 { … … 105 105 { 106 106 "id": "AssertPauseReason", 107 "type": "object", 107 108 "description": "The pause reason auxiliary data when paused because of an assertion.", 108 "type": "object",109 109 "properties": [ 110 110 { "name": "message", "type": "string", "optional": true, "description": "The console.assert message string if provided." } … … 113 113 { 114 114 "id": "BreakpointPauseReason", 115 "type": "object", 115 116 "description": "The pause reason auxiliary data when paused because of hitting a breakpoint.", 116 "type": "object",117 117 "properties": [ 118 118 { "name": "breakpointId", "type": "string", "description": "The identifier of the breakpoint causing the pause." } … … 121 121 { 122 122 "id": "CSPViolationPauseReason", 123 "type": "object", 123 124 "description": "The pause reason auxiliary data when paused because of a Content Security Policy directive.", 124 "type": "object",125 125 "properties": [ 126 126 { "name": "directive", "type": "string", "description": "The CSP directive that blocked script execution." } … … 146 146 { 147 147 "name": "setBreakpointsActive", 148 "description": "Activates / deactivates all breakpoints on the page.", 148 149 "parameters": [ 149 150 { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." } 150 ], 151 "description": "Activates / deactivates all breakpoints on the page." 151 ] 152 152 }, 153 153 { 154 154 "name": "setBreakpointByUrl", 155 "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.", 155 156 "parameters": [ 156 157 { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." }, … … 163 164 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." }, 164 165 { "name": "locations", "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into upon addition." } 165 ], 166 "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads." 166 ] 167 167 }, 168 168 { 169 169 "name": "setBreakpoint", 170 "description": "Sets JavaScript breakpoint at a given location.", 170 171 "parameters": [ 171 172 { "name": "location", "$ref": "Location", "description": "Location to set breakpoint in." }, … … 175 176 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." }, 176 177 { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." } 177 ], 178 "description": "Sets JavaScript breakpoint at a given location." 178 ] 179 179 }, 180 180 { 181 181 "name": "removeBreakpoint", 182 "description": "Removes JavaScript breakpoint.", 182 183 "parameters": [ 183 184 { "name": "breakpointId", "$ref": "BreakpointId" } 184 ], 185 "description": "Removes JavaScript breakpoint." 185 ] 186 186 }, 187 187 { … … 231 231 { 232 232 "name": "getScriptSource", 233 "description": "Returns source for the script with given id.", 233 234 "parameters": [ 234 235 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to get source for." } … … 236 237 "returns": [ 237 238 { "name": "scriptSource", "type": "string", "description": "Script source." } 238 ], 239 "description": "Returns source for the script with given id." 239 ] 240 240 }, 241 241 { 242 242 "name": "getFunctionDetails", 243 "description": "Returns detailed information on given function.", 243 244 "parameters": [ 244 245 { "name": "functionId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the function to get location for." } … … 246 247 "returns": [ 247 248 { "name": "details", "$ref": "FunctionDetails", "description": "Information about the function." } 248 ], 249 "description": "Returns detailed information on given function." 249 ] 250 250 }, 251 251 { … … 265 265 { 266 266 "name": "evaluateOnCallFrame", 267 "description": "Evaluates expression on a given call frame.", 267 268 "parameters": [ 268 269 { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." }, … … 279 280 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, 280 281 { "name": "savedResultIndex", "type": "integer", "optional": true, "description": "If the result was saved, this is the $n index that can be used to access the value." } 281 ], 282 "description": "Evaluates expression on a given call frame." 282 ] 283 283 }, 284 284 { 285 285 "name": "setOverlayMessage", 286 "description": "Sets overlay message.", 286 287 "parameters": [ 287 288 { "name": "message", "type": "string", "optional": true, "description": "Overlay message to display when paused in debugger." } 288 ], 289 "description": "Sets overlay message." 289 ] 290 290 } 291 291 ], … … 297 297 { 298 298 "name": "scriptParsed", 299 "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.", 299 300 "parameters": [ 300 301 { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." }, … … 308 309 { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." }, 309 310 { "name": "module", "type": "boolean", "optional": true, "description": "True if this script was parsed as a module." } 310 ], 311 "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger." 311 ] 312 312 }, 313 313 { 314 314 "name": "scriptFailedToParse", 315 "description": "Fired when virtual machine fails to parse the script.", 315 316 "parameters": [ 316 317 { "name": "url", "type": "string", "description": "URL of the script that failed to parse." }, … … 319 320 { "name": "errorLine", "type": "integer", "description": "Line with error." }, 320 321 { "name": "errorMessage", "type": "string", "description": "Parse error message." } 321 ], 322 "description": "Fired when virtual machine fails to parse the script." 322 ] 323 323 }, 324 324 { 325 325 "name": "breakpointResolved", 326 "description": "Fired when breakpoint is resolved to an actual script and location.", 326 327 "parameters": [ 327 328 { "name": "breakpointId", "$ref": "BreakpointId", "description": "Breakpoint unique identifier." }, 328 329 { "name": "location", "$ref": "Location", "description": "Actual breakpoint location." } 329 ], 330 "description": "Fired when breakpoint is resolved to an actual script and location." 330 ] 331 331 }, 332 332 { 333 333 "name": "paused", 334 "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.", 334 335 "parameters": [ 335 336 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }, … … 337 338 { "name": "data", "type": "object", "optional": true, "description": "Object containing break-specific auxiliary properties." }, 338 339 { "name": "asyncStackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Linked list of asynchronous StackTraces." } 339 ], 340 "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria." 340 ] 341 341 }, 342 342 { -
trunk/Source/JavaScriptCore/inspector/protocol/LayerTree.json
r188530 r218898 89 89 { 90 90 "name": "layersForNode", 91 "description": "Returns the layer tree structure of the current page.", 91 92 "parameters": [ 92 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Root of the subtree for which we want to gather layers." } ],93 "description": "Returns the layer tree structure of the current page.",93 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Root of the subtree for which we want to gather layers." } 94 ], 94 95 "returns": [ 95 96 { "name": "layers", "type": "array", "items": { "$ref": "Layer" }, "description": "Child layers." } … … 98 99 { 99 100 "name": "reasonsForCompositingLayer", 101 "description": "Provides the reasons why the given layer was composited.", 100 102 "parameters": [ 101 103 { "name": "layerId", "$ref": "LayerId", "description": "The id of the layer for which we want to get the reasons it was composited." } 102 104 ], 103 "description": "Provides the reasons why the given layer was composited.",104 105 "returns": [ 105 106 { "name": "compositingReasons", "$ref": "CompositingReasons", "description": "An object containing the reasons why the layer was composited as properties." } -
trunk/Source/JavaScriptCore/inspector/protocol/Network.json
r217912 r218898 176 176 { 177 177 "name": "setResourceCachingDisabled", 178 "description": "Toggles whether the resource cache may be used when loading resources in the inspected page. If <code>true</code>, the resource cache will not be used when loading resources.", 178 179 "parameters": [ 179 180 { "name": "disabled", "type": "boolean", "description": "Whether to prevent usage of the resource cache." } 180 ], 181 "description": "Toggles whether the resource cache may be used when loading resources in the inspected page. If <code>true</code>, the resource cache will not be used when loading resources." 181 ] 182 182 }, 183 183 { 184 184 "name": "loadResource", 185 "description": "Loads a resource in the context of a frame on the inspected page without cross origin checks.", 185 186 "async": true, 186 187 "parameters": [ … … 192 193 { "name": "mimeType", "type": "string", "description": "Resource mimeType." }, 193 194 { "name": "status", "type": "number", "description": "HTTP response status code." } 194 ], 195 "description": "Loads a resource in the context of a frame on the inspected page without cross origin checks." 195 ] 196 196 }, 197 197 { -
trunk/Source/JavaScriptCore/inspector/protocol/Page.json
r217248 r218898 112 112 { 113 113 "name": "reload", 114 "description": "Reloads the main frame of the inspected page.", 114 115 "parameters": [ 115 116 { "name": "ignoreCache", "type": "boolean", "optional": true, "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)." }, 116 117 { "name": "revalidateAllResources", "type": "boolean", "optional": true, "description": "If true, all cached subresources will be revalidated when the main resource loads. Otherwise, only expired cached subresources will be revalidated (the default behavior for most WebKit clients)." }, 117 118 { "name": "scriptToEvaluateOnLoad", "type": "string", "optional": true, "description": "If set, the script will be injected into all frames of the inspected page after reload." } 118 ], 119 "description": "Reloads the main frame of the inspected page." 119 ] 120 120 }, 121 121 { 122 122 "name": "navigate", 123 "description": "Navigates current page to the given URL.", 123 124 "parameters": [ 124 125 { "name": "url", "type": "string", "description": "URL to navigate the page to." } 125 ], 126 "description": "Navigates current page to the given URL." 126 ] 127 127 }, 128 128 { 129 129 "name": "getCookies", 130 "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.", 130 131 "returns": [ 131 132 { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"}, "description": "Array of cookie objects." } 132 ], 133 "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field." 133 ] 134 134 }, 135 135 { 136 136 "name": "deleteCookie", 137 "description": "Deletes browser cookie with given name, domain and path.", 137 138 "parameters": [ 138 139 { "name": "cookieName", "type": "string", "description": "Name of the cookie to remove." }, 139 { "name": "url", "type": "string", "description": "URL to match cooke domain and path." } 140 ], 141 "description": "Deletes browser cookie with given name, domain and path." 140 { "name": "url", "type": "string", "description": "URL to match cookie domain and path." } 141 ] 142 142 }, 143 143 { -
trunk/Source/JavaScriptCore/inspector/protocol/Runtime.json
r218718 r218898 198 198 { 199 199 "name": "parse", 200 "description": "Parses JavaScript source code for errors.", 200 201 "parameters": [ 201 202 { "name": "source", "type": "string", "description": "Source code to parse." } … … 205 206 { "name": "message", "type": "string", "optional": true, "description": "Parse error message." }, 206 207 { "name": "range", "$ref": "ErrorRange", "optional": true, "description": "Range in the source where the error occurred." } 207 ], 208 "description": "Parses JavaScript source code for errors." 208 ] 209 209 }, 210 210 { 211 211 "name": "evaluate", 212 "description": "Evaluates expression on global object.", 212 213 "parameters": [ 213 214 { "name": "expression", "type": "string", "description": "Expression to evaluate." }, … … 224 225 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, 225 226 { "name": "savedResultIndex", "type": "integer", "optional": true, "description": "If the result was saved, this is the $n index that can be used to access the value." } 226 ], 227 "description": "Evaluates expression on global object." 227 ] 228 228 }, 229 229 { 230 230 "name": "callFunctionOn", 231 "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object.", 231 232 "parameters": [ 232 233 { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to call function on." }, … … 240 241 { "name": "result", "$ref": "RemoteObject", "description": "Call result." }, 241 242 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." } 242 ], 243 "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object." 243 ] 244 244 }, 245 245 { … … 255 255 { 256 256 "name": "getProperties", 257 "description": "Returns properties of a given object. Object group of the result is inherited from the target object.", 257 258 "parameters": [ 258 259 { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return properties for." }, … … 263 264 { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor"}, "description": "Object properties." }, 264 265 { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor"}, "description": "Internal object properties." } 265 ], 266 "description": "Returns properties of a given object. Object group of the result is inherited from the target object." 266 ] 267 267 }, 268 268 { 269 269 "name": "getDisplayableProperties", 270 "description": "Returns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend).", 270 271 "parameters": [ 271 272 { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return properties for." }, … … 275 276 { "name": "properties", "type": "array", "items": { "$ref": "PropertyDescriptor"}, "description": "Object properties." }, 276 277 { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor"}, "description": "Internal object properties." } 277 ], 278 "description": "Returns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend)." 278 ] 279 279 }, 280 280 { … … 293 293 { 294 294 "name": "saveResult", 295 "description": "Assign a saved result index to this value.", 295 296 "parameters": [ 296 297 { "name": "value", "$ref": "CallArgument", "description": "Id or value of the object to save." }, … … 299 300 "returns": [ 300 301 { "name": "savedResultIndex", "type": "integer", "optional": true, "description": "If the value was saved, this is the $n index that can be used to access the value." } 301 ], 302 "description": "Assign a saved result index to this value." 302 ] 303 303 }, 304 304 { 305 305 "name": "releaseObject", 306 "description": "Releases remote object with given id.", 306 307 "parameters": [ 307 308 { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to release." } 308 ], 309 "description": "Releases remote object with given id." 309 ] 310 310 }, 311 311 { 312 312 "name": "releaseObjectGroup", 313 "description": "Releases all remote objects that belong to a given group.", 313 314 "parameters": [ 314 315 { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." } 315 ], 316 "description": "Releases all remote objects that belong to a given group." 316 ] 317 317 }, 318 318 { … … 326 326 { 327 327 "name": "getRuntimeTypesForVariablesAtOffsets", 328 "description": "Returns detailed information on the given function.", 328 329 "parameters": [ 329 330 { "name": "locations", "type": "array", "items": { "$ref": "TypeLocation" }, "description": "An array of type locations we're requesting information for. Results are expected in the same order they're sent in."} … … 331 332 "returns": [ 332 333 { "name": "types", "type": "array", "items": { "$ref": "TypeDescription", "description": "Types for requested variable." } } 333 ], 334 "description": "Returns detailed informtation on given function." 334 ] 335 335 }, 336 336 { … … 352 352 { 353 353 "name": "getBasicBlocks", 354 "description": "Returns a list of basic blocks for the given sourceID with information about their text ranges and whether or not they have executed.", 354 355 "parameters": [ 355 356 { "name": "sourceID", "type": "string", "description": "Indicates which sourceID information is requested for." } … … 357 358 "returns": [ 358 359 { "name": "basicBlocks", "type": "array", "items": { "$ref": "BasicBlock", "description": "Array of basic blocks." } } 359 ], 360 "description": "Returns a list of basic blocks for the given sourceID with information about their text ranges and whether or not they have executed." 360 ] 361 361 } 362 362 ], … … 364 364 { 365 365 "name": "executionContextCreated", 366 " parameters": [367 { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." }368 ],369 "description": "Issued when new execution context is created."366 "description": "Issued when new execution context is created.", 367 "parameters": [ 368 { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution context." } 369 ] 370 370 } 371 371 ]
Note:
See TracChangeset
for help on using the changeset viewer.