Skip to content

Commit b706ebc

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent cf6a301 commit b706ebc

4 files changed

Lines changed: 47 additions & 1 deletion

File tree

gen-src/ChromeDevtoolsProtocol/Model/Input/DragData.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ final class DragData implements \JsonSerializable
1414
/** @var DragDataItem[] */
1515
public $items;
1616

17+
/**
18+
* List of filenames that should be included when dropping
19+
*
20+
* @var string[]|null
21+
*/
22+
public $files;
23+
1724
/**
1825
* Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
1926
*
@@ -31,6 +38,12 @@ public static function fromJson($data)
3138
$instance->items[] = DragDataItem::fromJson($item);
3239
}
3340
}
41+
if (isset($data->files)) {
42+
$instance->files = [];
43+
foreach ($data->files as $item) {
44+
$instance->files[] = (string)$item;
45+
}
46+
}
3447
if (isset($data->dragOperationsMask)) {
3548
$instance->dragOperationsMask = (int)$data->dragOperationsMask;
3649
}
@@ -47,6 +60,12 @@ public function jsonSerialize()
4760
$data->items[] = $item->jsonSerialize();
4861
}
4962
}
63+
if ($this->files !== null) {
64+
$data->files = [];
65+
foreach ($this->files as $item) {
66+
$data->files[] = $item;
67+
}
68+
}
5069
if ($this->dragOperationsMask !== null) {
5170
$data->dragOperationsMask = $this->dragOperationsMask;
5271
}

gen-src/ChromeDevtoolsProtocol/Model/Network/ResponseReceivedExtraInfoEvent.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ final class ResponseReceivedExtraInfoEvent implements \JsonSerializable
3939
*/
4040
public $resourceIPAddressSpace;
4141

42+
/**
43+
* The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors.
44+
*
45+
* @var int
46+
*/
47+
public $statusCode;
48+
4249
/**
4350
* Raw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC.
4451
*
@@ -65,6 +72,9 @@ public static function fromJson($data)
6572
if (isset($data->resourceIPAddressSpace)) {
6673
$instance->resourceIPAddressSpace = (string)$data->resourceIPAddressSpace;
6774
}
75+
if (isset($data->statusCode)) {
76+
$instance->statusCode = (int)$data->statusCode;
77+
}
6878
if (isset($data->headersText)) {
6979
$instance->headersText = (string)$data->headersText;
7080
}
@@ -90,6 +100,9 @@ public function jsonSerialize()
90100
if ($this->resourceIPAddressSpace !== null) {
91101
$data->resourceIPAddressSpace = $this->resourceIPAddressSpace;
92102
}
103+
if ($this->statusCode !== null) {
104+
$data->statusCode = $this->statusCode;
105+
}
93106
if ($this->headersText !== null) {
94107
$data->headersText = $this->headersText;
95108
}

protocol.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10645,6 +10645,15 @@
1064510645
"$ref": "DragDataItem"
1064610646
}
1064710647
},
10648+
{
10649+
"name": "files",
10650+
"description": "List of filenames that should be included when dropping",
10651+
"optional": true,
10652+
"type": "array",
10653+
"items": {
10654+
"type": "string"
10655+
}
10656+
},
1064810657
{
1064910658
"name": "dragOperationsMask",
1065010659
"description": "Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16",
@@ -14968,6 +14977,11 @@
1496814977
"description": "The IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it in `requestWillBeSentExtraInfo`.",
1496914978
"$ref": "IPAddressSpace"
1497014979
},
14980+
{
14981+
"name": "statusCode",
14982+
"description": "The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors.",
14983+
"type": "integer"
14984+
},
1497114985
{
1497214986
"name": "headersText",
1497314987
"description": "Raw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC.",

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e327138ff7a77ea2df6662a0fa8020c6 protocol.json
1+
8f53fd7c4130cb97d1a613cca1d2c090 protocol.json

0 commit comments

Comments
 (0)