OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "2" }, | 2 "version": { "major": "1", "minor": "2" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Inspector", | 4 "domain": "Inspector", |
5 "experimental": true, | 5 "experimental": true, |
6 "types": [], | 6 "types": [], |
7 "commands": [ | 7 "commands": [ |
8 { | 8 { |
9 "name": "enable", | 9 "name": "enable", |
10 "description": "Enables inspector domain notifications.", | 10 "description": "Enables inspector domain notifications.", |
(...skipping 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2054 { "name": "contentDocument", "$ref": "Node", "optional": tru
e, "description": "Content document for frame owner elements." }, | 2054 { "name": "contentDocument", "$ref": "Node", "optional": tru
e, "description": "Content document for frame owner elements." }, |
2055 { "name": "shadowRoots", "type": "array", "optional": true,
"items": { "$ref": "Node" }, "description": "Shadow root list for given element
host.", "experimental": true }, | 2055 { "name": "shadowRoots", "type": "array", "optional": true,
"items": { "$ref": "Node" }, "description": "Shadow root list for given element
host.", "experimental": true }, |
2056 { "name": "templateContent", "$ref": "Node", "optional": tru
e, "description": "Content document fragment for template elements.", "experimen
tal": true }, | 2056 { "name": "templateContent", "$ref": "Node", "optional": tru
e, "description": "Content document fragment for template elements.", "experimen
tal": true }, |
2057 { "name": "pseudoElements", "type": "array", "items": { "$re
f": "Node" }, "optional": true, "description": "Pseudo elements associated with
this node.", "experimental": true }, | 2057 { "name": "pseudoElements", "type": "array", "items": { "$re
f": "Node" }, "optional": true, "description": "Pseudo elements associated with
this node.", "experimental": true }, |
2058 { "name": "importedDocument", "$ref": "Node", "optional": tr
ue, "description": "Import document for the HTMLImport links." }, | 2058 { "name": "importedDocument", "$ref": "Node", "optional": tr
ue, "description": "Import document for the HTMLImport links." }, |
2059 { "name": "distributedNodes", "type": "array", "items": { "$
ref": "BackendNode" }, "optional": true, "description": "Distributed nodes for g
iven insertion point.", "experimental": true } | 2059 { "name": "distributedNodes", "type": "array", "items": { "$
ref": "BackendNode" }, "optional": true, "description": "Distributed nodes for g
iven insertion point.", "experimental": true } |
2060 ], | 2060 ], |
2061 "description": "DOM interaction is implemented in terms of mirro
r objects that represent the actual DOM nodes. DOMNode is a base node mirror typ
e." | 2061 "description": "DOM interaction is implemented in terms of mirro
r objects that represent the actual DOM nodes. DOMNode is a base node mirror typ
e." |
2062 }, | 2062 }, |
2063 { | 2063 { |
2064 "id": "InlineTextBox", | |
2065 "type": "object", | |
2066 "properties": [ | |
2067 { "name": "boundingBox", "$ref": "Rect", "description": "The
absolute position bounding box." }, | |
2068 { "name": "startCharacterIndex", "type": "integer", "descrip
tion": "The starting index in characters, for this post layout textbox substring
." }, | |
2069 { "name": "numCharacters", "type": "integer", "description":
"The number of characters in this post layout textbox substring." } | |
2070 ], | |
2071 "description": "Details of post layout rendered text positions.
The exact layout should not be regarded as stable and may change between version
s.", | |
2072 "experimental": true | |
2073 }, | |
2074 { | |
2075 "id": "LayoutTreeNode", | |
2076 "type": "object", | |
2077 "properties": [ | |
2078 { "name": "backendNodeId", "$ref": "BackendNodeId", "descrip
tion": "The BackendNodeId of the related DOM node." }, | |
2079 { "name": "boundingBox", "$ref": "Rect", "description": "The
absolute position bounding box." }, | |
2080 { "name": "layoutText", "type": "string", "optional": true,
"description": "Contents of the LayoutText if any" }, | |
2081 { "name": "inlineTextNodes", "type": "array", "optional": tr
ue, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline
text nodes, if any." } | |
2082 ], | |
2083 "description": "Details of an element in the DOM tree with a Lay
outObject.", | |
2084 "experimental": true | |
2085 }, | |
2086 { | |
2087 "id": "RGBA", | 2064 "id": "RGBA", |
2088 "type": "object", | 2065 "type": "object", |
2089 "properties": [ | 2066 "properties": [ |
2090 { "name": "r", "type": "integer", "description": "The red co
mponent, in the [0-255] range." }, | 2067 { "name": "r", "type": "integer", "description": "The red co
mponent, in the [0-255] range." }, |
2091 { "name": "g", "type": "integer", "description": "The green
component, in the [0-255] range." }, | 2068 { "name": "g", "type": "integer", "description": "The green
component, in the [0-255] range." }, |
2092 { "name": "b", "type": "integer", "description": "The blue c
omponent, in the [0-255] range." }, | 2069 { "name": "b", "type": "integer", "description": "The blue c
omponent, in the [0-255] range." }, |
2093 { "name": "a", "type": "number", "optional": true, "descript
ion": "The alpha component, in the [0-1] range (default: 1)." } | 2070 { "name": "a", "type": "number", "optional": true, "descript
ion": "The alpha component, in the [0-1] range (default: 1)." } |
2094 ], | 2071 ], |
2095 "description": "A structure holding an RGBA color." | 2072 "description": "A structure holding an RGBA color." |
2096 }, | 2073 }, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2186 "parameters": [ | 2163 "parameters": [ |
2187 { "name": "depth", "type": "integer", "optional": true, "des
cription": "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.", "experi
mental": true }, | 2164 { "name": "depth", "type": "integer", "optional": true, "des
cription": "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.", "experi
mental": true }, |
2188 { "name": "traverseFrames", "type": "boolean", "optional": t
rue, "description": "Whether or not iframes should be traversed when returning t
he subtree (default is false).", "experimental": true } | 2165 { "name": "traverseFrames", "type": "boolean", "optional": t
rue, "description": "Whether or not iframes should be traversed when returning t
he subtree (default is false).", "experimental": true } |
2189 ], | 2166 ], |
2190 "returns": [ | 2167 "returns": [ |
2191 { "name": "root", "$ref": "Node", "description": "Resulting
node." } | 2168 { "name": "root", "$ref": "Node", "description": "Resulting
node." } |
2192 ], | 2169 ], |
2193 "description": "Returns the root DOM node (and optionally the su
btree) to the caller." | 2170 "description": "Returns the root DOM node (and optionally the su
btree) to the caller." |
2194 }, | 2171 }, |
2195 { | 2172 { |
2196 "name": "getLayoutTreeNodes", | |
2197 "returns": [ | |
2198 { "name": "layoutTreeNodes", "type": "array", "items": { "$r
ef": "LayoutTreeNode" } } | |
2199 ], | |
2200 "description": "Returns the document's LayoutTreeNodes to the ca
ller, and those of any iframes too.", | |
2201 "experimental": true | |
2202 }, | |
2203 { | |
2204 "name": "collectClassNamesFromSubtree", | 2173 "name": "collectClassNamesFromSubtree", |
2205 "parameters": [ | 2174 "parameters": [ |
2206 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node to collect class names." } | 2175 { "name": "nodeId", "$ref": "NodeId", "description": "Id of
the node to collect class names." } |
2207 ], | 2176 ], |
2208 "returns": [ | 2177 "returns": [ |
2209 {"name": "classNames", "type": "array", "items": { "type": "
string" }, "description": "Class name list." } | 2178 {"name": "classNames", "type": "array", "items": { "type": "
string" }, "description": "Class name list." } |
2210 ], | 2179 ], |
2211 "description": "Collects class names for the node with given id
and all of it's child nodes.", | 2180 "description": "Collects class names for the node with given id
and all of it's child nodes.", |
2212 "experimental": true | 2181 "experimental": true |
2213 }, | 2182 }, |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2915 }, | 2884 }, |
2916 { | 2885 { |
2917 "id": "StyleDeclarationEdit", | 2886 "id": "StyleDeclarationEdit", |
2918 "type": "object", | 2887 "type": "object", |
2919 "properties": [ | 2888 "properties": [ |
2920 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti
on": "The css style sheet identifier." }, | 2889 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti
on": "The css style sheet identifier." }, |
2921 { "name": "range", "$ref": "SourceRange", "description": "Th
e range of the style text in the enclosing stylesheet." }, | 2890 { "name": "range", "$ref": "SourceRange", "description": "Th
e range of the style text in the enclosing stylesheet." }, |
2922 { "name": "text", "type": "string", "description": "New styl
e text."} | 2891 { "name": "text", "type": "string", "description": "New styl
e text."} |
2923 ], | 2892 ], |
2924 "description": "A descriptor of operation to mutate style declar
ation text." | 2893 "description": "A descriptor of operation to mutate style declar
ation text." |
| 2894 }, |
| 2895 { |
| 2896 "id": "InlineTextBox", |
| 2897 "type": "object", |
| 2898 "properties": [ |
| 2899 { "name": "boundingBox", "$ref": "DOM.Rect", "description":
"The absolute position bounding box." }, |
| 2900 { "name": "startCharacterIndex", "type": "integer", "descrip
tion": "The starting index in characters, for this post layout textbox substring
." }, |
| 2901 { "name": "numCharacters", "type": "integer", "description":
"The number of characters in this post layout textbox substring." } |
| 2902 ], |
| 2903 "description": "Details of post layout rendered text positions.
The exact layout should not be regarded as stable and may change between version
s.", |
| 2904 "experimental": true |
| 2905 }, |
| 2906 { |
| 2907 "id": "LayoutTreeNode", |
| 2908 "type": "object", |
| 2909 "properties": [ |
| 2910 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "des
cription": "The BackendNodeId of the related DOM node." }, |
| 2911 { "name": "boundingBox", "$ref": "DOM.Rect", "description":
"The absolute position bounding box." }, |
| 2912 { "name": "layoutText", "type": "string", "optional": true,
"description": "Contents of the LayoutText if any" }, |
| 2913 { "name": "inlineTextNodes", "type": "array", "optional": tr
ue, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline
text nodes, if any." }, |
| 2914 { "name": "styleIndex", "type": "integer", "optional": true,
"description": "Index into the computedStyles array returned by getLayoutTreeAn
dStyles." } |
| 2915 ], |
| 2916 "description": "Details of an element in the DOM tree with a Lay
outObject.", |
| 2917 "experimental": true |
| 2918 }, |
| 2919 { |
| 2920 "id": "ComputedStyle", |
| 2921 "type": "object", |
| 2922 "properties": [ |
| 2923 { "name": "properties", "type": "array", "items": { "$ref":
"CSSComputedStyleProperty" } } |
| 2924 ], |
| 2925 "description": "A subset of the full ComputedStyle as defined by
the request whitelist.", |
| 2926 "experimental": true |
2925 } | 2927 } |
2926 ], | 2928 ], |
2927 "commands": [ | 2929 "commands": [ |
2928 { | 2930 { |
2929 "name": "enable", | 2931 "name": "enable", |
2930 "async": true, | 2932 "async": true, |
2931 "description": "Enables the CSS agent for the given page. Client
s should not assume that the CSS agent has been enabled until the result of this
command is received." | 2933 "description": "Enables the CSS agent for the given page. Client
s should not assume that the CSS agent has been enabled until the result of this
command is received." |
2932 }, | 2934 }, |
2933 { | 2935 { |
2934 "name": "disable", | 2936 "name": "disable", |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3109 }, | 3111 }, |
3110 { | 3112 { |
3111 "name": "getBackgroundColors", | 3113 "name": "getBackgroundColors", |
3112 "parameters": [ | 3114 "parameters": [ |
3113 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id
of the node to get background colors for." } | 3115 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id
of the node to get background colors for." } |
3114 ], | 3116 ], |
3115 "returns": [ | 3117 "returns": [ |
3116 { "name": "backgroundColors", "type": "array", "items": { "t
ype": "string" }, "description": "The range of background colors behind this ele
ment, if it contains any visible text. If no visible text is present, this will
be undefined. In the case of a flat background color, this will consist of simpl
y that color. In the case of a gradient, this will consist of each of the color
stops. For anything more complicated, this will be an empty array. Images will b
e ignored (as if the image had failed to load).", "optional": true } | 3118 { "name": "backgroundColors", "type": "array", "items": { "t
ype": "string" }, "description": "The range of background colors behind this ele
ment, if it contains any visible text. If no visible text is present, this will
be undefined. In the case of a flat background color, this will consist of simpl
y that color. In the case of a gradient, this will consist of each of the color
stops. For anything more complicated, this will be an empty array. Images will b
e ignored (as if the image had failed to load).", "optional": true } |
3117 ], | 3119 ], |
3118 "experimental": true | 3120 "experimental": true |
| 3121 }, |
| 3122 { |
| 3123 "name": "getLayoutTreeAndStyles", |
| 3124 "parameters": [ |
| 3125 { "name": "computedStyleWhitelist", "type": "array", "items"
: { "type": "string" }, "description": "Whitelist of computed styles to return."
} |
| 3126 ], |
| 3127 "returns": [ |
| 3128 { "name": "layoutTreeNodes", "type": "array", "items": { "$r
ef": "LayoutTreeNode" } }, |
| 3129 { "name": "computedStyles", "type": "array", "items": { "$re
f": "ComputedStyle" } } |
| 3130 ], |
| 3131 "description": "For the main document and any content documents,
return the LayoutTreeNodes and a whitelisted subset of the computed style.", |
| 3132 "experimental": true |
3119 } | 3133 } |
3120 ], | 3134 ], |
3121 "events": [ | 3135 "events": [ |
3122 { | 3136 { |
3123 "name": "mediaQueryResultChanged", | 3137 "name": "mediaQueryResultChanged", |
3124 "description": "Fires whenever a MediaQuery result changes (for
example, after a browser window has been resized.) The current implementation co
nsiders only viewport-dependent media features." | 3138 "description": "Fires whenever a MediaQuery result changes (for
example, after a browser window has been resized.) The current implementation co
nsiders only viewport-dependent media features." |
3125 }, | 3139 }, |
3126 { | 3140 { |
3127 "name": "fontsUpdated", | 3141 "name": "fontsUpdated", |
3128 "description": "Fires whenever a web font gets loaded." | 3142 "description": "Fires whenever a web font gets loaded." |
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4644 "description": "Informs that port was successfully bound and got
a specified connection id.", | 4658 "description": "Informs that port was successfully bound and got
a specified connection id.", |
4645 "parameters": [ | 4659 "parameters": [ |
4646 {"name": "port", "type": "integer", "description": "Port num
ber that was successfully bound." }, | 4660 {"name": "port", "type": "integer", "description": "Port num
ber that was successfully bound." }, |
4647 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } | 4661 {"name": "connectionId", "type": "string", "description": "C
onnection id to be used." } |
4648 ], | 4662 ], |
4649 "handlers": ["browser"] | 4663 "handlers": ["browser"] |
4650 } | 4664 } |
4651 ] | 4665 ] |
4652 }] | 4666 }] |
4653 } | 4667 } |
OLD | NEW |