chrome-types 0.1.433 → 0.1.435
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_all.d.ts +107 -45
- package/index.d.ts +107 -45
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Jul 15 2026 22:36:48 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 2043f47f3161a54873d8e207e06cf77ef2f68a88
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -9765,7 +9765,7 @@ declare namespace chrome {
|
|
|
9765
9765
|
/**
|
|
9766
9766
|
* Gets the content of the resource.
|
|
9767
9767
|
*
|
|
9768
|
-
* @chrome-returns-extra since
|
|
9768
|
+
* @chrome-returns-extra since Chrome 151
|
|
9769
9769
|
* @returns A function that receives resource content when the request completes.
|
|
9770
9770
|
*/
|
|
9771
9771
|
getContent(): Promise<{
|
|
@@ -9791,7 +9791,7 @@ declare namespace chrome {
|
|
|
9791
9791
|
*/
|
|
9792
9792
|
callback?: (
|
|
9793
9793
|
/**
|
|
9794
|
-
* @since
|
|
9794
|
+
* @since Chrome 151
|
|
9795
9795
|
*/
|
|
9796
9796
|
response: {
|
|
9797
9797
|
|
|
@@ -9811,7 +9811,7 @@ declare namespace chrome {
|
|
|
9811
9811
|
/**
|
|
9812
9812
|
* Sets the content of the resource.
|
|
9813
9813
|
*
|
|
9814
|
-
* @chrome-returns-extra since
|
|
9814
|
+
* @chrome-returns-extra since Chrome 151
|
|
9815
9815
|
* @param content New content of the resource. Only resources with the text type are currently supported.
|
|
9816
9816
|
* @param commit True if the user has finished editing the resource, and the new content of the resource should be persisted; false if this is a minor change sent in progress of the user editing the resource.
|
|
9817
9817
|
* @returns A function called upon request completion.
|
|
@@ -9869,7 +9869,7 @@ declare namespace chrome {
|
|
|
9869
9869
|
/**
|
|
9870
9870
|
* Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a JSON-compliant object, otherwise an exception is thrown. The eval function can report either a DevTools-side error or a JavaScript exception that occurs during evaluation. In either case, the `result` parameter of the callback is `undefined`. In the case of a DevTools-side error, the `isException` parameter is non-null and has `isError` set to true and `code` set to an error code. In the case of a JavaScript error, `isException` is set to true and `value` is set to the string value of thrown object.
|
|
9871
9871
|
*
|
|
9872
|
-
* @chrome-returns-extra since
|
|
9872
|
+
* @chrome-returns-extra since Chrome 151
|
|
9873
9873
|
* @param expression An expression to evaluate.
|
|
9874
9874
|
* @param options The options parameter can contain one or more options.
|
|
9875
9875
|
* @returns A function called when evaluation completes.
|
|
@@ -9976,7 +9976,7 @@ declare namespace chrome {
|
|
|
9976
9976
|
*/
|
|
9977
9977
|
callback?: (
|
|
9978
9978
|
/**
|
|
9979
|
-
* @since
|
|
9979
|
+
* @since Chrome 151
|
|
9980
9980
|
*/
|
|
9981
9981
|
response: {
|
|
9982
9982
|
|
|
@@ -10051,7 +10051,7 @@ declare namespace chrome {
|
|
|
10051
10051
|
/**
|
|
10052
10052
|
* Retrieves the list of resources from the inspected page.
|
|
10053
10053
|
*
|
|
10054
|
-
* @chrome-returns-extra since
|
|
10054
|
+
* @chrome-returns-extra since Chrome 151
|
|
10055
10055
|
* @returns A function that receives the list of resources when the request completes.
|
|
10056
10056
|
*/
|
|
10057
10057
|
export function getResources(): Promise<Resource[]>;
|
|
@@ -10085,7 +10085,7 @@ declare namespace chrome {
|
|
|
10085
10085
|
/**
|
|
10086
10086
|
* Returns content of the response body.
|
|
10087
10087
|
*
|
|
10088
|
-
* @chrome-returns-extra since
|
|
10088
|
+
* @chrome-returns-extra since Chrome 151
|
|
10089
10089
|
* @returns A function that receives the response body when the request completes.
|
|
10090
10090
|
*/
|
|
10091
10091
|
getContent(): Promise<{
|
|
@@ -10111,7 +10111,7 @@ declare namespace chrome {
|
|
|
10111
10111
|
*/
|
|
10112
10112
|
callback?: (
|
|
10113
10113
|
/**
|
|
10114
|
-
* @since
|
|
10114
|
+
* @since Chrome 151
|
|
10115
10115
|
*/
|
|
10116
10116
|
response: {
|
|
10117
10117
|
|
|
@@ -10146,7 +10146,7 @@ declare namespace chrome {
|
|
|
10146
10146
|
/**
|
|
10147
10147
|
* Returns HAR log that contains all known network requests.
|
|
10148
10148
|
*
|
|
10149
|
-
* @chrome-returns-extra since
|
|
10149
|
+
* @chrome-returns-extra since Chrome 151
|
|
10150
10150
|
* @returns A function that receives the HAR log when the request completes.
|
|
10151
10151
|
*/
|
|
10152
10152
|
export function getHAR(): Promise<{[name: string]: any}>;
|
|
@@ -10182,11 +10182,22 @@ declare namespace chrome {
|
|
|
10182
10182
|
*/
|
|
10183
10183
|
onSelectionChanged: events.Event<() => void>;
|
|
10184
10184
|
|
|
10185
|
+
/**
|
|
10186
|
+
* Creates a pane within panel's sidebar.
|
|
10187
|
+
*
|
|
10188
|
+
* @chrome-returns-extra since Pending
|
|
10189
|
+
* @param title Text that is displayed in sidebar caption.
|
|
10190
|
+
* @returns A callback invoked when the sidebar is created.
|
|
10191
|
+
*/
|
|
10192
|
+
createSidebarPane(
|
|
10193
|
+
|
|
10194
|
+
title: string,
|
|
10195
|
+
): Promise<ExtensionSidebarPane>;
|
|
10196
|
+
|
|
10185
10197
|
/**
|
|
10186
10198
|
* Creates a pane within panel's sidebar.
|
|
10187
10199
|
*
|
|
10188
10200
|
* @param title Text that is displayed in sidebar caption.
|
|
10189
|
-
* @param callback A callback invoked when the sidebar is created.
|
|
10190
10201
|
*/
|
|
10191
10202
|
createSidebarPane(
|
|
10192
10203
|
|
|
@@ -10211,11 +10222,22 @@ declare namespace chrome {
|
|
|
10211
10222
|
*/
|
|
10212
10223
|
onSelectionChanged: events.Event<() => void>;
|
|
10213
10224
|
|
|
10225
|
+
/**
|
|
10226
|
+
* Creates a pane within panel's sidebar.
|
|
10227
|
+
*
|
|
10228
|
+
* @chrome-returns-extra since Pending
|
|
10229
|
+
* @param title Text that is displayed in sidebar caption.
|
|
10230
|
+
* @returns A callback invoked when the sidebar is created.
|
|
10231
|
+
*/
|
|
10232
|
+
createSidebarPane(
|
|
10233
|
+
|
|
10234
|
+
title: string,
|
|
10235
|
+
): Promise<ExtensionSidebarPane>;
|
|
10236
|
+
|
|
10214
10237
|
/**
|
|
10215
10238
|
* Creates a pane within panel's sidebar.
|
|
10216
10239
|
*
|
|
10217
10240
|
* @param title Text that is displayed in sidebar caption.
|
|
10218
|
-
* @param callback A callback invoked when the sidebar is created.
|
|
10219
10241
|
*/
|
|
10220
10242
|
createSidebarPane(
|
|
10221
10243
|
|
|
@@ -10306,12 +10328,26 @@ declare namespace chrome {
|
|
|
10306
10328
|
height: string,
|
|
10307
10329
|
): void;
|
|
10308
10330
|
|
|
10331
|
+
/**
|
|
10332
|
+
* Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
|
|
10333
|
+
*
|
|
10334
|
+
* @chrome-returns-extra since Pending
|
|
10335
|
+
* @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
|
|
10336
|
+
* @param rootTitle An optional title for the root of the expression tree.
|
|
10337
|
+
* @returns A callback invoked after the sidebar pane is updated with the expression evaluation results.
|
|
10338
|
+
*/
|
|
10339
|
+
setExpression(
|
|
10340
|
+
|
|
10341
|
+
expression: string,
|
|
10342
|
+
|
|
10343
|
+
rootTitle?: string,
|
|
10344
|
+
): Promise<void>;
|
|
10345
|
+
|
|
10309
10346
|
/**
|
|
10310
10347
|
* Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
|
|
10311
10348
|
*
|
|
10312
10349
|
* @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
|
|
10313
10350
|
* @param rootTitle An optional title for the root of the expression tree.
|
|
10314
|
-
* @param callback A callback invoked after the sidebar pane is updated with the expression evaluation results.
|
|
10315
10351
|
*/
|
|
10316
10352
|
setExpression(
|
|
10317
10353
|
|
|
@@ -10322,12 +10358,26 @@ declare namespace chrome {
|
|
|
10322
10358
|
callback?: () => void,
|
|
10323
10359
|
): void;
|
|
10324
10360
|
|
|
10361
|
+
/**
|
|
10362
|
+
* Sets a JSON-compliant object to be displayed in the sidebar pane.
|
|
10363
|
+
*
|
|
10364
|
+
* @chrome-returns-extra since Pending
|
|
10365
|
+
* @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
|
|
10366
|
+
* @param rootTitle An optional title for the root of the expression tree.
|
|
10367
|
+
* @returns A callback invoked after the sidebar is updated with the object.
|
|
10368
|
+
*/
|
|
10369
|
+
setObject(
|
|
10370
|
+
|
|
10371
|
+
jsonObject: string,
|
|
10372
|
+
|
|
10373
|
+
rootTitle?: string,
|
|
10374
|
+
): Promise<void>;
|
|
10375
|
+
|
|
10325
10376
|
/**
|
|
10326
10377
|
* Sets a JSON-compliant object to be displayed in the sidebar pane.
|
|
10327
10378
|
*
|
|
10328
10379
|
* @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
|
|
10329
10380
|
* @param rootTitle An optional title for the root of the expression tree.
|
|
10330
|
-
* @param callback A callback invoked after the sidebar is updated with the object.
|
|
10331
10381
|
*/
|
|
10332
10382
|
setObject(
|
|
10333
10383
|
|
|
@@ -10402,13 +10452,30 @@ declare namespace chrome {
|
|
|
10402
10452
|
*/
|
|
10403
10453
|
export const themeName: string;
|
|
10404
10454
|
|
|
10455
|
+
/**
|
|
10456
|
+
* Creates an extension panel.
|
|
10457
|
+
*
|
|
10458
|
+
* @chrome-returns-extra since Pending
|
|
10459
|
+
* @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
|
|
10460
|
+
* @param iconPath Path of the panel's icon relative to the extension directory.
|
|
10461
|
+
* @param pagePath Path of the panel's HTML page relative to the extension directory.
|
|
10462
|
+
* @returns A function that is called when the panel is created.
|
|
10463
|
+
*/
|
|
10464
|
+
export function create(
|
|
10465
|
+
|
|
10466
|
+
title: string,
|
|
10467
|
+
|
|
10468
|
+
iconPath: string,
|
|
10469
|
+
|
|
10470
|
+
pagePath: string,
|
|
10471
|
+
): Promise<ExtensionPanel>;
|
|
10472
|
+
|
|
10405
10473
|
/**
|
|
10406
10474
|
* Creates an extension panel.
|
|
10407
10475
|
*
|
|
10408
10476
|
* @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
|
|
10409
10477
|
* @param iconPath Path of the panel's icon relative to the extension directory.
|
|
10410
10478
|
* @param pagePath Path of the panel's HTML page relative to the extension directory.
|
|
10411
|
-
* @param callback A function that is called when the panel is created.
|
|
10412
10479
|
*/
|
|
10413
10480
|
export function create(
|
|
10414
10481
|
|
|
@@ -10443,13 +10510,33 @@ declare namespace chrome {
|
|
|
10443
10510
|
) => void,
|
|
10444
10511
|
): void;
|
|
10445
10512
|
|
|
10513
|
+
/**
|
|
10514
|
+
* Requests DevTools to open a URL in a Developer Tools panel.
|
|
10515
|
+
*
|
|
10516
|
+
* @chrome-returns-extra since Pending
|
|
10517
|
+
* @param url The URL of the resource to open.
|
|
10518
|
+
* @param lineNumber Specifies the line number to scroll to when the resource is loaded.
|
|
10519
|
+
* @param columnNumber Specifies the column number to scroll to when the resource is loaded.
|
|
10520
|
+
* @returns A function that is called when the resource has been successfully loaded.
|
|
10521
|
+
*/
|
|
10522
|
+
export function openResource(
|
|
10523
|
+
|
|
10524
|
+
url: string,
|
|
10525
|
+
|
|
10526
|
+
lineNumber: number,
|
|
10527
|
+
|
|
10528
|
+
/**
|
|
10529
|
+
* @since Chrome 114
|
|
10530
|
+
*/
|
|
10531
|
+
columnNumber?: number,
|
|
10532
|
+
): Promise<void>;
|
|
10533
|
+
|
|
10446
10534
|
/**
|
|
10447
10535
|
* Requests DevTools to open a URL in a Developer Tools panel.
|
|
10448
10536
|
*
|
|
10449
10537
|
* @param url The URL of the resource to open.
|
|
10450
10538
|
* @param lineNumber Specifies the line number to scroll to when the resource is loaded.
|
|
10451
10539
|
* @param columnNumber Specifies the column number to scroll to when the resource is loaded.
|
|
10452
|
-
* @param callback A function that is called when the resource has been successfully loaded.
|
|
10453
10540
|
*/
|
|
10454
10541
|
export function openResource(
|
|
10455
10542
|
|
|
@@ -19833,7 +19920,7 @@ declare namespace chrome {
|
|
|
19833
19920
|
/**
|
|
19834
19921
|
* Use the `chrome.mimeHandler` API to handle MIME type streams in third-party extensions.
|
|
19835
19922
|
*
|
|
19836
|
-
* @since
|
|
19923
|
+
* @since Chrome 151
|
|
19837
19924
|
* @chrome-manifest mime_types_handler
|
|
19838
19925
|
* @chrome-platform chromeos
|
|
19839
19926
|
* @chrome-platform linux
|
|
@@ -23946,27 +24033,9 @@ declare namespace chrome {
|
|
|
23946
24033
|
/**
|
|
23947
24034
|
* Categories of Autofill data.
|
|
23948
24035
|
*
|
|
23949
|
-
* @since
|
|
23950
|
-
*/
|
|
23951
|
-
export type AutofillBlockedType = "contact_info" | "payments" | "identity_docs" | "travel";
|
|
23952
|
-
|
|
23953
|
-
/**
|
|
23954
|
-
* Site-specific block rules for Autofill features.
|
|
23955
|
-
*
|
|
23956
|
-
* @since Pending
|
|
24036
|
+
* @since Chrome 151
|
|
23957
24037
|
*/
|
|
23958
|
-
export type
|
|
23959
|
-
|
|
23960
|
-
/**
|
|
23961
|
-
* A URL pattern specifying the sites for which the block rule applies.
|
|
23962
|
-
*/
|
|
23963
|
-
urlPattern: string,
|
|
23964
|
-
|
|
23965
|
-
/**
|
|
23966
|
-
* The categories of Autofill data to block on matching sites.
|
|
23967
|
-
*/
|
|
23968
|
-
blockedTypes: AutofillBlockedType[],
|
|
23969
|
-
}[];
|
|
24038
|
+
export type AutofillBlockedType = "contact_info" | "payments" | "identity_docs" | "travel" | "all";
|
|
23970
24039
|
|
|
23971
24040
|
/**
|
|
23972
24041
|
* Settings that influence Chrome's handling of network connections in general.
|
|
@@ -24018,13 +24087,6 @@ declare namespace chrome {
|
|
|
24018
24087
|
*/
|
|
24019
24088
|
autofillCreditCardEnabled: types.ChromeSetting<boolean>,
|
|
24020
24089
|
|
|
24021
|
-
/**
|
|
24022
|
-
* If set, allows site-specific control over Autofill features by blocking specific data categories on matching URL patterns.
|
|
24023
|
-
*
|
|
24024
|
-
* @since Pending
|
|
24025
|
-
*/
|
|
24026
|
-
autofillSettings: types.ChromeSetting<AutofillSettings>,
|
|
24027
|
-
|
|
24028
24090
|
/**
|
|
24029
24091
|
* If enabled, the password manager will ask if you want to save passwords. This preference's value is a boolean, defaulting to `true`.
|
|
24030
24092
|
*/
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Jul 15 2026 22:36:45 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 2043f47f3161a54873d8e207e06cf77ef2f68a88
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -6031,7 +6031,7 @@ declare namespace chrome {
|
|
|
6031
6031
|
/**
|
|
6032
6032
|
* Gets the content of the resource.
|
|
6033
6033
|
*
|
|
6034
|
-
* @chrome-returns-extra since
|
|
6034
|
+
* @chrome-returns-extra since Chrome 151
|
|
6035
6035
|
* @returns A function that receives resource content when the request completes.
|
|
6036
6036
|
*/
|
|
6037
6037
|
getContent(): Promise<{
|
|
@@ -6057,7 +6057,7 @@ declare namespace chrome {
|
|
|
6057
6057
|
*/
|
|
6058
6058
|
callback?: (
|
|
6059
6059
|
/**
|
|
6060
|
-
* @since
|
|
6060
|
+
* @since Chrome 151
|
|
6061
6061
|
*/
|
|
6062
6062
|
response: {
|
|
6063
6063
|
|
|
@@ -6077,7 +6077,7 @@ declare namespace chrome {
|
|
|
6077
6077
|
/**
|
|
6078
6078
|
* Sets the content of the resource.
|
|
6079
6079
|
*
|
|
6080
|
-
* @chrome-returns-extra since
|
|
6080
|
+
* @chrome-returns-extra since Chrome 151
|
|
6081
6081
|
* @param content New content of the resource. Only resources with the text type are currently supported.
|
|
6082
6082
|
* @param commit True if the user has finished editing the resource, and the new content of the resource should be persisted; false if this is a minor change sent in progress of the user editing the resource.
|
|
6083
6083
|
* @returns A function called upon request completion.
|
|
@@ -6135,7 +6135,7 @@ declare namespace chrome {
|
|
|
6135
6135
|
/**
|
|
6136
6136
|
* Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a JSON-compliant object, otherwise an exception is thrown. The eval function can report either a DevTools-side error or a JavaScript exception that occurs during evaluation. In either case, the `result` parameter of the callback is `undefined`. In the case of a DevTools-side error, the `isException` parameter is non-null and has `isError` set to true and `code` set to an error code. In the case of a JavaScript error, `isException` is set to true and `value` is set to the string value of thrown object.
|
|
6137
6137
|
*
|
|
6138
|
-
* @chrome-returns-extra since
|
|
6138
|
+
* @chrome-returns-extra since Chrome 151
|
|
6139
6139
|
* @param expression An expression to evaluate.
|
|
6140
6140
|
* @param options The options parameter can contain one or more options.
|
|
6141
6141
|
* @returns A function called when evaluation completes.
|
|
@@ -6242,7 +6242,7 @@ declare namespace chrome {
|
|
|
6242
6242
|
*/
|
|
6243
6243
|
callback?: (
|
|
6244
6244
|
/**
|
|
6245
|
-
* @since
|
|
6245
|
+
* @since Chrome 151
|
|
6246
6246
|
*/
|
|
6247
6247
|
response: {
|
|
6248
6248
|
|
|
@@ -6317,7 +6317,7 @@ declare namespace chrome {
|
|
|
6317
6317
|
/**
|
|
6318
6318
|
* Retrieves the list of resources from the inspected page.
|
|
6319
6319
|
*
|
|
6320
|
-
* @chrome-returns-extra since
|
|
6320
|
+
* @chrome-returns-extra since Chrome 151
|
|
6321
6321
|
* @returns A function that receives the list of resources when the request completes.
|
|
6322
6322
|
*/
|
|
6323
6323
|
export function getResources(): Promise<Resource[]>;
|
|
@@ -6351,7 +6351,7 @@ declare namespace chrome {
|
|
|
6351
6351
|
/**
|
|
6352
6352
|
* Returns content of the response body.
|
|
6353
6353
|
*
|
|
6354
|
-
* @chrome-returns-extra since
|
|
6354
|
+
* @chrome-returns-extra since Chrome 151
|
|
6355
6355
|
* @returns A function that receives the response body when the request completes.
|
|
6356
6356
|
*/
|
|
6357
6357
|
getContent(): Promise<{
|
|
@@ -6377,7 +6377,7 @@ declare namespace chrome {
|
|
|
6377
6377
|
*/
|
|
6378
6378
|
callback?: (
|
|
6379
6379
|
/**
|
|
6380
|
-
* @since
|
|
6380
|
+
* @since Chrome 151
|
|
6381
6381
|
*/
|
|
6382
6382
|
response: {
|
|
6383
6383
|
|
|
@@ -6412,7 +6412,7 @@ declare namespace chrome {
|
|
|
6412
6412
|
/**
|
|
6413
6413
|
* Returns HAR log that contains all known network requests.
|
|
6414
6414
|
*
|
|
6415
|
-
* @chrome-returns-extra since
|
|
6415
|
+
* @chrome-returns-extra since Chrome 151
|
|
6416
6416
|
* @returns A function that receives the HAR log when the request completes.
|
|
6417
6417
|
*/
|
|
6418
6418
|
export function getHAR(): Promise<{[name: string]: any}>;
|
|
@@ -6448,11 +6448,22 @@ declare namespace chrome {
|
|
|
6448
6448
|
*/
|
|
6449
6449
|
onSelectionChanged: events.Event<() => void>;
|
|
6450
6450
|
|
|
6451
|
+
/**
|
|
6452
|
+
* Creates a pane within panel's sidebar.
|
|
6453
|
+
*
|
|
6454
|
+
* @chrome-returns-extra since Pending
|
|
6455
|
+
* @param title Text that is displayed in sidebar caption.
|
|
6456
|
+
* @returns A callback invoked when the sidebar is created.
|
|
6457
|
+
*/
|
|
6458
|
+
createSidebarPane(
|
|
6459
|
+
|
|
6460
|
+
title: string,
|
|
6461
|
+
): Promise<ExtensionSidebarPane>;
|
|
6462
|
+
|
|
6451
6463
|
/**
|
|
6452
6464
|
* Creates a pane within panel's sidebar.
|
|
6453
6465
|
*
|
|
6454
6466
|
* @param title Text that is displayed in sidebar caption.
|
|
6455
|
-
* @param callback A callback invoked when the sidebar is created.
|
|
6456
6467
|
*/
|
|
6457
6468
|
createSidebarPane(
|
|
6458
6469
|
|
|
@@ -6477,11 +6488,22 @@ declare namespace chrome {
|
|
|
6477
6488
|
*/
|
|
6478
6489
|
onSelectionChanged: events.Event<() => void>;
|
|
6479
6490
|
|
|
6491
|
+
/**
|
|
6492
|
+
* Creates a pane within panel's sidebar.
|
|
6493
|
+
*
|
|
6494
|
+
* @chrome-returns-extra since Pending
|
|
6495
|
+
* @param title Text that is displayed in sidebar caption.
|
|
6496
|
+
* @returns A callback invoked when the sidebar is created.
|
|
6497
|
+
*/
|
|
6498
|
+
createSidebarPane(
|
|
6499
|
+
|
|
6500
|
+
title: string,
|
|
6501
|
+
): Promise<ExtensionSidebarPane>;
|
|
6502
|
+
|
|
6480
6503
|
/**
|
|
6481
6504
|
* Creates a pane within panel's sidebar.
|
|
6482
6505
|
*
|
|
6483
6506
|
* @param title Text that is displayed in sidebar caption.
|
|
6484
|
-
* @param callback A callback invoked when the sidebar is created.
|
|
6485
6507
|
*/
|
|
6486
6508
|
createSidebarPane(
|
|
6487
6509
|
|
|
@@ -6572,12 +6594,26 @@ declare namespace chrome {
|
|
|
6572
6594
|
height: string,
|
|
6573
6595
|
): void;
|
|
6574
6596
|
|
|
6597
|
+
/**
|
|
6598
|
+
* Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
|
|
6599
|
+
*
|
|
6600
|
+
* @chrome-returns-extra since Pending
|
|
6601
|
+
* @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
|
|
6602
|
+
* @param rootTitle An optional title for the root of the expression tree.
|
|
6603
|
+
* @returns A callback invoked after the sidebar pane is updated with the expression evaluation results.
|
|
6604
|
+
*/
|
|
6605
|
+
setExpression(
|
|
6606
|
+
|
|
6607
|
+
expression: string,
|
|
6608
|
+
|
|
6609
|
+
rootTitle?: string,
|
|
6610
|
+
): Promise<void>;
|
|
6611
|
+
|
|
6575
6612
|
/**
|
|
6576
6613
|
* Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
|
|
6577
6614
|
*
|
|
6578
6615
|
* @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
|
|
6579
6616
|
* @param rootTitle An optional title for the root of the expression tree.
|
|
6580
|
-
* @param callback A callback invoked after the sidebar pane is updated with the expression evaluation results.
|
|
6581
6617
|
*/
|
|
6582
6618
|
setExpression(
|
|
6583
6619
|
|
|
@@ -6588,12 +6624,26 @@ declare namespace chrome {
|
|
|
6588
6624
|
callback?: () => void,
|
|
6589
6625
|
): void;
|
|
6590
6626
|
|
|
6627
|
+
/**
|
|
6628
|
+
* Sets a JSON-compliant object to be displayed in the sidebar pane.
|
|
6629
|
+
*
|
|
6630
|
+
* @chrome-returns-extra since Pending
|
|
6631
|
+
* @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
|
|
6632
|
+
* @param rootTitle An optional title for the root of the expression tree.
|
|
6633
|
+
* @returns A callback invoked after the sidebar is updated with the object.
|
|
6634
|
+
*/
|
|
6635
|
+
setObject(
|
|
6636
|
+
|
|
6637
|
+
jsonObject: string,
|
|
6638
|
+
|
|
6639
|
+
rootTitle?: string,
|
|
6640
|
+
): Promise<void>;
|
|
6641
|
+
|
|
6591
6642
|
/**
|
|
6592
6643
|
* Sets a JSON-compliant object to be displayed in the sidebar pane.
|
|
6593
6644
|
*
|
|
6594
6645
|
* @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
|
|
6595
6646
|
* @param rootTitle An optional title for the root of the expression tree.
|
|
6596
|
-
* @param callback A callback invoked after the sidebar is updated with the object.
|
|
6597
6647
|
*/
|
|
6598
6648
|
setObject(
|
|
6599
6649
|
|
|
@@ -6668,13 +6718,30 @@ declare namespace chrome {
|
|
|
6668
6718
|
*/
|
|
6669
6719
|
export const themeName: string;
|
|
6670
6720
|
|
|
6721
|
+
/**
|
|
6722
|
+
* Creates an extension panel.
|
|
6723
|
+
*
|
|
6724
|
+
* @chrome-returns-extra since Pending
|
|
6725
|
+
* @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
|
|
6726
|
+
* @param iconPath Path of the panel's icon relative to the extension directory.
|
|
6727
|
+
* @param pagePath Path of the panel's HTML page relative to the extension directory.
|
|
6728
|
+
* @returns A function that is called when the panel is created.
|
|
6729
|
+
*/
|
|
6730
|
+
export function create(
|
|
6731
|
+
|
|
6732
|
+
title: string,
|
|
6733
|
+
|
|
6734
|
+
iconPath: string,
|
|
6735
|
+
|
|
6736
|
+
pagePath: string,
|
|
6737
|
+
): Promise<ExtensionPanel>;
|
|
6738
|
+
|
|
6671
6739
|
/**
|
|
6672
6740
|
* Creates an extension panel.
|
|
6673
6741
|
*
|
|
6674
6742
|
* @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
|
|
6675
6743
|
* @param iconPath Path of the panel's icon relative to the extension directory.
|
|
6676
6744
|
* @param pagePath Path of the panel's HTML page relative to the extension directory.
|
|
6677
|
-
* @param callback A function that is called when the panel is created.
|
|
6678
6745
|
*/
|
|
6679
6746
|
export function create(
|
|
6680
6747
|
|
|
@@ -6709,13 +6776,33 @@ declare namespace chrome {
|
|
|
6709
6776
|
) => void,
|
|
6710
6777
|
): void;
|
|
6711
6778
|
|
|
6779
|
+
/**
|
|
6780
|
+
* Requests DevTools to open a URL in a Developer Tools panel.
|
|
6781
|
+
*
|
|
6782
|
+
* @chrome-returns-extra since Pending
|
|
6783
|
+
* @param url The URL of the resource to open.
|
|
6784
|
+
* @param lineNumber Specifies the line number to scroll to when the resource is loaded.
|
|
6785
|
+
* @param columnNumber Specifies the column number to scroll to when the resource is loaded.
|
|
6786
|
+
* @returns A function that is called when the resource has been successfully loaded.
|
|
6787
|
+
*/
|
|
6788
|
+
export function openResource(
|
|
6789
|
+
|
|
6790
|
+
url: string,
|
|
6791
|
+
|
|
6792
|
+
lineNumber: number,
|
|
6793
|
+
|
|
6794
|
+
/**
|
|
6795
|
+
* @since Chrome 114
|
|
6796
|
+
*/
|
|
6797
|
+
columnNumber?: number,
|
|
6798
|
+
): Promise<void>;
|
|
6799
|
+
|
|
6712
6800
|
/**
|
|
6713
6801
|
* Requests DevTools to open a URL in a Developer Tools panel.
|
|
6714
6802
|
*
|
|
6715
6803
|
* @param url The URL of the resource to open.
|
|
6716
6804
|
* @param lineNumber Specifies the line number to scroll to when the resource is loaded.
|
|
6717
6805
|
* @param columnNumber Specifies the column number to scroll to when the resource is loaded.
|
|
6718
|
-
* @param callback A function that is called when the resource has been successfully loaded.
|
|
6719
6806
|
*/
|
|
6720
6807
|
export function openResource(
|
|
6721
6808
|
|
|
@@ -14924,7 +15011,7 @@ declare namespace chrome {
|
|
|
14924
15011
|
/**
|
|
14925
15012
|
* Use the `chrome.mimeHandler` API to handle MIME type streams in third-party extensions.
|
|
14926
15013
|
*
|
|
14927
|
-
* @since
|
|
15014
|
+
* @since Chrome 151
|
|
14928
15015
|
* @chrome-manifest mime_types_handler
|
|
14929
15016
|
* @chrome-platform chromeos
|
|
14930
15017
|
* @chrome-platform linux
|
|
@@ -16750,27 +16837,9 @@ declare namespace chrome {
|
|
|
16750
16837
|
/**
|
|
16751
16838
|
* Categories of Autofill data.
|
|
16752
16839
|
*
|
|
16753
|
-
* @since
|
|
16754
|
-
*/
|
|
16755
|
-
export type AutofillBlockedType = "contact_info" | "payments" | "identity_docs" | "travel";
|
|
16756
|
-
|
|
16757
|
-
/**
|
|
16758
|
-
* Site-specific block rules for Autofill features.
|
|
16759
|
-
*
|
|
16760
|
-
* @since Pending
|
|
16840
|
+
* @since Chrome 151
|
|
16761
16841
|
*/
|
|
16762
|
-
export type
|
|
16763
|
-
|
|
16764
|
-
/**
|
|
16765
|
-
* A URL pattern specifying the sites for which the block rule applies.
|
|
16766
|
-
*/
|
|
16767
|
-
urlPattern: string,
|
|
16768
|
-
|
|
16769
|
-
/**
|
|
16770
|
-
* The categories of Autofill data to block on matching sites.
|
|
16771
|
-
*/
|
|
16772
|
-
blockedTypes: AutofillBlockedType[],
|
|
16773
|
-
}[];
|
|
16842
|
+
export type AutofillBlockedType = "contact_info" | "payments" | "identity_docs" | "travel" | "all";
|
|
16774
16843
|
|
|
16775
16844
|
/**
|
|
16776
16845
|
* Settings that influence Chrome's handling of network connections in general.
|
|
@@ -16822,13 +16891,6 @@ declare namespace chrome {
|
|
|
16822
16891
|
*/
|
|
16823
16892
|
autofillCreditCardEnabled: types.ChromeSetting<boolean>,
|
|
16824
16893
|
|
|
16825
|
-
/**
|
|
16826
|
-
* If set, allows site-specific control over Autofill features by blocking specific data categories on matching URL patterns.
|
|
16827
|
-
*
|
|
16828
|
-
* @since Pending
|
|
16829
|
-
*/
|
|
16830
|
-
autofillSettings: types.ChromeSetting<AutofillSettings>,
|
|
16831
|
-
|
|
16832
16894
|
/**
|
|
16833
16895
|
* If enabled, the password manager will ask if you want to save passwords. This preference's value is a boolean, defaulting to `true`.
|
|
16834
16896
|
*/
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "b86b6f375675e797"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"url": "https://github.com/GoogleChrome/chrome-types/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/GoogleChrome/chrome-types",
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.435"
|
|
20
20
|
}
|