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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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.", |
Lei Zhang
2017/05/04 07:29:38
BTW, write "PDF" because it expands out to Portabl
jzfeng
2017/05/05 02:41:34
Done.
| |
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 colors. Defaults to false."}, | |
Lei Zhang
2017/05/04 07:29:38
Write "background graphics" to be more correct, an
jzfeng
2017/05/05 02:41:34
Done.
| |
437 {"name": "scale", "type": "number", "optional": true, "descr iption": "Scale of the pdf. Defaults to 1."}, | |
Lei Zhang
2017/05/04 07:29:38
The description is a bit confusing. Does this mean
jzfeng
2017/05/05 02:41:34
Done.
| |
438 {"name": "paperWidth", "type": "number", "optional": true, " description": "Paper width in inch. Defaults to 8.5 inch."}, | |
Lei Zhang
2017/05/04 07:29:38
inches, ditto everywhere below.
jzfeng
2017/05/05 02:41:34
Done.
Lei Zhang
2017/05/05 03:53:00
Still need to write inches in a bunch of places.
jzfeng
2017/05/05 04:28:10
Do you mean I should also use inches in "in inch"?
Lei Zhang
2017/05/05 04:40:17
Yes, as in Q: "What is the unit of measure?" A: "W
| |
439 {"name": "paperHeight", "type": "number", "optional": true, "description": "Paper height. Defaults to 11 inch."}, | |
440 {"name": "marginTop", "type": "number", "optional": true, "d escription": "Top margin in inch. Defaults to 1cm = ~2/5 of an inch."}, | |
Lei Zhang
2017/05/04 07:29:38
Just write "Defaults to 1 cm. (~0.4 inches)"
jzfeng
2017/05/05 02:41:34
Done.
| |
441 {"name": "marginBottom", "type": "number", "optional": true, "description": "Bottom margin in inch. Defaults to 1cm = ~2/5 of an inch."}, | |
442 {"name": "marginLeft", "type": "number", "optional": true, " description": "Left margin in inch. Defaults to 1cm = ~2/5 of an inch."}, | |
443 {"name": "marginRight", "type": "number", "optional": true, "description": "Right margin in inch. Defaults to 1cm = ~2/5 of an inch."}, | |
444 {"name": "pageRanges", "type": "string", "optional": true, " description": "Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to print a ll pages."} | |
Lei Zhang
2017/05/04 07:29:38
Defaults to the empty string, which means print al
jzfeng
2017/05/05 02:41:34
Done.
| |
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 Loading... | |
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 } |
OLD | NEW |