Skip to content

Commit 3f87d59

Browse files
committed
Minor: Generate from new sources
1 parent 16f3c85 commit 3f87d59

73 files changed

Lines changed: 1903 additions & 91 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/WebExtensions.Net.Generator/ClrTypeTranslators/ClassEntityTranslator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public ClassEntityTranslator(ClrTypeStore clrTypeStore, FunctionDefinitionTransl
2525
public IEnumerable<ClrTypeInfo> ShallowTranslate(ClassEntity classEntity)
2626
{
2727
var classCSharpName = classEntity.FormattedName.ToCSharpName(toCapitalCase: true);
28-
if (classTranslationOptions.Aliases.TryGetValue(classEntity.FormattedName, out var classAlias))
28+
if (classTranslationOptions.Aliases.TryGetValue($"{classEntity.NamespaceEntity.FullFormattedName}.{classEntity.FormattedName}", out var classAlias))
2929
{
3030
classCSharpName = classAlias;
3131
}

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/_sources.json

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,6 @@
5151
]
5252
]
5353
},
54-
{
55-
"url": "chrome://extensions/content/parent/ext-contextualIdentities.js",
56-
"schema": "chrome://extensions/content/schemas/contextual_identities.json",
57-
"scopes": [
58-
"addon_parent"
59-
],
60-
"events": [
61-
"startup"
62-
],
63-
"permissions": [
64-
"contextualIdentities"
65-
],
66-
"paths": [
67-
[
68-
"contextualIdentities"
69-
]
70-
]
71-
},
7254
{
7355
"url": "chrome://extensions/content/parent/ext-cookies.js",
7456
"schema": "chrome://extensions/content/schemas/cookies.json",
@@ -479,6 +461,24 @@
479461
"commands"
480462
]
481463
},
464+
{
465+
"url": "chrome://extensions/content/parent/ext-contextualIdentities.js",
466+
"schema": "chrome://extensions/content/schemas/contextual_identities.json",
467+
"scopes": [
468+
"addon_parent"
469+
],
470+
"events": [
471+
"startup"
472+
],
473+
"permissions": [
474+
"contextualIdentities"
475+
],
476+
"paths": [
477+
[
478+
"contextualIdentities"
479+
]
480+
]
481+
},
482482
{
483483
"url": "chrome://browser/content/parent/ext-devtools.js",
484484
"schema": "chrome://browser/content/schemas/devtools.json",
@@ -720,6 +720,18 @@
720720
"sidebar_action"
721721
]
722722
},
723+
{
724+
"url": "chrome://browser/content/parent/ext-tabGroups.js",
725+
"schema": "chrome://browser/content/schemas/tabGroups.json",
726+
"scopes": [
727+
"addon_parent"
728+
],
729+
"paths": [
730+
[
731+
"tabGroups"
732+
]
733+
]
734+
},
723735
{
724736
"url": "chrome://browser/content/parent/ext-tabs.js",
725737
"schema": "chrome://browser/content/schemas/tabs.json",

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/alarms.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
{
3030
"name": "create",
3131
"description": "Creates an alarm. After the delay is expired, the onAlarm event is fired. If there is another alarm with the same name (or no name if none is specified), it will be cancelled and replaced by this alarm.",
32+
"async": "callback",
3233
"type": "function",
3334
"parameters": [
3435
{
@@ -58,6 +59,12 @@
5859
"type": "number"
5960
}
6061
}
62+
},
63+
{
64+
"name": "callback",
65+
"optional": true,
66+
"type": "function",
67+
"parameters": []
6168
}
6269
]
6370
},

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/browser_settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
"zoomSiteSpecific": {
126126
"description": "This boolean setting controls whether zoom is applied on a per-site basis or to the current tab only. If privacy.resistFingerprinting is true, this setting has no effect and zoom is applied to the current tab only.",
127127
"$ref": "types.Setting"
128+
},
129+
"verticalTabs": {
130+
"description": "This boolean setting controls whether vertical tabs are enabled.",
131+
"$ref": "types.Setting"
128132
}
129133
}
130134
},

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/cookies.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"description": "A cookie\u0027s \u0027SameSite\u0027 state (https://tools.ietf.org/html/draft-west-first-party-cookies). \u0027no_restriction\u0027 corresponds to a cookie set without a \u0027SameSite\u0027 attribute, \u0027lax\u0027 to \u0027SameSite=Lax\u0027, and \u0027strict\u0027 to \u0027SameSite=Strict\u0027.",
2828
"type": "string",
2929
"enum": [
30+
"unspecified",
3031
"no_restriction",
3132
"lax",
3233
"strict"

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/declarative_net_request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"types": [
8181
{
8282
"id": "ResourceType",
83-
"description": "How the requested resource will be used. Comparable to the webRequest.ResourceType type.",
83+
"description": "How the requested resource will be used. Comparable to the webRequest.ResourceType type. object_subrequest is unsupported.",
8484
"type": "string",
8585
"enum": [
8686
"main_frame",

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/i18n.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,28 @@
7575
"type": "string"
7676
}
7777
},
78+
{
79+
"name": "getPreferredSystemLanguages",
80+
"description": "Gets the preferred locales of the operating system. This is different from the locales set in the browser; to get those, use $(ref:i18n.getAcceptLanguages).",
81+
"async": "callback",
82+
"type": "function",
83+
"parameters": [
84+
{
85+
"name": "callback",
86+
"type": "function",
87+
"parameters": [
88+
{
89+
"name": "languages",
90+
"description": "Array of LanguageCode",
91+
"type": "array",
92+
"items": {
93+
"$ref": "LanguageCode"
94+
}
95+
}
96+
]
97+
}
98+
]
99+
},
78100
{
79101
"name": "getUILanguage",
80102
"description": "Gets the browser UI language of the browser. This is different from $(ref:i18n.getAcceptLanguages) which returns the preferred user languages.",

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/manifest.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,55 @@
410410
}
411411
]
412412
},
413+
{
414+
"id": "CommonDataCollectionPermission",
415+
"choices": [
416+
{
417+
"type": "string",
418+
"enum": [
419+
"authenticationInfo",
420+
"bookmarksInfo",
421+
"browsingActivity",
422+
"financialAndPaymentInfo",
423+
"healthInfo",
424+
"locationInfo",
425+
"personalCommunications",
426+
"personallyIdentifyingInfo",
427+
"searchTerms",
428+
"websiteActivity",
429+
"websiteContent"
430+
]
431+
}
432+
]
433+
},
434+
{
435+
"id": "DataCollectionPermission",
436+
"choices": [
437+
{
438+
"$ref": "CommonDataCollectionPermission"
439+
},
440+
{
441+
"type": "string",
442+
"enum": [
443+
"none"
444+
]
445+
}
446+
]
447+
},
448+
{
449+
"id": "OptionalDataCollectionPermission",
450+
"choices": [
451+
{
452+
"$ref": "CommonDataCollectionPermission"
453+
},
454+
{
455+
"type": "string",
456+
"enum": [
457+
"technicalAndInteraction"
458+
]
459+
}
460+
]
461+
},
413462
{
414463
"id": "PermissionNoPrompt",
415464
"choices": [
@@ -510,6 +559,26 @@
510559
"admin_install_only": {
511560
"optional": true,
512561
"type": "boolean"
562+
},
563+
"data_collection_permissions": {
564+
"optional": true,
565+
"type": "object",
566+
"properties": {
567+
"required": {
568+
"optional": true,
569+
"type": "array",
570+
"items": {
571+
"$ref": "DataCollectionPermission"
572+
}
573+
},
574+
"optional": {
575+
"optional": true,
576+
"type": "array",
577+
"items": {
578+
"$ref": "OptionalDataCollectionPermission"
579+
}
580+
}
581+
}
513582
}
514583
}
515584
},

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/menus.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@
6060
"audio",
6161
"launcher",
6262
"bookmark",
63+
"page_action",
6364
"tab",
6465
"tools_menu"
6566
]
6667
},
6768
{
6869
"type": "string",
6970
"enum": [
70-
"browser_action",
71-
"page_action"
71+
"browser_action"
7272
]
7373
},
7474
{

src/WebExtensions.Net.Generator/NamespaceDefinitionsClients/LocalSources/permissions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
"items": {
2727
"$ref": "manifest.MatchPattern"
2828
}
29+
},
30+
"data_collection": {
31+
"optional": true,
32+
"type": "array",
33+
"items": {
34+
"$ref": "manifest.OptionalDataCollectionPermission"
35+
}
2936
}
3037
}
3138
},
@@ -53,6 +60,13 @@
5360
"items": {
5461
"$ref": "manifest.MatchPattern"
5562
}
63+
},
64+
"data_collection": {
65+
"optional": true,
66+
"type": "array",
67+
"items": {
68+
"$ref": "manifest.OptionalDataCollectionPermission"
69+
}
5670
}
5771
}
5872
}

0 commit comments

Comments
 (0)