chrome-types 0.1.245 → 0.1.247
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 +344 -80
- package/index.d.ts +290 -59
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2024 Google LLC
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Fri Jan 05 2024 14:19:46 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at d2d64f34870510905d6bd9cd70f6dcef136d7718
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -6669,7 +6669,7 @@ declare namespace chrome {
|
|
|
6669
6669
|
parentId?: number | string,
|
|
6670
6670
|
|
|
6671
6671
|
/**
|
|
6672
|
-
* Restricts the item to apply only to documents or frames whose URL matches one of the given patterns. For details on pattern formats, see [Match Patterns](https://developer.chrome.com/docs/extensions/
|
|
6672
|
+
* Restricts the item to apply only to documents or frames whose URL matches one of the given patterns. For details on pattern formats, see [Match Patterns](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns).
|
|
6673
6673
|
*/
|
|
6674
6674
|
documentUrlPatterns?: string[],
|
|
6675
6675
|
|
|
@@ -6967,7 +6967,7 @@ declare namespace chrome {
|
|
|
6967
6967
|
): void;
|
|
6968
6968
|
|
|
6969
6969
|
/**
|
|
6970
|
-
* Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first.
|
|
6970
|
+
* Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. This method only retrieves cookies for domains that the extension has host permissions to.
|
|
6971
6971
|
*
|
|
6972
6972
|
* @chrome-returns-extra since Chrome 88
|
|
6973
6973
|
* @param details Information to filter the cookies being retrieved.
|
|
@@ -7021,7 +7021,7 @@ declare namespace chrome {
|
|
|
7021
7021
|
): Promise<Cookie[]>;
|
|
7022
7022
|
|
|
7023
7023
|
/**
|
|
7024
|
-
* Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first.
|
|
7024
|
+
* Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. This method only retrieves cookies for domains that the extension has host permissions to.
|
|
7025
7025
|
*
|
|
7026
7026
|
* @param details Information to filter the cookies being retrieved.
|
|
7027
7027
|
*/
|
|
@@ -7584,7 +7584,7 @@ declare namespace chrome {
|
|
|
7584
7584
|
css?: string[];
|
|
7585
7585
|
|
|
7586
7586
|
/**
|
|
7587
|
-
* Matches if the bookmarked state of the page is equal to the specified value. Requres the [bookmarks permission](https://developer.chrome.com/docs/extensions/
|
|
7587
|
+
* Matches if the bookmarked state of the page is equal to the specified value. Requres the [bookmarks permission](https://developer.chrome.com/docs/extensions/develop/concepts/declare-permissions).
|
|
7588
7588
|
*
|
|
7589
7589
|
* @since Chrome 45
|
|
7590
7590
|
*/
|
|
@@ -7592,7 +7592,9 @@ declare namespace chrome {
|
|
|
7592
7592
|
}
|
|
7593
7593
|
|
|
7594
7594
|
/**
|
|
7595
|
-
*
|
|
7595
|
+
* A declarative event action that sets the extension's {@link pageAction page action} to an enabled state while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/develop/concepts/declare-permissions#host-permissions), but the extension must have a page action. If the extension has the [activeTab](https://developer.chrome.com/docs/extensions/develop/concepts/activeTab) permission, clicking the page action grants access to the active tab.
|
|
7596
|
+
*
|
|
7597
|
+
* On pages where the conditions are not met the extension's toolbar action will be grey-scale, and clicking it will open the context menu, instead of triggering the action.
|
|
7596
7598
|
*
|
|
7597
7599
|
* @deprecated Please use {@link declarativeContent.ShowAction}.
|
|
7598
7600
|
* @chrome-deprecated-since Chrome 97
|
|
@@ -7602,7 +7604,9 @@ declare namespace chrome {
|
|
|
7602
7604
|
}
|
|
7603
7605
|
|
|
7604
7606
|
/**
|
|
7605
|
-
*
|
|
7607
|
+
* A declarative event action that sets the extension's toolbar {@link action action} to an enabled state while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/develop/concepts/declare-permissions#host-permissions). If the extension has the [activeTab](https://developer.chrome.com/docs/extensions/develop/concepts/activeTab) permission, clicking the page action grants access to the active tab.
|
|
7608
|
+
*
|
|
7609
|
+
* On pages where the conditions are not met the extension's toolbar action will be grey-scale, and clicking it will open the context menu, instead of triggering the action.
|
|
7606
7610
|
*
|
|
7607
7611
|
* @since Chrome 97
|
|
7608
7612
|
*/
|
|
@@ -7611,7 +7615,7 @@ declare namespace chrome {
|
|
|
7611
7615
|
}
|
|
7612
7616
|
|
|
7613
7617
|
/**
|
|
7614
|
-
* Declarative event action that sets the n-dip square icon for the extension's {@link pageAction page action} or {@link browserAction browser action} while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/
|
|
7618
|
+
* Declarative event action that sets the n-dip square icon for the extension's {@link pageAction page action} or {@link browserAction browser action} while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/develop/concepts/declare-permissions#host-permissions), but the extension must have a page or browser action.
|
|
7615
7619
|
*
|
|
7616
7620
|
* Exactly one of `imageData` or `path` must be specified. Both are dictionaries mapping a number of pixels to an image representation. The image representation in `imageData` is an [ImageData](https://developer.mozilla.org/en-US/docs/Web/API/ImageData) object; for example, from a `canvas` element, while the image representation in `path` is the path to an image file relative to the extension's manifest. If `scale` screen pixels fit into a device-independent pixel, the `scale * n` icon is used. If that scale is missing, another image is resized to the required size.
|
|
7617
7621
|
*/
|
|
@@ -12642,16 +12646,6 @@ declare namespace chrome {
|
|
|
12642
12646
|
) => void,
|
|
12643
12647
|
): void;
|
|
12644
12648
|
|
|
12645
|
-
/**
|
|
12646
|
-
* Get a writable Entry from another Entry. This call will fail with a runtime error if the application does not have the 'write' permission under 'fileSystem'. If entry is a DirectoryEntry, this call will fail if the application does not have the 'directory' permission under 'fileSystem'.
|
|
12647
|
-
*
|
|
12648
|
-
* @chrome-returns-extra since Chrome 117
|
|
12649
|
-
*/
|
|
12650
|
-
export function getWritableEntry(
|
|
12651
|
-
|
|
12652
|
-
entry: Entry,
|
|
12653
|
-
): Promise<Entry>;
|
|
12654
|
-
|
|
12655
12649
|
/**
|
|
12656
12650
|
* Get a writable Entry from another Entry. This call will fail with a runtime error if the application does not have the 'write' permission under 'fileSystem'. If entry is a DirectoryEntry, this call will fail if the application does not have the 'directory' permission under 'fileSystem'.
|
|
12657
12651
|
*/
|
|
@@ -12659,7 +12653,7 @@ declare namespace chrome {
|
|
|
12659
12653
|
|
|
12660
12654
|
entry: Entry,
|
|
12661
12655
|
|
|
12662
|
-
callback
|
|
12656
|
+
callback: (
|
|
12663
12657
|
entry: Entry,
|
|
12664
12658
|
) => void,
|
|
12665
12659
|
): void;
|
|
@@ -21437,6 +21431,16 @@ declare namespace chrome {
|
|
|
21437
21431
|
debug_errors: string[];
|
|
21438
21432
|
}
|
|
21439
21433
|
|
|
21434
|
+
/**
|
|
21435
|
+
* This method filters from a list of client certificates the ones that are known to the platform, match `request` and for which the extension has permission to access the certificate and its private key. If `interactive` is true, the user is presented a dialog where they can select from matching certificates and grant the extension access to the certificate. The selected/filtered client certificates will be passed to `callback`.
|
|
21436
|
+
*
|
|
21437
|
+
* @chrome-returns-extra since Pending
|
|
21438
|
+
*/
|
|
21439
|
+
export function selectClientCertificates(
|
|
21440
|
+
|
|
21441
|
+
details: SelectDetails,
|
|
21442
|
+
): Promise<Match[]>;
|
|
21443
|
+
|
|
21440
21444
|
/**
|
|
21441
21445
|
* This method filters from a list of client certificates the ones that are known to the platform, match `request` and for which the extension has permission to access the certificate and its private key. If `interactive` is true, the user is presented a dialog where they can select from matching certificates and grant the extension access to the certificate. The selected/filtered client certificates will be passed to `callback`.
|
|
21442
21446
|
*/
|
|
@@ -21447,7 +21451,7 @@ declare namespace chrome {
|
|
|
21447
21451
|
/**
|
|
21448
21452
|
* @param matches The list of certificates that match the request, that the extension has permission for and, if `interactive` is true, that were selected by the user.
|
|
21449
21453
|
*/
|
|
21450
|
-
callback
|
|
21454
|
+
callback?: (
|
|
21451
21455
|
matches: Match[],
|
|
21452
21456
|
) => void,
|
|
21453
21457
|
): void;
|
|
@@ -21508,12 +21512,22 @@ declare namespace chrome {
|
|
|
21508
21512
|
|
|
21509
21513
|
/**
|
|
21510
21514
|
* Checks whether `details.serverCertificateChain` can be trusted for `details.hostname` according to the trust settings of the platform. Note: The actual behavior of the trust verification is not fully specified and might change in the future. The API implementation verifies certificate expiration, validates the certification path and checks trust by a known CA. The implementation is supposed to respect the EKU serverAuth and to support subject alternative names.
|
|
21515
|
+
*
|
|
21516
|
+
* @chrome-returns-extra since Pending
|
|
21511
21517
|
*/
|
|
21512
21518
|
export function verifyTLSServerCertificate(
|
|
21513
21519
|
|
|
21514
21520
|
details: VerificationDetails,
|
|
21521
|
+
): Promise<VerificationResult>;
|
|
21515
21522
|
|
|
21516
|
-
|
|
21523
|
+
/**
|
|
21524
|
+
* Checks whether `details.serverCertificateChain` can be trusted for `details.hostname` according to the trust settings of the platform. Note: The actual behavior of the trust verification is not fully specified and might change in the future. The API implementation verifies certificate expiration, validates the certification path and checks trust by a known CA. The implementation is supposed to respect the EKU serverAuth and to support subject alternative names.
|
|
21525
|
+
*/
|
|
21526
|
+
export function verifyTLSServerCertificate(
|
|
21527
|
+
|
|
21528
|
+
details: VerificationDetails,
|
|
21529
|
+
|
|
21530
|
+
callback?: (
|
|
21517
21531
|
result: VerificationResult,
|
|
21518
21532
|
) => void,
|
|
21519
21533
|
): void;
|
|
@@ -21693,7 +21707,7 @@ declare namespace chrome {
|
|
|
21693
21707
|
export interface SubmitJobRequest {
|
|
21694
21708
|
|
|
21695
21709
|
/**
|
|
21696
|
-
* The print job to be submitted. The only supported content type is "application/pdf", and the
|
|
21710
|
+
* The print job to be submitted. The only supported content type is "application/pdf", and the [Cloud Job Ticket](https://developers.google.com/cloud-print/docs/cdd#cjt) shouldn't include `FitToPageTicketItem`, `PageRangeTicketItem`, `ReverseOrderTicketItem` and `VendorTicketItem` fields since they are irrelevant for native printing. All other fields must be present.
|
|
21697
21711
|
*/
|
|
21698
21712
|
job: printerProvider.PrintJob;
|
|
21699
21713
|
}
|
|
@@ -21825,7 +21839,8 @@ declare namespace chrome {
|
|
|
21825
21839
|
) => void>;
|
|
21826
21840
|
|
|
21827
21841
|
/**
|
|
21828
|
-
* Submits the job for
|
|
21842
|
+
* Submits the job for printing. If the extension is not listed in the [`PrintingAPIExtensionsAllowlist`](https://chromeenterprise.google/policies/#PrintingAPIExtensionsAllowlist) policy, the user is prompted to accept the print job.
|
|
21843
|
+
* Before Chrome 120, this function did not return a promise.
|
|
21829
21844
|
*
|
|
21830
21845
|
* @chrome-returns-extra since Chrome 100
|
|
21831
21846
|
*/
|
|
@@ -21835,7 +21850,8 @@ declare namespace chrome {
|
|
|
21835
21850
|
): Promise<SubmitJobResponse>;
|
|
21836
21851
|
|
|
21837
21852
|
/**
|
|
21838
|
-
* Submits the job for
|
|
21853
|
+
* Submits the job for printing. If the extension is not listed in the [`PrintingAPIExtensionsAllowlist`](https://chromeenterprise.google/policies/#PrintingAPIExtensionsAllowlist) policy, the user is prompted to accept the print job.
|
|
21854
|
+
* Before Chrome 120, this function did not return a promise.
|
|
21839
21855
|
*/
|
|
21840
21856
|
export function submitJob(
|
|
21841
21857
|
|
|
@@ -22251,6 +22267,13 @@ declare namespace chrome {
|
|
|
22251
22267
|
* **Available on Windows and ChromeOS only**: If enabled, Chrome provides a unique ID to plugins in order to run protected content. The value of this preference is of type boolean, and the default value is `true`.
|
|
22252
22268
|
*/
|
|
22253
22269
|
protectedContentEnabled: types.ChromeSetting<boolean>,
|
|
22270
|
+
|
|
22271
|
+
/**
|
|
22272
|
+
* If disabled, [Related Website Sets](https://developer.chrome.com/docs/privacy-sandbox/related-website-sets/) is deactivated. The value of this preference is of type boolean, and the default value is `true`. Extensions may only disable this API by setting the value to `false`. If you try setting this API to `true`, it will throw an error.
|
|
22273
|
+
*
|
|
22274
|
+
* @since Pending
|
|
22275
|
+
*/
|
|
22276
|
+
relatedWebsiteSetsEnabled: types.ChromeSetting<boolean>,
|
|
22254
22277
|
};
|
|
22255
22278
|
}
|
|
22256
22279
|
|
|
@@ -22652,7 +22675,7 @@ declare namespace chrome {
|
|
|
22652
22675
|
/**
|
|
22653
22676
|
* Use the `chrome.readingList` API to read from and modify the items in the [Reading List](https://support.google.com/chrome/answer/7343019).
|
|
22654
22677
|
*
|
|
22655
|
-
* @since
|
|
22678
|
+
* @since Chrome 120
|
|
22656
22679
|
* @chrome-permission readingList
|
|
22657
22680
|
* @chrome-min-manifest MV3
|
|
22658
22681
|
*/
|
|
@@ -23246,6 +23269,16 @@ declare namespace chrome {
|
|
|
23246
23269
|
port: Port,
|
|
23247
23270
|
) => void>;
|
|
23248
23271
|
|
|
23272
|
+
/**
|
|
23273
|
+
* Fired when a connection is made from a user script from this extension.
|
|
23274
|
+
*
|
|
23275
|
+
* @since Chrome 115
|
|
23276
|
+
* @chrome-min-manifest MV3
|
|
23277
|
+
*/
|
|
23278
|
+
export const onUserScriptConnect: events.Event<(
|
|
23279
|
+
port: Port,
|
|
23280
|
+
) => void>;
|
|
23281
|
+
|
|
23249
23282
|
/**
|
|
23250
23283
|
* Fired when a connection is made from a native application. Currently only supported on Chrome OS.
|
|
23251
23284
|
*
|
|
@@ -23274,6 +23307,18 @@ declare namespace chrome {
|
|
|
23274
23307
|
sendResponse: () => void,
|
|
23275
23308
|
) => boolean | undefined>;
|
|
23276
23309
|
|
|
23310
|
+
/**
|
|
23311
|
+
* Fired when a message is sent from a user script associated with the same extension.
|
|
23312
|
+
*
|
|
23313
|
+
* @since Chrome 115
|
|
23314
|
+
* @chrome-min-manifest MV3
|
|
23315
|
+
*/
|
|
23316
|
+
export const onUserScriptMessage: events.Event<(
|
|
23317
|
+
message: any,
|
|
23318
|
+
sender: MessageSender,
|
|
23319
|
+
sendResponse: () => void,
|
|
23320
|
+
) => boolean | undefined>;
|
|
23321
|
+
|
|
23277
23322
|
/**
|
|
23278
23323
|
* Fired when an app or the device that it runs on needs to be restarted. The app should close all its windows at its earliest convenient time to let the restart to happen. If the app does nothing, a restart will be enforced after a 24-hour grace period has passed. Currently, this event is only fired for Chrome OS kiosk apps.
|
|
23279
23324
|
*/
|
|
@@ -23653,6 +23698,14 @@ declare namespace chrome {
|
|
|
23653
23698
|
) => void,
|
|
23654
23699
|
): void;
|
|
23655
23700
|
|
|
23701
|
+
/**
|
|
23702
|
+
* Returns a DirectoryEntry for the package directory.
|
|
23703
|
+
*
|
|
23704
|
+
* @chrome-returns-extra since Pending
|
|
23705
|
+
* @chrome-disallow-service-workers
|
|
23706
|
+
*/
|
|
23707
|
+
export function getPackageDirectoryEntry(): Promise<DirectoryEntry>;
|
|
23708
|
+
|
|
23656
23709
|
/**
|
|
23657
23710
|
* Returns a DirectoryEntry for the package directory.
|
|
23658
23711
|
*
|
|
@@ -23660,7 +23713,7 @@ declare namespace chrome {
|
|
|
23660
23713
|
*/
|
|
23661
23714
|
export function getPackageDirectoryEntry(
|
|
23662
23715
|
|
|
23663
|
-
callback
|
|
23716
|
+
callback?: (
|
|
23664
23717
|
directoryEntry: DirectoryEntry,
|
|
23665
23718
|
) => void,
|
|
23666
23719
|
): void;
|
|
@@ -23868,7 +23921,7 @@ declare namespace chrome {
|
|
|
23868
23921
|
allFrames?: boolean;
|
|
23869
23922
|
|
|
23870
23923
|
/**
|
|
23871
|
-
*
|
|
23924
|
+
* Indicates whether the script can be injected into frames where the URL contains an unsupported scheme; specifically: about:, data:, blob:, or filesystem:. In these cases, the URL's origin is checked to determine if the script should be injected. If the origin is `null` (as is the case for data: URLs) then the used origin is either the frame that created the current frame or the frame that initiated the navigation to this frame. Note that this may not be the parent frame.
|
|
23872
23925
|
*
|
|
23873
23926
|
* @since Chrome 119
|
|
23874
23927
|
*/
|
|
@@ -25234,32 +25287,31 @@ declare namespace chrome {
|
|
|
25234
25287
|
/**
|
|
25235
25288
|
* Creates a socket of the specified type that will connect to the specified remote machine.
|
|
25236
25289
|
*
|
|
25290
|
+
* @chrome-returns-extra since Pending
|
|
25237
25291
|
* @param type The type of socket to create. Must be `tcp` or `udp`.
|
|
25238
25292
|
* @param options The socket options.
|
|
25239
|
-
* @param callback Called when the socket has been created.
|
|
25240
25293
|
*/
|
|
25241
25294
|
export function create(
|
|
25242
25295
|
|
|
25243
25296
|
type: SocketType,
|
|
25244
25297
|
|
|
25245
|
-
options
|
|
25246
|
-
|
|
25247
|
-
callback: (
|
|
25248
|
-
createInfo: CreateInfo,
|
|
25249
|
-
) => void,
|
|
25250
|
-
): void;
|
|
25298
|
+
options?: CreateOptions,
|
|
25299
|
+
): Promise<CreateInfo>;
|
|
25251
25300
|
|
|
25252
25301
|
/**
|
|
25253
25302
|
* Creates a socket of the specified type that will connect to the specified remote machine.
|
|
25254
25303
|
*
|
|
25255
25304
|
* @param type The type of socket to create. Must be `tcp` or `udp`.
|
|
25305
|
+
* @param options The socket options.
|
|
25256
25306
|
* @param callback Called when the socket has been created.
|
|
25257
25307
|
*/
|
|
25258
25308
|
export function create(
|
|
25259
25309
|
|
|
25260
25310
|
type: SocketType,
|
|
25261
25311
|
|
|
25262
|
-
|
|
25312
|
+
options?: CreateOptions,
|
|
25313
|
+
|
|
25314
|
+
callback?: (
|
|
25263
25315
|
createInfo: CreateInfo,
|
|
25264
25316
|
) => void,
|
|
25265
25317
|
): void;
|
|
@@ -25551,6 +25603,17 @@ declare namespace chrome {
|
|
|
25551
25603
|
) => void,
|
|
25552
25604
|
): void;
|
|
25553
25605
|
|
|
25606
|
+
/**
|
|
25607
|
+
* Retrieves the state of the given socket.
|
|
25608
|
+
*
|
|
25609
|
+
* @chrome-returns-extra since Pending
|
|
25610
|
+
* @param socketId The socketId.
|
|
25611
|
+
*/
|
|
25612
|
+
export function getInfo(
|
|
25613
|
+
|
|
25614
|
+
socketId: number,
|
|
25615
|
+
): Promise<SocketInfo>;
|
|
25616
|
+
|
|
25554
25617
|
/**
|
|
25555
25618
|
* Retrieves the state of the given socket.
|
|
25556
25619
|
*
|
|
@@ -25561,11 +25624,18 @@ declare namespace chrome {
|
|
|
25561
25624
|
|
|
25562
25625
|
socketId: number,
|
|
25563
25626
|
|
|
25564
|
-
callback
|
|
25627
|
+
callback?: (
|
|
25565
25628
|
result: SocketInfo,
|
|
25566
25629
|
) => void,
|
|
25567
25630
|
): void;
|
|
25568
25631
|
|
|
25632
|
+
/**
|
|
25633
|
+
* Retrieves information about local adapters on this system.
|
|
25634
|
+
*
|
|
25635
|
+
* @chrome-returns-extra since Pending
|
|
25636
|
+
*/
|
|
25637
|
+
export function getNetworkList(): Promise<NetworkInterface[]>;
|
|
25638
|
+
|
|
25569
25639
|
/**
|
|
25570
25640
|
* Retrieves information about local adapters on this system.
|
|
25571
25641
|
*
|
|
@@ -25573,7 +25643,7 @@ declare namespace chrome {
|
|
|
25573
25643
|
*/
|
|
25574
25644
|
export function getNetworkList(
|
|
25575
25645
|
|
|
25576
|
-
callback
|
|
25646
|
+
callback?: (
|
|
25577
25647
|
result: NetworkInterface[],
|
|
25578
25648
|
) => void,
|
|
25579
25649
|
): void;
|
|
@@ -25874,36 +25944,46 @@ declare namespace chrome {
|
|
|
25874
25944
|
/**
|
|
25875
25945
|
* Creates a TCP socket.
|
|
25876
25946
|
*
|
|
25947
|
+
* @chrome-returns-extra since Pending
|
|
25877
25948
|
* @param properties The socket properties (optional).
|
|
25878
|
-
* @param callback Called when the socket has been created.
|
|
25879
25949
|
*/
|
|
25880
25950
|
export function create(
|
|
25881
25951
|
|
|
25882
|
-
properties
|
|
25883
|
-
|
|
25884
|
-
/**
|
|
25885
|
-
* @param createInfo The result of the socket creation.
|
|
25886
|
-
*/
|
|
25887
|
-
callback: (
|
|
25888
|
-
createInfo: CreateInfo,
|
|
25889
|
-
) => void,
|
|
25890
|
-
): void;
|
|
25952
|
+
properties?: SocketProperties,
|
|
25953
|
+
): Promise<CreateInfo>;
|
|
25891
25954
|
|
|
25892
25955
|
/**
|
|
25893
25956
|
* Creates a TCP socket.
|
|
25894
25957
|
*
|
|
25958
|
+
* @param properties The socket properties (optional).
|
|
25895
25959
|
* @param callback Called when the socket has been created.
|
|
25896
25960
|
*/
|
|
25897
25961
|
export function create(
|
|
25898
25962
|
|
|
25963
|
+
properties?: SocketProperties,
|
|
25964
|
+
|
|
25899
25965
|
/**
|
|
25900
25966
|
* @param createInfo The result of the socket creation.
|
|
25901
25967
|
*/
|
|
25902
|
-
callback
|
|
25968
|
+
callback?: (
|
|
25903
25969
|
createInfo: CreateInfo,
|
|
25904
25970
|
) => void,
|
|
25905
25971
|
): void;
|
|
25906
25972
|
|
|
25973
|
+
/**
|
|
25974
|
+
* Updates the socket properties.
|
|
25975
|
+
*
|
|
25976
|
+
* @chrome-returns-extra since Pending
|
|
25977
|
+
* @param socketId The socket identifier.
|
|
25978
|
+
* @param properties The properties to update.
|
|
25979
|
+
*/
|
|
25980
|
+
export function update(
|
|
25981
|
+
|
|
25982
|
+
socketId: number,
|
|
25983
|
+
|
|
25984
|
+
properties: SocketProperties,
|
|
25985
|
+
): Promise<void>;
|
|
25986
|
+
|
|
25907
25987
|
/**
|
|
25908
25988
|
* Updates the socket properties.
|
|
25909
25989
|
*
|
|
@@ -25920,6 +26000,18 @@ declare namespace chrome {
|
|
|
25920
26000
|
callback?: () => void,
|
|
25921
26001
|
): void;
|
|
25922
26002
|
|
|
26003
|
+
/**
|
|
26004
|
+
* Enables or disables the application from receiving messages from its peer. The default value is "false". Pausing a socket is typically used by an application to throttle data sent by its peer. When a socket is paused, no `onReceive` event is raised. When a socket is connected and un-paused, `onReceive` events are raised again when messages are received.
|
|
26005
|
+
*
|
|
26006
|
+
* @chrome-returns-extra since Pending
|
|
26007
|
+
*/
|
|
26008
|
+
export function setPaused(
|
|
26009
|
+
|
|
26010
|
+
socketId: number,
|
|
26011
|
+
|
|
26012
|
+
paused: boolean,
|
|
26013
|
+
): Promise<void>;
|
|
26014
|
+
|
|
25923
26015
|
/**
|
|
25924
26016
|
* Enables or disables the application from receiving messages from its peer. The default value is "false". Pausing a socket is typically used by an application to throttle data sent by its peer. When a socket is paused, no `onReceive` event is raised. When a socket is connected and un-paused, `onReceive` events are raised again when messages are received.
|
|
25925
26017
|
*
|
|
@@ -26054,6 +26146,17 @@ declare namespace chrome {
|
|
|
26054
26146
|
) => void,
|
|
26055
26147
|
): void;
|
|
26056
26148
|
|
|
26149
|
+
/**
|
|
26150
|
+
* Disconnects the socket.
|
|
26151
|
+
*
|
|
26152
|
+
* @chrome-returns-extra since Pending
|
|
26153
|
+
* @param socketId The socket identifier.
|
|
26154
|
+
*/
|
|
26155
|
+
export function disconnect(
|
|
26156
|
+
|
|
26157
|
+
socketId: number,
|
|
26158
|
+
): Promise<void>;
|
|
26159
|
+
|
|
26057
26160
|
/**
|
|
26058
26161
|
* Disconnects the socket.
|
|
26059
26162
|
*
|
|
@@ -26121,6 +26224,17 @@ declare namespace chrome {
|
|
|
26121
26224
|
) => void,
|
|
26122
26225
|
): void;
|
|
26123
26226
|
|
|
26227
|
+
/**
|
|
26228
|
+
* Closes the socket and releases the address/port the socket is bound to. Each socket created should be closed after use. The socket id is no no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
26229
|
+
*
|
|
26230
|
+
* @chrome-returns-extra since Pending
|
|
26231
|
+
* @param socketId The socket identifier.
|
|
26232
|
+
*/
|
|
26233
|
+
export function close(
|
|
26234
|
+
|
|
26235
|
+
socketId: number,
|
|
26236
|
+
): Promise<void>;
|
|
26237
|
+
|
|
26124
26238
|
/**
|
|
26125
26239
|
* Closes the socket and releases the address/port the socket is bound to. Each socket created should be closed after use. The socket id is no no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
26126
26240
|
*
|
|
@@ -26134,6 +26248,17 @@ declare namespace chrome {
|
|
|
26134
26248
|
callback?: () => void,
|
|
26135
26249
|
): void;
|
|
26136
26250
|
|
|
26251
|
+
/**
|
|
26252
|
+
* Retrieves the state of the given socket.
|
|
26253
|
+
*
|
|
26254
|
+
* @chrome-returns-extra since Pending
|
|
26255
|
+
* @param socketId The socket identifier.
|
|
26256
|
+
*/
|
|
26257
|
+
export function getInfo(
|
|
26258
|
+
|
|
26259
|
+
socketId: number,
|
|
26260
|
+
): Promise<SocketInfo>;
|
|
26261
|
+
|
|
26137
26262
|
/**
|
|
26138
26263
|
* Retrieves the state of the given socket.
|
|
26139
26264
|
*
|
|
@@ -26147,11 +26272,18 @@ declare namespace chrome {
|
|
|
26147
26272
|
/**
|
|
26148
26273
|
* @param socketInfo Object containing the socket information.
|
|
26149
26274
|
*/
|
|
26150
|
-
callback
|
|
26275
|
+
callback?: (
|
|
26151
26276
|
socketInfo: SocketInfo,
|
|
26152
26277
|
) => void,
|
|
26153
26278
|
): void;
|
|
26154
26279
|
|
|
26280
|
+
/**
|
|
26281
|
+
* Retrieves the list of currently opened sockets owned by the application.
|
|
26282
|
+
*
|
|
26283
|
+
* @chrome-returns-extra since Pending
|
|
26284
|
+
*/
|
|
26285
|
+
export function getSockets(): Promise<SocketInfo[]>;
|
|
26286
|
+
|
|
26155
26287
|
/**
|
|
26156
26288
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
26157
26289
|
*
|
|
@@ -26162,7 +26294,7 @@ declare namespace chrome {
|
|
|
26162
26294
|
/**
|
|
26163
26295
|
* @param socketInfos Array of object containing socket information.
|
|
26164
26296
|
*/
|
|
26165
|
-
callback
|
|
26297
|
+
callback?: (
|
|
26166
26298
|
socketInfos: SocketInfo[],
|
|
26167
26299
|
) => void,
|
|
26168
26300
|
): void;
|
|
@@ -26273,36 +26405,46 @@ declare namespace chrome {
|
|
|
26273
26405
|
/**
|
|
26274
26406
|
* Creates a TCP server socket.
|
|
26275
26407
|
*
|
|
26408
|
+
* @chrome-returns-extra since Pending
|
|
26276
26409
|
* @param properties The socket properties (optional).
|
|
26277
|
-
* @param callback Called when the socket has been created.
|
|
26278
26410
|
*/
|
|
26279
26411
|
export function create(
|
|
26280
26412
|
|
|
26281
|
-
properties
|
|
26282
|
-
|
|
26283
|
-
/**
|
|
26284
|
-
* @param createInfo The result of the socket creation.
|
|
26285
|
-
*/
|
|
26286
|
-
callback: (
|
|
26287
|
-
createInfo: CreateInfo,
|
|
26288
|
-
) => void,
|
|
26289
|
-
): void;
|
|
26413
|
+
properties?: SocketProperties,
|
|
26414
|
+
): Promise<CreateInfo>;
|
|
26290
26415
|
|
|
26291
26416
|
/**
|
|
26292
26417
|
* Creates a TCP server socket.
|
|
26293
26418
|
*
|
|
26419
|
+
* @param properties The socket properties (optional).
|
|
26294
26420
|
* @param callback Called when the socket has been created.
|
|
26295
26421
|
*/
|
|
26296
26422
|
export function create(
|
|
26297
26423
|
|
|
26424
|
+
properties?: SocketProperties,
|
|
26425
|
+
|
|
26298
26426
|
/**
|
|
26299
26427
|
* @param createInfo The result of the socket creation.
|
|
26300
26428
|
*/
|
|
26301
|
-
callback
|
|
26429
|
+
callback?: (
|
|
26302
26430
|
createInfo: CreateInfo,
|
|
26303
26431
|
) => void,
|
|
26304
26432
|
): void;
|
|
26305
26433
|
|
|
26434
|
+
/**
|
|
26435
|
+
* Updates the socket properties.
|
|
26436
|
+
*
|
|
26437
|
+
* @chrome-returns-extra since Pending
|
|
26438
|
+
* @param socketId The socket identifier.
|
|
26439
|
+
* @param properties The properties to update.
|
|
26440
|
+
*/
|
|
26441
|
+
export function update(
|
|
26442
|
+
|
|
26443
|
+
socketId: number,
|
|
26444
|
+
|
|
26445
|
+
properties: SocketProperties,
|
|
26446
|
+
): Promise<void>;
|
|
26447
|
+
|
|
26306
26448
|
/**
|
|
26307
26449
|
* Updates the socket properties.
|
|
26308
26450
|
*
|
|
@@ -26319,6 +26461,18 @@ declare namespace chrome {
|
|
|
26319
26461
|
callback?: () => void,
|
|
26320
26462
|
): void;
|
|
26321
26463
|
|
|
26464
|
+
/**
|
|
26465
|
+
* Enables or disables a listening socket from accepting new connections. When paused, a listening socket accepts new connections until its backlog (see `listen` function) is full then refuses additional connection requests. `onAccept` events are raised only when the socket is un-paused.
|
|
26466
|
+
*
|
|
26467
|
+
* @chrome-returns-extra since Pending
|
|
26468
|
+
*/
|
|
26469
|
+
export function setPaused(
|
|
26470
|
+
|
|
26471
|
+
socketId: number,
|
|
26472
|
+
|
|
26473
|
+
paused: boolean,
|
|
26474
|
+
): Promise<void>;
|
|
26475
|
+
|
|
26322
26476
|
/**
|
|
26323
26477
|
* Enables or disables a listening socket from accepting new connections. When paused, a listening socket accepts new connections until its backlog (see `listen` function) is full then refuses additional connection requests. `onAccept` events are raised only when the socket is un-paused.
|
|
26324
26478
|
*
|
|
@@ -26384,6 +26538,17 @@ declare namespace chrome {
|
|
|
26384
26538
|
) => void,
|
|
26385
26539
|
): void;
|
|
26386
26540
|
|
|
26541
|
+
/**
|
|
26542
|
+
* Disconnects the listening socket, i.e. stops accepting new connections and releases the address/port the socket is bound to. The socket identifier remains valid, e.g. it can be used with `listen` to accept connections on a new port and address.
|
|
26543
|
+
*
|
|
26544
|
+
* @chrome-returns-extra since Pending
|
|
26545
|
+
* @param socketId The socket identifier.
|
|
26546
|
+
*/
|
|
26547
|
+
export function disconnect(
|
|
26548
|
+
|
|
26549
|
+
socketId: number,
|
|
26550
|
+
): Promise<void>;
|
|
26551
|
+
|
|
26387
26552
|
/**
|
|
26388
26553
|
* Disconnects the listening socket, i.e. stops accepting new connections and releases the address/port the socket is bound to. The socket identifier remains valid, e.g. it can be used with `listen` to accept connections on a new port and address.
|
|
26389
26554
|
*
|
|
@@ -26397,6 +26562,17 @@ declare namespace chrome {
|
|
|
26397
26562
|
callback?: () => void,
|
|
26398
26563
|
): void;
|
|
26399
26564
|
|
|
26565
|
+
/**
|
|
26566
|
+
* Disconnects and destroys the socket. Each socket created should be closed after use. The socket id is no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
26567
|
+
*
|
|
26568
|
+
* @chrome-returns-extra since Pending
|
|
26569
|
+
* @param socketId The socket identifier.
|
|
26570
|
+
*/
|
|
26571
|
+
export function close(
|
|
26572
|
+
|
|
26573
|
+
socketId: number,
|
|
26574
|
+
): Promise<void>;
|
|
26575
|
+
|
|
26400
26576
|
/**
|
|
26401
26577
|
* Disconnects and destroys the socket. Each socket created should be closed after use. The socket id is no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
26402
26578
|
*
|
|
@@ -26410,6 +26586,17 @@ declare namespace chrome {
|
|
|
26410
26586
|
callback?: () => void,
|
|
26411
26587
|
): void;
|
|
26412
26588
|
|
|
26589
|
+
/**
|
|
26590
|
+
* Retrieves the state of the given socket.
|
|
26591
|
+
*
|
|
26592
|
+
* @chrome-returns-extra since Pending
|
|
26593
|
+
* @param socketId The socket identifier.
|
|
26594
|
+
*/
|
|
26595
|
+
export function getInfo(
|
|
26596
|
+
|
|
26597
|
+
socketId: number,
|
|
26598
|
+
): Promise<SocketInfo>;
|
|
26599
|
+
|
|
26413
26600
|
/**
|
|
26414
26601
|
* Retrieves the state of the given socket.
|
|
26415
26602
|
*
|
|
@@ -26423,11 +26610,18 @@ declare namespace chrome {
|
|
|
26423
26610
|
/**
|
|
26424
26611
|
* @param socketInfo Object containing the socket information.
|
|
26425
26612
|
*/
|
|
26426
|
-
callback
|
|
26613
|
+
callback?: (
|
|
26427
26614
|
socketInfo: SocketInfo,
|
|
26428
26615
|
) => void,
|
|
26429
26616
|
): void;
|
|
26430
26617
|
|
|
26618
|
+
/**
|
|
26619
|
+
* Retrieves the list of currently opened sockets owned by the application.
|
|
26620
|
+
*
|
|
26621
|
+
* @chrome-returns-extra since Pending
|
|
26622
|
+
*/
|
|
26623
|
+
export function getSockets(): Promise<SocketInfo[]>;
|
|
26624
|
+
|
|
26431
26625
|
/**
|
|
26432
26626
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
26433
26627
|
*
|
|
@@ -26438,7 +26632,7 @@ declare namespace chrome {
|
|
|
26438
26632
|
/**
|
|
26439
26633
|
* @param socketInfos Array of object containing socket information.
|
|
26440
26634
|
*/
|
|
26441
|
-
callback
|
|
26635
|
+
callback?: (
|
|
26442
26636
|
socketInfos: SocketInfo[],
|
|
26443
26637
|
) => void,
|
|
26444
26638
|
): void;
|
|
@@ -26589,36 +26783,46 @@ declare namespace chrome {
|
|
|
26589
26783
|
/**
|
|
26590
26784
|
* Creates a UDP socket with the given properties.
|
|
26591
26785
|
*
|
|
26786
|
+
* @chrome-returns-extra since Pending
|
|
26592
26787
|
* @param properties The socket properties (optional).
|
|
26593
|
-
* @param callback Called when the socket has been created.
|
|
26594
26788
|
*/
|
|
26595
26789
|
export function create(
|
|
26596
26790
|
|
|
26597
|
-
properties
|
|
26598
|
-
|
|
26599
|
-
/**
|
|
26600
|
-
* @param createInfo The result of the socket creation.
|
|
26601
|
-
*/
|
|
26602
|
-
callback: (
|
|
26603
|
-
createInfo: CreateInfo,
|
|
26604
|
-
) => void,
|
|
26605
|
-
): void;
|
|
26791
|
+
properties?: SocketProperties,
|
|
26792
|
+
): Promise<CreateInfo>;
|
|
26606
26793
|
|
|
26607
26794
|
/**
|
|
26608
26795
|
* Creates a UDP socket with the given properties.
|
|
26609
26796
|
*
|
|
26797
|
+
* @param properties The socket properties (optional).
|
|
26610
26798
|
* @param callback Called when the socket has been created.
|
|
26611
26799
|
*/
|
|
26612
26800
|
export function create(
|
|
26613
26801
|
|
|
26802
|
+
properties?: SocketProperties,
|
|
26803
|
+
|
|
26614
26804
|
/**
|
|
26615
26805
|
* @param createInfo The result of the socket creation.
|
|
26616
26806
|
*/
|
|
26617
|
-
callback
|
|
26807
|
+
callback?: (
|
|
26618
26808
|
createInfo: CreateInfo,
|
|
26619
26809
|
) => void,
|
|
26620
26810
|
): void;
|
|
26621
26811
|
|
|
26812
|
+
/**
|
|
26813
|
+
* Updates the socket properties.
|
|
26814
|
+
*
|
|
26815
|
+
* @chrome-returns-extra since Pending
|
|
26816
|
+
* @param socketId The socket ID.
|
|
26817
|
+
* @param properties The properties to update.
|
|
26818
|
+
*/
|
|
26819
|
+
export function update(
|
|
26820
|
+
|
|
26821
|
+
socketId: number,
|
|
26822
|
+
|
|
26823
|
+
properties: SocketProperties,
|
|
26824
|
+
): Promise<void>;
|
|
26825
|
+
|
|
26622
26826
|
/**
|
|
26623
26827
|
* Updates the socket properties.
|
|
26624
26828
|
*
|
|
@@ -26635,6 +26839,19 @@ declare namespace chrome {
|
|
|
26635
26839
|
callback?: () => void,
|
|
26636
26840
|
): void;
|
|
26637
26841
|
|
|
26842
|
+
/**
|
|
26843
|
+
* Pauses or unpauses a socket. A paused socket is blocked from firing `onReceive` events.
|
|
26844
|
+
*
|
|
26845
|
+
* @chrome-returns-extra since Pending
|
|
26846
|
+
* @param paused Flag to indicate whether to pause or unpause.
|
|
26847
|
+
*/
|
|
26848
|
+
export function setPaused(
|
|
26849
|
+
|
|
26850
|
+
socketId: number,
|
|
26851
|
+
|
|
26852
|
+
paused: boolean,
|
|
26853
|
+
): Promise<void>;
|
|
26854
|
+
|
|
26638
26855
|
/**
|
|
26639
26856
|
* Pauses or unpauses a socket. A paused socket is blocked from firing `onReceive` events.
|
|
26640
26857
|
*
|
|
@@ -26736,6 +26953,17 @@ declare namespace chrome {
|
|
|
26736
26953
|
) => void,
|
|
26737
26954
|
): void;
|
|
26738
26955
|
|
|
26956
|
+
/**
|
|
26957
|
+
* Closes the socket and releases the address/port the socket is bound to. Each socket created should be closed after use. The socket id is no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
26958
|
+
*
|
|
26959
|
+
* @chrome-returns-extra since Pending
|
|
26960
|
+
* @param socketId The socket ID.
|
|
26961
|
+
*/
|
|
26962
|
+
export function close(
|
|
26963
|
+
|
|
26964
|
+
socketId: number,
|
|
26965
|
+
): Promise<void>;
|
|
26966
|
+
|
|
26739
26967
|
/**
|
|
26740
26968
|
* Closes the socket and releases the address/port the socket is bound to. Each socket created should be closed after use. The socket id is no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
26741
26969
|
*
|
|
@@ -26749,6 +26977,17 @@ declare namespace chrome {
|
|
|
26749
26977
|
callback?: () => void,
|
|
26750
26978
|
): void;
|
|
26751
26979
|
|
|
26980
|
+
/**
|
|
26981
|
+
* Retrieves the state of the given socket.
|
|
26982
|
+
*
|
|
26983
|
+
* @chrome-returns-extra since Pending
|
|
26984
|
+
* @param socketId The socket ID.
|
|
26985
|
+
*/
|
|
26986
|
+
export function getInfo(
|
|
26987
|
+
|
|
26988
|
+
socketId: number,
|
|
26989
|
+
): Promise<SocketInfo>;
|
|
26990
|
+
|
|
26752
26991
|
/**
|
|
26753
26992
|
* Retrieves the state of the given socket.
|
|
26754
26993
|
*
|
|
@@ -26762,11 +27001,18 @@ declare namespace chrome {
|
|
|
26762
27001
|
/**
|
|
26763
27002
|
* @param socketInfo Object containing the socket information.
|
|
26764
27003
|
*/
|
|
26765
|
-
callback
|
|
27004
|
+
callback?: (
|
|
26766
27005
|
socketInfo: SocketInfo,
|
|
26767
27006
|
) => void,
|
|
26768
27007
|
): void;
|
|
26769
27008
|
|
|
27009
|
+
/**
|
|
27010
|
+
* Retrieves the list of currently opened sockets owned by the application.
|
|
27011
|
+
*
|
|
27012
|
+
* @chrome-returns-extra since Pending
|
|
27013
|
+
*/
|
|
27014
|
+
export function getSockets(): Promise<SocketInfo[]>;
|
|
27015
|
+
|
|
26770
27016
|
/**
|
|
26771
27017
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
26772
27018
|
*
|
|
@@ -26777,7 +27023,7 @@ declare namespace chrome {
|
|
|
26777
27023
|
/**
|
|
26778
27024
|
* @param socketInfos Array of object containing socket information.
|
|
26779
27025
|
*/
|
|
26780
|
-
callback
|
|
27026
|
+
callback?: (
|
|
26781
27027
|
socketInfos: SocketInfo[],
|
|
26782
27028
|
) => void,
|
|
26783
27029
|
): void;
|
|
@@ -26874,6 +27120,17 @@ declare namespace chrome {
|
|
|
26874
27120
|
) => void,
|
|
26875
27121
|
): void;
|
|
26876
27122
|
|
|
27123
|
+
/**
|
|
27124
|
+
* Gets the multicast group addresses the socket is currently joined to.
|
|
27125
|
+
*
|
|
27126
|
+
* @chrome-returns-extra since Pending
|
|
27127
|
+
* @param socketId The socket ID.
|
|
27128
|
+
*/
|
|
27129
|
+
export function getJoinedGroups(
|
|
27130
|
+
|
|
27131
|
+
socketId: number,
|
|
27132
|
+
): Promise<string[]>;
|
|
27133
|
+
|
|
26877
27134
|
/**
|
|
26878
27135
|
* Gets the multicast group addresses the socket is currently joined to.
|
|
26879
27136
|
*
|
|
@@ -26887,7 +27144,7 @@ declare namespace chrome {
|
|
|
26887
27144
|
/**
|
|
26888
27145
|
* @param groups Array of groups the socket joined.
|
|
26889
27146
|
*/
|
|
26890
|
-
callback
|
|
27147
|
+
callback?: (
|
|
26891
27148
|
groups: string[],
|
|
26892
27149
|
) => void,
|
|
26893
27150
|
): void;
|
|
@@ -28980,6 +29237,13 @@ declare namespace chrome {
|
|
|
28980
29237
|
*/
|
|
28981
29238
|
selected: boolean;
|
|
28982
29239
|
|
|
29240
|
+
/**
|
|
29241
|
+
* The last time the tab was accessed as the number of milliseconds since epoch.
|
|
29242
|
+
*
|
|
29243
|
+
* @since Pending
|
|
29244
|
+
*/
|
|
29245
|
+
lastAccessed?: number;
|
|
29246
|
+
|
|
28983
29247
|
/**
|
|
28984
29248
|
* Whether the tab is highlighted.
|
|
28985
29249
|
*/
|
|
@@ -32577,7 +32841,7 @@ declare namespace chrome {
|
|
|
32577
32841
|
/**
|
|
32578
32842
|
* Use the `userScripts` API to execute user scripts in the User Scripts context.
|
|
32579
32843
|
*
|
|
32580
|
-
* @since
|
|
32844
|
+
* @since Chrome 120
|
|
32581
32845
|
* @chrome-permission userScripts
|
|
32582
32846
|
* @chrome-min-manifest MV3
|
|
32583
32847
|
*/
|