Skip to content

Commit c91b223

Browse files
Bashamegasaschanaz
andauthored
Migrate most enums (#2281)
Co-authored-by: saschanaz <saschanaz@users.noreply.github.com>
1 parent 043094c commit c91b223

File tree

6 files changed

+62
-63
lines changed

6 files changed

+62
-63
lines changed

inputfiles/patches/fetch.kdl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
removals {
2+
enum RequestDestination {
3+
json // No implementation as of 2023-11
4+
}
5+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
removals {
2+
enum MediaSessionAction {
3+
enterpictureinpicture // Blink only as of 2024-07
4+
hangup // Blink only as of 2024-07
5+
nextslide // Blink only as of 2024-07
6+
previousslide // Blink only as of 2024-07
7+
togglecamera // Blink only as of 2024-07
8+
togglemicrophone // Blink only as of 2024-07
9+
togglescreenshare // No implementation as of 2024-07
10+
voiceactivity // No implementation as of 2024-07
11+
}
12+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
removals {
2+
enum RTCDegradationPreference {
3+
maintain-framerate-and-resolution // No implementation as of 2025-10
4+
}
5+
}

inputfiles/patches/netinfo.kdl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
removals {
2+
enum ConnectionType {
3+
wimax
4+
}
5+
}

inputfiles/patches/webcodecs.kdl

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
removals {
2+
enum VideoColorPrimaries {
3+
bt2020 // Blink only as of 2022-10
4+
smpte432 // Blink only as of 2022-10
5+
}
6+
7+
enum VideoMatrixCoefficients {
8+
bt2020-ncl // Blink only as of 2022-10
9+
}
10+
11+
enum VideoPixelFormat {
12+
// All no implementation as of 2024-03
13+
I420AP10
14+
I420AP12
15+
I420P10
16+
I420P12
17+
I422A
18+
I422AP10
19+
I422AP12
20+
I422P10
21+
I422P12
22+
I444A
23+
I444AP10
24+
I444AP12
25+
I444P10
26+
I444P12
27+
}
28+
29+
enum VideoTransferCharacteristics {
30+
hlg // Blink only as of 2022-10
31+
linear // Blink only as of 2022-10
32+
pq // Blink only as of 2022-10
33+
}
34+
}

inputfiles/removedTypes.jsonc

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -13,69 +13,7 @@
1313
},
1414
"enums": {
1515
"enum": {
16-
"ConnectionType": {
17-
"value": ["wimax"]
18-
},
19-
"MediaSessionAction": {
20-
"value": [
21-
"enterpictureinpicture", // Blink only as of 2024-07
22-
"hangup", // Blink only as of 2024-07
23-
"nextslide", // Blink only as of as of 2024-07
24-
"previousslide", // Blink only as of as of 2024-07
25-
"togglecamera", // Blink only as of 2024-07
26-
"togglemicrophone", // Blink only as of 2024-07
27-
"togglescreenshare", // No implementation as of 2024-07
28-
"voiceactivity" // No implementation as of 2024-07
29-
]
30-
},
31-
"RequestDestination": {
32-
"value": [
33-
"json" // No implementation as of 2023-11
34-
]
35-
},
36-
"RTCDegradationPreference": {
37-
"value": [
38-
"maintain-framerate-and-resolution" // No implementation as of 2025-10j
39-
]
40-
},
41-
"ValueType": null,
42-
"VideoColorPrimaries": {
43-
"value": [
44-
"bt2020", // Blink only as of 2022-10
45-
"smpte432" // Blink only as of 2022-10
46-
]
47-
},
48-
"VideoMatrixCoefficients": {
49-
"value": [
50-
"bt2020-ncl" // Blink only as of 2022-10
51-
]
52-
},
53-
"VideoPixelFormat": {
54-
"value": [
55-
// All no implementation as of 2024-03
56-
"I420AP10",
57-
"I420AP12",
58-
"I420P10",
59-
"I420P12",
60-
"I422A",
61-
"I422AP10",
62-
"I422AP12",
63-
"I422P10",
64-
"I422P12",
65-
"I444A",
66-
"I444AP10",
67-
"I444AP12",
68-
"I444P10",
69-
"I444P12"
70-
]
71-
},
72-
"VideoTransferCharacteristics": {
73-
"value": [
74-
"hlg", // Blink only as of 2022-10
75-
"linear", // Blink only as of 2022-10
76-
"pq" // Blink only as of 2022-10
77-
]
78-
}
16+
"ValueType": null
7917
}
8018
},
8119
"interfaces": {

0 commit comments

Comments
 (0)