Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2882193002: [devtools] Add DOMSnapshot domain for dom+layout+style snapshots. (Closed)
Patch Set: add domain to schema agent Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3259 matching lines...) Expand 10 before | Expand all | Expand 10 after
3270 { 3270 {
3271 "name": "styleSheetRemoved", 3271 "name": "styleSheetRemoved",
3272 "parameters": [ 3272 "parameters": [
3273 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the removed stylesheet." } 3273 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the removed stylesheet." }
3274 ], 3274 ],
3275 "description": "Fired whenever an active document stylesheet is removed." 3275 "description": "Fired whenever an active document stylesheet is removed."
3276 } 3276 }
3277 ] 3277 ]
3278 }, 3278 },
3279 { 3279 {
3280 "domain": "DOMSnapshot",
3281 "experimental": true,
3282 "description": "This domain facilitates obtaining document snapshots wit h DOM, layout, and style information.",
3283 "dependencies": ["CSS", "DOM"],
3284 "commands": [
3285 {
3286 "name": "getSnapshot",
3287 "parameters": [
3288 { "name": "computedStyleWhitelist", "type": "array", "items" : { "type": "string" }, "description": "Whitelist of computed styles to return." },
3289 { "name": "domDepth", "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." },
3290 { "name": "pierce", "type": "boolean", "optional": true, "de scription": "Whether or not iframes and shadow roots should be traversed when re turning the subtree (default is false)." }
3291 ],
3292 "returns": [
3293 { "name": "domNodes", "type": "array", "items": { "$ref": "D OM.Node" }, "description": "The nodes in the DOM tree." },
pfeldman 2017/05/15 18:42:18 When I was suggesting a separate domain, I meant t
Eric Seckler 2017/05/17 10:44:31 Ah, I see. I think the only thing that's not reall
3294 { "name": "layoutTreeNodes", "type": "array", "items": { "$r ef": "CSS.LayoutTreeNode" }, "description": "The nodes in the layout tree." },
3295 { "name": "computedStyles", "type": "array", "items": { "$re f": "CSS.ComputedStyle" }, "description": "Whitelisted ComputedStyle properties for each node in the layout tree." }
3296 ],
3297 "description": "Returns a document snapshot, including the DOM t ree of the root node up to the given depth in a flattened array, as well as layo ut and white-listed computed style information for the nodes. Requires that the DOM domain is enabled."
3298 }
3299 ]
3300 },
3301 {
3280 "domain": "IO", 3302 "domain": "IO",
3281 "description": "Input/Output operations for streams produced by DevTools .", 3303 "description": "Input/Output operations for streams produced by DevTools .",
3282 "experimental": true, 3304 "experimental": true,
3283 "types": [ 3305 "types": [
3284 { 3306 {
3285 "id": "StreamHandle", 3307 "id": "StreamHandle",
3286 "type": "string" 3308 "type": "string"
3287 } 3309 }
3288 ], 3310 ],
3289 "commands": [ 3311 "commands": [
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
4672 "parameters": [ 4694 "parameters": [
4673 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } 4695 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." }
4674 ], 4696 ],
4675 "returns": [ 4697 "returns": [
4676 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." } 4698 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." }
4677 ] 4699 ]
4678 } 4700 }
4679 ] 4701 ]
4680 }] 4702 }]
4681 } 4703 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698