Skip to content

Commit c7c0e2e

Browse files
committed
bump protocol
1 parent cea329a commit c7c0e2e

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

_data/tot/protocol.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,39 @@
474474
"description": "Scale relative to the ideal viewport (size at width=device-width)."
475475
}
476476
]
477+
},
478+
{
479+
"id": "Viewport",
480+
"type": "object",
481+
"description": "Viewport for capturing screenshot.",
482+
"experimental": true,
483+
"properties": [
484+
{
485+
"name": "x",
486+
"type": "number",
487+
"description": "X offset in CSS pixels."
488+
},
489+
{
490+
"name": "y",
491+
"type": "number",
492+
"description": "Y offset in CSS pixels"
493+
},
494+
{
495+
"name": "width",
496+
"type": "number",
497+
"description": "Rectangle width in CSS pixels"
498+
},
499+
{
500+
"name": "height",
501+
"type": "number",
502+
"description": "Rectangle height in CSS pixels"
503+
},
504+
{
505+
"name": "scale",
506+
"type": "number",
507+
"description": "Page scale factor."
508+
}
509+
]
477510
}
478511
],
479512
"commands": [
@@ -971,6 +1004,13 @@
9711004
"optional": true,
9721005
"description": "Compression quality from range [0..100] (jpeg only)."
9731006
},
1007+
{
1008+
"name": "clip",
1009+
"$ref": "Viewport",
1010+
"optional": true,
1011+
"description": "Capture the screenshot of a given region only.",
1012+
"experimental": true
1013+
},
9741014
{
9751015
"name": "fromSurface",
9761016
"type": "boolean",

_versions/tot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h2 class="heading">latest (tip-of-tree)</h2>
88

99
<h5 browser>Latest <a
1010
href="https://chromium.googlesource.com/chromium/src/+log/master/third_party/WebKit/Source/core/inspector/browser_protocol.json">browser_protocol.json</a> version updated:</h5>
11-
<code browser>Date: Tue Jul 11 12:15:29 2017 -0700
11+
<code browser>Date: Wed Jul 12 07:15:22 2017 -0700
1212
</code>
1313

1414
<h5 js>Latest <a

search_index/tot.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)