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

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

Issue 2829973002: add customized printing setting for headless (Closed)
Patch Set: polish code 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 { "name": "quality", "type": "integer", "optional": true, "d escription": "Compression quality from range [0..100] (jpeg only)." }, 422 { "name": "quality", "type": "integer", "optional": true, "d escription": "Compression quality from range [0..100] (jpeg only)." },
423 { "name": "fromSurface", "type": "boolean", "optional": true , "description": "Capture the screenshot from the surface, rather than the view. Defaults to false.", "experimental": true } 423 { "name": "fromSurface", "type": "boolean", "optional": true , "description": "Capture the screenshot from the surface, rather than the view. Defaults to false.", "experimental": true }
424 ], 424 ],
425 "returns": [ 425 "returns": [
426 { "name": "data", "type": "string", "description": "Base64-e ncoded image data." } 426 { "name": "data", "type": "string", "description": "Base64-e ncoded image data." }
427 ], 427 ],
428 "experimental": true 428 "experimental": true
429 }, 429 },
430 { 430 {
431 "name": "printToPDF", 431 "name": "printToPDF",
432 "description": "Print page as pdf.", 432 "description": "Print page as PDF.",
433 "parameters": [
434 {"name": "landscape", "type": "boolean", "optional": true, " description": "Paper orientation. Defaults to false."},
435 {"name": "displayHeaderFooter", "type": "boolean", "optional ": true, "description": "Display header and footer. Defaults to false."},
436 {"name": "printBackgrounds", "type": "boolean", "optional": true, "description": "Print background graphics. Defaults to false."},
Lei Zhang 2017/05/05 03:53:00 printBackground
jzfeng 2017/05/05 04:28:10 Done.
437 {"name": "scale", "type": "number", "optional": true, "descr iption": "Scale of the webpage rendering. Defaults to 1."},
438 {"name": "paperWidth", "type": "number", "optional": true, " description": "Paper width in inch. Defaults to 8.5 inches."},
439 {"name": "paperHeight", "type": "number", "optional": true, "description": "Paper height. Defaults to 11 inches."},
440 {"name": "marginTop", "type": "number", "optional": true, "d escription": "Top margin in inch. Defaults to 1cm (~0.4 inches)."},
441 {"name": "marginBottom", "type": "number", "optional": true, "description": "Bottom margin in inch. Defaults to 1cm (~0.4 inches)."},
442 {"name": "marginLeft", "type": "number", "optional": true, " description": "Left margin in inch. Defaults to 1cm (~0.4 inches)."},
443 {"name": "marginRight", "type": "number", "optional": true, "description": "Right margin in inch. Defaults to 1cm (~0.4 inches)."},
444 {"name": "pageRanges", "type": "string", "optional": true, " description": "Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the emp ty string, which means print all pages."}
445 ],
433 "returns": [ 446 "returns": [
434 { "name": "data", "type": "string", "description": "Base64-e ncoded pdf data." } 447 { "name": "data", "type": "string", "description": "Base64-e ncoded pdf data." }
435 ], 448 ],
436 "experimental": true 449 "experimental": true
437 }, 450 },
438 { 451 {
439 "name": "startScreencast", 452 "name": "startScreencast",
440 "description": "Starts sending each frame using the <code>screen castFrame</code> event.", 453 "description": "Starts sending each frame using the <code>screen castFrame</code> event.",
441 "parameters": [ 454 "parameters": [
442 { "name": "format", "type": "string", "optional": true, "enu m": ["jpeg", "png"], "description": "Image compression format." }, 455 { "name": "format", "type": "string", "optional": true, "enu m": ["jpeg", "png"], "description": "Image compression format." },
(...skipping 4206 matching lines...) Expand 10 before | Expand all | Expand 10 after
4649 "parameters": [ 4662 "parameters": [
4650 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } 4663 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." }
4651 ], 4664 ],
4652 "returns": [ 4665 "returns": [
4653 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." } 4666 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." }
4654 ] 4667 ]
4655 } 4668 }
4656 ] 4669 ]
4657 }] 4670 }]
4658 } 4671 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698