chrome-types 0.1.406 → 0.1.407
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 +2 -269
- package/index.d.ts +2 -190
- 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 Wed Jan 07 2026
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Jan 07 2026 15:45:22 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at b53c887388cda795521d8f71e46844d3fc36967a
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -786,7 +786,6 @@ declare namespace chrome {
|
|
|
786
786
|
* @chrome-returns-extra since Chrome 111
|
|
787
787
|
* @param name Optional name to identify this alarm. Defaults to the empty string.
|
|
788
788
|
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
789
|
-
* @returns Promise that resolves when the alarm has been created.
|
|
790
789
|
*/
|
|
791
790
|
export function create(
|
|
792
791
|
|
|
@@ -804,7 +803,6 @@ declare namespace chrome {
|
|
|
804
803
|
*
|
|
805
804
|
* @chrome-returns-extra since Chrome 111
|
|
806
805
|
* @param alarmInfo Describes when the alarm should fire. The initial time must be specified by either `when` or `delayInMinutes` (but not both). If `periodInMinutes` is set, the alarm will repeat every `periodInMinutes` minutes after the initial event. If neither `when` or `delayInMinutes` is set for a repeating alarm, `periodInMinutes` is used as the default for `delayInMinutes`.
|
|
807
|
-
* @returns Promise that resolves when the alarm has been created.
|
|
808
806
|
*/
|
|
809
807
|
export function create(
|
|
810
808
|
|
|
@@ -1627,13 +1625,6 @@ declare namespace chrome {
|
|
|
1627
1625
|
* To automatically remember the positions of windows you can give them ids. If a window has an id, This id is used to remember the size and position of the window whenever it is moved or resized. This size and position is then used instead of the specified bounds on subsequent opening of a window with the same id. If you need to open a window with an id at a location other than the remembered default, you can create it hidden, move it to the desired location, then show it.
|
|
1628
1626
|
*
|
|
1629
1627
|
* @chrome-returns-extra since Chrome 117
|
|
1630
|
-
* @returns Called in the creating window (parent) before the load event is called in the created window (child). The parent can set fields or functions on the child usable from onload. E.g. background.js:
|
|
1631
|
-
|
|
1632
|
-
`function(createdWindow) { createdWindow.contentWindow.foo = function () { }; };`
|
|
1633
|
-
|
|
1634
|
-
window.js:
|
|
1635
|
-
|
|
1636
|
-
`window.onload = function () { foo(); }`
|
|
1637
1628
|
*/
|
|
1638
1629
|
export function create(
|
|
1639
1630
|
|
|
@@ -1731,7 +1722,6 @@ declare namespace chrome {
|
|
|
1731
1722
|
* @chrome-returns-extra since Chrome 132
|
|
1732
1723
|
* @param app The extension id of the app to be embedded.
|
|
1733
1724
|
* @param data Optional developer specified data that the app to be embedded can use when making an embedding decision.
|
|
1734
|
-
* @returns An optional function that's called after the embedding request is completed.
|
|
1735
1725
|
*/
|
|
1736
1726
|
export function connect(
|
|
1737
1727
|
|
|
@@ -1917,7 +1907,6 @@ declare namespace chrome {
|
|
|
1917
1907
|
*
|
|
1918
1908
|
* @chrome-returns-extra since Chrome 116
|
|
1919
1909
|
* @param filter Device properties by which to filter the list of returned audio devices. If the filter is not set or set to `{}`, returned device list will contain all available audio devices.
|
|
1920
|
-
* @returns Reports the requested list of audio devices.
|
|
1921
1910
|
*/
|
|
1922
1911
|
export function getDevices(
|
|
1923
1912
|
|
|
@@ -1998,7 +1987,6 @@ declare namespace chrome {
|
|
|
1998
1987
|
*
|
|
1999
1988
|
* @chrome-returns-extra since Chrome 116
|
|
2000
1989
|
* @param streamType Stream type for which mute state should be fetched.
|
|
2001
|
-
* @returns Promise that resolves with a boolean indicating whether mute is set or not for specified stream type.
|
|
2002
1990
|
*/
|
|
2003
1991
|
export function getMute(
|
|
2004
1992
|
|
|
@@ -2252,7 +2240,6 @@ declare namespace chrome {
|
|
|
2252
2240
|
* Get information about the Bluetooth adapter.
|
|
2253
2241
|
*
|
|
2254
2242
|
* @chrome-returns-extra since Chrome 91
|
|
2255
|
-
* @returns Called with an AdapterState object describing the adapter state.
|
|
2256
2243
|
*/
|
|
2257
2244
|
export function getAdapterState(): Promise<AdapterState>;
|
|
2258
2245
|
|
|
@@ -2274,7 +2261,6 @@ declare namespace chrome {
|
|
|
2274
2261
|
*
|
|
2275
2262
|
* @chrome-returns-extra since Chrome 91
|
|
2276
2263
|
* @param deviceAddress Address of device to get.
|
|
2277
|
-
* @returns Called with the Device object describing the device.
|
|
2278
2264
|
*/
|
|
2279
2265
|
export function getDevice(
|
|
2280
2266
|
|
|
@@ -2303,7 +2289,6 @@ declare namespace chrome {
|
|
|
2303
2289
|
*
|
|
2304
2290
|
* @chrome-returns-extra since Chrome 91
|
|
2305
2291
|
* @param filter Some criteria to filter the list of returned bluetooth devices. If the filter is not set or set to `{}`, returned device list will contain all bluetooth devices. Right now this is only supported in ChromeOS, for other platforms, a full list is returned.
|
|
2306
|
-
* @returns Called when the search is completed.
|
|
2307
2292
|
*/
|
|
2308
2293
|
export function getDevices(
|
|
2309
2294
|
|
|
@@ -2339,7 +2324,6 @@ declare namespace chrome {
|
|
|
2339
2324
|
* Discovery will fail to start if this application has already called startDiscovery. Discovery can be resource intensive: stopDiscovery should be called as soon as possible.
|
|
2340
2325
|
*
|
|
2341
2326
|
* @chrome-returns-extra since Chrome 91
|
|
2342
|
-
* @returns Called to indicate success or failure.
|
|
2343
2327
|
*/
|
|
2344
2328
|
export function startDiscovery(): Promise<void>;
|
|
2345
2329
|
|
|
@@ -2357,7 +2341,6 @@ declare namespace chrome {
|
|
|
2357
2341
|
* Stop discovery.
|
|
2358
2342
|
*
|
|
2359
2343
|
* @chrome-returns-extra since Chrome 91
|
|
2360
|
-
* @returns Called to indicate success or failure.
|
|
2361
2344
|
*/
|
|
2362
2345
|
export function stopDiscovery(): Promise<void>;
|
|
2363
2346
|
|
|
@@ -2709,7 +2692,6 @@ declare namespace chrome {
|
|
|
2709
2692
|
* @chrome-returns-extra since Chrome 91
|
|
2710
2693
|
* @param deviceAddress The Bluetooth address of the remote device to which a GATT connection should be opened.
|
|
2711
2694
|
* @param properties Connection properties (optional).
|
|
2712
|
-
* @returns Called when the connect request has completed.
|
|
2713
2695
|
*/
|
|
2714
2696
|
export function connect(
|
|
2715
2697
|
|
|
@@ -2738,7 +2720,6 @@ declare namespace chrome {
|
|
|
2738
2720
|
*
|
|
2739
2721
|
* @chrome-returns-extra since Chrome 91
|
|
2740
2722
|
* @param deviceAddress The Bluetooth address of the remote device.
|
|
2741
|
-
* @returns Called when the disconnect request has completed.
|
|
2742
2723
|
*/
|
|
2743
2724
|
export function disconnect(
|
|
2744
2725
|
|
|
@@ -2762,7 +2743,6 @@ declare namespace chrome {
|
|
|
2762
2743
|
*
|
|
2763
2744
|
* @chrome-returns-extra since Chrome 91
|
|
2764
2745
|
* @param serviceId The instance ID of the requested GATT service.
|
|
2765
|
-
* @returns Called with the requested Service object.
|
|
2766
2746
|
*/
|
|
2767
2747
|
export function getService(
|
|
2768
2748
|
|
|
@@ -2788,7 +2768,6 @@ declare namespace chrome {
|
|
|
2788
2768
|
*
|
|
2789
2769
|
* @chrome-returns-extra since Chrome 91
|
|
2790
2770
|
* @param service The service to create.
|
|
2791
|
-
* @returns Called with the created services's unique ID.
|
|
2792
2771
|
* @since Chrome 52
|
|
2793
2772
|
*/
|
|
2794
2773
|
export function createService(
|
|
@@ -2818,7 +2797,6 @@ declare namespace chrome {
|
|
|
2818
2797
|
*
|
|
2819
2798
|
* @chrome-returns-extra since Chrome 91
|
|
2820
2799
|
* @param deviceAddress The Bluetooth address of the remote device whose GATT services should be returned.
|
|
2821
|
-
* @returns Called with the list of requested Service objects.
|
|
2822
2800
|
*/
|
|
2823
2801
|
export function getServices(
|
|
2824
2802
|
|
|
@@ -2846,7 +2824,6 @@ declare namespace chrome {
|
|
|
2846
2824
|
*
|
|
2847
2825
|
* @chrome-returns-extra since Chrome 91
|
|
2848
2826
|
* @param characteristicId The instance ID of the requested GATT characteristic.
|
|
2849
|
-
* @returns Called with the requested Characteristic object.
|
|
2850
2827
|
*/
|
|
2851
2828
|
export function getCharacteristic(
|
|
2852
2829
|
|
|
@@ -2873,7 +2850,6 @@ declare namespace chrome {
|
|
|
2873
2850
|
* @chrome-returns-extra since Chrome 91
|
|
2874
2851
|
* @param characteristic The characteristic to create.
|
|
2875
2852
|
* @param serviceId ID of the service to create this characteristic for.
|
|
2876
|
-
* @returns Called with the created characteristic's unique ID.
|
|
2877
2853
|
* @since Chrome 52
|
|
2878
2854
|
*/
|
|
2879
2855
|
export function createCharacteristic(
|
|
@@ -2906,7 +2882,6 @@ declare namespace chrome {
|
|
|
2906
2882
|
*
|
|
2907
2883
|
* @chrome-returns-extra since Chrome 91
|
|
2908
2884
|
* @param serviceId The instance ID of the GATT service whose characteristics should be returned.
|
|
2909
|
-
* @returns Called with the list of characteristics that belong to the given service.
|
|
2910
2885
|
*/
|
|
2911
2886
|
export function getCharacteristics(
|
|
2912
2887
|
|
|
@@ -2932,7 +2907,6 @@ declare namespace chrome {
|
|
|
2932
2907
|
*
|
|
2933
2908
|
* @chrome-returns-extra since Chrome 91
|
|
2934
2909
|
* @param serviceId The instance ID of the GATT service whose included services should be returned.
|
|
2935
|
-
* @returns Called with the list of GATT services included from the given service.
|
|
2936
2910
|
*/
|
|
2937
2911
|
export function getIncludedServices(
|
|
2938
2912
|
|
|
@@ -2958,7 +2932,6 @@ declare namespace chrome {
|
|
|
2958
2932
|
*
|
|
2959
2933
|
* @chrome-returns-extra since Chrome 91
|
|
2960
2934
|
* @param descriptorId The instance ID of the requested GATT characteristic descriptor.
|
|
2961
|
-
* @returns Called with the requested Descriptor object.
|
|
2962
2935
|
*/
|
|
2963
2936
|
export function getDescriptor(
|
|
2964
2937
|
|
|
@@ -2985,7 +2958,6 @@ declare namespace chrome {
|
|
|
2985
2958
|
* @chrome-returns-extra since Chrome 91
|
|
2986
2959
|
* @param descriptor The descriptor to create.
|
|
2987
2960
|
* @param characteristicId ID of the characteristic to create this descriptor for.
|
|
2988
|
-
* @returns Called with the created descriptor's unique ID.
|
|
2989
2961
|
* @since Chrome 52
|
|
2990
2962
|
*/
|
|
2991
2963
|
export function createDescriptor(
|
|
@@ -3018,7 +2990,6 @@ declare namespace chrome {
|
|
|
3018
2990
|
*
|
|
3019
2991
|
* @chrome-returns-extra since Chrome 91
|
|
3020
2992
|
* @param characteristicId The instance ID of the GATT characteristic whose descriptors should be returned.
|
|
3021
|
-
* @returns Called with the list of descriptors that belong to the given characteristic.
|
|
3022
2993
|
*/
|
|
3023
2994
|
export function getDescriptors(
|
|
3024
2995
|
|
|
@@ -3044,7 +3015,6 @@ declare namespace chrome {
|
|
|
3044
3015
|
*
|
|
3045
3016
|
* @chrome-returns-extra since Chrome 91
|
|
3046
3017
|
* @param characteristicId The instance ID of the GATT characteristic whose value should be read from the remote device.
|
|
3047
|
-
* @returns Called with the Characteristic object whose value was requested. The `value` field of the returned Characteristic object contains the result of the read request.
|
|
3048
3018
|
*/
|
|
3049
3019
|
export function readCharacteristicValue(
|
|
3050
3020
|
|
|
@@ -3071,7 +3041,6 @@ declare namespace chrome {
|
|
|
3071
3041
|
* @chrome-returns-extra since Chrome 91
|
|
3072
3042
|
* @param characteristicId The instance ID of the GATT characteristic whose value should be written to.
|
|
3073
3043
|
* @param value The value that should be sent to the remote characteristic as part of the write request.
|
|
3074
|
-
* @returns Called when the write request has completed.
|
|
3075
3044
|
*/
|
|
3076
3045
|
export function writeCharacteristicValue(
|
|
3077
3046
|
|
|
@@ -3101,7 +3070,6 @@ declare namespace chrome {
|
|
|
3101
3070
|
* @chrome-returns-extra since Chrome 91
|
|
3102
3071
|
* @param characteristicId The instance ID of the GATT characteristic that notifications should be enabled on.
|
|
3103
3072
|
* @param properties Notification session properties (optional).
|
|
3104
|
-
* @returns Called when the request has completed.
|
|
3105
3073
|
*/
|
|
3106
3074
|
export function startCharacteristicNotifications(
|
|
3107
3075
|
|
|
@@ -3130,7 +3098,6 @@ declare namespace chrome {
|
|
|
3130
3098
|
*
|
|
3131
3099
|
* @chrome-returns-extra since Chrome 91
|
|
3132
3100
|
* @param characteristicId The instance ID of the GATT characteristic on which this app's notification session should be stopped.
|
|
3133
|
-
* @returns Called when the request has completed (optional).
|
|
3134
3101
|
*/
|
|
3135
3102
|
export function stopCharacteristicNotifications(
|
|
3136
3103
|
|
|
@@ -3154,7 +3121,6 @@ declare namespace chrome {
|
|
|
3154
3121
|
*
|
|
3155
3122
|
* @chrome-returns-extra since Chrome 91
|
|
3156
3123
|
* @param characteristicId The characteristic to send the notication for.
|
|
3157
|
-
* @returns Callback called once the notification or indication has been sent successfully.
|
|
3158
3124
|
* @since Chrome 52
|
|
3159
3125
|
*/
|
|
3160
3126
|
export function notifyCharacteristicValueChanged(
|
|
@@ -3184,7 +3150,6 @@ declare namespace chrome {
|
|
|
3184
3150
|
*
|
|
3185
3151
|
* @chrome-returns-extra since Chrome 91
|
|
3186
3152
|
* @param descriptorId The instance ID of the GATT characteristic descriptor whose value should be read from the remote device.
|
|
3187
|
-
* @returns Called with the Descriptor object whose value was requested. The `value` field of the returned Descriptor object contains the result of the read request.
|
|
3188
3153
|
*/
|
|
3189
3154
|
export function readDescriptorValue(
|
|
3190
3155
|
|
|
@@ -3211,7 +3176,6 @@ declare namespace chrome {
|
|
|
3211
3176
|
* @chrome-returns-extra since Chrome 91
|
|
3212
3177
|
* @param descriptorId The instance ID of the GATT characteristic descriptor whose value should be written to.
|
|
3213
3178
|
* @param value The value that should be sent to the remote descriptor as part of the write request.
|
|
3214
|
-
* @returns Called when the write request has completed.
|
|
3215
3179
|
*/
|
|
3216
3180
|
export function writeDescriptorValue(
|
|
3217
3181
|
|
|
@@ -3240,7 +3204,6 @@ declare namespace chrome {
|
|
|
3240
3204
|
*
|
|
3241
3205
|
* @chrome-returns-extra since Chrome 91
|
|
3242
3206
|
* @param serviceId Unique ID of a created service.
|
|
3243
|
-
* @returns Callback with the result of the register operation.
|
|
3244
3207
|
* @since Chrome 52
|
|
3245
3208
|
*/
|
|
3246
3209
|
export function registerService(
|
|
@@ -3266,7 +3229,6 @@ declare namespace chrome {
|
|
|
3266
3229
|
*
|
|
3267
3230
|
* @chrome-returns-extra since Chrome 91
|
|
3268
3231
|
* @param serviceId Unique ID of a current registered service.
|
|
3269
|
-
* @returns Callback with the result of the register operation.
|
|
3270
3232
|
* @since Chrome 52
|
|
3271
3233
|
*/
|
|
3272
3234
|
export function unregisterService(
|
|
@@ -3292,7 +3254,6 @@ declare namespace chrome {
|
|
|
3292
3254
|
*
|
|
3293
3255
|
* @chrome-returns-extra since Chrome 91
|
|
3294
3256
|
* @param serviceId Unique ID of a current registered service.
|
|
3295
|
-
* @returns Callback called once the service is removed.
|
|
3296
3257
|
* @since Chrome 52
|
|
3297
3258
|
*/
|
|
3298
3259
|
export function removeService(
|
|
@@ -3318,7 +3279,6 @@ declare namespace chrome {
|
|
|
3318
3279
|
*
|
|
3319
3280
|
* @chrome-returns-extra since Chrome 91
|
|
3320
3281
|
* @param advertisement The advertisement to advertise.
|
|
3321
|
-
* @returns Called once the registeration is done and we've started advertising. Returns the id of the created advertisement.
|
|
3322
3282
|
* @since Chrome 47
|
|
3323
3283
|
*/
|
|
3324
3284
|
export function registerAdvertisement(
|
|
@@ -3346,7 +3306,6 @@ declare namespace chrome {
|
|
|
3346
3306
|
*
|
|
3347
3307
|
* @chrome-returns-extra since Chrome 91
|
|
3348
3308
|
* @param advertisementId Id of the advertisement to unregister.
|
|
3349
|
-
* @returns Called once the advertisement is unregistered and is no longer being advertised.
|
|
3350
3309
|
* @since Chrome 47
|
|
3351
3310
|
*/
|
|
3352
3311
|
export function unregisterAdvertisement(
|
|
@@ -3371,7 +3330,6 @@ declare namespace chrome {
|
|
|
3371
3330
|
* Resets advertising on the current device. It will unregister and stop all existing advertisements.
|
|
3372
3331
|
*
|
|
3373
3332
|
* @chrome-returns-extra since Chrome 91
|
|
3374
|
-
* @returns Called once the advertisements are reset.
|
|
3375
3333
|
* @since Chrome 61
|
|
3376
3334
|
*/
|
|
3377
3335
|
export function resetAdvertising(): Promise<void>;
|
|
@@ -3392,7 +3350,6 @@ declare namespace chrome {
|
|
|
3392
3350
|
* @chrome-returns-extra since Chrome 91
|
|
3393
3351
|
* @param minInterval Minimum interval between advertisments (in milliseconds). This cannot be lower than 20ms (as per the spec).
|
|
3394
3352
|
* @param maxInterval Maximum interval between advertisments (in milliseconds). This cannot be more than 10240ms (as per the spec).
|
|
3395
|
-
* @returns Called once the interval has been set.
|
|
3396
3353
|
* @since Chrome 55
|
|
3397
3354
|
*/
|
|
3398
3355
|
export function setAdvertisingInterval(
|
|
@@ -3637,7 +3594,6 @@ declare namespace chrome {
|
|
|
3637
3594
|
*
|
|
3638
3595
|
* @chrome-returns-extra since Chrome 91
|
|
3639
3596
|
* @param properties The socket properties (optional).
|
|
3640
|
-
* @returns Called when the socket has been created.
|
|
3641
3597
|
*/
|
|
3642
3598
|
export function create(
|
|
3643
3599
|
|
|
@@ -3667,7 +3623,6 @@ declare namespace chrome {
|
|
|
3667
3623
|
* @chrome-returns-extra since Chrome 91
|
|
3668
3624
|
* @param socketId The socket identifier.
|
|
3669
3625
|
* @param properties The properties to update.
|
|
3670
|
-
* @returns Called when the properties are updated.
|
|
3671
3626
|
*/
|
|
3672
3627
|
export function update(
|
|
3673
3628
|
|
|
@@ -3695,7 +3650,6 @@ declare namespace chrome {
|
|
|
3695
3650
|
* Enables or disables a connected socket from receiving messages from its peer, or a listening socket from accepting new connections. The default value is "false". Pausing a connected socket is typically used by an application to throttle data sent by its peer. When a connected 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. When a listening socket is paused, new connections are accepted until its backlog is full then additional connection requests are refused. `onAccept` events are raised only when the socket is un-paused.
|
|
3696
3651
|
*
|
|
3697
3652
|
* @chrome-returns-extra since Chrome 91
|
|
3698
|
-
* @returns Callback from the `setPaused` method.
|
|
3699
3653
|
*/
|
|
3700
3654
|
export function setPaused(
|
|
3701
3655
|
|
|
@@ -3723,7 +3677,6 @@ declare namespace chrome {
|
|
|
3723
3677
|
* @param socketId The socket identifier.
|
|
3724
3678
|
* @param uuid Service UUID to listen on.
|
|
3725
3679
|
* @param options Optional additional options for the service.
|
|
3726
|
-
* @returns Called when listen operation completes.
|
|
3727
3680
|
*/
|
|
3728
3681
|
export function listenUsingRfcomm(
|
|
3729
3682
|
|
|
@@ -3759,7 +3712,6 @@ declare namespace chrome {
|
|
|
3759
3712
|
* @param socketId The socket identifier.
|
|
3760
3713
|
* @param uuid Service UUID to listen on.
|
|
3761
3714
|
* @param options Optional additional options for the service.
|
|
3762
|
-
* @returns Called when listen operation completes.
|
|
3763
3715
|
*/
|
|
3764
3716
|
export function listenUsingL2cap(
|
|
3765
3717
|
|
|
@@ -3795,7 +3747,6 @@ declare namespace chrome {
|
|
|
3795
3747
|
* @param socketId The socket identifier.
|
|
3796
3748
|
* @param address The address of the Bluetooth device.
|
|
3797
3749
|
* @param uuid The UUID of the service to connect to.
|
|
3798
|
-
* @returns Called when the connect attempt is complete.
|
|
3799
3750
|
*/
|
|
3800
3751
|
export function connect(
|
|
3801
3752
|
|
|
@@ -3829,7 +3780,6 @@ declare namespace chrome {
|
|
|
3829
3780
|
*
|
|
3830
3781
|
* @chrome-returns-extra since Chrome 91
|
|
3831
3782
|
* @param socketId The socket identifier.
|
|
3832
|
-
* @returns Called when the disconnect attempt is complete.
|
|
3833
3783
|
*/
|
|
3834
3784
|
export function disconnect(
|
|
3835
3785
|
|
|
@@ -3853,7 +3803,6 @@ declare namespace chrome {
|
|
|
3853
3803
|
*
|
|
3854
3804
|
* @chrome-returns-extra since Chrome 91
|
|
3855
3805
|
* @param socketId The socket identifier.
|
|
3856
|
-
* @returns Called when the `close` operation completes.
|
|
3857
3806
|
*/
|
|
3858
3807
|
export function close(
|
|
3859
3808
|
|
|
@@ -3878,7 +3827,6 @@ declare namespace chrome {
|
|
|
3878
3827
|
* @chrome-returns-extra since Chrome 91
|
|
3879
3828
|
* @param socketId The socket identifier.
|
|
3880
3829
|
* @param data The data to send.
|
|
3881
|
-
* @returns Called with the number of bytes sent.
|
|
3882
3830
|
*/
|
|
3883
3831
|
export function send(
|
|
3884
3832
|
|
|
@@ -3912,7 +3860,6 @@ declare namespace chrome {
|
|
|
3912
3860
|
*
|
|
3913
3861
|
* @chrome-returns-extra since Chrome 91
|
|
3914
3862
|
* @param socketId The socket identifier.
|
|
3915
|
-
* @returns Called when the socket state is available.
|
|
3916
3863
|
*/
|
|
3917
3864
|
export function getInfo(
|
|
3918
3865
|
|
|
@@ -3940,7 +3887,6 @@ declare namespace chrome {
|
|
|
3940
3887
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
3941
3888
|
*
|
|
3942
3889
|
* @chrome-returns-extra since Chrome 91
|
|
3943
|
-
* @returns Called when the list of sockets is available.
|
|
3944
3890
|
*/
|
|
3945
3891
|
export function getSockets(): Promise<SocketInfo[]>;
|
|
3946
3892
|
|
|
@@ -4492,7 +4438,6 @@ declare namespace chrome {
|
|
|
4492
4438
|
*
|
|
4493
4439
|
* @chrome-returns-extra since Chrome 117
|
|
4494
4440
|
* @param options Configures how the tab should be opened.
|
|
4495
|
-
* @returns Called when the tab was successfully created, or failed to be created. If failed, {@link runtime.lastError} will be set.
|
|
4496
4441
|
*/
|
|
4497
4442
|
export function openTab(
|
|
4498
4443
|
|
|
@@ -5103,7 +5048,6 @@ declare namespace chrome {
|
|
|
5103
5048
|
*
|
|
5104
5049
|
* @chrome-returns-extra since Chrome 96
|
|
5105
5050
|
* @param dataToRemove The set of data types to remove.
|
|
5106
|
-
* @returns Resolves when deletion has completed.
|
|
5107
5051
|
*/
|
|
5108
5052
|
export function remove(
|
|
5109
5053
|
|
|
@@ -5130,7 +5074,6 @@ declare namespace chrome {
|
|
|
5130
5074
|
* Clears websites' appcache data.
|
|
5131
5075
|
*
|
|
5132
5076
|
* @chrome-returns-extra since Chrome 96
|
|
5133
|
-
* @returns Resolves when websites' appcache data has been cleared.
|
|
5134
5077
|
*/
|
|
5135
5078
|
export function removeAppcache(
|
|
5136
5079
|
|
|
@@ -5151,7 +5094,6 @@ declare namespace chrome {
|
|
|
5151
5094
|
* Clears the browser's cache.
|
|
5152
5095
|
*
|
|
5153
5096
|
* @chrome-returns-extra since Chrome 96
|
|
5154
|
-
* @returns Resolves when the browser's cache has been cleared.
|
|
5155
5097
|
*/
|
|
5156
5098
|
export function removeCache(
|
|
5157
5099
|
|
|
@@ -5172,7 +5114,6 @@ declare namespace chrome {
|
|
|
5172
5114
|
* Clears websites' cache storage data.
|
|
5173
5115
|
*
|
|
5174
5116
|
* @chrome-returns-extra since Chrome 96
|
|
5175
|
-
* @returns Resolves when websites' cache storage has been cleared.
|
|
5176
5117
|
* @since Chrome 72
|
|
5177
5118
|
*/
|
|
5178
5119
|
export function removeCacheStorage(
|
|
@@ -5196,7 +5137,6 @@ declare namespace chrome {
|
|
|
5196
5137
|
* Clears the browser's cookies and server-bound certificates modified within a particular timeframe.
|
|
5197
5138
|
*
|
|
5198
5139
|
* @chrome-returns-extra since Chrome 96
|
|
5199
|
-
* @returns Resolves when the browser's cookies and server-bound certificates have been cleared.
|
|
5200
5140
|
*/
|
|
5201
5141
|
export function removeCookies(
|
|
5202
5142
|
|
|
@@ -5217,7 +5157,6 @@ declare namespace chrome {
|
|
|
5217
5157
|
* Clears the browser's list of downloaded files (_not_ the downloaded files themselves).
|
|
5218
5158
|
*
|
|
5219
5159
|
* @chrome-returns-extra since Chrome 96
|
|
5220
|
-
* @returns Resolves when the browser's list of downloaded files has been cleared.
|
|
5221
5160
|
*/
|
|
5222
5161
|
export function removeDownloads(
|
|
5223
5162
|
|
|
@@ -5238,7 +5177,6 @@ declare namespace chrome {
|
|
|
5238
5177
|
* Clears websites' file system data.
|
|
5239
5178
|
*
|
|
5240
5179
|
* @chrome-returns-extra since Chrome 96
|
|
5241
|
-
* @returns Resolves when websites' file systems have been cleared.
|
|
5242
5180
|
*/
|
|
5243
5181
|
export function removeFileSystems(
|
|
5244
5182
|
|
|
@@ -5259,7 +5197,6 @@ declare namespace chrome {
|
|
|
5259
5197
|
* Clears the browser's stored form data (autofill).
|
|
5260
5198
|
*
|
|
5261
5199
|
* @chrome-returns-extra since Chrome 96
|
|
5262
|
-
* @returns Resolves when the browser's form data has been cleared.
|
|
5263
5200
|
*/
|
|
5264
5201
|
export function removeFormData(
|
|
5265
5202
|
|
|
@@ -5280,7 +5217,6 @@ declare namespace chrome {
|
|
|
5280
5217
|
* Clears the browser's history.
|
|
5281
5218
|
*
|
|
5282
5219
|
* @chrome-returns-extra since Chrome 96
|
|
5283
|
-
* @returns Resolves when the browser's history has cleared.
|
|
5284
5220
|
*/
|
|
5285
5221
|
export function removeHistory(
|
|
5286
5222
|
|
|
@@ -5301,7 +5237,6 @@ declare namespace chrome {
|
|
|
5301
5237
|
* Clears websites' IndexedDB data.
|
|
5302
5238
|
*
|
|
5303
5239
|
* @chrome-returns-extra since Chrome 96
|
|
5304
|
-
* @returns Resolves when websites' IndexedDB data has been cleared.
|
|
5305
5240
|
*/
|
|
5306
5241
|
export function removeIndexedDB(
|
|
5307
5242
|
|
|
@@ -5322,7 +5257,6 @@ declare namespace chrome {
|
|
|
5322
5257
|
* Clears websites' local storage data.
|
|
5323
5258
|
*
|
|
5324
5259
|
* @chrome-returns-extra since Chrome 96
|
|
5325
|
-
* @returns Resolves when websites' local storage has been cleared.
|
|
5326
5260
|
*/
|
|
5327
5261
|
export function removeLocalStorage(
|
|
5328
5262
|
|
|
@@ -5343,7 +5277,6 @@ declare namespace chrome {
|
|
|
5343
5277
|
* Clears plugins' data.
|
|
5344
5278
|
*
|
|
5345
5279
|
* @chrome-returns-extra since Chrome 96
|
|
5346
|
-
* @returns Resolves when plugins' data has been cleared.
|
|
5347
5280
|
* @deprecated Support for Flash has been removed. This function has no effect.
|
|
5348
5281
|
* @chrome-deprecated-since Chrome 88
|
|
5349
5282
|
*/
|
|
@@ -5369,7 +5302,6 @@ declare namespace chrome {
|
|
|
5369
5302
|
* Clears the browser's stored passwords.
|
|
5370
5303
|
*
|
|
5371
5304
|
* @chrome-returns-extra since Chrome 96
|
|
5372
|
-
* @returns Resolves when the browser's passwords have been cleared.
|
|
5373
5305
|
* @deprecated Support for password deletion through extensions has been removed. This function has no effect.
|
|
5374
5306
|
*/
|
|
5375
5307
|
export function removePasswords(
|
|
@@ -5393,7 +5325,6 @@ declare namespace chrome {
|
|
|
5393
5325
|
* Clears websites' service workers.
|
|
5394
5326
|
*
|
|
5395
5327
|
* @chrome-returns-extra since Chrome 96
|
|
5396
|
-
* @returns Resolves when websites' service workers have been cleared.
|
|
5397
5328
|
* @since Chrome 72
|
|
5398
5329
|
*/
|
|
5399
5330
|
export function removeServiceWorkers(
|
|
@@ -5417,7 +5348,6 @@ declare namespace chrome {
|
|
|
5417
5348
|
* Clears websites' WebSQL data.
|
|
5418
5349
|
*
|
|
5419
5350
|
* @chrome-returns-extra since Chrome 96
|
|
5420
|
-
* @returns Resolves when websites' WebSQL databases have been cleared.
|
|
5421
5351
|
*/
|
|
5422
5352
|
export function removeWebSQL(
|
|
5423
5353
|
|
|
@@ -5748,7 +5678,6 @@ declare namespace chrome {
|
|
|
5748
5678
|
*
|
|
5749
5679
|
* @chrome-returns-extra since Chrome 96
|
|
5750
5680
|
* @param details Contains the details about the requested dialog.
|
|
5751
|
-
* @returns Returns a Promise which resolves when the PIN is provided by the user. Rejects with an error if the dialog request finishes unsuccessfully (e.g. the dialog was canceled by the user or was not allowed to be shown).
|
|
5752
5681
|
* @since Chrome 57
|
|
5753
5682
|
*/
|
|
5754
5683
|
export function requestPin(
|
|
@@ -5776,7 +5705,6 @@ declare namespace chrome {
|
|
|
5776
5705
|
*
|
|
5777
5706
|
* @chrome-returns-extra since Chrome 96
|
|
5778
5707
|
* @param details Contains the details about the reason for stopping the request flow.
|
|
5779
|
-
* @returns Returns a Promise which resolves when the request to close the PIN dialog is complete.
|
|
5780
5708
|
* @since Chrome 57
|
|
5781
5709
|
*/
|
|
5782
5710
|
export function stopPinRequest(
|
|
@@ -5804,7 +5732,6 @@ declare namespace chrome {
|
|
|
5804
5732
|
*
|
|
5805
5733
|
* @chrome-returns-extra since Chrome 96
|
|
5806
5734
|
* @param details The certificates to set. Invalid certificates will be ignored.
|
|
5807
|
-
* @returns Returns a Promise which resolves upon completion.
|
|
5808
5735
|
* @since Chrome 86
|
|
5809
5736
|
*/
|
|
5810
5737
|
export function setCertificates(
|
|
@@ -6012,7 +5939,6 @@ declare namespace chrome {
|
|
|
6012
5939
|
* Returns all the registered extension commands for this extension and their shortcut (if active). Before Chrome 110, this command did not return `_execute_action`.
|
|
6013
5940
|
*
|
|
6014
5941
|
* @chrome-returns-extra since Chrome 96
|
|
6015
|
-
* @returns Resolves with a list of the registered commands.
|
|
6016
5942
|
*/
|
|
6017
5943
|
export function getAll(): Promise<Command[]>;
|
|
6018
5944
|
|
|
@@ -6738,7 +6664,6 @@ declare namespace chrome {
|
|
|
6738
6664
|
* @chrome-returns-extra since Chrome 123
|
|
6739
6665
|
* @param id The ID of the item to update.
|
|
6740
6666
|
* @param updateProperties The properties to update. Accepts the same values as the {@link contextMenus.create} function.
|
|
6741
|
-
* @returns Resolves when the context menu has been updated.
|
|
6742
6667
|
*/
|
|
6743
6668
|
export function update(
|
|
6744
6669
|
|
|
@@ -6849,7 +6774,6 @@ declare namespace chrome {
|
|
|
6849
6774
|
*
|
|
6850
6775
|
* @chrome-returns-extra since Chrome 123
|
|
6851
6776
|
* @param menuItemId The ID of the context menu item to remove.
|
|
6852
|
-
* @returns Resolves when the context menu has been removed.
|
|
6853
6777
|
*/
|
|
6854
6778
|
export function remove(
|
|
6855
6779
|
|
|
@@ -6872,7 +6796,6 @@ declare namespace chrome {
|
|
|
6872
6796
|
* Removes all context menu items added by this extension.
|
|
6873
6797
|
*
|
|
6874
6798
|
* @chrome-returns-extra since Chrome 123
|
|
6875
|
-
* @returns Resolves when removal is complete.
|
|
6876
6799
|
*/
|
|
6877
6800
|
export function removeAll(): Promise<void>;
|
|
6878
6801
|
|
|
@@ -7658,7 +7581,6 @@ declare namespace chrome {
|
|
|
7658
7581
|
* @chrome-returns-extra since Chrome 96
|
|
7659
7582
|
* @param target Debugging target to which you want to attach.
|
|
7660
7583
|
* @param requiredVersion Required debugging protocol version ("0.1"). One can only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained [here](https://developer.chrome.com/devtools/docs/debugger-protocol).
|
|
7661
|
-
* @returns Resolves once the attach operation succeeds or fails. The promise resolves with no value. If the attach fails, the promise will be rejected.
|
|
7662
7584
|
*/
|
|
7663
7585
|
export function attach(
|
|
7664
7586
|
|
|
@@ -7687,7 +7609,6 @@ declare namespace chrome {
|
|
|
7687
7609
|
*
|
|
7688
7610
|
* @chrome-returns-extra since Chrome 96
|
|
7689
7611
|
* @param target Debugging target from which you want to detach.
|
|
7690
|
-
* @returns Resolves once the detach operation succeeds or fails. The promise resolves with no value. If the detach fails, the promise will be rejected.
|
|
7691
7612
|
*/
|
|
7692
7613
|
export function detach(
|
|
7693
7614
|
|
|
@@ -7713,7 +7634,6 @@ declare namespace chrome {
|
|
|
7713
7634
|
* @param target Debugging target to which you want to send the command.
|
|
7714
7635
|
* @param method Method name. Should be one of the methods defined by the [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol).
|
|
7715
7636
|
* @param commandParams JSON object with request parameters. This object must conform to the remote debugging params scheme for given method.
|
|
7716
|
-
* @returns Response body. If an error occurs while posting the message, the promise will be rejected.
|
|
7717
7637
|
*/
|
|
7718
7638
|
export function sendCommand(
|
|
7719
7639
|
|
|
@@ -8780,7 +8700,6 @@ declare namespace chrome {
|
|
|
8780
8700
|
* * {@link MAX_NUMBER_OF_DYNAMIC_RULES} is the maximum number of dynamic rules an extension can add. The number of [unsafe rules](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#safe_rules) must not exceed {@link MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES}.
|
|
8781
8701
|
*
|
|
8782
8702
|
* @chrome-returns-extra since Chrome 91
|
|
8783
|
-
* @returns Promise that resolves once the update is complete. In case of an error, the promise will be rejected and no change will be made to the rule set. This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, internal errors, and others.
|
|
8784
8703
|
*/
|
|
8785
8704
|
export function updateDynamicRules(
|
|
8786
8705
|
|
|
@@ -8813,7 +8732,6 @@ declare namespace chrome {
|
|
|
8813
8732
|
*
|
|
8814
8733
|
* @chrome-returns-extra since Chrome 91
|
|
8815
8734
|
* @param filter An object to filter the list of fetched rules.
|
|
8816
|
-
* @returns Promise that resolves with the set of dynamic rules. The Promise may be rejected in case of transient internal errors.
|
|
8817
8735
|
*/
|
|
8818
8736
|
export function getDynamicRules(
|
|
8819
8737
|
|
|
@@ -8848,7 +8766,6 @@ declare namespace chrome {
|
|
|
8848
8766
|
* * {@link MAX_NUMBER_OF_SESSION_RULES} is the maximum number of session rules an extension can add.
|
|
8849
8767
|
*
|
|
8850
8768
|
* @chrome-returns-extra since Chrome 91
|
|
8851
|
-
* @returns Promise that resolves once the update is complete. In case of an error, the promise will be rejected and no change will be made to the rule set. This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, and others.
|
|
8852
8769
|
* @since Chrome 90
|
|
8853
8770
|
*/
|
|
8854
8771
|
export function updateSessionRules(
|
|
@@ -8877,7 +8794,6 @@ declare namespace chrome {
|
|
|
8877
8794
|
*
|
|
8878
8795
|
* @chrome-returns-extra since Chrome 91
|
|
8879
8796
|
* @param filter An object to filter the list of fetched rules.
|
|
8880
|
-
* @returns Promise that resolves with the set of session scoped rules.
|
|
8881
8797
|
* @since Chrome 90
|
|
8882
8798
|
*/
|
|
8883
8799
|
export function getSessionRules(
|
|
@@ -8911,7 +8827,6 @@ declare namespace chrome {
|
|
|
8911
8827
|
* Note that the set of enabled static rulesets is persisted across sessions but not across extension updates, i.e. the `rule_resources` manifest key will determine the set of enabled static rulesets on each extension update.
|
|
8912
8828
|
*
|
|
8913
8829
|
* @chrome-returns-extra since Chrome 91
|
|
8914
|
-
* @returns Promise that resolves once the update is complete. In case of an error, the promise will be rejected and no change will be made to the set of enabled rulesets. This can happen for multiple reasons, such as invalid ruleset IDs, rule count limit exceeded, or internal errors.
|
|
8915
8830
|
*/
|
|
8916
8831
|
export function updateEnabledRulesets(
|
|
8917
8832
|
|
|
@@ -8939,7 +8854,6 @@ declare namespace chrome {
|
|
|
8939
8854
|
* Returns the ids for the current set of enabled static rulesets.
|
|
8940
8855
|
*
|
|
8941
8856
|
* @chrome-returns-extra since Chrome 91
|
|
8942
|
-
* @returns Promise that resolves with a list of ids, where each id corresponds to an enabled static {@link Ruleset}.
|
|
8943
8857
|
*/
|
|
8944
8858
|
export function getEnabledRulesets(): Promise<string[]>;
|
|
8945
8859
|
|
|
@@ -8956,7 +8870,6 @@ declare namespace chrome {
|
|
|
8956
8870
|
/**
|
|
8957
8871
|
* Disables and enables individual static rules in a {@link Ruleset}. Changes to rules belonging to a disabled {@link Ruleset} will take effect the next time that it becomes enabled.
|
|
8958
8872
|
*
|
|
8959
|
-
* @returns Promise that resolves when the update is complete. In case of an error, the promise will be rejected and no change will be made to the enabled static rules.
|
|
8960
8873
|
* @since Chrome 111
|
|
8961
8874
|
*/
|
|
8962
8875
|
export function updateStaticRules(
|
|
@@ -8980,7 +8893,6 @@ declare namespace chrome {
|
|
|
8980
8893
|
* Returns the list of static rules in the given {@link Ruleset} that are currently disabled.
|
|
8981
8894
|
*
|
|
8982
8895
|
* @param options Specifies the ruleset to query.
|
|
8983
|
-
* @returns Promise that resolves with a list of ids that correspond to the disabled rules in that ruleset.
|
|
8984
8896
|
* @since Chrome 111
|
|
8985
8897
|
*/
|
|
8986
8898
|
export function getDisabledRuleIds(
|
|
@@ -9008,7 +8920,6 @@ declare namespace chrome {
|
|
|
9008
8920
|
*
|
|
9009
8921
|
* @chrome-returns-extra since Chrome 91
|
|
9010
8922
|
* @param filter An object to filter the list of matched rules.
|
|
9011
|
-
* @returns Promise that resolves once the list of matched rules has been fetched. In case of an error, the Promise will be rejected. This can happen for multiple reasons, such as insufficient permissions, or exceeding the quota.
|
|
9012
8923
|
*/
|
|
9013
8924
|
export function getMatchedRules(
|
|
9014
8925
|
|
|
@@ -9060,7 +8971,6 @@ declare namespace chrome {
|
|
|
9060
8971
|
*
|
|
9061
8972
|
* @chrome-returns-extra since Chrome 91
|
|
9062
8973
|
* @param regexOptions The regular expression to check.
|
|
9063
|
-
* @returns Promise that resolves with details consisting of whether the regular expression is supported and the reason if not.
|
|
9064
8974
|
* @since Chrome 87
|
|
9065
8975
|
*/
|
|
9066
8976
|
export function isRegexSupported(
|
|
@@ -9106,7 +9016,6 @@ declare namespace chrome {
|
|
|
9106
9016
|
/**
|
|
9107
9017
|
* Checks if any of the extension's declarativeNetRequest rules would match a hypothetical request. Note: Only available for unpacked extensions as this is only intended to be used during extension development.
|
|
9108
9018
|
*
|
|
9109
|
-
* @returns Promise that resolves with the details of matched rules.
|
|
9110
9019
|
* @since Chrome 103
|
|
9111
9020
|
*/
|
|
9112
9021
|
export function testMatchOutcome(
|
|
@@ -10563,7 +10472,6 @@ declare namespace chrome {
|
|
|
10563
10472
|
* Resolves the given hostname or IP address literal.
|
|
10564
10473
|
*
|
|
10565
10474
|
* @param hostname The hostname to resolve.
|
|
10566
|
-
* @returns Promise that resolves when the resolution operation completes.
|
|
10567
10475
|
*/
|
|
10568
10476
|
export function resolve(
|
|
10569
10477
|
|
|
@@ -11094,7 +11002,6 @@ declare namespace chrome {
|
|
|
11094
11002
|
*
|
|
11095
11003
|
* @chrome-returns-extra since Chrome 96
|
|
11096
11004
|
* @param options An object containing scan parameters.
|
|
11097
|
-
* @returns Returns a Promise which resolves with the scan results.
|
|
11098
11005
|
*/
|
|
11099
11006
|
export function scan(
|
|
11100
11007
|
|
|
@@ -11119,7 +11026,6 @@ declare namespace chrome {
|
|
|
11119
11026
|
* Gets the list of available scanners and returns a Promise that resolves with a {@link GetScannerListResponse} object. If a callback is passed to this function, returned data is passed to it instead.
|
|
11120
11027
|
*
|
|
11121
11028
|
* @param filter A {@link DeviceFilter} indicating which types of scanners should be returned.
|
|
11122
|
-
* @returns Returns a Promise which resolves with the result and list of scanners.
|
|
11123
11029
|
* @since Chrome 125
|
|
11124
11030
|
*/
|
|
11125
11031
|
export function getScannerList(
|
|
@@ -11146,7 +11052,6 @@ declare namespace chrome {
|
|
|
11146
11052
|
* Opens a scanner for exclusive access and returns a Promise that resolves with an {@link OpenScannerResponse} object. If a callback is passed to this function, returned data is passed to it instead.
|
|
11147
11053
|
*
|
|
11148
11054
|
* @param scannerId The ID of a scanner to be opened. This value is one returned from a previous call to {@link getScannerList}.
|
|
11149
|
-
* @returns Returns a Promise which resolves with the result.
|
|
11150
11055
|
* @since Chrome 125
|
|
11151
11056
|
*/
|
|
11152
11057
|
export function openScanner(
|
|
@@ -11173,7 +11078,6 @@ declare namespace chrome {
|
|
|
11173
11078
|
* Gets the group names and member options from a scanner previously opened by {@link openScanner}. This method returns a Promise that resolves with a {@link GetOptionGroupsResponse} object. If a callback is passed to this function, returned data is passed to it instead.
|
|
11174
11079
|
*
|
|
11175
11080
|
* @param scannerHandle The handle of an open scanner returned from a call to {@link openScanner}.
|
|
11176
|
-
* @returns Returns a Promise which resolves with the result.
|
|
11177
11081
|
* @since Chrome 125
|
|
11178
11082
|
*/
|
|
11179
11083
|
export function getOptionGroups(
|
|
@@ -11200,7 +11104,6 @@ declare namespace chrome {
|
|
|
11200
11104
|
* Closes the scanner with the passed in handle and returns a Promise that resolves with a {@link CloseScannerResponse} object. If a callback is used, the object is passed to it instead. Even if the response is not a success, the supplied handle becomes invalid and should not be used for further operations.
|
|
11201
11105
|
*
|
|
11202
11106
|
* @param scannerHandle Specifies the handle of an open scanner that was previously returned from a call to {@link openScanner}.
|
|
11203
|
-
* @returns Returns a Promise which resolves with the result.
|
|
11204
11107
|
* @since Chrome 125
|
|
11205
11108
|
*/
|
|
11206
11109
|
export function closeScanner(
|
|
@@ -11228,7 +11131,6 @@ declare namespace chrome {
|
|
|
11228
11131
|
*
|
|
11229
11132
|
* @param scannerHandle The handle of the scanner to set options on. This should be a value previously returned from a call to {@link openScanner}.
|
|
11230
11133
|
* @param options A list of `OptionSetting` objects to be applied to the scanner.
|
|
11231
|
-
* @returns Returns a Promise which resolves with the result.
|
|
11232
11134
|
* @since Chrome 125
|
|
11233
11135
|
*/
|
|
11234
11136
|
export function setOptions(
|
|
@@ -11261,7 +11163,6 @@ declare namespace chrome {
|
|
|
11261
11163
|
*
|
|
11262
11164
|
* @param scannerHandle The handle of an open scanner. This should be a value previously returned from a call to {@link openScanner}.
|
|
11263
11165
|
* @param options A {@link StartScanOptions} object indicating the options to be used for the scan. The `StartScanOptions.format` property must match one of the entries returned in the scanner's `ScannerInfo`.
|
|
11264
|
-
* @returns Returns a Promise which resolves with the result.
|
|
11265
11166
|
* @since Chrome 125
|
|
11266
11167
|
*/
|
|
11267
11168
|
export function startScan(
|
|
@@ -11293,7 +11194,6 @@ declare namespace chrome {
|
|
|
11293
11194
|
* Cancels a started scan and returns a Promise that resolves with a {@link CancelScanResponse} object. If a callback is used, the object is passed to it instead.
|
|
11294
11195
|
*
|
|
11295
11196
|
* @param job The handle of an active scan job previously returned from a call to {@link startScan}.
|
|
11296
|
-
* @returns Returns a Promise which resolves with the result.
|
|
11297
11197
|
* @since Chrome 125
|
|
11298
11198
|
*/
|
|
11299
11199
|
export function cancelScan(
|
|
@@ -11324,7 +11224,6 @@ declare namespace chrome {
|
|
|
11324
11224
|
* When the scan job completes, the response will have the result value of `EOF`. This response may contain a final non-zero `data` member.
|
|
11325
11225
|
*
|
|
11326
11226
|
* @param job Active job handle previously returned from {@link startScan}.
|
|
11327
|
-
* @returns Returns a Promise which resolves with the result.
|
|
11328
11227
|
* @since Chrome 125
|
|
11329
11228
|
*/
|
|
11330
11229
|
export function readScanData(
|
|
@@ -11897,7 +11796,6 @@ declare namespace chrome {
|
|
|
11897
11796
|
*
|
|
11898
11797
|
* @chrome-returns-extra since Chrome 96
|
|
11899
11798
|
* @param options What to download and how.
|
|
11900
|
-
* @returns Returns a Promise which resolves with the id of the new {@link DownloadItem}.
|
|
11901
11799
|
*/
|
|
11902
11800
|
export function download(
|
|
11903
11801
|
|
|
@@ -11945,7 +11843,6 @@ declare namespace chrome {
|
|
|
11945
11843
|
*
|
|
11946
11844
|
* @chrome-returns-extra since Chrome 96
|
|
11947
11845
|
* @param downloadId The id of the download to pause.
|
|
11948
|
-
* @returns Returns a Promise which resolves when the pause request is completed.
|
|
11949
11846
|
*/
|
|
11950
11847
|
export function pause(
|
|
11951
11848
|
|
|
@@ -11969,7 +11866,6 @@ declare namespace chrome {
|
|
|
11969
11866
|
*
|
|
11970
11867
|
* @chrome-returns-extra since Chrome 96
|
|
11971
11868
|
* @param downloadId The id of the download to resume.
|
|
11972
|
-
* @returns Returns a Promise which resolves when the resume request is completed.
|
|
11973
11869
|
*/
|
|
11974
11870
|
export function resume(
|
|
11975
11871
|
|
|
@@ -11993,7 +11889,6 @@ declare namespace chrome {
|
|
|
11993
11889
|
*
|
|
11994
11890
|
* @chrome-returns-extra since Chrome 96
|
|
11995
11891
|
* @param downloadId The id of the download to cancel.
|
|
11996
|
-
* @returns Returns a Promise which resolves when the cancel request is completed.
|
|
11997
11892
|
*/
|
|
11998
11893
|
export function cancel(
|
|
11999
11894
|
|
|
@@ -12017,7 +11912,6 @@ declare namespace chrome {
|
|
|
12017
11912
|
*
|
|
12018
11913
|
* @chrome-returns-extra since Chrome 96
|
|
12019
11914
|
* @param downloadId The identifier for the download.
|
|
12020
|
-
* @returns Returns a Promise which resolves with a URL to an image that represents the download.
|
|
12021
11915
|
*/
|
|
12022
11916
|
export function getFileIcon(
|
|
12023
11917
|
|
|
@@ -12130,7 +12024,6 @@ declare namespace chrome {
|
|
|
12130
12024
|
*
|
|
12131
12025
|
* @chrome-returns-extra since Chrome 96
|
|
12132
12026
|
* @param downloadId The identifier for the {@link DownloadItem}.
|
|
12133
|
-
* @returns Returns a Promise which resolves when the danger prompt dialog closes.
|
|
12134
12027
|
*/
|
|
12135
12028
|
export function acceptDanger(
|
|
12136
12029
|
|
|
@@ -12164,7 +12057,6 @@ declare namespace chrome {
|
|
|
12164
12057
|
* Change the download UI of every window associated with the current browser profile. As long as at least one extension has set {@link UiOptions.enabled} to false, the download UI will be hidden. Setting {@link UiOptions.enabled} to true while at least one other extension has disabled it will return an error through {@link runtime.lastError}. Requires the `"downloads.ui"` permission in addition to the `"downloads"` permission.
|
|
12165
12058
|
*
|
|
12166
12059
|
* @param options Encapsulate a change to the download UI.
|
|
12167
|
-
* @returns Returns a Promise which resolves when the UI update is completed.
|
|
12168
12060
|
* @since Chrome 105
|
|
12169
12061
|
*/
|
|
12170
12062
|
export function setUiOptions(
|
|
@@ -12200,7 +12092,6 @@ declare namespace chrome {
|
|
|
12200
12092
|
* Fetches the value of [the device identifier of the directory API](https://developers.google.com/admin-sdk/directory/v1/guides/manage-chrome-devices), that is generated by the server and identifies the cloud record of the device for querying in the cloud directory API. If the current user is not affiliated, returns an empty string.
|
|
12201
12093
|
*
|
|
12202
12094
|
* @chrome-returns-extra since Chrome 96
|
|
12203
|
-
* @returns Returns a Promise which resolves with the device identifier of the directory API.
|
|
12204
12095
|
*/
|
|
12205
12096
|
export function getDirectoryDeviceId(): Promise<string>;
|
|
12206
12097
|
|
|
@@ -12218,7 +12109,6 @@ declare namespace chrome {
|
|
|
12218
12109
|
* Fetches the device's serial number. Please note the purpose of this API is to administrate the device (e.g. generating Certificate Sign Requests for device-wide certificates). This API may not be used for tracking devices without the consent of the device's administrator. If the current user is not affiliated, returns an empty string.
|
|
12219
12110
|
*
|
|
12220
12111
|
* @chrome-returns-extra since Chrome 96
|
|
12221
|
-
* @returns Returns a Promise which resolves with the serial number of the device.
|
|
12222
12112
|
* @since Chrome 66
|
|
12223
12113
|
*/
|
|
12224
12114
|
export function getDeviceSerialNumber(): Promise<string>;
|
|
@@ -12239,7 +12129,6 @@ declare namespace chrome {
|
|
|
12239
12129
|
* Fetches the administrator-annotated Asset Id. If the current user is not affiliated or no Asset Id has been set by the administrator, returns an empty string.
|
|
12240
12130
|
*
|
|
12241
12131
|
* @chrome-returns-extra since Chrome 96
|
|
12242
|
-
* @returns Returns a Promise which resolves with the Asset ID of the device.
|
|
12243
12132
|
* @since Chrome 66
|
|
12244
12133
|
*/
|
|
12245
12134
|
export function getDeviceAssetId(): Promise<string>;
|
|
@@ -12260,7 +12149,6 @@ declare namespace chrome {
|
|
|
12260
12149
|
* Fetches the administrator-annotated Location. If the current user is not affiliated or no Annotated Location has been set by the administrator, returns an empty string.
|
|
12261
12150
|
*
|
|
12262
12151
|
* @chrome-returns-extra since Chrome 96
|
|
12263
|
-
* @returns Returns a Promise which resolves with the Annotated Location of the device.
|
|
12264
12152
|
* @since Chrome 66
|
|
12265
12153
|
*/
|
|
12266
12154
|
export function getDeviceAnnotatedLocation(): Promise<string>;
|
|
@@ -12281,7 +12169,6 @@ declare namespace chrome {
|
|
|
12281
12169
|
* Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
|
|
12282
12170
|
*
|
|
12283
12171
|
* @chrome-returns-extra since Chrome 96
|
|
12284
|
-
* @returns Returns a Promise which resolves with the hostname of the device.
|
|
12285
12172
|
* @since Chrome 82
|
|
12286
12173
|
*/
|
|
12287
12174
|
export function getDeviceHostname(): Promise<string>;
|
|
@@ -12319,7 +12206,6 @@ declare namespace chrome {
|
|
|
12319
12206
|
* Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
|
|
12320
12207
|
*
|
|
12321
12208
|
* @chrome-returns-extra since Chrome 96
|
|
12322
|
-
* @returns Returns a Promise which resolves with the hardware platform info.
|
|
12323
12209
|
*/
|
|
12324
12210
|
export function getHardwarePlatformInfo(): Promise<HardwarePlatformInfo>;
|
|
12325
12211
|
|
|
@@ -12356,7 +12242,6 @@ declare namespace chrome {
|
|
|
12356
12242
|
* Sets the current input method. This function only changes the current input method to an enabled input method. Input methods can be enabled by enterprise polices. If the input method ID is invalid, or not enabled, {@link runtime.lastError} will be set with a failure reason.
|
|
12357
12243
|
*
|
|
12358
12244
|
* @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
|
|
12359
|
-
* @returns Returns a Promise which resolves when the input method is changed, or rejects if there is an error.
|
|
12360
12245
|
*/
|
|
12361
12246
|
export function setCurrentInputMethod(
|
|
12362
12247
|
|
|
@@ -12432,7 +12317,6 @@ declare namespace chrome {
|
|
|
12432
12317
|
* Retrieves the network details of the device's default network. If the user is not affiliated or the device is not connected to a network, {@link runtime.lastError} will be set with a failure reason.
|
|
12433
12318
|
*
|
|
12434
12319
|
* @chrome-returns-extra since Chrome 96
|
|
12435
|
-
* @returns Returns a Promise which resolves with the device's default network's {@link NetworkDetails}.
|
|
12436
12320
|
*/
|
|
12437
12321
|
export function getNetworkDetails(): Promise<NetworkDetails>;
|
|
12438
12322
|
|
|
@@ -12536,7 +12420,6 @@ declare namespace chrome {
|
|
|
12536
12420
|
* Returns the available Tokens. In a regular user's session the list will always contain the user's token with `id` `"user"`. If a system-wide TPM token is available, the returned list will also contain the system-wide token with `id` `"system"`. The system-wide token will be the same for all sessions on this device (device in the sense of e.g. a Chromebook).
|
|
12537
12421
|
*
|
|
12538
12422
|
* @chrome-returns-extra since Chrome 131
|
|
12539
|
-
* @returns Invoked by `getTokens` with the list of available Tokens.
|
|
12540
12423
|
*/
|
|
12541
12424
|
export function getTokens(): Promise<Token[]>;
|
|
12542
12425
|
|
|
@@ -12558,7 +12441,6 @@ declare namespace chrome {
|
|
|
12558
12441
|
*
|
|
12559
12442
|
* @chrome-returns-extra since Chrome 131
|
|
12560
12443
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12561
|
-
* @returns Returns a Promise which resolves with the list of the available certificates.
|
|
12562
12444
|
*/
|
|
12563
12445
|
export function getCertificates(
|
|
12564
12446
|
|
|
@@ -12588,7 +12470,6 @@ declare namespace chrome {
|
|
|
12588
12470
|
* @chrome-returns-extra since Chrome 131
|
|
12589
12471
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12590
12472
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
12591
|
-
* @returns Returns a Promise which resolves when this operation is finished.
|
|
12592
12473
|
*/
|
|
12593
12474
|
export function importCertificate(
|
|
12594
12475
|
|
|
@@ -12618,7 +12499,6 @@ declare namespace chrome {
|
|
|
12618
12499
|
* @chrome-returns-extra since Chrome 131
|
|
12619
12500
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12620
12501
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
12621
|
-
* @returns Returns a Promise which resolves when this operation is finished.
|
|
12622
12502
|
*/
|
|
12623
12503
|
export function removeCertificate(
|
|
12624
12504
|
|
|
@@ -12651,7 +12531,6 @@ declare namespace chrome {
|
|
|
12651
12531
|
*
|
|
12652
12532
|
* @chrome-returns-extra since Chrome 131
|
|
12653
12533
|
* @param options Object containing the fields defined in {@link ChallengeKeyOptions}.
|
|
12654
|
-
* @returns Returns a Promise which resolves with the challenge response.
|
|
12655
12534
|
* @since Chrome 110
|
|
12656
12535
|
*/
|
|
12657
12536
|
export function challengeKey(
|
|
@@ -12687,7 +12566,6 @@ declare namespace chrome {
|
|
|
12687
12566
|
* @chrome-returns-extra since Chrome 131
|
|
12688
12567
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
12689
12568
|
* @param registerKey If set, the current Enterprise Machine Key is registered with the `"system"` token and relinquishes the Enterprise Machine Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise Machine Key.
|
|
12690
|
-
* @returns Returns a Promise which resolves with the challenge response.
|
|
12691
12569
|
* @deprecated Use {@link challengeKey} instead.
|
|
12692
12570
|
* @since Chrome 50
|
|
12693
12571
|
* @chrome-deprecated-since Chrome 110
|
|
@@ -12734,7 +12612,6 @@ declare namespace chrome {
|
|
|
12734
12612
|
* @chrome-returns-extra since Chrome 131
|
|
12735
12613
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
12736
12614
|
* @param registerKey If set, the current Enterprise User Key is registered with the `"user"` token and relinquishes the Enterprise User Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise User Key.
|
|
12737
|
-
* @returns Returns a Promise which resolves with the challenge response.
|
|
12738
12615
|
* @deprecated Use {@link challengeKey} instead.
|
|
12739
12616
|
* @since Chrome 50
|
|
12740
12617
|
* @chrome-deprecated-since Chrome 110
|
|
@@ -15070,7 +14947,6 @@ declare namespace chrome {
|
|
|
15070
14947
|
* In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
|
|
15071
14948
|
*
|
|
15072
14949
|
* @chrome-returns-extra since Chrome 96
|
|
15073
|
-
* @returns A generic result callback to indicate success or failure.
|
|
15074
14950
|
*/
|
|
15075
14951
|
export function mount(
|
|
15076
14952
|
|
|
@@ -15097,7 +14973,6 @@ declare namespace chrome {
|
|
|
15097
14973
|
* In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
|
|
15098
14974
|
*
|
|
15099
14975
|
* @chrome-returns-extra since Chrome 96
|
|
15100
|
-
* @returns A generic result callback to indicate success or failure.
|
|
15101
14976
|
*/
|
|
15102
14977
|
export function unmount(
|
|
15103
14978
|
|
|
@@ -15120,7 +14995,6 @@ declare namespace chrome {
|
|
|
15120
14995
|
* Returns all file systems mounted by the extension.
|
|
15121
14996
|
*
|
|
15122
14997
|
* @chrome-returns-extra since Chrome 96
|
|
15123
|
-
* @returns Callback to receive the result of {@link getAll} function.
|
|
15124
14998
|
*/
|
|
15125
14999
|
export function getAll(): Promise<FileSystemInfo[]>;
|
|
15126
15000
|
|
|
@@ -15138,7 +15012,6 @@ declare namespace chrome {
|
|
|
15138
15012
|
* Returns information about a file system with the passed `fileSystemId`.
|
|
15139
15013
|
*
|
|
15140
15014
|
* @chrome-returns-extra since Chrome 96
|
|
15141
|
-
* @returns Callback to receive the result of {@link get} function.
|
|
15142
15015
|
*/
|
|
15143
15016
|
export function get(
|
|
15144
15017
|
|
|
@@ -15171,7 +15044,6 @@ declare namespace chrome {
|
|
|
15171
15044
|
* In case of an error, {@link runtime.lastError} will be set will a corresponding error code.
|
|
15172
15045
|
*
|
|
15173
15046
|
* @chrome-returns-extra since Chrome 96
|
|
15174
|
-
* @returns A generic result callback to indicate success or failure.
|
|
15175
15047
|
* @since Chrome 45
|
|
15176
15048
|
*/
|
|
15177
15049
|
export function notify(
|
|
@@ -15878,7 +15750,6 @@ declare namespace chrome {
|
|
|
15878
15750
|
*
|
|
15879
15751
|
* @chrome-returns-extra since Chrome 116
|
|
15880
15752
|
* @param senderIds A list of server IDs that are allowed to send messages to the application. It should contain at least one and no more than 100 sender IDs.
|
|
15881
|
-
* @returns Resolves when registration completes.
|
|
15882
15753
|
*/
|
|
15883
15754
|
export function register(
|
|
15884
15755
|
|
|
@@ -15906,7 +15777,6 @@ declare namespace chrome {
|
|
|
15906
15777
|
* Unregisters the application from FCM.
|
|
15907
15778
|
*
|
|
15908
15779
|
* @chrome-returns-extra since Chrome 116
|
|
15909
|
-
* @returns Resolves after the unregistration completes. Unregistration was successful if the promise does not reject.
|
|
15910
15780
|
*/
|
|
15911
15781
|
export function unregister(): Promise<void>;
|
|
15912
15782
|
|
|
@@ -15923,7 +15793,6 @@ declare namespace chrome {
|
|
|
15923
15793
|
*
|
|
15924
15794
|
* @chrome-returns-extra since Chrome 116
|
|
15925
15795
|
* @param message A message to send to the other party via FCM.
|
|
15926
|
-
* @returns Resolves after the message is successfully queued for sending. If an error occurs, the promise will be rejected.
|
|
15927
15796
|
*/
|
|
15928
15797
|
export function send(
|
|
15929
15798
|
|
|
@@ -16970,7 +16839,6 @@ declare namespace chrome {
|
|
|
16970
16839
|
*
|
|
16971
16840
|
* @chrome-returns-extra since Chrome 105
|
|
16972
16841
|
* @param details Token options.
|
|
16973
|
-
* @returns Returns a Promise which resolves with an OAuth2 access token as specified by the manifest, or rejects if there was an error. The `grantedScopes` parameter is populated since Chrome 87. When available, this parameter contains the list of granted scopes corresponding with the returned token.
|
|
16974
16842
|
*/
|
|
16975
16843
|
export function getAuthToken(
|
|
16976
16844
|
|
|
@@ -17009,7 +16877,6 @@ declare namespace chrome {
|
|
|
17009
16877
|
*
|
|
17010
16878
|
* @chrome-returns-extra since Chrome 106
|
|
17011
16879
|
* @param details Profile options.
|
|
17012
|
-
* @returns Returns a Promise which resolves with the `ProfileUserInfo` of the primary Chrome account, or an empty `ProfileUserInfo` if the account with given `details` doesn't exist.
|
|
17013
16880
|
*/
|
|
17014
16881
|
export function getProfileUserInfo(
|
|
17015
16882
|
|
|
@@ -17047,7 +16914,6 @@ declare namespace chrome {
|
|
|
17047
16914
|
*
|
|
17048
16915
|
* @chrome-returns-extra since Chrome 106
|
|
17049
16916
|
* @param details Token information.
|
|
17050
|
-
* @returns Returns a Promise which resolves when the token has been removed from the cache.
|
|
17051
16917
|
*/
|
|
17052
16918
|
export function removeCachedAuthToken(
|
|
17053
16919
|
|
|
@@ -17076,7 +16942,6 @@ declare namespace chrome {
|
|
|
17076
16942
|
* * De-authorizes the user from all auth flows
|
|
17077
16943
|
*
|
|
17078
16944
|
* @chrome-returns-extra since Chrome 106
|
|
17079
|
-
* @returns Returns a Promise which resolves when the state has been cleared.
|
|
17080
16945
|
* @since Chrome 87
|
|
17081
16946
|
*/
|
|
17082
16947
|
export function clearAllCachedAuthTokens(): Promise<void>;
|
|
@@ -17104,7 +16969,6 @@ declare namespace chrome {
|
|
|
17104
16969
|
*
|
|
17105
16970
|
* @chrome-returns-extra since Chrome 106
|
|
17106
16971
|
* @param details WebAuth flow options.
|
|
17107
|
-
* @returns Returns a Promise which resolves with the URL redirected back to your application.
|
|
17108
16972
|
*/
|
|
17109
16973
|
export function launchWebAuthFlow(
|
|
17110
16974
|
|
|
@@ -17621,7 +17485,6 @@ declare namespace chrome {
|
|
|
17621
17485
|
* Set the current composition. If this extension does not own the active IME, this fails.
|
|
17622
17486
|
*
|
|
17623
17487
|
* @chrome-returns-extra since Chrome 111
|
|
17624
|
-
* @returns Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
17625
17488
|
*/
|
|
17626
17489
|
export function setComposition(
|
|
17627
17490
|
|
|
@@ -17738,7 +17601,6 @@ declare namespace chrome {
|
|
|
17738
17601
|
* Clear the current composition. If this extension does not own the active IME, this fails.
|
|
17739
17602
|
*
|
|
17740
17603
|
* @chrome-returns-extra since Chrome 111
|
|
17741
|
-
* @returns Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
17742
17604
|
*/
|
|
17743
17605
|
export function clearComposition(
|
|
17744
17606
|
|
|
@@ -17773,7 +17635,6 @@ declare namespace chrome {
|
|
|
17773
17635
|
* Commits the provided text to the current input.
|
|
17774
17636
|
*
|
|
17775
17637
|
* @chrome-returns-extra since Chrome 111
|
|
17776
|
-
* @returns Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
17777
17638
|
*/
|
|
17778
17639
|
export function commitText(
|
|
17779
17640
|
|
|
@@ -17818,7 +17679,6 @@ declare namespace chrome {
|
|
|
17818
17679
|
* Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
|
|
17819
17680
|
*
|
|
17820
17681
|
* @chrome-returns-extra since Chrome 111
|
|
17821
|
-
* @returns Resolves when the operation completes.
|
|
17822
17682
|
*/
|
|
17823
17683
|
export function sendKeyEvents(
|
|
17824
17684
|
|
|
@@ -17866,7 +17726,6 @@ declare namespace chrome {
|
|
|
17866
17726
|
* Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
|
|
17867
17727
|
*
|
|
17868
17728
|
* @chrome-returns-extra since Chrome 111
|
|
17869
|
-
* @returns Resolves when the operation completes.
|
|
17870
17729
|
*/
|
|
17871
17730
|
export function setCandidateWindowProperties(
|
|
17872
17731
|
|
|
@@ -18005,7 +17864,6 @@ declare namespace chrome {
|
|
|
18005
17864
|
* Sets the current candidate list. This fails if this extension doesn't own the active IME
|
|
18006
17865
|
*
|
|
18007
17866
|
* @chrome-returns-extra since Chrome 111
|
|
18008
|
-
* @returns Resolves when the operation completes.
|
|
18009
17867
|
*/
|
|
18010
17868
|
export function setCandidates(
|
|
18011
17869
|
|
|
@@ -18134,7 +17992,6 @@ declare namespace chrome {
|
|
|
18134
17992
|
* Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
|
|
18135
17993
|
*
|
|
18136
17994
|
* @chrome-returns-extra since Chrome 111
|
|
18137
|
-
* @returns Resolves when the operation completes
|
|
18138
17995
|
*/
|
|
18139
17996
|
export function setCursorPosition(
|
|
18140
17997
|
|
|
@@ -18179,7 +18036,6 @@ declare namespace chrome {
|
|
|
18179
18036
|
* Shows/Hides an assistive window with the given properties.
|
|
18180
18037
|
*
|
|
18181
18038
|
* @chrome-returns-extra since Chrome 111
|
|
18182
|
-
* @returns Resolves when the operation completes.
|
|
18183
18039
|
* @since Chrome 85
|
|
18184
18040
|
*/
|
|
18185
18041
|
export function setAssistiveWindowProperties(
|
|
@@ -18227,7 +18083,6 @@ declare namespace chrome {
|
|
|
18227
18083
|
* Highlights/Unhighlights a button in an assistive window.
|
|
18228
18084
|
*
|
|
18229
18085
|
* @chrome-returns-extra since Chrome 111
|
|
18230
|
-
* @returns Resolves when the operation completes. On failure, the promise will be rejected.
|
|
18231
18086
|
* @since Chrome 86
|
|
18232
18087
|
*/
|
|
18233
18088
|
export function setAssistiveWindowButtonHighlighted(
|
|
@@ -18323,7 +18178,6 @@ declare namespace chrome {
|
|
|
18323
18178
|
* Updates the state of the MenuItems specified
|
|
18324
18179
|
*
|
|
18325
18180
|
* @chrome-returns-extra since Chrome 111
|
|
18326
|
-
* @returns Resolves when the operation completes
|
|
18327
18181
|
*/
|
|
18328
18182
|
export function updateMenuItems(
|
|
18329
18183
|
|
|
@@ -18344,7 +18198,6 @@ declare namespace chrome {
|
|
|
18344
18198
|
* Deletes the text around the caret.
|
|
18345
18199
|
*
|
|
18346
18200
|
* @chrome-returns-extra since Chrome 111
|
|
18347
|
-
* @returns Resolves when the operation completes.
|
|
18348
18201
|
*/
|
|
18349
18202
|
export function deleteSurroundingText(
|
|
18350
18203
|
|
|
@@ -18434,7 +18287,6 @@ declare namespace chrome {
|
|
|
18434
18287
|
* Retrieves an identifier for the app instance. The instance ID will be returned by the `callback`. The same ID will be returned as long as the application identity has not been revoked or expired.
|
|
18435
18288
|
*
|
|
18436
18289
|
* @chrome-returns-extra since Chrome 96
|
|
18437
|
-
* @returns Resolves when the retrieval completes.
|
|
18438
18290
|
*/
|
|
18439
18291
|
export function getID(): Promise<string>;
|
|
18440
18292
|
|
|
@@ -18455,7 +18307,6 @@ declare namespace chrome {
|
|
|
18455
18307
|
* Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
|
|
18456
18308
|
*
|
|
18457
18309
|
* @chrome-returns-extra since Chrome 96
|
|
18458
|
-
* @returns Resolves when the retrieval completes.
|
|
18459
18310
|
*/
|
|
18460
18311
|
export function getCreationTime(): Promise<number>;
|
|
18461
18312
|
|
|
@@ -18477,7 +18328,6 @@ declare namespace chrome {
|
|
|
18477
18328
|
*
|
|
18478
18329
|
* @chrome-returns-extra since Chrome 96
|
|
18479
18330
|
* @param getTokenParams Parameters for getToken.
|
|
18480
|
-
* @returns Resolves when the retrieval completes.
|
|
18481
18331
|
*/
|
|
18482
18332
|
export function getToken(
|
|
18483
18333
|
|
|
@@ -18554,7 +18404,6 @@ declare namespace chrome {
|
|
|
18554
18404
|
*
|
|
18555
18405
|
* @chrome-returns-extra since Chrome 96
|
|
18556
18406
|
* @param deleteTokenParams Parameters for deleteToken.
|
|
18557
|
-
* @returns Resolves when the token deletion completes. The token was revoked successfully if the promise does not reject.
|
|
18558
18407
|
*/
|
|
18559
18408
|
export function deleteToken(
|
|
18560
18409
|
|
|
@@ -18607,7 +18456,6 @@ declare namespace chrome {
|
|
|
18607
18456
|
* Resets the app instance identifier and revokes all tokens associated with it.
|
|
18608
18457
|
*
|
|
18609
18458
|
* @chrome-returns-extra since Chrome 96
|
|
18610
|
-
* @returns Resolves when the deletion completes. The instance identifier was revoked successfully if the promise does not reject.
|
|
18611
18459
|
*/
|
|
18612
18460
|
export function deleteID(): Promise<void>;
|
|
18613
18461
|
|
|
@@ -19414,7 +19262,6 @@ declare namespace chrome {
|
|
|
19414
19262
|
* Immediately issues a multicast DNS query for all service types. `callback` is invoked immediately. At a later time, queries will be sent, and any service events will be fired.
|
|
19415
19263
|
*
|
|
19416
19264
|
* @chrome-returns-extra since Chrome 96
|
|
19417
|
-
* @returns Callback invoked after ForceDiscovery() has started.
|
|
19418
19265
|
* @since Chrome 45
|
|
19419
19266
|
*/
|
|
19420
19267
|
export function forceDiscovery(): Promise<void>;
|
|
@@ -21380,7 +21227,6 @@ declare namespace chrome {
|
|
|
21380
21227
|
*
|
|
21381
21228
|
* @chrome-returns-extra since Chrome 125
|
|
21382
21229
|
* @param networkGuid The GUID of the network to get properties for.
|
|
21383
|
-
* @returns Called with the network properties when received.
|
|
21384
21230
|
*/
|
|
21385
21231
|
export function getProperties(
|
|
21386
21232
|
|
|
@@ -21406,7 +21252,6 @@ declare namespace chrome {
|
|
|
21406
21252
|
*
|
|
21407
21253
|
* @chrome-returns-extra since Chrome 125
|
|
21408
21254
|
* @param networkGuid The GUID of the network to get properties for.
|
|
21409
|
-
* @returns Called with the managed network properties when received.
|
|
21410
21255
|
*/
|
|
21411
21256
|
export function getManagedProperties(
|
|
21412
21257
|
|
|
@@ -21432,7 +21277,6 @@ declare namespace chrome {
|
|
|
21432
21277
|
*
|
|
21433
21278
|
* @chrome-returns-extra since Chrome 125
|
|
21434
21279
|
* @param networkGuid The GUID of the network to get properties for.
|
|
21435
|
-
* @returns Called immediately with the network state properties.
|
|
21436
21280
|
*/
|
|
21437
21281
|
export function getState(
|
|
21438
21282
|
|
|
@@ -21459,7 +21303,6 @@ declare namespace chrome {
|
|
|
21459
21303
|
* @chrome-returns-extra since Chrome 125
|
|
21460
21304
|
* @param networkGuid The GUID of the network to set properties for.
|
|
21461
21305
|
* @param properties The properties to set.
|
|
21462
|
-
* @returns Called when the operation has completed.
|
|
21463
21306
|
*/
|
|
21464
21307
|
export function setProperties(
|
|
21465
21308
|
|
|
@@ -21493,7 +21336,6 @@ declare namespace chrome {
|
|
|
21493
21336
|
|
|
21494
21337
|
**This option is exposed only to Chrome's Web UI.** When called by apps, `false` is the only allowed value.
|
|
21495
21338
|
* @param properties The properties to configure the new network with.
|
|
21496
|
-
* @returns Called with the GUID for the new network configuration once the network has been created.
|
|
21497
21339
|
*/
|
|
21498
21340
|
export function createNetwork(
|
|
21499
21341
|
|
|
@@ -21530,7 +21372,6 @@ declare namespace chrome {
|
|
|
21530
21372
|
*
|
|
21531
21373
|
* @chrome-returns-extra since Chrome 125
|
|
21532
21374
|
* @param networkGuid The GUID of the network to forget.
|
|
21533
|
-
* @returns Called when the operation has completed.
|
|
21534
21375
|
*/
|
|
21535
21376
|
export function forgetNetwork(
|
|
21536
21377
|
|
|
@@ -21556,7 +21397,6 @@ declare namespace chrome {
|
|
|
21556
21397
|
*
|
|
21557
21398
|
* @chrome-returns-extra since Chrome 125
|
|
21558
21399
|
* @param filter Describes which networks to return.
|
|
21559
|
-
* @returns Called with a dictionary of networks and their state properties when received.
|
|
21560
21400
|
*/
|
|
21561
21401
|
export function getNetworks(
|
|
21562
21402
|
|
|
@@ -21581,7 +21421,6 @@ declare namespace chrome {
|
|
|
21581
21421
|
* Returns states of available networking devices.
|
|
21582
21422
|
*
|
|
21583
21423
|
* @chrome-returns-extra since Chrome 125
|
|
21584
|
-
* @returns Called with a list of devices and their state.
|
|
21585
21424
|
*/
|
|
21586
21425
|
export function getDeviceStates(): Promise<DeviceStateProperties[]>;
|
|
21587
21426
|
|
|
@@ -21633,7 +21472,6 @@ declare namespace chrome {
|
|
|
21633
21472
|
*
|
|
21634
21473
|
* @chrome-returns-extra since Chrome 125
|
|
21635
21474
|
* @param networkGuid The GUID of the network to connect to.
|
|
21636
|
-
* @returns Called when the connect request has been sent. Note: the connection may not have completed. Observe {@link onNetworksChanged} to be notified when a network state changes. If the connect request immediately failed (e.g. the network is unconfigured), {@link runtime.lastError} will be set with a failure reason.
|
|
21637
21475
|
*/
|
|
21638
21476
|
export function startConnect(
|
|
21639
21477
|
|
|
@@ -21657,7 +21495,6 @@ declare namespace chrome {
|
|
|
21657
21495
|
*
|
|
21658
21496
|
* @chrome-returns-extra since Chrome 125
|
|
21659
21497
|
* @param networkGuid The GUID of the network to disconnect from.
|
|
21660
|
-
* @returns Called when the disconnect request has been sent. See note for {@link startConnect}.
|
|
21661
21498
|
*/
|
|
21662
21499
|
export function startDisconnect(
|
|
21663
21500
|
|
|
@@ -21681,7 +21518,6 @@ declare namespace chrome {
|
|
|
21681
21518
|
*
|
|
21682
21519
|
* @chrome-returns-extra since Chrome 125
|
|
21683
21520
|
* @param networkGuid The GUID of the network to get captive portal status for.
|
|
21684
|
-
* @returns A callback function that returns the results of the query for network captive portal status.
|
|
21685
21521
|
*/
|
|
21686
21522
|
export function getCaptivePortalStatus(
|
|
21687
21523
|
|
|
@@ -21915,7 +21751,6 @@ declare namespace chrome {
|
|
|
21915
21751
|
|
|
21916
21752
|
The `notificationId` parameter is required before Chrome 42.
|
|
21917
21753
|
* @param options Contents of the notification.
|
|
21918
|
-
* @returns Returns a Promise which resolves with the notification id (either supplied or generated) that represents the created notification.
|
|
21919
21754
|
*/
|
|
21920
21755
|
export function create(
|
|
21921
21756
|
|
|
@@ -21929,7 +21764,6 @@ declare namespace chrome {
|
|
|
21929
21764
|
*
|
|
21930
21765
|
* @chrome-returns-extra since Chrome 116
|
|
21931
21766
|
* @param options Contents of the notification.
|
|
21932
|
-
* @returns Returns a Promise which resolves with the notification id (either supplied or generated) that represents the created notification.
|
|
21933
21767
|
*/
|
|
21934
21768
|
export function create(
|
|
21935
21769
|
|
|
@@ -21977,7 +21811,6 @@ declare namespace chrome {
|
|
|
21977
21811
|
* @chrome-returns-extra since Chrome 116
|
|
21978
21812
|
* @param notificationId The id of the notification to be updated. This is returned by {@link notifications.create} method.
|
|
21979
21813
|
* @param options Contents of the notification to update to.
|
|
21980
|
-
* @returns Returns a Promise which resolves to indicate whether a matching notification existed.
|
|
21981
21814
|
*/
|
|
21982
21815
|
export function update(
|
|
21983
21816
|
|
|
@@ -22008,7 +21841,6 @@ declare namespace chrome {
|
|
|
22008
21841
|
*
|
|
22009
21842
|
* @chrome-returns-extra since Chrome 116
|
|
22010
21843
|
* @param notificationId The id of the notification to be cleared. This is returned by {@link notifications.create} method.
|
|
22011
|
-
* @returns Returns a Promise which resolves to indicate whether a matching notification existed.
|
|
22012
21844
|
*/
|
|
22013
21845
|
export function clear(
|
|
22014
21846
|
|
|
@@ -22033,7 +21865,6 @@ declare namespace chrome {
|
|
|
22033
21865
|
* Retrieves all the notifications of this app or extension.
|
|
22034
21866
|
*
|
|
22035
21867
|
* @chrome-returns-extra since Chrome 116
|
|
22036
|
-
* @returns Returns a Promise which resolves with the set of notification\_ids currently in the system.
|
|
22037
21868
|
*/
|
|
22038
21869
|
export function getAll(): Promise<{[name: string]: any}>;
|
|
22039
21870
|
|
|
@@ -22051,7 +21882,6 @@ declare namespace chrome {
|
|
|
22051
21882
|
* Retrieves whether the user has enabled notifications from this app or extension.
|
|
22052
21883
|
*
|
|
22053
21884
|
* @chrome-returns-extra since Chrome 116
|
|
22054
|
-
* @returns Returns a Promise which resolves with the current permission level.
|
|
22055
21885
|
*/
|
|
22056
21886
|
export function getPermissionLevel(): Promise<PermissionLevel>;
|
|
22057
21887
|
|
|
@@ -22137,7 +21967,6 @@ declare namespace chrome {
|
|
|
22137
21967
|
* Creates a new offscreen document for the extension.
|
|
22138
21968
|
*
|
|
22139
21969
|
* @param parameters The parameters describing the offscreen document to create.
|
|
22140
|
-
* @returns Promise that resolves when the offscreen document is created and has completed its initial page load.
|
|
22141
21970
|
*/
|
|
22142
21971
|
export function createDocument(
|
|
22143
21972
|
|
|
@@ -22158,8 +21987,6 @@ declare namespace chrome {
|
|
|
22158
21987
|
|
|
22159
21988
|
/**
|
|
22160
21989
|
* Closes the currently-open offscreen document for the extension.
|
|
22161
|
-
*
|
|
22162
|
-
* @returns Promise that resolves when the offscreen document has been closed.
|
|
22163
21990
|
*/
|
|
22164
21991
|
export function closeDocument(): Promise<void>;
|
|
22165
21992
|
|
|
@@ -22585,7 +22412,6 @@ declare namespace chrome {
|
|
|
22585
22412
|
* Saves the content of the tab with given id as MHTML.
|
|
22586
22413
|
*
|
|
22587
22414
|
* @chrome-returns-extra since Chrome 116
|
|
22588
|
-
* @returns Resolves when the MHTML has been generated.
|
|
22589
22415
|
*/
|
|
22590
22416
|
export function saveAsMHTML(
|
|
22591
22417
|
|
|
@@ -23977,7 +23803,6 @@ declare namespace chrome {
|
|
|
23977
23803
|
* Returns the ID of the renderer process for the specified tab.
|
|
23978
23804
|
*
|
|
23979
23805
|
* @param tabId The ID of the tab for which the renderer process ID is to be returned.
|
|
23980
|
-
* @returns A callback to return the ID of the renderer process of a tab.
|
|
23981
23806
|
*/
|
|
23982
23807
|
export function getProcessIdForTab(
|
|
23983
23808
|
|
|
@@ -24005,7 +23830,6 @@ declare namespace chrome {
|
|
|
24005
23830
|
* Terminates the specified renderer process. Equivalent to visiting about:crash, but without changing the tab's URL.
|
|
24006
23831
|
*
|
|
24007
23832
|
* @param processId The ID of the process to be terminated.
|
|
24008
|
-
* @returns A callback to report the status of the termination.
|
|
24009
23833
|
*/
|
|
24010
23834
|
export function terminate(
|
|
24011
23835
|
|
|
@@ -24034,7 +23858,6 @@ declare namespace chrome {
|
|
|
24034
23858
|
*
|
|
24035
23859
|
* @param processIds The list of process IDs or single process ID for which to return the process information. An empty list indicates all processes are requested.
|
|
24036
23860
|
* @param includeMemory True if detailed memory usage is required. Note, collecting memory usage information incurs extra CPU usage and should only be queried for when needed.
|
|
24037
|
-
* @returns A callback called when the processes information is collected.
|
|
24038
23861
|
*/
|
|
24039
23862
|
export function getProcessInfo(
|
|
24040
23863
|
|
|
@@ -24363,7 +24186,6 @@ declare namespace chrome {
|
|
|
24363
24186
|
* Adds an entry to the reading list if it does not exist.
|
|
24364
24187
|
*
|
|
24365
24188
|
* @param entry The entry to add to the reading list.
|
|
24366
|
-
* @returns Resolves once the entry has been added.
|
|
24367
24189
|
*/
|
|
24368
24190
|
export function addEntry(
|
|
24369
24191
|
|
|
@@ -24386,7 +24208,6 @@ declare namespace chrome {
|
|
|
24386
24208
|
* Removes an entry from the reading list if it exists.
|
|
24387
24209
|
*
|
|
24388
24210
|
* @param info The entry to remove from the reading list.
|
|
24389
|
-
* @returns Resolves once the entry has been removed.
|
|
24390
24211
|
*/
|
|
24391
24212
|
export function removeEntry(
|
|
24392
24213
|
|
|
@@ -24409,7 +24230,6 @@ declare namespace chrome {
|
|
|
24409
24230
|
* Updates a reading list entry if it exists.
|
|
24410
24231
|
*
|
|
24411
24232
|
* @param info The entry to update.
|
|
24412
|
-
* @returns Resolves once the matched entries have been updated.
|
|
24413
24233
|
*/
|
|
24414
24234
|
export function updateEntry(
|
|
24415
24235
|
|
|
@@ -24432,7 +24252,6 @@ declare namespace chrome {
|
|
|
24432
24252
|
* Retrieves all entries that match the `QueryInfo` properties. Properties that are not provided will not be matched.
|
|
24433
24253
|
*
|
|
24434
24254
|
* @param info The properties to search for.
|
|
24435
|
-
* @returns Resolves once the entries have been matched.
|
|
24436
24255
|
*/
|
|
24437
24256
|
export function query(
|
|
24438
24257
|
|
|
@@ -25563,7 +25382,6 @@ declare namespace chrome {
|
|
|
25563
25382
|
*
|
|
25564
25383
|
* @chrome-returns-extra since Chrome 90
|
|
25565
25384
|
* @param injection The details of the script which to inject.
|
|
25566
|
-
* @returns Returns a Promise which resolves upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.
|
|
25567
25385
|
*/
|
|
25568
25386
|
export function executeScript(
|
|
25569
25387
|
|
|
@@ -25589,7 +25407,6 @@ declare namespace chrome {
|
|
|
25589
25407
|
*
|
|
25590
25408
|
* @chrome-returns-extra since Chrome 90
|
|
25591
25409
|
* @param injection The details of the styles to insert.
|
|
25592
|
-
* @returns Returns a Promise which resolves upon completion of the insertion.
|
|
25593
25410
|
*/
|
|
25594
25411
|
export function insertCSS(
|
|
25595
25412
|
|
|
@@ -25612,7 +25429,6 @@ declare namespace chrome {
|
|
|
25612
25429
|
* Removes a CSS stylesheet that was previously inserted by this extension from a target context.
|
|
25613
25430
|
*
|
|
25614
25431
|
* @param injection The details of the styles to remove. Note that the `css`, `files`, and `origin` properties must exactly match the stylesheet inserted through {@link insertCSS}. Attempting to remove a non-existent stylesheet is a no-op.
|
|
25615
|
-
* @returns Returns a Promise which resolves upon the completion of the removal.
|
|
25616
25432
|
* @since Chrome 90
|
|
25617
25433
|
*/
|
|
25618
25434
|
export function removeCSS(
|
|
@@ -25637,7 +25453,6 @@ declare namespace chrome {
|
|
|
25637
25453
|
* Registers one or more content scripts for this extension.
|
|
25638
25454
|
*
|
|
25639
25455
|
* @param scripts Contains a list of scripts to be registered. If there are errors during script parsing/file validation, or if the IDs specified already exist, then no scripts are registered.
|
|
25640
|
-
* @returns Returns a Promise which resolves once scripts have been fully registered or rejects if an error has occurred.
|
|
25641
25456
|
* @since Chrome 96
|
|
25642
25457
|
*/
|
|
25643
25458
|
export function registerContentScripts(
|
|
@@ -25688,7 +25503,6 @@ declare namespace chrome {
|
|
|
25688
25503
|
* Unregisters content scripts for this extension.
|
|
25689
25504
|
*
|
|
25690
25505
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
25691
|
-
* @returns Returns a Promise which resolves once scripts have been unregistered or rejects if an error has occurred.
|
|
25692
25506
|
* @since Chrome 96
|
|
25693
25507
|
*/
|
|
25694
25508
|
export function unregisterContentScripts(
|
|
@@ -25713,7 +25527,6 @@ declare namespace chrome {
|
|
|
25713
25527
|
* Updates one or more content scripts for this extension.
|
|
25714
25528
|
*
|
|
25715
25529
|
* @param scripts Contains a list of scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
|
|
25716
|
-
* @returns Returns a Promise which resolves once scripts have been updated or rejects if an error has occurred.
|
|
25717
25530
|
* @since Chrome 96
|
|
25718
25531
|
*/
|
|
25719
25532
|
export function updateContentScripts(
|
|
@@ -26060,7 +25873,6 @@ declare namespace chrome {
|
|
|
26060
25873
|
* Returns information about available serial devices on the system. The list is regenerated each time this method is called.
|
|
26061
25874
|
*
|
|
26062
25875
|
* @chrome-returns-extra since Chrome 117
|
|
26063
|
-
* @returns Called with the list of `DeviceInfo` objects.
|
|
26064
25876
|
*/
|
|
26065
25877
|
export function getDevices(): Promise<DeviceInfo[]>;
|
|
26066
25878
|
|
|
@@ -26080,7 +25892,6 @@ declare namespace chrome {
|
|
|
26080
25892
|
* @chrome-returns-extra since Chrome 117
|
|
26081
25893
|
* @param path The system path of the serial port to open.
|
|
26082
25894
|
* @param options Port configuration options.
|
|
26083
|
-
* @returns Called when the connection has been opened.
|
|
26084
25895
|
*/
|
|
26085
25896
|
export function connect(
|
|
26086
25897
|
|
|
@@ -26112,7 +25923,6 @@ declare namespace chrome {
|
|
|
26112
25923
|
* @chrome-returns-extra since Chrome 117
|
|
26113
25924
|
* @param connectionId The id of the opened connection.
|
|
26114
25925
|
* @param options Port configuration options.
|
|
26115
|
-
* @returns Called when the configuation has completed.
|
|
26116
25926
|
*/
|
|
26117
25927
|
export function update(
|
|
26118
25928
|
|
|
@@ -26143,7 +25953,6 @@ declare namespace chrome {
|
|
|
26143
25953
|
*
|
|
26144
25954
|
* @chrome-returns-extra since Chrome 117
|
|
26145
25955
|
* @param connectionId The id of the opened connection.
|
|
26146
|
-
* @returns Called when the connection has been closed.
|
|
26147
25956
|
*/
|
|
26148
25957
|
export function disconnect(
|
|
26149
25958
|
|
|
@@ -26170,7 +25979,6 @@ declare namespace chrome {
|
|
|
26170
25979
|
* @chrome-returns-extra since Chrome 117
|
|
26171
25980
|
* @param connectionId The id of the opened connection.
|
|
26172
25981
|
* @param paused Flag to indicate whether to pause or unpause.
|
|
26173
|
-
* @returns Called when the connection has been successfully paused or unpaused.
|
|
26174
25982
|
*/
|
|
26175
25983
|
export function setPaused(
|
|
26176
25984
|
|
|
@@ -26199,7 +26007,6 @@ declare namespace chrome {
|
|
|
26199
26007
|
*
|
|
26200
26008
|
* @chrome-returns-extra since Chrome 117
|
|
26201
26009
|
* @param connectionId The id of the opened connection.
|
|
26202
|
-
* @returns Called with connection state information when available.
|
|
26203
26010
|
*/
|
|
26204
26011
|
export function getInfo(
|
|
26205
26012
|
|
|
@@ -26224,7 +26031,6 @@ declare namespace chrome {
|
|
|
26224
26031
|
* Retrieves the list of currently opened serial port connections owned by the application.
|
|
26225
26032
|
*
|
|
26226
26033
|
* @chrome-returns-extra since Chrome 117
|
|
26227
|
-
* @returns Called with the list of connections when available.
|
|
26228
26034
|
*/
|
|
26229
26035
|
export function getConnections(): Promise<ConnectionInfo[]>;
|
|
26230
26036
|
|
|
@@ -26244,7 +26050,6 @@ declare namespace chrome {
|
|
|
26244
26050
|
* @chrome-returns-extra since Chrome 117
|
|
26245
26051
|
* @param connectionId The id of the connection.
|
|
26246
26052
|
* @param data The data to send.
|
|
26247
|
-
* @returns Called when the operation has completed.
|
|
26248
26053
|
*/
|
|
26249
26054
|
export function send(
|
|
26250
26055
|
|
|
@@ -26297,7 +26102,6 @@ declare namespace chrome {
|
|
|
26297
26102
|
*
|
|
26298
26103
|
* @chrome-returns-extra since Chrome 117
|
|
26299
26104
|
* @param connectionId The id of the connection.
|
|
26300
|
-
* @returns Called when the control signals are available.
|
|
26301
26105
|
*/
|
|
26302
26106
|
export function getControlSignals(
|
|
26303
26107
|
|
|
@@ -26324,7 +26128,6 @@ declare namespace chrome {
|
|
|
26324
26128
|
* @chrome-returns-extra since Chrome 117
|
|
26325
26129
|
* @param connectionId The id of the connection.
|
|
26326
26130
|
* @param signals The set of signal changes to send to the device.
|
|
26327
|
-
* @returns Called once the control signals have been set.
|
|
26328
26131
|
*/
|
|
26329
26132
|
export function setControlSignals(
|
|
26330
26133
|
|
|
@@ -26735,7 +26538,6 @@ declare namespace chrome {
|
|
|
26735
26538
|
* Configures the side panel.
|
|
26736
26539
|
*
|
|
26737
26540
|
* @param options The configuration options to apply to the panel.
|
|
26738
|
-
* @returns Returns a Promise which resolves when the options have been set.
|
|
26739
26541
|
*/
|
|
26740
26542
|
export function setOptions(
|
|
26741
26543
|
|
|
@@ -26758,7 +26560,6 @@ declare namespace chrome {
|
|
|
26758
26560
|
* Returns the active panel configuration.
|
|
26759
26561
|
*
|
|
26760
26562
|
* @param options Specifies the context to return the configuration for.
|
|
26761
|
-
* @returns Returns a Promise which resolves with the active panel configuration.
|
|
26762
26563
|
*/
|
|
26763
26564
|
export function getOptions(
|
|
26764
26565
|
|
|
@@ -26783,7 +26584,6 @@ declare namespace chrome {
|
|
|
26783
26584
|
* Configures the extension's side panel behavior. This is an upsert operation.
|
|
26784
26585
|
*
|
|
26785
26586
|
* @param behavior The new behavior to be set.
|
|
26786
|
-
* @returns Returns a Promise which resolves when the new behavior has been set.
|
|
26787
26587
|
*/
|
|
26788
26588
|
export function setPanelBehavior(
|
|
26789
26589
|
|
|
@@ -26804,8 +26604,6 @@ declare namespace chrome {
|
|
|
26804
26604
|
|
|
26805
26605
|
/**
|
|
26806
26606
|
* Returns the extension's current side panel behavior.
|
|
26807
|
-
*
|
|
26808
|
-
* @returns Returns a Promise which resolves with the extension's side panel behavior.
|
|
26809
26607
|
*/
|
|
26810
26608
|
export function getPanelBehavior(): Promise<PanelBehavior>;
|
|
26811
26609
|
|
|
@@ -26823,7 +26621,6 @@ declare namespace chrome {
|
|
|
26823
26621
|
* Opens the side panel for the extension. This may only be called in response to a user action.
|
|
26824
26622
|
*
|
|
26825
26623
|
* @param options Specifies the context in which to open the side panel.
|
|
26826
|
-
* @returns Returns a Promise which resolves when the side panel has been opened.
|
|
26827
26624
|
* @since Chrome 116
|
|
26828
26625
|
*/
|
|
26829
26626
|
export function open(
|
|
@@ -26847,7 +26644,6 @@ declare namespace chrome {
|
|
|
26847
26644
|
/**
|
|
26848
26645
|
* Returns the side panel's current layout.
|
|
26849
26646
|
*
|
|
26850
|
-
* @returns Returns a Promise which resolves with a {@link PanelLayout}.
|
|
26851
26647
|
* @since Chrome 140
|
|
26852
26648
|
*/
|
|
26853
26649
|
export function getLayout(): Promise<PanelLayout>;
|
|
@@ -27013,7 +26809,6 @@ declare namespace chrome {
|
|
|
27013
26809
|
* @chrome-returns-extra since Chrome 121
|
|
27014
26810
|
* @param type The type of socket to create. Must be `tcp` or `udp`.
|
|
27015
26811
|
* @param options The socket options.
|
|
27016
|
-
* @returns Called when the socket has been created.
|
|
27017
26812
|
*/
|
|
27018
26813
|
export function create(
|
|
27019
26814
|
|
|
@@ -27331,7 +27126,6 @@ declare namespace chrome {
|
|
|
27331
27126
|
*
|
|
27332
27127
|
* @chrome-returns-extra since Chrome 121
|
|
27333
27128
|
* @param socketId The socketId.
|
|
27334
|
-
* @returns Called when the state is available.
|
|
27335
27129
|
*/
|
|
27336
27130
|
export function getInfo(
|
|
27337
27131
|
|
|
@@ -27356,7 +27150,6 @@ declare namespace chrome {
|
|
|
27356
27150
|
* Retrieves information about local adapters on this system.
|
|
27357
27151
|
*
|
|
27358
27152
|
* @chrome-returns-extra since Chrome 121
|
|
27359
|
-
* @returns Called when local adapter information is available.
|
|
27360
27153
|
*/
|
|
27361
27154
|
export function getNetworkList(): Promise<NetworkInterface[]>;
|
|
27362
27155
|
|
|
@@ -27672,7 +27465,6 @@ declare namespace chrome {
|
|
|
27672
27465
|
*
|
|
27673
27466
|
* @chrome-returns-extra since Chrome 121
|
|
27674
27467
|
* @param properties The socket properties (optional).
|
|
27675
|
-
* @returns Called when the socket has been created.
|
|
27676
27468
|
*/
|
|
27677
27469
|
export function create(
|
|
27678
27470
|
|
|
@@ -27702,7 +27494,6 @@ declare namespace chrome {
|
|
|
27702
27494
|
* @chrome-returns-extra since Chrome 121
|
|
27703
27495
|
* @param socketId The socket identifier.
|
|
27704
27496
|
* @param properties The properties to update.
|
|
27705
|
-
* @returns Called when the properties are updated.
|
|
27706
27497
|
*/
|
|
27707
27498
|
export function update(
|
|
27708
27499
|
|
|
@@ -27730,7 +27521,6 @@ declare namespace chrome {
|
|
|
27730
27521
|
* 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.
|
|
27731
27522
|
*
|
|
27732
27523
|
* @chrome-returns-extra since Chrome 121
|
|
27733
|
-
* @returns Callback from the `setPaused` method.
|
|
27734
27524
|
*/
|
|
27735
27525
|
export function setPaused(
|
|
27736
27526
|
|
|
@@ -27876,7 +27666,6 @@ declare namespace chrome {
|
|
|
27876
27666
|
*
|
|
27877
27667
|
* @chrome-returns-extra since Chrome 121
|
|
27878
27668
|
* @param socketId The socket identifier.
|
|
27879
|
-
* @returns Called when the disconnect attempt is complete.
|
|
27880
27669
|
*/
|
|
27881
27670
|
export function disconnect(
|
|
27882
27671
|
|
|
@@ -27954,7 +27743,6 @@ declare namespace chrome {
|
|
|
27954
27743
|
*
|
|
27955
27744
|
* @chrome-returns-extra since Chrome 121
|
|
27956
27745
|
* @param socketId The socket identifier.
|
|
27957
|
-
* @returns Called when the `close` operation completes.
|
|
27958
27746
|
*/
|
|
27959
27747
|
export function close(
|
|
27960
27748
|
|
|
@@ -27978,7 +27766,6 @@ declare namespace chrome {
|
|
|
27978
27766
|
*
|
|
27979
27767
|
* @chrome-returns-extra since Chrome 121
|
|
27980
27768
|
* @param socketId The socket identifier.
|
|
27981
|
-
* @returns Called when the socket state is available.
|
|
27982
27769
|
*/
|
|
27983
27770
|
export function getInfo(
|
|
27984
27771
|
|
|
@@ -28006,7 +27793,6 @@ declare namespace chrome {
|
|
|
28006
27793
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
28007
27794
|
*
|
|
28008
27795
|
* @chrome-returns-extra since Chrome 121
|
|
28009
|
-
* @returns Called when the list of sockets is available.
|
|
28010
27796
|
*/
|
|
28011
27797
|
export function getSockets(): Promise<SocketInfo[]>;
|
|
28012
27798
|
|
|
@@ -28135,7 +27921,6 @@ declare namespace chrome {
|
|
|
28135
27921
|
*
|
|
28136
27922
|
* @chrome-returns-extra since Chrome 121
|
|
28137
27923
|
* @param properties The socket properties (optional).
|
|
28138
|
-
* @returns Called when the socket has been created.
|
|
28139
27924
|
*/
|
|
28140
27925
|
export function create(
|
|
28141
27926
|
|
|
@@ -28165,7 +27950,6 @@ declare namespace chrome {
|
|
|
28165
27950
|
* @chrome-returns-extra since Chrome 121
|
|
28166
27951
|
* @param socketId The socket identifier.
|
|
28167
27952
|
* @param properties The properties to update.
|
|
28168
|
-
* @returns Called when the properties are updated.
|
|
28169
27953
|
*/
|
|
28170
27954
|
export function update(
|
|
28171
27955
|
|
|
@@ -28193,7 +27977,6 @@ declare namespace chrome {
|
|
|
28193
27977
|
* 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.
|
|
28194
27978
|
*
|
|
28195
27979
|
* @chrome-returns-extra since Chrome 121
|
|
28196
|
-
* @returns Callback from the `setPaused` method.
|
|
28197
27980
|
*/
|
|
28198
27981
|
export function setPaused(
|
|
28199
27982
|
|
|
@@ -28270,7 +28053,6 @@ declare namespace chrome {
|
|
|
28270
28053
|
*
|
|
28271
28054
|
* @chrome-returns-extra since Chrome 121
|
|
28272
28055
|
* @param socketId The socket identifier.
|
|
28273
|
-
* @returns Called when the disconnect attempt is complete.
|
|
28274
28056
|
*/
|
|
28275
28057
|
export function disconnect(
|
|
28276
28058
|
|
|
@@ -28294,7 +28076,6 @@ declare namespace chrome {
|
|
|
28294
28076
|
*
|
|
28295
28077
|
* @chrome-returns-extra since Chrome 121
|
|
28296
28078
|
* @param socketId The socket identifier.
|
|
28297
|
-
* @returns Called when the `close` operation completes.
|
|
28298
28079
|
*/
|
|
28299
28080
|
export function close(
|
|
28300
28081
|
|
|
@@ -28318,7 +28099,6 @@ declare namespace chrome {
|
|
|
28318
28099
|
*
|
|
28319
28100
|
* @chrome-returns-extra since Chrome 121
|
|
28320
28101
|
* @param socketId The socket identifier.
|
|
28321
|
-
* @returns Called when the socket state is available.
|
|
28322
28102
|
*/
|
|
28323
28103
|
export function getInfo(
|
|
28324
28104
|
|
|
@@ -28346,7 +28126,6 @@ declare namespace chrome {
|
|
|
28346
28126
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
28347
28127
|
*
|
|
28348
28128
|
* @chrome-returns-extra since Chrome 121
|
|
28349
|
-
* @returns Called when the list of sockets is available.
|
|
28350
28129
|
*/
|
|
28351
28130
|
export function getSockets(): Promise<SocketInfo[]>;
|
|
28352
28131
|
|
|
@@ -28515,7 +28294,6 @@ declare namespace chrome {
|
|
|
28515
28294
|
*
|
|
28516
28295
|
* @chrome-returns-extra since Chrome 121
|
|
28517
28296
|
* @param properties The socket properties (optional).
|
|
28518
|
-
* @returns Called when the socket has been created.
|
|
28519
28297
|
*/
|
|
28520
28298
|
export function create(
|
|
28521
28299
|
|
|
@@ -28545,7 +28323,6 @@ declare namespace chrome {
|
|
|
28545
28323
|
* @chrome-returns-extra since Chrome 121
|
|
28546
28324
|
* @param socketId The socket ID.
|
|
28547
28325
|
* @param properties The properties to update.
|
|
28548
|
-
* @returns Called when the properties are updated.
|
|
28549
28326
|
*/
|
|
28550
28327
|
export function update(
|
|
28551
28328
|
|
|
@@ -28574,7 +28351,6 @@ declare namespace chrome {
|
|
|
28574
28351
|
*
|
|
28575
28352
|
* @chrome-returns-extra since Chrome 121
|
|
28576
28353
|
* @param paused Flag to indicate whether to pause or unpause.
|
|
28577
|
-
* @returns Called when the socket has been successfully paused or unpaused.
|
|
28578
28354
|
*/
|
|
28579
28355
|
export function setPaused(
|
|
28580
28356
|
|
|
@@ -28688,7 +28464,6 @@ declare namespace chrome {
|
|
|
28688
28464
|
*
|
|
28689
28465
|
* @chrome-returns-extra since Chrome 121
|
|
28690
28466
|
* @param socketId The socket ID.
|
|
28691
|
-
* @returns Called when the `close` operation completes.
|
|
28692
28467
|
*/
|
|
28693
28468
|
export function close(
|
|
28694
28469
|
|
|
@@ -28712,7 +28487,6 @@ declare namespace chrome {
|
|
|
28712
28487
|
*
|
|
28713
28488
|
* @chrome-returns-extra since Chrome 121
|
|
28714
28489
|
* @param socketId The socket ID.
|
|
28715
|
-
* @returns Called when the socket state is available.
|
|
28716
28490
|
*/
|
|
28717
28491
|
export function getInfo(
|
|
28718
28492
|
|
|
@@ -28740,7 +28514,6 @@ declare namespace chrome {
|
|
|
28740
28514
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
28741
28515
|
*
|
|
28742
28516
|
* @chrome-returns-extra since Chrome 121
|
|
28743
|
-
* @returns Called when the list of sockets is available.
|
|
28744
28517
|
*/
|
|
28745
28518
|
export function getSockets(): Promise<SocketInfo[]>;
|
|
28746
28519
|
|
|
@@ -28854,7 +28627,6 @@ declare namespace chrome {
|
|
|
28854
28627
|
*
|
|
28855
28628
|
* @chrome-returns-extra since Chrome 121
|
|
28856
28629
|
* @param socketId The socket ID.
|
|
28857
|
-
* @returns Called with an array of strings of the result.
|
|
28858
28630
|
*/
|
|
28859
28631
|
export function getJoinedGroups(
|
|
28860
28632
|
|
|
@@ -28946,7 +28718,6 @@ declare namespace chrome {
|
|
|
28946
28718
|
*
|
|
28947
28719
|
* @chrome-returns-extra since Chrome 95
|
|
28948
28720
|
* @param keys A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in `null` to get the entire contents of storage.
|
|
28949
|
-
* @returns Promise that resolves with storage items, or rejects on failure.
|
|
28950
28721
|
*/
|
|
28951
28722
|
get(
|
|
28952
28723
|
|
|
@@ -28973,7 +28744,6 @@ declare namespace chrome {
|
|
|
28973
28744
|
/**
|
|
28974
28745
|
* Gets all keys from storage.
|
|
28975
28746
|
*
|
|
28976
|
-
* @returns Promise that resolves with storage keys, or rejects on failure.
|
|
28977
28747
|
* @since Chrome 130
|
|
28978
28748
|
*/
|
|
28979
28749
|
getKeys(): Promise<string[]>;
|
|
@@ -28998,7 +28768,6 @@ declare namespace chrome {
|
|
|
28998
28768
|
*
|
|
28999
28769
|
* @chrome-returns-extra since Chrome 95
|
|
29000
28770
|
* @param keys A single key or list of keys to get the total usage for. An empty list will return 0. Pass in `null` to get the total usage of all of storage.
|
|
29001
|
-
* @returns Promise that resolves with the amount of space being used by storage, or rejects on failure.
|
|
29002
28771
|
*/
|
|
29003
28772
|
getBytesInUse(
|
|
29004
28773
|
|
|
@@ -29031,7 +28800,6 @@ declare namespace chrome {
|
|
|
29031
28800
|
An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
|
|
29032
28801
|
|
|
29033
28802
|
Primitive values such as numbers will serialize as expected. Values with a `typeof` `"object"` and `"function"` will typically serialize to `{}`, with the exception of `Array` (serializes as expected), `Date`, and `Regex` (serialize using their `String` representation).
|
|
29034
|
-
* @returns Promise that resolves on success, or rejects on failure.
|
|
29035
28803
|
*/
|
|
29036
28804
|
set(
|
|
29037
28805
|
|
|
@@ -29059,7 +28827,6 @@ declare namespace chrome {
|
|
|
29059
28827
|
*
|
|
29060
28828
|
* @chrome-returns-extra since Chrome 95
|
|
29061
28829
|
* @param keys A single key or a list of keys for items to remove.
|
|
29062
|
-
* @returns Promise that resolves on success, or rejects on failure.
|
|
29063
28830
|
*/
|
|
29064
28831
|
remove(
|
|
29065
28832
|
|
|
@@ -29082,7 +28849,6 @@ declare namespace chrome {
|
|
|
29082
28849
|
* Removes all items from storage.
|
|
29083
28850
|
*
|
|
29084
28851
|
* @chrome-returns-extra since Chrome 95
|
|
29085
|
-
* @returns Promise that resolves on success, or rejects on failure.
|
|
29086
28852
|
*/
|
|
29087
28853
|
clear(): Promise<void>;
|
|
29088
28854
|
|
|
@@ -29097,7 +28863,6 @@ declare namespace chrome {
|
|
|
29097
28863
|
/**
|
|
29098
28864
|
* Sets the desired access level for the storage area. By default, `session` storage is restricted to trusted contexts (extension pages and service workers), while `managed`, `local`, and `sync` storage allow access from both trusted and untrusted contexts.
|
|
29099
28865
|
*
|
|
29100
|
-
* @returns Promise that resolves on success, or rejects on failure.
|
|
29101
28866
|
* @since Chrome 102
|
|
29102
28867
|
*/
|
|
29103
28868
|
setAccessLevel(
|
|
@@ -29316,7 +29081,6 @@ declare namespace chrome {
|
|
|
29316
29081
|
* Note this call can fail. For example, if the user is not signed in to Chrome or if there is no network operation. To handle these errors it is important chrome.runtime.lastError is checked in the callback.
|
|
29317
29082
|
*
|
|
29318
29083
|
* @chrome-returns-extra since Chrome 117
|
|
29319
|
-
* @returns A callback type for requestFileSystem.
|
|
29320
29084
|
*/
|
|
29321
29085
|
export function requestFileSystem(): Promise<DOMFileSystem>;
|
|
29322
29086
|
|
|
@@ -29338,7 +29102,6 @@ declare namespace chrome {
|
|
|
29338
29102
|
* Sets the default conflict resolution policy for the `'syncable'` file storage for the app. By default it is set to `'last_write_win'`. When conflict resolution policy is set to `'last_write_win'` conflicts for existing files are automatically resolved next time the file is updated. `callback` can be optionally given to know if the request has succeeded or not.
|
|
29339
29103
|
*
|
|
29340
29104
|
* @chrome-returns-extra since Chrome 117
|
|
29341
|
-
* @returns A generic result callback to indicate success or failure.
|
|
29342
29105
|
*/
|
|
29343
29106
|
export function setConflictResolutionPolicy(
|
|
29344
29107
|
|
|
@@ -29359,7 +29122,6 @@ declare namespace chrome {
|
|
|
29359
29122
|
* Gets the current conflict resolution policy.
|
|
29360
29123
|
*
|
|
29361
29124
|
* @chrome-returns-extra since Chrome 117
|
|
29362
|
-
* @returns A callback type for getConflictResolutionPolicy.
|
|
29363
29125
|
*/
|
|
29364
29126
|
export function getConflictResolutionPolicy(): Promise<ConflictResolutionPolicy>;
|
|
29365
29127
|
|
|
@@ -29377,7 +29139,6 @@ declare namespace chrome {
|
|
|
29377
29139
|
* Returns the current usage and quota in bytes for the `'syncable'` file storage for the app.
|
|
29378
29140
|
*
|
|
29379
29141
|
* @chrome-returns-extra since Chrome 117
|
|
29380
|
-
* @returns A callback type for getUsageAndQuota.
|
|
29381
29142
|
*/
|
|
29382
29143
|
export function getUsageAndQuota(
|
|
29383
29144
|
|
|
@@ -29400,7 +29161,6 @@ declare namespace chrome {
|
|
|
29400
29161
|
* Returns the {@link FileStatus} for the given `fileEntry`. The status value can be `'synced'`, `'pending'` or `'conflicting'`. Note that `'conflicting'` state only happens when the service's conflict resolution policy is set to `'manual'`.
|
|
29401
29162
|
*
|
|
29402
29163
|
* @chrome-returns-extra since Chrome 117
|
|
29403
|
-
* @returns A callback type for getFileStatus.
|
|
29404
29164
|
*/
|
|
29405
29165
|
export function getFileStatus(
|
|
29406
29166
|
|
|
@@ -29423,7 +29183,6 @@ declare namespace chrome {
|
|
|
29423
29183
|
* Returns each {@link FileStatus} for the given `fileEntry` array. Typically called with the result from dirReader.readEntries().
|
|
29424
29184
|
*
|
|
29425
29185
|
* @chrome-returns-extra since Chrome 117
|
|
29426
|
-
* @returns A callback type for getFileStatuses.
|
|
29427
29186
|
*/
|
|
29428
29187
|
export function getFileStatuses(
|
|
29429
29188
|
|
|
@@ -29446,7 +29205,6 @@ declare namespace chrome {
|
|
|
29446
29205
|
* Returns the current sync backend status.
|
|
29447
29206
|
*
|
|
29448
29207
|
* @chrome-returns-extra since Chrome 117
|
|
29449
|
-
* @returns A callback type for getServiceStatus.
|
|
29450
29208
|
*/
|
|
29451
29209
|
export function getServiceStatus(): Promise<ServiceStatus>;
|
|
29452
29210
|
|
|
@@ -30016,7 +29774,6 @@ declare namespace chrome {
|
|
|
30016
29774
|
*
|
|
30017
29775
|
* @chrome-returns-extra since Chrome 91
|
|
30018
29776
|
* @param flags Options affecting how the information is returned.
|
|
30019
|
-
* @returns Promise that resolves with the results.
|
|
30020
29777
|
*/
|
|
30021
29778
|
export function getInfo(
|
|
30022
29779
|
|
|
@@ -30047,7 +29804,6 @@ declare namespace chrome {
|
|
|
30047
29804
|
* Requests the layout info for all displays. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.
|
|
30048
29805
|
*
|
|
30049
29806
|
* @chrome-returns-extra since Chrome 91
|
|
30050
|
-
* @returns Promise that resolves with the results.
|
|
30051
29807
|
* @since Chrome 53
|
|
30052
29808
|
*/
|
|
30053
29809
|
export function getDisplayLayout(): Promise<DisplayLayout[]>;
|
|
@@ -30070,7 +29826,6 @@ declare namespace chrome {
|
|
|
30070
29826
|
* @chrome-returns-extra since Chrome 91
|
|
30071
29827
|
* @param id The display's unique identifier.
|
|
30072
29828
|
* @param info The information about display properties that should be changed. A property will be changed only if a new value for it is specified in `info`.
|
|
30073
|
-
* @returns Promise that resolves when the function finishes.
|
|
30074
29829
|
*/
|
|
30075
29830
|
export function setDisplayProperties(
|
|
30076
29831
|
|
|
@@ -30099,7 +29854,6 @@ declare namespace chrome {
|
|
|
30099
29854
|
*
|
|
30100
29855
|
* @chrome-returns-extra since Chrome 91
|
|
30101
29856
|
* @param layouts The layout information, required for all displays except the primary display.
|
|
30102
|
-
* @returns Promise that resolves when the function finishes.
|
|
30103
29857
|
* @since Chrome 53
|
|
30104
29858
|
*/
|
|
30105
29859
|
export function setDisplayLayout(
|
|
@@ -30183,7 +29937,6 @@ declare namespace chrome {
|
|
|
30183
29937
|
*
|
|
30184
29938
|
* @chrome-returns-extra since Chrome 91
|
|
30185
29939
|
* @param id The display's unique identifier.
|
|
30186
|
-
* @returns Promise that resolves to inform the caller that the touch calibration has ended. The boolean value informs if the calibration was a success or not.
|
|
30187
29940
|
* @since Chrome 57
|
|
30188
29941
|
*/
|
|
30189
29942
|
export function showNativeTouchCalibration(
|
|
@@ -30247,7 +30000,6 @@ declare namespace chrome {
|
|
|
30247
30000
|
*
|
|
30248
30001
|
* @chrome-returns-extra since Chrome 91
|
|
30249
30002
|
* @param info The information of the mirror mode that should be applied to the display mode.
|
|
30250
|
-
* @returns Promise that resolves when the function finishes.
|
|
30251
30003
|
* @since Chrome 65
|
|
30252
30004
|
*/
|
|
30253
30005
|
export function setMirrorMode(
|
|
@@ -30337,7 +30089,6 @@ declare namespace chrome {
|
|
|
30337
30089
|
* Retrieves information about local adapters on this system.
|
|
30338
30090
|
*
|
|
30339
30091
|
* @chrome-returns-extra since Chrome 91
|
|
30340
|
-
* @returns Called when local adapter information is available.
|
|
30341
30092
|
*/
|
|
30342
30093
|
export function getNetworkInterfaces(): Promise<NetworkInterface[]>;
|
|
30343
30094
|
|
|
@@ -30516,7 +30267,6 @@ declare namespace chrome {
|
|
|
30516
30267
|
* Adds a new log record.
|
|
30517
30268
|
*
|
|
30518
30269
|
* @param options The logging options.
|
|
30519
|
-
* @returns Returns a Promise which resolves once the log has been added.
|
|
30520
30270
|
*/
|
|
30521
30271
|
export function add(
|
|
30522
30272
|
|
|
@@ -30624,7 +30374,6 @@ declare namespace chrome {
|
|
|
30624
30374
|
* Returns a list of tabs that have requested capture or are being captured, i.e. status != stopped and status != error. This allows extensions to inform the user that there is an existing tab capture that would prevent a new tab capture from succeeding (or to prevent redundant requests for the same tab).
|
|
30625
30375
|
*
|
|
30626
30376
|
* @chrome-returns-extra since Chrome 116
|
|
30627
|
-
* @returns Returns a Promise which resolves with CaptureInfo\[\] for captured tabs.
|
|
30628
30377
|
*/
|
|
30629
30378
|
export function getCapturedTabs(): Promise<CaptureInfo[]>;
|
|
30630
30379
|
|
|
@@ -30642,7 +30391,6 @@ declare namespace chrome {
|
|
|
30642
30391
|
* Creates a stream ID to capture the target tab. Similar to chrome.tabCapture.capture() method, but returns a media stream ID, instead of a media stream, to the consumer tab.
|
|
30643
30392
|
*
|
|
30644
30393
|
* @chrome-returns-extra since Chrome 116
|
|
30645
|
-
* @returns Returns a Promise which resolves with the result. If successful, the result is an opaque string that can be passed to the `getUserMedia()` API to generate a media stream that corresponds to the target tab. The created `streamId` can only be used once and expires after a few seconds if it is not used.
|
|
30646
30394
|
* @since Chrome 71
|
|
30647
30395
|
*/
|
|
30648
30396
|
export function getMediaStreamId(
|
|
@@ -33323,7 +33071,6 @@ declare namespace chrome {
|
|
|
33323
33071
|
* @chrome-returns-extra since Chrome 101
|
|
33324
33072
|
* @param utterance The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters.
|
|
33325
33073
|
* @param options The speech options.
|
|
33326
|
-
* @returns Resolves right away, before speech finishes. If an error occurs, the promise will be rejected. Use options.onEvent to get more detailed feedback.
|
|
33327
33074
|
*/
|
|
33328
33075
|
export function speak(
|
|
33329
33076
|
|
|
@@ -34349,7 +34096,6 @@ declare namespace chrome {
|
|
|
34349
34096
|
*
|
|
34350
34097
|
* @chrome-returns-extra since Chrome 116
|
|
34351
34098
|
* @param options Configuration of the device picker dialog box.
|
|
34352
|
-
* @returns Invoked with a list of chosen {@link Device}s.
|
|
34353
34099
|
*/
|
|
34354
34100
|
export function getUserSelectedDevices(
|
|
34355
34101
|
|
|
@@ -35039,7 +34785,6 @@ declare namespace chrome {
|
|
|
35039
34785
|
* Registers one or more user scripts for this extension.
|
|
35040
34786
|
*
|
|
35041
34787
|
* @param scripts Contains a list of user scripts to be registered.
|
|
35042
|
-
* @returns Promise that resolves once scripts have been fully registered. The promise will be rejected if an error occurs.
|
|
35043
34788
|
*/
|
|
35044
34789
|
export function register(
|
|
35045
34790
|
|
|
@@ -35062,7 +34807,6 @@ declare namespace chrome {
|
|
|
35062
34807
|
* Returns all dynamically-registered user scripts for this extension.
|
|
35063
34808
|
*
|
|
35064
34809
|
* @param filter If specified, this method returns only the user scripts that match it.
|
|
35065
|
-
* @returns Promise that resolves with the registered scripts. The promise will be rejected if an error occurs.
|
|
35066
34810
|
*/
|
|
35067
34811
|
export function getScripts(
|
|
35068
34812
|
|
|
@@ -35087,7 +34831,6 @@ declare namespace chrome {
|
|
|
35087
34831
|
* Unregisters all dynamically-registered user scripts for this extension.
|
|
35088
34832
|
*
|
|
35089
34833
|
* @param filter If specified, this method unregisters only the user scripts that match it.
|
|
35090
|
-
* @returns Promise that resolves once scripts have been fully unregistered. The promise will be rejected if an error occurs.
|
|
35091
34834
|
*/
|
|
35092
34835
|
export function unregister(
|
|
35093
34836
|
|
|
@@ -35110,7 +34853,6 @@ declare namespace chrome {
|
|
|
35110
34853
|
* Updates one or more user scripts for this extension.
|
|
35111
34854
|
*
|
|
35112
34855
|
* @param scripts Contains a list of user scripts to be updated. A property is only updated for the existing script if it is specified in this object. If there are errors during script parsing/file validation, or if the IDs specified do not correspond to a fully registered script, then no scripts are updated.
|
|
35113
|
-
* @returns Promise that resolves once scripts have been fully updated. The promise will be rejected if an error occurs.
|
|
35114
34856
|
*/
|
|
35115
34857
|
export function update(
|
|
35116
34858
|
|
|
@@ -35157,7 +34899,6 @@ declare namespace chrome {
|
|
|
35157
34899
|
* Configures the `` `USER_SCRIPT` `` execution environment.
|
|
35158
34900
|
*
|
|
35159
34901
|
* @param properties Contains the user script world configuration.
|
|
35160
|
-
* @returns Promise that resolves once the world has been configured.
|
|
35161
34902
|
*/
|
|
35162
34903
|
export function configureWorld(
|
|
35163
34904
|
|
|
@@ -35179,7 +34920,6 @@ declare namespace chrome {
|
|
|
35179
34920
|
/**
|
|
35180
34921
|
* Retrieves all registered world configurations.
|
|
35181
34922
|
*
|
|
35182
|
-
* @returns Promise that resolves with the registered world configurations.
|
|
35183
34923
|
* @since Chrome 133
|
|
35184
34924
|
*/
|
|
35185
34925
|
export function getWorldConfigurations(): Promise<WorldProperties[]>;
|
|
@@ -35200,7 +34940,6 @@ declare namespace chrome {
|
|
|
35200
34940
|
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
35201
34941
|
*
|
|
35202
34942
|
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
35203
|
-
* @returns Promise that resolves when the configuration is reset.
|
|
35204
34943
|
* @since Chrome 133
|
|
35205
34944
|
*/
|
|
35206
34945
|
export function resetWorldConfiguration(
|
|
@@ -35265,7 +35004,6 @@ declare namespace chrome {
|
|
|
35265
35004
|
*
|
|
35266
35005
|
* @chrome-returns-extra since Chrome 96
|
|
35267
35006
|
* @param restrictions the preferences to enabled/disabled virtual keyboard features.
|
|
35268
|
-
* @returns Invoked with the values which were updated.
|
|
35269
35007
|
*/
|
|
35270
35008
|
export function restrictFeatures(
|
|
35271
35009
|
|
|
@@ -35423,7 +35161,6 @@ declare namespace chrome {
|
|
|
35423
35161
|
*
|
|
35424
35162
|
* @chrome-returns-extra since Chrome 96
|
|
35425
35163
|
* @param name The name of the VPN configuration.
|
|
35426
|
-
* @returns Returns a Promise which resolves when the configuration is created or rejects if there is an error.
|
|
35427
35164
|
*/
|
|
35428
35165
|
export function createConfig(
|
|
35429
35166
|
|
|
@@ -35452,7 +35189,6 @@ declare namespace chrome {
|
|
|
35452
35189
|
*
|
|
35453
35190
|
* @chrome-returns-extra since Chrome 96
|
|
35454
35191
|
* @param id ID of the VPN configuration to destroy.
|
|
35455
|
-
* @returns Returns a Promise which resolves when the configuration is destroyed or rejects if there is an error.
|
|
35456
35192
|
*/
|
|
35457
35193
|
export function destroyConfig(
|
|
35458
35194
|
|
|
@@ -35476,7 +35212,6 @@ declare namespace chrome {
|
|
|
35476
35212
|
*
|
|
35477
35213
|
* @chrome-returns-extra since Chrome 96
|
|
35478
35214
|
* @param parameters The parameters for the VPN session.
|
|
35479
|
-
* @returns Returns a Promise which resolves when the parameters are set or rejects if there is an error.
|
|
35480
35215
|
*/
|
|
35481
35216
|
export function setParameters(
|
|
35482
35217
|
|
|
@@ -35500,7 +35235,6 @@ declare namespace chrome {
|
|
|
35500
35235
|
*
|
|
35501
35236
|
* @chrome-returns-extra since Chrome 96
|
|
35502
35237
|
* @param data The IP packet to be sent to the platform.
|
|
35503
|
-
* @returns Returns a Promise which resolves when the packet is sent or rejects if there is an error.
|
|
35504
35238
|
*/
|
|
35505
35239
|
export function sendPacket(
|
|
35506
35240
|
|
|
@@ -35524,7 +35258,6 @@ declare namespace chrome {
|
|
|
35524
35258
|
*
|
|
35525
35259
|
* @chrome-returns-extra since Chrome 96
|
|
35526
35260
|
* @param state The VPN session state of the VPN client.
|
|
35527
|
-
* @returns Returns a Promise which resolves when the notification is complete or rejects if there is an error.
|
|
35528
35261
|
*/
|
|
35529
35262
|
export function notifyConnectionStateChanged(
|
|
35530
35263
|
|