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/index.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:17 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at b53c887388cda795521d8f71e46844d3fc36967a
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -844,7 +844,6 @@ declare namespace chrome {
|
|
|
844
844
|
* @chrome-returns-extra since Chrome 111
|
|
845
845
|
* @param name Optional name to identify this alarm. Defaults to the empty string.
|
|
846
846
|
* @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`.
|
|
847
|
-
* @returns Promise that resolves when the alarm has been created.
|
|
848
847
|
*/
|
|
849
848
|
export function create(
|
|
850
849
|
|
|
@@ -862,7 +861,6 @@ declare namespace chrome {
|
|
|
862
861
|
*
|
|
863
862
|
* @chrome-returns-extra since Chrome 111
|
|
864
863
|
* @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`.
|
|
865
|
-
* @returns Promise that resolves when the alarm has been created.
|
|
866
864
|
*/
|
|
867
865
|
export function create(
|
|
868
866
|
|
|
@@ -1151,7 +1149,6 @@ declare namespace chrome {
|
|
|
1151
1149
|
*
|
|
1152
1150
|
* @chrome-returns-extra since Chrome 116
|
|
1153
1151
|
* @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.
|
|
1154
|
-
* @returns Reports the requested list of audio devices.
|
|
1155
1152
|
*/
|
|
1156
1153
|
export function getDevices(
|
|
1157
1154
|
|
|
@@ -1232,7 +1229,6 @@ declare namespace chrome {
|
|
|
1232
1229
|
*
|
|
1233
1230
|
* @chrome-returns-extra since Chrome 116
|
|
1234
1231
|
* @param streamType Stream type for which mute state should be fetched.
|
|
1235
|
-
* @returns Promise that resolves with a boolean indicating whether mute is set or not for specified stream type.
|
|
1236
1232
|
*/
|
|
1237
1233
|
export function getMute(
|
|
1238
1234
|
|
|
@@ -1988,7 +1984,6 @@ declare namespace chrome {
|
|
|
1988
1984
|
*
|
|
1989
1985
|
* @chrome-returns-extra since Chrome 96
|
|
1990
1986
|
* @param dataToRemove The set of data types to remove.
|
|
1991
|
-
* @returns Resolves when deletion has completed.
|
|
1992
1987
|
*/
|
|
1993
1988
|
export function remove(
|
|
1994
1989
|
|
|
@@ -2015,7 +2010,6 @@ declare namespace chrome {
|
|
|
2015
2010
|
* Clears websites' appcache data.
|
|
2016
2011
|
*
|
|
2017
2012
|
* @chrome-returns-extra since Chrome 96
|
|
2018
|
-
* @returns Resolves when websites' appcache data has been cleared.
|
|
2019
2013
|
*/
|
|
2020
2014
|
export function removeAppcache(
|
|
2021
2015
|
|
|
@@ -2036,7 +2030,6 @@ declare namespace chrome {
|
|
|
2036
2030
|
* Clears the browser's cache.
|
|
2037
2031
|
*
|
|
2038
2032
|
* @chrome-returns-extra since Chrome 96
|
|
2039
|
-
* @returns Resolves when the browser's cache has been cleared.
|
|
2040
2033
|
*/
|
|
2041
2034
|
export function removeCache(
|
|
2042
2035
|
|
|
@@ -2057,7 +2050,6 @@ declare namespace chrome {
|
|
|
2057
2050
|
* Clears websites' cache storage data.
|
|
2058
2051
|
*
|
|
2059
2052
|
* @chrome-returns-extra since Chrome 96
|
|
2060
|
-
* @returns Resolves when websites' cache storage has been cleared.
|
|
2061
2053
|
* @since Chrome 72
|
|
2062
2054
|
*/
|
|
2063
2055
|
export function removeCacheStorage(
|
|
@@ -2081,7 +2073,6 @@ declare namespace chrome {
|
|
|
2081
2073
|
* Clears the browser's cookies and server-bound certificates modified within a particular timeframe.
|
|
2082
2074
|
*
|
|
2083
2075
|
* @chrome-returns-extra since Chrome 96
|
|
2084
|
-
* @returns Resolves when the browser's cookies and server-bound certificates have been cleared.
|
|
2085
2076
|
*/
|
|
2086
2077
|
export function removeCookies(
|
|
2087
2078
|
|
|
@@ -2102,7 +2093,6 @@ declare namespace chrome {
|
|
|
2102
2093
|
* Clears the browser's list of downloaded files (_not_ the downloaded files themselves).
|
|
2103
2094
|
*
|
|
2104
2095
|
* @chrome-returns-extra since Chrome 96
|
|
2105
|
-
* @returns Resolves when the browser's list of downloaded files has been cleared.
|
|
2106
2096
|
*/
|
|
2107
2097
|
export function removeDownloads(
|
|
2108
2098
|
|
|
@@ -2123,7 +2113,6 @@ declare namespace chrome {
|
|
|
2123
2113
|
* Clears websites' file system data.
|
|
2124
2114
|
*
|
|
2125
2115
|
* @chrome-returns-extra since Chrome 96
|
|
2126
|
-
* @returns Resolves when websites' file systems have been cleared.
|
|
2127
2116
|
*/
|
|
2128
2117
|
export function removeFileSystems(
|
|
2129
2118
|
|
|
@@ -2144,7 +2133,6 @@ declare namespace chrome {
|
|
|
2144
2133
|
* Clears the browser's stored form data (autofill).
|
|
2145
2134
|
*
|
|
2146
2135
|
* @chrome-returns-extra since Chrome 96
|
|
2147
|
-
* @returns Resolves when the browser's form data has been cleared.
|
|
2148
2136
|
*/
|
|
2149
2137
|
export function removeFormData(
|
|
2150
2138
|
|
|
@@ -2165,7 +2153,6 @@ declare namespace chrome {
|
|
|
2165
2153
|
* Clears the browser's history.
|
|
2166
2154
|
*
|
|
2167
2155
|
* @chrome-returns-extra since Chrome 96
|
|
2168
|
-
* @returns Resolves when the browser's history has cleared.
|
|
2169
2156
|
*/
|
|
2170
2157
|
export function removeHistory(
|
|
2171
2158
|
|
|
@@ -2186,7 +2173,6 @@ declare namespace chrome {
|
|
|
2186
2173
|
* Clears websites' IndexedDB data.
|
|
2187
2174
|
*
|
|
2188
2175
|
* @chrome-returns-extra since Chrome 96
|
|
2189
|
-
* @returns Resolves when websites' IndexedDB data has been cleared.
|
|
2190
2176
|
*/
|
|
2191
2177
|
export function removeIndexedDB(
|
|
2192
2178
|
|
|
@@ -2207,7 +2193,6 @@ declare namespace chrome {
|
|
|
2207
2193
|
* Clears websites' local storage data.
|
|
2208
2194
|
*
|
|
2209
2195
|
* @chrome-returns-extra since Chrome 96
|
|
2210
|
-
* @returns Resolves when websites' local storage has been cleared.
|
|
2211
2196
|
*/
|
|
2212
2197
|
export function removeLocalStorage(
|
|
2213
2198
|
|
|
@@ -2228,7 +2213,6 @@ declare namespace chrome {
|
|
|
2228
2213
|
* Clears plugins' data.
|
|
2229
2214
|
*
|
|
2230
2215
|
* @chrome-returns-extra since Chrome 96
|
|
2231
|
-
* @returns Resolves when plugins' data has been cleared.
|
|
2232
2216
|
* @deprecated Support for Flash has been removed. This function has no effect.
|
|
2233
2217
|
* @chrome-deprecated-since Chrome 88
|
|
2234
2218
|
*/
|
|
@@ -2254,7 +2238,6 @@ declare namespace chrome {
|
|
|
2254
2238
|
* Clears the browser's stored passwords.
|
|
2255
2239
|
*
|
|
2256
2240
|
* @chrome-returns-extra since Chrome 96
|
|
2257
|
-
* @returns Resolves when the browser's passwords have been cleared.
|
|
2258
2241
|
* @deprecated Support for password deletion through extensions has been removed. This function has no effect.
|
|
2259
2242
|
*/
|
|
2260
2243
|
export function removePasswords(
|
|
@@ -2278,7 +2261,6 @@ declare namespace chrome {
|
|
|
2278
2261
|
* Clears websites' service workers.
|
|
2279
2262
|
*
|
|
2280
2263
|
* @chrome-returns-extra since Chrome 96
|
|
2281
|
-
* @returns Resolves when websites' service workers have been cleared.
|
|
2282
2264
|
* @since Chrome 72
|
|
2283
2265
|
*/
|
|
2284
2266
|
export function removeServiceWorkers(
|
|
@@ -2302,7 +2284,6 @@ declare namespace chrome {
|
|
|
2302
2284
|
* Clears websites' WebSQL data.
|
|
2303
2285
|
*
|
|
2304
2286
|
* @chrome-returns-extra since Chrome 96
|
|
2305
|
-
* @returns Resolves when websites' WebSQL databases have been cleared.
|
|
2306
2287
|
*/
|
|
2307
2288
|
export function removeWebSQL(
|
|
2308
2289
|
|
|
@@ -2596,7 +2577,6 @@ declare namespace chrome {
|
|
|
2596
2577
|
*
|
|
2597
2578
|
* @chrome-returns-extra since Chrome 96
|
|
2598
2579
|
* @param details Contains the details about the requested dialog.
|
|
2599
|
-
* @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).
|
|
2600
2580
|
* @since Chrome 57
|
|
2601
2581
|
*/
|
|
2602
2582
|
export function requestPin(
|
|
@@ -2624,7 +2604,6 @@ declare namespace chrome {
|
|
|
2624
2604
|
*
|
|
2625
2605
|
* @chrome-returns-extra since Chrome 96
|
|
2626
2606
|
* @param details Contains the details about the reason for stopping the request flow.
|
|
2627
|
-
* @returns Returns a Promise which resolves when the request to close the PIN dialog is complete.
|
|
2628
2607
|
* @since Chrome 57
|
|
2629
2608
|
*/
|
|
2630
2609
|
export function stopPinRequest(
|
|
@@ -2652,7 +2631,6 @@ declare namespace chrome {
|
|
|
2652
2631
|
*
|
|
2653
2632
|
* @chrome-returns-extra since Chrome 96
|
|
2654
2633
|
* @param details The certificates to set. Invalid certificates will be ignored.
|
|
2655
|
-
* @returns Returns a Promise which resolves upon completion.
|
|
2656
2634
|
* @since Chrome 86
|
|
2657
2635
|
*/
|
|
2658
2636
|
export function setCertificates(
|
|
@@ -2769,7 +2747,6 @@ declare namespace chrome {
|
|
|
2769
2747
|
* Returns all the registered extension commands for this extension and their shortcut (if active). Before Chrome 110, this command did not return `_execute_action`.
|
|
2770
2748
|
*
|
|
2771
2749
|
* @chrome-returns-extra since Chrome 96
|
|
2772
|
-
* @returns Resolves with a list of the registered commands.
|
|
2773
2750
|
*/
|
|
2774
2751
|
export function getAll(): Promise<Command[]>;
|
|
2775
2752
|
|
|
@@ -3495,7 +3472,6 @@ declare namespace chrome {
|
|
|
3495
3472
|
* @chrome-returns-extra since Chrome 123
|
|
3496
3473
|
* @param id The ID of the item to update.
|
|
3497
3474
|
* @param updateProperties The properties to update. Accepts the same values as the {@link contextMenus.create} function.
|
|
3498
|
-
* @returns Resolves when the context menu has been updated.
|
|
3499
3475
|
*/
|
|
3500
3476
|
export function update(
|
|
3501
3477
|
|
|
@@ -3606,7 +3582,6 @@ declare namespace chrome {
|
|
|
3606
3582
|
*
|
|
3607
3583
|
* @chrome-returns-extra since Chrome 123
|
|
3608
3584
|
* @param menuItemId The ID of the context menu item to remove.
|
|
3609
|
-
* @returns Resolves when the context menu has been removed.
|
|
3610
3585
|
*/
|
|
3611
3586
|
export function remove(
|
|
3612
3587
|
|
|
@@ -3629,7 +3604,6 @@ declare namespace chrome {
|
|
|
3629
3604
|
* Removes all context menu items added by this extension.
|
|
3630
3605
|
*
|
|
3631
3606
|
* @chrome-returns-extra since Chrome 123
|
|
3632
|
-
* @returns Resolves when removal is complete.
|
|
3633
3607
|
*/
|
|
3634
3608
|
export function removeAll(): Promise<void>;
|
|
3635
3609
|
|
|
@@ -4415,7 +4389,6 @@ declare namespace chrome {
|
|
|
4415
4389
|
* @chrome-returns-extra since Chrome 96
|
|
4416
4390
|
* @param target Debugging target to which you want to attach.
|
|
4417
4391
|
* @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).
|
|
4418
|
-
* @returns Resolves once the attach operation succeeds or fails. The promise resolves with no value. If the attach fails, the promise will be rejected.
|
|
4419
4392
|
*/
|
|
4420
4393
|
export function attach(
|
|
4421
4394
|
|
|
@@ -4444,7 +4417,6 @@ declare namespace chrome {
|
|
|
4444
4417
|
*
|
|
4445
4418
|
* @chrome-returns-extra since Chrome 96
|
|
4446
4419
|
* @param target Debugging target from which you want to detach.
|
|
4447
|
-
* @returns Resolves once the detach operation succeeds or fails. The promise resolves with no value. If the detach fails, the promise will be rejected.
|
|
4448
4420
|
*/
|
|
4449
4421
|
export function detach(
|
|
4450
4422
|
|
|
@@ -4470,7 +4442,6 @@ declare namespace chrome {
|
|
|
4470
4442
|
* @param target Debugging target to which you want to send the command.
|
|
4471
4443
|
* @param method Method name. Should be one of the methods defined by the [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol).
|
|
4472
4444
|
* @param commandParams JSON object with request parameters. This object must conform to the remote debugging params scheme for given method.
|
|
4473
|
-
* @returns Response body. If an error occurs while posting the message, the promise will be rejected.
|
|
4474
4445
|
*/
|
|
4475
4446
|
export function sendCommand(
|
|
4476
4447
|
|
|
@@ -5537,7 +5508,6 @@ declare namespace chrome {
|
|
|
5537
5508
|
* * {@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}.
|
|
5538
5509
|
*
|
|
5539
5510
|
* @chrome-returns-extra since Chrome 91
|
|
5540
|
-
* @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.
|
|
5541
5511
|
*/
|
|
5542
5512
|
export function updateDynamicRules(
|
|
5543
5513
|
|
|
@@ -5570,7 +5540,6 @@ declare namespace chrome {
|
|
|
5570
5540
|
*
|
|
5571
5541
|
* @chrome-returns-extra since Chrome 91
|
|
5572
5542
|
* @param filter An object to filter the list of fetched rules.
|
|
5573
|
-
* @returns Promise that resolves with the set of dynamic rules. The Promise may be rejected in case of transient internal errors.
|
|
5574
5543
|
*/
|
|
5575
5544
|
export function getDynamicRules(
|
|
5576
5545
|
|
|
@@ -5605,7 +5574,6 @@ declare namespace chrome {
|
|
|
5605
5574
|
* * {@link MAX_NUMBER_OF_SESSION_RULES} is the maximum number of session rules an extension can add.
|
|
5606
5575
|
*
|
|
5607
5576
|
* @chrome-returns-extra since Chrome 91
|
|
5608
|
-
* @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.
|
|
5609
5577
|
* @since Chrome 90
|
|
5610
5578
|
*/
|
|
5611
5579
|
export function updateSessionRules(
|
|
@@ -5634,7 +5602,6 @@ declare namespace chrome {
|
|
|
5634
5602
|
*
|
|
5635
5603
|
* @chrome-returns-extra since Chrome 91
|
|
5636
5604
|
* @param filter An object to filter the list of fetched rules.
|
|
5637
|
-
* @returns Promise that resolves with the set of session scoped rules.
|
|
5638
5605
|
* @since Chrome 90
|
|
5639
5606
|
*/
|
|
5640
5607
|
export function getSessionRules(
|
|
@@ -5668,7 +5635,6 @@ declare namespace chrome {
|
|
|
5668
5635
|
* 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.
|
|
5669
5636
|
*
|
|
5670
5637
|
* @chrome-returns-extra since Chrome 91
|
|
5671
|
-
* @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.
|
|
5672
5638
|
*/
|
|
5673
5639
|
export function updateEnabledRulesets(
|
|
5674
5640
|
|
|
@@ -5696,7 +5662,6 @@ declare namespace chrome {
|
|
|
5696
5662
|
* Returns the ids for the current set of enabled static rulesets.
|
|
5697
5663
|
*
|
|
5698
5664
|
* @chrome-returns-extra since Chrome 91
|
|
5699
|
-
* @returns Promise that resolves with a list of ids, where each id corresponds to an enabled static {@link Ruleset}.
|
|
5700
5665
|
*/
|
|
5701
5666
|
export function getEnabledRulesets(): Promise<string[]>;
|
|
5702
5667
|
|
|
@@ -5713,7 +5678,6 @@ declare namespace chrome {
|
|
|
5713
5678
|
/**
|
|
5714
5679
|
* 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.
|
|
5715
5680
|
*
|
|
5716
|
-
* @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.
|
|
5717
5681
|
* @since Chrome 111
|
|
5718
5682
|
*/
|
|
5719
5683
|
export function updateStaticRules(
|
|
@@ -5737,7 +5701,6 @@ declare namespace chrome {
|
|
|
5737
5701
|
* Returns the list of static rules in the given {@link Ruleset} that are currently disabled.
|
|
5738
5702
|
*
|
|
5739
5703
|
* @param options Specifies the ruleset to query.
|
|
5740
|
-
* @returns Promise that resolves with a list of ids that correspond to the disabled rules in that ruleset.
|
|
5741
5704
|
* @since Chrome 111
|
|
5742
5705
|
*/
|
|
5743
5706
|
export function getDisabledRuleIds(
|
|
@@ -5765,7 +5728,6 @@ declare namespace chrome {
|
|
|
5765
5728
|
*
|
|
5766
5729
|
* @chrome-returns-extra since Chrome 91
|
|
5767
5730
|
* @param filter An object to filter the list of matched rules.
|
|
5768
|
-
* @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.
|
|
5769
5731
|
*/
|
|
5770
5732
|
export function getMatchedRules(
|
|
5771
5733
|
|
|
@@ -5817,7 +5779,6 @@ declare namespace chrome {
|
|
|
5817
5779
|
*
|
|
5818
5780
|
* @chrome-returns-extra since Chrome 91
|
|
5819
5781
|
* @param regexOptions The regular expression to check.
|
|
5820
|
-
* @returns Promise that resolves with details consisting of whether the regular expression is supported and the reason if not.
|
|
5821
5782
|
* @since Chrome 87
|
|
5822
5783
|
*/
|
|
5823
5784
|
export function isRegexSupported(
|
|
@@ -5863,7 +5824,6 @@ declare namespace chrome {
|
|
|
5863
5824
|
/**
|
|
5864
5825
|
* 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.
|
|
5865
5826
|
*
|
|
5866
|
-
* @returns Promise that resolves with the details of matched rules.
|
|
5867
5827
|
* @since Chrome 103
|
|
5868
5828
|
*/
|
|
5869
5829
|
export function testMatchOutcome(
|
|
@@ -6700,7 +6660,6 @@ declare namespace chrome {
|
|
|
6700
6660
|
* Resolves the given hostname or IP address literal.
|
|
6701
6661
|
*
|
|
6702
6662
|
* @param hostname The hostname to resolve.
|
|
6703
|
-
* @returns Promise that resolves when the resolution operation completes.
|
|
6704
6663
|
*/
|
|
6705
6664
|
export function resolve(
|
|
6706
6665
|
|
|
@@ -7231,7 +7190,6 @@ declare namespace chrome {
|
|
|
7231
7190
|
*
|
|
7232
7191
|
* @chrome-returns-extra since Chrome 96
|
|
7233
7192
|
* @param options An object containing scan parameters.
|
|
7234
|
-
* @returns Returns a Promise which resolves with the scan results.
|
|
7235
7193
|
*/
|
|
7236
7194
|
export function scan(
|
|
7237
7195
|
|
|
@@ -7256,7 +7214,6 @@ declare namespace chrome {
|
|
|
7256
7214
|
* 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.
|
|
7257
7215
|
*
|
|
7258
7216
|
* @param filter A {@link DeviceFilter} indicating which types of scanners should be returned.
|
|
7259
|
-
* @returns Returns a Promise which resolves with the result and list of scanners.
|
|
7260
7217
|
* @since Chrome 125
|
|
7261
7218
|
*/
|
|
7262
7219
|
export function getScannerList(
|
|
@@ -7283,7 +7240,6 @@ declare namespace chrome {
|
|
|
7283
7240
|
* 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.
|
|
7284
7241
|
*
|
|
7285
7242
|
* @param scannerId The ID of a scanner to be opened. This value is one returned from a previous call to {@link getScannerList}.
|
|
7286
|
-
* @returns Returns a Promise which resolves with the result.
|
|
7287
7243
|
* @since Chrome 125
|
|
7288
7244
|
*/
|
|
7289
7245
|
export function openScanner(
|
|
@@ -7310,7 +7266,6 @@ declare namespace chrome {
|
|
|
7310
7266
|
* 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.
|
|
7311
7267
|
*
|
|
7312
7268
|
* @param scannerHandle The handle of an open scanner returned from a call to {@link openScanner}.
|
|
7313
|
-
* @returns Returns a Promise which resolves with the result.
|
|
7314
7269
|
* @since Chrome 125
|
|
7315
7270
|
*/
|
|
7316
7271
|
export function getOptionGroups(
|
|
@@ -7337,7 +7292,6 @@ declare namespace chrome {
|
|
|
7337
7292
|
* 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.
|
|
7338
7293
|
*
|
|
7339
7294
|
* @param scannerHandle Specifies the handle of an open scanner that was previously returned from a call to {@link openScanner}.
|
|
7340
|
-
* @returns Returns a Promise which resolves with the result.
|
|
7341
7295
|
* @since Chrome 125
|
|
7342
7296
|
*/
|
|
7343
7297
|
export function closeScanner(
|
|
@@ -7365,7 +7319,6 @@ declare namespace chrome {
|
|
|
7365
7319
|
*
|
|
7366
7320
|
* @param scannerHandle The handle of the scanner to set options on. This should be a value previously returned from a call to {@link openScanner}.
|
|
7367
7321
|
* @param options A list of `OptionSetting` objects to be applied to the scanner.
|
|
7368
|
-
* @returns Returns a Promise which resolves with the result.
|
|
7369
7322
|
* @since Chrome 125
|
|
7370
7323
|
*/
|
|
7371
7324
|
export function setOptions(
|
|
@@ -7398,7 +7351,6 @@ declare namespace chrome {
|
|
|
7398
7351
|
*
|
|
7399
7352
|
* @param scannerHandle The handle of an open scanner. This should be a value previously returned from a call to {@link openScanner}.
|
|
7400
7353
|
* @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`.
|
|
7401
|
-
* @returns Returns a Promise which resolves with the result.
|
|
7402
7354
|
* @since Chrome 125
|
|
7403
7355
|
*/
|
|
7404
7356
|
export function startScan(
|
|
@@ -7430,7 +7382,6 @@ declare namespace chrome {
|
|
|
7430
7382
|
* 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.
|
|
7431
7383
|
*
|
|
7432
7384
|
* @param job The handle of an active scan job previously returned from a call to {@link startScan}.
|
|
7433
|
-
* @returns Returns a Promise which resolves with the result.
|
|
7434
7385
|
* @since Chrome 125
|
|
7435
7386
|
*/
|
|
7436
7387
|
export function cancelScan(
|
|
@@ -7461,7 +7412,6 @@ declare namespace chrome {
|
|
|
7461
7412
|
* When the scan job completes, the response will have the result value of `EOF`. This response may contain a final non-zero `data` member.
|
|
7462
7413
|
*
|
|
7463
7414
|
* @param job Active job handle previously returned from {@link startScan}.
|
|
7464
|
-
* @returns Returns a Promise which resolves with the result.
|
|
7465
7415
|
* @since Chrome 125
|
|
7466
7416
|
*/
|
|
7467
7417
|
export function readScanData(
|
|
@@ -8034,7 +7984,6 @@ declare namespace chrome {
|
|
|
8034
7984
|
*
|
|
8035
7985
|
* @chrome-returns-extra since Chrome 96
|
|
8036
7986
|
* @param options What to download and how.
|
|
8037
|
-
* @returns Returns a Promise which resolves with the id of the new {@link DownloadItem}.
|
|
8038
7987
|
*/
|
|
8039
7988
|
export function download(
|
|
8040
7989
|
|
|
@@ -8082,7 +8031,6 @@ declare namespace chrome {
|
|
|
8082
8031
|
*
|
|
8083
8032
|
* @chrome-returns-extra since Chrome 96
|
|
8084
8033
|
* @param downloadId The id of the download to pause.
|
|
8085
|
-
* @returns Returns a Promise which resolves when the pause request is completed.
|
|
8086
8034
|
*/
|
|
8087
8035
|
export function pause(
|
|
8088
8036
|
|
|
@@ -8106,7 +8054,6 @@ declare namespace chrome {
|
|
|
8106
8054
|
*
|
|
8107
8055
|
* @chrome-returns-extra since Chrome 96
|
|
8108
8056
|
* @param downloadId The id of the download to resume.
|
|
8109
|
-
* @returns Returns a Promise which resolves when the resume request is completed.
|
|
8110
8057
|
*/
|
|
8111
8058
|
export function resume(
|
|
8112
8059
|
|
|
@@ -8130,7 +8077,6 @@ declare namespace chrome {
|
|
|
8130
8077
|
*
|
|
8131
8078
|
* @chrome-returns-extra since Chrome 96
|
|
8132
8079
|
* @param downloadId The id of the download to cancel.
|
|
8133
|
-
* @returns Returns a Promise which resolves when the cancel request is completed.
|
|
8134
8080
|
*/
|
|
8135
8081
|
export function cancel(
|
|
8136
8082
|
|
|
@@ -8154,7 +8100,6 @@ declare namespace chrome {
|
|
|
8154
8100
|
*
|
|
8155
8101
|
* @chrome-returns-extra since Chrome 96
|
|
8156
8102
|
* @param downloadId The identifier for the download.
|
|
8157
|
-
* @returns Returns a Promise which resolves with a URL to an image that represents the download.
|
|
8158
8103
|
*/
|
|
8159
8104
|
export function getFileIcon(
|
|
8160
8105
|
|
|
@@ -8267,7 +8212,6 @@ declare namespace chrome {
|
|
|
8267
8212
|
*
|
|
8268
8213
|
* @chrome-returns-extra since Chrome 96
|
|
8269
8214
|
* @param downloadId The identifier for the {@link DownloadItem}.
|
|
8270
|
-
* @returns Returns a Promise which resolves when the danger prompt dialog closes.
|
|
8271
8215
|
*/
|
|
8272
8216
|
export function acceptDanger(
|
|
8273
8217
|
|
|
@@ -8301,7 +8245,6 @@ declare namespace chrome {
|
|
|
8301
8245
|
* 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.
|
|
8302
8246
|
*
|
|
8303
8247
|
* @param options Encapsulate a change to the download UI.
|
|
8304
|
-
* @returns Returns a Promise which resolves when the UI update is completed.
|
|
8305
8248
|
* @since Chrome 105
|
|
8306
8249
|
*/
|
|
8307
8250
|
export function setUiOptions(
|
|
@@ -8337,7 +8280,6 @@ declare namespace chrome {
|
|
|
8337
8280
|
* 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.
|
|
8338
8281
|
*
|
|
8339
8282
|
* @chrome-returns-extra since Chrome 96
|
|
8340
|
-
* @returns Returns a Promise which resolves with the device identifier of the directory API.
|
|
8341
8283
|
*/
|
|
8342
8284
|
export function getDirectoryDeviceId(): Promise<string>;
|
|
8343
8285
|
|
|
@@ -8355,7 +8297,6 @@ declare namespace chrome {
|
|
|
8355
8297
|
* 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.
|
|
8356
8298
|
*
|
|
8357
8299
|
* @chrome-returns-extra since Chrome 96
|
|
8358
|
-
* @returns Returns a Promise which resolves with the serial number of the device.
|
|
8359
8300
|
* @since Chrome 66
|
|
8360
8301
|
*/
|
|
8361
8302
|
export function getDeviceSerialNumber(): Promise<string>;
|
|
@@ -8376,7 +8317,6 @@ declare namespace chrome {
|
|
|
8376
8317
|
* 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.
|
|
8377
8318
|
*
|
|
8378
8319
|
* @chrome-returns-extra since Chrome 96
|
|
8379
|
-
* @returns Returns a Promise which resolves with the Asset ID of the device.
|
|
8380
8320
|
* @since Chrome 66
|
|
8381
8321
|
*/
|
|
8382
8322
|
export function getDeviceAssetId(): Promise<string>;
|
|
@@ -8397,7 +8337,6 @@ declare namespace chrome {
|
|
|
8397
8337
|
* 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.
|
|
8398
8338
|
*
|
|
8399
8339
|
* @chrome-returns-extra since Chrome 96
|
|
8400
|
-
* @returns Returns a Promise which resolves with the Annotated Location of the device.
|
|
8401
8340
|
* @since Chrome 66
|
|
8402
8341
|
*/
|
|
8403
8342
|
export function getDeviceAnnotatedLocation(): Promise<string>;
|
|
@@ -8418,7 +8357,6 @@ declare namespace chrome {
|
|
|
8418
8357
|
* 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.
|
|
8419
8358
|
*
|
|
8420
8359
|
* @chrome-returns-extra since Chrome 96
|
|
8421
|
-
* @returns Returns a Promise which resolves with the hostname of the device.
|
|
8422
8360
|
* @since Chrome 82
|
|
8423
8361
|
*/
|
|
8424
8362
|
export function getDeviceHostname(): Promise<string>;
|
|
@@ -8456,7 +8394,6 @@ declare namespace chrome {
|
|
|
8456
8394
|
* Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
|
|
8457
8395
|
*
|
|
8458
8396
|
* @chrome-returns-extra since Chrome 96
|
|
8459
|
-
* @returns Returns a Promise which resolves with the hardware platform info.
|
|
8460
8397
|
*/
|
|
8461
8398
|
export function getHardwarePlatformInfo(): Promise<HardwarePlatformInfo>;
|
|
8462
8399
|
|
|
@@ -8493,7 +8430,6 @@ declare namespace chrome {
|
|
|
8493
8430
|
* 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.
|
|
8494
8431
|
*
|
|
8495
8432
|
* @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
|
|
8496
|
-
* @returns Returns a Promise which resolves when the input method is changed, or rejects if there is an error.
|
|
8497
8433
|
*/
|
|
8498
8434
|
export function setCurrentInputMethod(
|
|
8499
8435
|
|
|
@@ -8569,7 +8505,6 @@ declare namespace chrome {
|
|
|
8569
8505
|
* 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.
|
|
8570
8506
|
*
|
|
8571
8507
|
* @chrome-returns-extra since Chrome 96
|
|
8572
|
-
* @returns Returns a Promise which resolves with the device's default network's {@link NetworkDetails}.
|
|
8573
8508
|
*/
|
|
8574
8509
|
export function getNetworkDetails(): Promise<NetworkDetails>;
|
|
8575
8510
|
|
|
@@ -8673,7 +8608,6 @@ declare namespace chrome {
|
|
|
8673
8608
|
* 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).
|
|
8674
8609
|
*
|
|
8675
8610
|
* @chrome-returns-extra since Chrome 131
|
|
8676
|
-
* @returns Invoked by `getTokens` with the list of available Tokens.
|
|
8677
8611
|
*/
|
|
8678
8612
|
export function getTokens(): Promise<Token[]>;
|
|
8679
8613
|
|
|
@@ -8695,7 +8629,6 @@ declare namespace chrome {
|
|
|
8695
8629
|
*
|
|
8696
8630
|
* @chrome-returns-extra since Chrome 131
|
|
8697
8631
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8698
|
-
* @returns Returns a Promise which resolves with the list of the available certificates.
|
|
8699
8632
|
*/
|
|
8700
8633
|
export function getCertificates(
|
|
8701
8634
|
|
|
@@ -8725,7 +8658,6 @@ declare namespace chrome {
|
|
|
8725
8658
|
* @chrome-returns-extra since Chrome 131
|
|
8726
8659
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8727
8660
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
8728
|
-
* @returns Returns a Promise which resolves when this operation is finished.
|
|
8729
8661
|
*/
|
|
8730
8662
|
export function importCertificate(
|
|
8731
8663
|
|
|
@@ -8755,7 +8687,6 @@ declare namespace chrome {
|
|
|
8755
8687
|
* @chrome-returns-extra since Chrome 131
|
|
8756
8688
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8757
8689
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
8758
|
-
* @returns Returns a Promise which resolves when this operation is finished.
|
|
8759
8690
|
*/
|
|
8760
8691
|
export function removeCertificate(
|
|
8761
8692
|
|
|
@@ -8788,7 +8719,6 @@ declare namespace chrome {
|
|
|
8788
8719
|
*
|
|
8789
8720
|
* @chrome-returns-extra since Chrome 131
|
|
8790
8721
|
* @param options Object containing the fields defined in {@link ChallengeKeyOptions}.
|
|
8791
|
-
* @returns Returns a Promise which resolves with the challenge response.
|
|
8792
8722
|
* @since Chrome 110
|
|
8793
8723
|
*/
|
|
8794
8724
|
export function challengeKey(
|
|
@@ -8824,7 +8754,6 @@ declare namespace chrome {
|
|
|
8824
8754
|
* @chrome-returns-extra since Chrome 131
|
|
8825
8755
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
8826
8756
|
* @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.
|
|
8827
|
-
* @returns Returns a Promise which resolves with the challenge response.
|
|
8828
8757
|
* @deprecated Use {@link challengeKey} instead.
|
|
8829
8758
|
* @since Chrome 50
|
|
8830
8759
|
* @chrome-deprecated-since Chrome 110
|
|
@@ -8871,7 +8800,6 @@ declare namespace chrome {
|
|
|
8871
8800
|
* @chrome-returns-extra since Chrome 131
|
|
8872
8801
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
8873
8802
|
* @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.
|
|
8874
|
-
* @returns Returns a Promise which resolves with the challenge response.
|
|
8875
8803
|
* @deprecated Use {@link challengeKey} instead.
|
|
8876
8804
|
* @since Chrome 50
|
|
8877
8805
|
* @chrome-deprecated-since Chrome 110
|
|
@@ -10795,7 +10723,6 @@ declare namespace chrome {
|
|
|
10795
10723
|
* In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
|
|
10796
10724
|
*
|
|
10797
10725
|
* @chrome-returns-extra since Chrome 96
|
|
10798
|
-
* @returns A generic result callback to indicate success or failure.
|
|
10799
10726
|
*/
|
|
10800
10727
|
export function mount(
|
|
10801
10728
|
|
|
@@ -10822,7 +10749,6 @@ declare namespace chrome {
|
|
|
10822
10749
|
* In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
|
|
10823
10750
|
*
|
|
10824
10751
|
* @chrome-returns-extra since Chrome 96
|
|
10825
|
-
* @returns A generic result callback to indicate success or failure.
|
|
10826
10752
|
*/
|
|
10827
10753
|
export function unmount(
|
|
10828
10754
|
|
|
@@ -10845,7 +10771,6 @@ declare namespace chrome {
|
|
|
10845
10771
|
* Returns all file systems mounted by the extension.
|
|
10846
10772
|
*
|
|
10847
10773
|
* @chrome-returns-extra since Chrome 96
|
|
10848
|
-
* @returns Callback to receive the result of {@link getAll} function.
|
|
10849
10774
|
*/
|
|
10850
10775
|
export function getAll(): Promise<FileSystemInfo[]>;
|
|
10851
10776
|
|
|
@@ -10863,7 +10788,6 @@ declare namespace chrome {
|
|
|
10863
10788
|
* Returns information about a file system with the passed `fileSystemId`.
|
|
10864
10789
|
*
|
|
10865
10790
|
* @chrome-returns-extra since Chrome 96
|
|
10866
|
-
* @returns Callback to receive the result of {@link get} function.
|
|
10867
10791
|
*/
|
|
10868
10792
|
export function get(
|
|
10869
10793
|
|
|
@@ -10896,7 +10820,6 @@ declare namespace chrome {
|
|
|
10896
10820
|
* In case of an error, {@link runtime.lastError} will be set will a corresponding error code.
|
|
10897
10821
|
*
|
|
10898
10822
|
* @chrome-returns-extra since Chrome 96
|
|
10899
|
-
* @returns A generic result callback to indicate success or failure.
|
|
10900
10823
|
* @since Chrome 45
|
|
10901
10824
|
*/
|
|
10902
10825
|
export function notify(
|
|
@@ -11603,7 +11526,6 @@ declare namespace chrome {
|
|
|
11603
11526
|
*
|
|
11604
11527
|
* @chrome-returns-extra since Chrome 116
|
|
11605
11528
|
* @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.
|
|
11606
|
-
* @returns Resolves when registration completes.
|
|
11607
11529
|
*/
|
|
11608
11530
|
export function register(
|
|
11609
11531
|
|
|
@@ -11631,7 +11553,6 @@ declare namespace chrome {
|
|
|
11631
11553
|
* Unregisters the application from FCM.
|
|
11632
11554
|
*
|
|
11633
11555
|
* @chrome-returns-extra since Chrome 116
|
|
11634
|
-
* @returns Resolves after the unregistration completes. Unregistration was successful if the promise does not reject.
|
|
11635
11556
|
*/
|
|
11636
11557
|
export function unregister(): Promise<void>;
|
|
11637
11558
|
|
|
@@ -11648,7 +11569,6 @@ declare namespace chrome {
|
|
|
11648
11569
|
*
|
|
11649
11570
|
* @chrome-returns-extra since Chrome 116
|
|
11650
11571
|
* @param message A message to send to the other party via FCM.
|
|
11651
|
-
* @returns Resolves after the message is successfully queued for sending. If an error occurs, the promise will be rejected.
|
|
11652
11572
|
*/
|
|
11653
11573
|
export function send(
|
|
11654
11574
|
|
|
@@ -12340,7 +12260,6 @@ declare namespace chrome {
|
|
|
12340
12260
|
*
|
|
12341
12261
|
* @chrome-returns-extra since Chrome 105
|
|
12342
12262
|
* @param details Token options.
|
|
12343
|
-
* @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.
|
|
12344
12263
|
*/
|
|
12345
12264
|
export function getAuthToken(
|
|
12346
12265
|
|
|
@@ -12379,7 +12298,6 @@ declare namespace chrome {
|
|
|
12379
12298
|
*
|
|
12380
12299
|
* @chrome-returns-extra since Chrome 106
|
|
12381
12300
|
* @param details Profile options.
|
|
12382
|
-
* @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.
|
|
12383
12301
|
*/
|
|
12384
12302
|
export function getProfileUserInfo(
|
|
12385
12303
|
|
|
@@ -12417,7 +12335,6 @@ declare namespace chrome {
|
|
|
12417
12335
|
*
|
|
12418
12336
|
* @chrome-returns-extra since Chrome 106
|
|
12419
12337
|
* @param details Token information.
|
|
12420
|
-
* @returns Returns a Promise which resolves when the token has been removed from the cache.
|
|
12421
12338
|
*/
|
|
12422
12339
|
export function removeCachedAuthToken(
|
|
12423
12340
|
|
|
@@ -12446,7 +12363,6 @@ declare namespace chrome {
|
|
|
12446
12363
|
* * De-authorizes the user from all auth flows
|
|
12447
12364
|
*
|
|
12448
12365
|
* @chrome-returns-extra since Chrome 106
|
|
12449
|
-
* @returns Returns a Promise which resolves when the state has been cleared.
|
|
12450
12366
|
* @since Chrome 87
|
|
12451
12367
|
*/
|
|
12452
12368
|
export function clearAllCachedAuthTokens(): Promise<void>;
|
|
@@ -12474,7 +12390,6 @@ declare namespace chrome {
|
|
|
12474
12390
|
*
|
|
12475
12391
|
* @chrome-returns-extra since Chrome 106
|
|
12476
12392
|
* @param details WebAuth flow options.
|
|
12477
|
-
* @returns Returns a Promise which resolves with the URL redirected back to your application.
|
|
12478
12393
|
*/
|
|
12479
12394
|
export function launchWebAuthFlow(
|
|
12480
12395
|
|
|
@@ -12991,7 +12906,6 @@ declare namespace chrome {
|
|
|
12991
12906
|
* Set the current composition. If this extension does not own the active IME, this fails.
|
|
12992
12907
|
*
|
|
12993
12908
|
* @chrome-returns-extra since Chrome 111
|
|
12994
|
-
* @returns Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
12995
12909
|
*/
|
|
12996
12910
|
export function setComposition(
|
|
12997
12911
|
|
|
@@ -13108,7 +13022,6 @@ declare namespace chrome {
|
|
|
13108
13022
|
* Clear the current composition. If this extension does not own the active IME, this fails.
|
|
13109
13023
|
*
|
|
13110
13024
|
* @chrome-returns-extra since Chrome 111
|
|
13111
|
-
* @returns Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
13112
13025
|
*/
|
|
13113
13026
|
export function clearComposition(
|
|
13114
13027
|
|
|
@@ -13143,7 +13056,6 @@ declare namespace chrome {
|
|
|
13143
13056
|
* Commits the provided text to the current input.
|
|
13144
13057
|
*
|
|
13145
13058
|
* @chrome-returns-extra since Chrome 111
|
|
13146
|
-
* @returns Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
13147
13059
|
*/
|
|
13148
13060
|
export function commitText(
|
|
13149
13061
|
|
|
@@ -13188,7 +13100,6 @@ declare namespace chrome {
|
|
|
13188
13100
|
* 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.
|
|
13189
13101
|
*
|
|
13190
13102
|
* @chrome-returns-extra since Chrome 111
|
|
13191
|
-
* @returns Resolves when the operation completes.
|
|
13192
13103
|
*/
|
|
13193
13104
|
export function sendKeyEvents(
|
|
13194
13105
|
|
|
@@ -13236,7 +13147,6 @@ declare namespace chrome {
|
|
|
13236
13147
|
* Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
|
|
13237
13148
|
*
|
|
13238
13149
|
* @chrome-returns-extra since Chrome 111
|
|
13239
|
-
* @returns Resolves when the operation completes.
|
|
13240
13150
|
*/
|
|
13241
13151
|
export function setCandidateWindowProperties(
|
|
13242
13152
|
|
|
@@ -13375,7 +13285,6 @@ declare namespace chrome {
|
|
|
13375
13285
|
* Sets the current candidate list. This fails if this extension doesn't own the active IME
|
|
13376
13286
|
*
|
|
13377
13287
|
* @chrome-returns-extra since Chrome 111
|
|
13378
|
-
* @returns Resolves when the operation completes.
|
|
13379
13288
|
*/
|
|
13380
13289
|
export function setCandidates(
|
|
13381
13290
|
|
|
@@ -13504,7 +13413,6 @@ declare namespace chrome {
|
|
|
13504
13413
|
* Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
|
|
13505
13414
|
*
|
|
13506
13415
|
* @chrome-returns-extra since Chrome 111
|
|
13507
|
-
* @returns Resolves when the operation completes
|
|
13508
13416
|
*/
|
|
13509
13417
|
export function setCursorPosition(
|
|
13510
13418
|
|
|
@@ -13549,7 +13457,6 @@ declare namespace chrome {
|
|
|
13549
13457
|
* Shows/Hides an assistive window with the given properties.
|
|
13550
13458
|
*
|
|
13551
13459
|
* @chrome-returns-extra since Chrome 111
|
|
13552
|
-
* @returns Resolves when the operation completes.
|
|
13553
13460
|
* @since Chrome 85
|
|
13554
13461
|
*/
|
|
13555
13462
|
export function setAssistiveWindowProperties(
|
|
@@ -13597,7 +13504,6 @@ declare namespace chrome {
|
|
|
13597
13504
|
* Highlights/Unhighlights a button in an assistive window.
|
|
13598
13505
|
*
|
|
13599
13506
|
* @chrome-returns-extra since Chrome 111
|
|
13600
|
-
* @returns Resolves when the operation completes. On failure, the promise will be rejected.
|
|
13601
13507
|
* @since Chrome 86
|
|
13602
13508
|
*/
|
|
13603
13509
|
export function setAssistiveWindowButtonHighlighted(
|
|
@@ -13693,7 +13599,6 @@ declare namespace chrome {
|
|
|
13693
13599
|
* Updates the state of the MenuItems specified
|
|
13694
13600
|
*
|
|
13695
13601
|
* @chrome-returns-extra since Chrome 111
|
|
13696
|
-
* @returns Resolves when the operation completes
|
|
13697
13602
|
*/
|
|
13698
13603
|
export function updateMenuItems(
|
|
13699
13604
|
|
|
@@ -13714,7 +13619,6 @@ declare namespace chrome {
|
|
|
13714
13619
|
* Deletes the text around the caret.
|
|
13715
13620
|
*
|
|
13716
13621
|
* @chrome-returns-extra since Chrome 111
|
|
13717
|
-
* @returns Resolves when the operation completes.
|
|
13718
13622
|
*/
|
|
13719
13623
|
export function deleteSurroundingText(
|
|
13720
13624
|
|
|
@@ -13804,7 +13708,6 @@ declare namespace chrome {
|
|
|
13804
13708
|
* 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.
|
|
13805
13709
|
*
|
|
13806
13710
|
* @chrome-returns-extra since Chrome 96
|
|
13807
|
-
* @returns Resolves when the retrieval completes.
|
|
13808
13711
|
*/
|
|
13809
13712
|
export function getID(): Promise<string>;
|
|
13810
13713
|
|
|
@@ -13825,7 +13728,6 @@ declare namespace chrome {
|
|
|
13825
13728
|
* Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
|
|
13826
13729
|
*
|
|
13827
13730
|
* @chrome-returns-extra since Chrome 96
|
|
13828
|
-
* @returns Resolves when the retrieval completes.
|
|
13829
13731
|
*/
|
|
13830
13732
|
export function getCreationTime(): Promise<number>;
|
|
13831
13733
|
|
|
@@ -13847,7 +13749,6 @@ declare namespace chrome {
|
|
|
13847
13749
|
*
|
|
13848
13750
|
* @chrome-returns-extra since Chrome 96
|
|
13849
13751
|
* @param getTokenParams Parameters for getToken.
|
|
13850
|
-
* @returns Resolves when the retrieval completes.
|
|
13851
13752
|
*/
|
|
13852
13753
|
export function getToken(
|
|
13853
13754
|
|
|
@@ -13924,7 +13825,6 @@ declare namespace chrome {
|
|
|
13924
13825
|
*
|
|
13925
13826
|
* @chrome-returns-extra since Chrome 96
|
|
13926
13827
|
* @param deleteTokenParams Parameters for deleteToken.
|
|
13927
|
-
* @returns Resolves when the token deletion completes. The token was revoked successfully if the promise does not reject.
|
|
13928
13828
|
*/
|
|
13929
13829
|
export function deleteToken(
|
|
13930
13830
|
|
|
@@ -13977,7 +13877,6 @@ declare namespace chrome {
|
|
|
13977
13877
|
* Resets the app instance identifier and revokes all tokens associated with it.
|
|
13978
13878
|
*
|
|
13979
13879
|
* @chrome-returns-extra since Chrome 96
|
|
13980
|
-
* @returns Resolves when the deletion completes. The instance identifier was revoked successfully if the promise does not reject.
|
|
13981
13880
|
*/
|
|
13982
13881
|
export function deleteID(): Promise<void>;
|
|
13983
13882
|
|
|
@@ -14925,7 +14824,6 @@ declare namespace chrome {
|
|
|
14925
14824
|
|
|
14926
14825
|
The `notificationId` parameter is required before Chrome 42.
|
|
14927
14826
|
* @param options Contents of the notification.
|
|
14928
|
-
* @returns Returns a Promise which resolves with the notification id (either supplied or generated) that represents the created notification.
|
|
14929
14827
|
*/
|
|
14930
14828
|
export function create(
|
|
14931
14829
|
|
|
@@ -14939,7 +14837,6 @@ declare namespace chrome {
|
|
|
14939
14837
|
*
|
|
14940
14838
|
* @chrome-returns-extra since Chrome 116
|
|
14941
14839
|
* @param options Contents of the notification.
|
|
14942
|
-
* @returns Returns a Promise which resolves with the notification id (either supplied or generated) that represents the created notification.
|
|
14943
14840
|
*/
|
|
14944
14841
|
export function create(
|
|
14945
14842
|
|
|
@@ -14987,7 +14884,6 @@ declare namespace chrome {
|
|
|
14987
14884
|
* @chrome-returns-extra since Chrome 116
|
|
14988
14885
|
* @param notificationId The id of the notification to be updated. This is returned by {@link notifications.create} method.
|
|
14989
14886
|
* @param options Contents of the notification to update to.
|
|
14990
|
-
* @returns Returns a Promise which resolves to indicate whether a matching notification existed.
|
|
14991
14887
|
*/
|
|
14992
14888
|
export function update(
|
|
14993
14889
|
|
|
@@ -15018,7 +14914,6 @@ declare namespace chrome {
|
|
|
15018
14914
|
*
|
|
15019
14915
|
* @chrome-returns-extra since Chrome 116
|
|
15020
14916
|
* @param notificationId The id of the notification to be cleared. This is returned by {@link notifications.create} method.
|
|
15021
|
-
* @returns Returns a Promise which resolves to indicate whether a matching notification existed.
|
|
15022
14917
|
*/
|
|
15023
14918
|
export function clear(
|
|
15024
14919
|
|
|
@@ -15043,7 +14938,6 @@ declare namespace chrome {
|
|
|
15043
14938
|
* Retrieves all the notifications of this app or extension.
|
|
15044
14939
|
*
|
|
15045
14940
|
* @chrome-returns-extra since Chrome 116
|
|
15046
|
-
* @returns Returns a Promise which resolves with the set of notification\_ids currently in the system.
|
|
15047
14941
|
*/
|
|
15048
14942
|
export function getAll(): Promise<{[name: string]: any}>;
|
|
15049
14943
|
|
|
@@ -15061,7 +14955,6 @@ declare namespace chrome {
|
|
|
15061
14955
|
* Retrieves whether the user has enabled notifications from this app or extension.
|
|
15062
14956
|
*
|
|
15063
14957
|
* @chrome-returns-extra since Chrome 116
|
|
15064
|
-
* @returns Returns a Promise which resolves with the current permission level.
|
|
15065
14958
|
*/
|
|
15066
14959
|
export function getPermissionLevel(): Promise<PermissionLevel>;
|
|
15067
14960
|
|
|
@@ -15147,7 +15040,6 @@ declare namespace chrome {
|
|
|
15147
15040
|
* Creates a new offscreen document for the extension.
|
|
15148
15041
|
*
|
|
15149
15042
|
* @param parameters The parameters describing the offscreen document to create.
|
|
15150
|
-
* @returns Promise that resolves when the offscreen document is created and has completed its initial page load.
|
|
15151
15043
|
*/
|
|
15152
15044
|
export function createDocument(
|
|
15153
15045
|
|
|
@@ -15168,8 +15060,6 @@ declare namespace chrome {
|
|
|
15168
15060
|
|
|
15169
15061
|
/**
|
|
15170
15062
|
* Closes the currently-open offscreen document for the extension.
|
|
15171
|
-
*
|
|
15172
|
-
* @returns Promise that resolves when the offscreen document has been closed.
|
|
15173
15063
|
*/
|
|
15174
15064
|
export function closeDocument(): Promise<void>;
|
|
15175
15065
|
|
|
@@ -15315,7 +15205,6 @@ declare namespace chrome {
|
|
|
15315
15205
|
* Saves the content of the tab with given id as MHTML.
|
|
15316
15206
|
*
|
|
15317
15207
|
* @chrome-returns-extra since Chrome 116
|
|
15318
|
-
* @returns Resolves when the MHTML has been generated.
|
|
15319
15208
|
*/
|
|
15320
15209
|
export function saveAsMHTML(
|
|
15321
15210
|
|
|
@@ -16707,7 +16596,6 @@ declare namespace chrome {
|
|
|
16707
16596
|
* Returns the ID of the renderer process for the specified tab.
|
|
16708
16597
|
*
|
|
16709
16598
|
* @param tabId The ID of the tab for which the renderer process ID is to be returned.
|
|
16710
|
-
* @returns A callback to return the ID of the renderer process of a tab.
|
|
16711
16599
|
*/
|
|
16712
16600
|
export function getProcessIdForTab(
|
|
16713
16601
|
|
|
@@ -16735,7 +16623,6 @@ declare namespace chrome {
|
|
|
16735
16623
|
* Terminates the specified renderer process. Equivalent to visiting about:crash, but without changing the tab's URL.
|
|
16736
16624
|
*
|
|
16737
16625
|
* @param processId The ID of the process to be terminated.
|
|
16738
|
-
* @returns A callback to report the status of the termination.
|
|
16739
16626
|
*/
|
|
16740
16627
|
export function terminate(
|
|
16741
16628
|
|
|
@@ -16764,7 +16651,6 @@ declare namespace chrome {
|
|
|
16764
16651
|
*
|
|
16765
16652
|
* @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.
|
|
16766
16653
|
* @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.
|
|
16767
|
-
* @returns A callback called when the processes information is collected.
|
|
16768
16654
|
*/
|
|
16769
16655
|
export function getProcessInfo(
|
|
16770
16656
|
|
|
@@ -17093,7 +16979,6 @@ declare namespace chrome {
|
|
|
17093
16979
|
* Adds an entry to the reading list if it does not exist.
|
|
17094
16980
|
*
|
|
17095
16981
|
* @param entry The entry to add to the reading list.
|
|
17096
|
-
* @returns Resolves once the entry has been added.
|
|
17097
16982
|
*/
|
|
17098
16983
|
export function addEntry(
|
|
17099
16984
|
|
|
@@ -17116,7 +17001,6 @@ declare namespace chrome {
|
|
|
17116
17001
|
* Removes an entry from the reading list if it exists.
|
|
17117
17002
|
*
|
|
17118
17003
|
* @param info The entry to remove from the reading list.
|
|
17119
|
-
* @returns Resolves once the entry has been removed.
|
|
17120
17004
|
*/
|
|
17121
17005
|
export function removeEntry(
|
|
17122
17006
|
|
|
@@ -17139,7 +17023,6 @@ declare namespace chrome {
|
|
|
17139
17023
|
* Updates a reading list entry if it exists.
|
|
17140
17024
|
*
|
|
17141
17025
|
* @param info The entry to update.
|
|
17142
|
-
* @returns Resolves once the matched entries have been updated.
|
|
17143
17026
|
*/
|
|
17144
17027
|
export function updateEntry(
|
|
17145
17028
|
|
|
@@ -17162,7 +17045,6 @@ declare namespace chrome {
|
|
|
17162
17045
|
* Retrieves all entries that match the `QueryInfo` properties. Properties that are not provided will not be matched.
|
|
17163
17046
|
*
|
|
17164
17047
|
* @param info The properties to search for.
|
|
17165
|
-
* @returns Resolves once the entries have been matched.
|
|
17166
17048
|
*/
|
|
17167
17049
|
export function query(
|
|
17168
17050
|
|
|
@@ -18282,7 +18164,6 @@ declare namespace chrome {
|
|
|
18282
18164
|
*
|
|
18283
18165
|
* @chrome-returns-extra since Chrome 90
|
|
18284
18166
|
* @param injection The details of the script which to inject.
|
|
18285
|
-
* @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.
|
|
18286
18167
|
*/
|
|
18287
18168
|
export function executeScript(
|
|
18288
18169
|
|
|
@@ -18308,7 +18189,6 @@ declare namespace chrome {
|
|
|
18308
18189
|
*
|
|
18309
18190
|
* @chrome-returns-extra since Chrome 90
|
|
18310
18191
|
* @param injection The details of the styles to insert.
|
|
18311
|
-
* @returns Returns a Promise which resolves upon completion of the insertion.
|
|
18312
18192
|
*/
|
|
18313
18193
|
export function insertCSS(
|
|
18314
18194
|
|
|
@@ -18331,7 +18211,6 @@ declare namespace chrome {
|
|
|
18331
18211
|
* Removes a CSS stylesheet that was previously inserted by this extension from a target context.
|
|
18332
18212
|
*
|
|
18333
18213
|
* @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.
|
|
18334
|
-
* @returns Returns a Promise which resolves upon the completion of the removal.
|
|
18335
18214
|
* @since Chrome 90
|
|
18336
18215
|
*/
|
|
18337
18216
|
export function removeCSS(
|
|
@@ -18356,7 +18235,6 @@ declare namespace chrome {
|
|
|
18356
18235
|
* Registers one or more content scripts for this extension.
|
|
18357
18236
|
*
|
|
18358
18237
|
* @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.
|
|
18359
|
-
* @returns Returns a Promise which resolves once scripts have been fully registered or rejects if an error has occurred.
|
|
18360
18238
|
* @since Chrome 96
|
|
18361
18239
|
*/
|
|
18362
18240
|
export function registerContentScripts(
|
|
@@ -18407,7 +18285,6 @@ declare namespace chrome {
|
|
|
18407
18285
|
* Unregisters content scripts for this extension.
|
|
18408
18286
|
*
|
|
18409
18287
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
18410
|
-
* @returns Returns a Promise which resolves once scripts have been unregistered or rejects if an error has occurred.
|
|
18411
18288
|
* @since Chrome 96
|
|
18412
18289
|
*/
|
|
18413
18290
|
export function unregisterContentScripts(
|
|
@@ -18432,7 +18309,6 @@ declare namespace chrome {
|
|
|
18432
18309
|
* Updates one or more content scripts for this extension.
|
|
18433
18310
|
*
|
|
18434
18311
|
* @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.
|
|
18435
|
-
* @returns Returns a Promise which resolves once scripts have been updated or rejects if an error has occurred.
|
|
18436
18312
|
* @since Chrome 96
|
|
18437
18313
|
*/
|
|
18438
18314
|
export function updateContentScripts(
|
|
@@ -18838,7 +18714,6 @@ declare namespace chrome {
|
|
|
18838
18714
|
* Configures the side panel.
|
|
18839
18715
|
*
|
|
18840
18716
|
* @param options The configuration options to apply to the panel.
|
|
18841
|
-
* @returns Returns a Promise which resolves when the options have been set.
|
|
18842
18717
|
*/
|
|
18843
18718
|
export function setOptions(
|
|
18844
18719
|
|
|
@@ -18861,7 +18736,6 @@ declare namespace chrome {
|
|
|
18861
18736
|
* Returns the active panel configuration.
|
|
18862
18737
|
*
|
|
18863
18738
|
* @param options Specifies the context to return the configuration for.
|
|
18864
|
-
* @returns Returns a Promise which resolves with the active panel configuration.
|
|
18865
18739
|
*/
|
|
18866
18740
|
export function getOptions(
|
|
18867
18741
|
|
|
@@ -18886,7 +18760,6 @@ declare namespace chrome {
|
|
|
18886
18760
|
* Configures the extension's side panel behavior. This is an upsert operation.
|
|
18887
18761
|
*
|
|
18888
18762
|
* @param behavior The new behavior to be set.
|
|
18889
|
-
* @returns Returns a Promise which resolves when the new behavior has been set.
|
|
18890
18763
|
*/
|
|
18891
18764
|
export function setPanelBehavior(
|
|
18892
18765
|
|
|
@@ -18907,8 +18780,6 @@ declare namespace chrome {
|
|
|
18907
18780
|
|
|
18908
18781
|
/**
|
|
18909
18782
|
* Returns the extension's current side panel behavior.
|
|
18910
|
-
*
|
|
18911
|
-
* @returns Returns a Promise which resolves with the extension's side panel behavior.
|
|
18912
18783
|
*/
|
|
18913
18784
|
export function getPanelBehavior(): Promise<PanelBehavior>;
|
|
18914
18785
|
|
|
@@ -18926,7 +18797,6 @@ declare namespace chrome {
|
|
|
18926
18797
|
* Opens the side panel for the extension. This may only be called in response to a user action.
|
|
18927
18798
|
*
|
|
18928
18799
|
* @param options Specifies the context in which to open the side panel.
|
|
18929
|
-
* @returns Returns a Promise which resolves when the side panel has been opened.
|
|
18930
18800
|
* @since Chrome 116
|
|
18931
18801
|
*/
|
|
18932
18802
|
export function open(
|
|
@@ -18950,7 +18820,6 @@ declare namespace chrome {
|
|
|
18950
18820
|
/**
|
|
18951
18821
|
* Returns the side panel's current layout.
|
|
18952
18822
|
*
|
|
18953
|
-
* @returns Returns a Promise which resolves with a {@link PanelLayout}.
|
|
18954
18823
|
* @since Chrome 140
|
|
18955
18824
|
*/
|
|
18956
18825
|
export function getLayout(): Promise<PanelLayout>;
|
|
@@ -19139,7 +19008,6 @@ declare namespace chrome {
|
|
|
19139
19008
|
* Creates a TCP socket.
|
|
19140
19009
|
*
|
|
19141
19010
|
* @param properties The socket properties (optional).
|
|
19142
|
-
* @returns Called when the socket has been created.
|
|
19143
19011
|
*/
|
|
19144
19012
|
export function create(
|
|
19145
19013
|
|
|
@@ -19168,7 +19036,6 @@ declare namespace chrome {
|
|
|
19168
19036
|
*
|
|
19169
19037
|
* @param socketId The socket identifier.
|
|
19170
19038
|
* @param properties The properties to update.
|
|
19171
|
-
* @returns Called when the properties are updated.
|
|
19172
19039
|
*/
|
|
19173
19040
|
export function update(
|
|
19174
19041
|
|
|
@@ -19194,8 +19061,6 @@ declare namespace chrome {
|
|
|
19194
19061
|
|
|
19195
19062
|
/**
|
|
19196
19063
|
* 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.
|
|
19197
|
-
*
|
|
19198
|
-
* @returns Callback from the `setPaused` method.
|
|
19199
19064
|
*/
|
|
19200
19065
|
export function setPaused(
|
|
19201
19066
|
|
|
@@ -19337,7 +19202,6 @@ declare namespace chrome {
|
|
|
19337
19202
|
* Disconnects the socket.
|
|
19338
19203
|
*
|
|
19339
19204
|
* @param socketId The socket identifier.
|
|
19340
|
-
* @returns Called when the disconnect attempt is complete.
|
|
19341
19205
|
*/
|
|
19342
19206
|
export function disconnect(
|
|
19343
19207
|
|
|
@@ -19414,7 +19278,6 @@ declare namespace chrome {
|
|
|
19414
19278
|
* Closes the socket and releases the address/port the socket is bound to. Each socket created should be closed after use. The socket id is no no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
19415
19279
|
*
|
|
19416
19280
|
* @param socketId The socket identifier.
|
|
19417
|
-
* @returns Called when the `close` operation completes.
|
|
19418
19281
|
*/
|
|
19419
19282
|
export function close(
|
|
19420
19283
|
|
|
@@ -19437,7 +19300,6 @@ declare namespace chrome {
|
|
|
19437
19300
|
* Retrieves the state of the given socket.
|
|
19438
19301
|
*
|
|
19439
19302
|
* @param socketId The socket identifier.
|
|
19440
|
-
* @returns Called when the socket state is available.
|
|
19441
19303
|
*/
|
|
19442
19304
|
export function getInfo(
|
|
19443
19305
|
|
|
@@ -19463,8 +19325,6 @@ declare namespace chrome {
|
|
|
19463
19325
|
|
|
19464
19326
|
/**
|
|
19465
19327
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
19466
|
-
*
|
|
19467
|
-
* @returns Called when the list of sockets is available.
|
|
19468
19328
|
*/
|
|
19469
19329
|
export function getSockets(): Promise<SocketInfo[]>;
|
|
19470
19330
|
|
|
@@ -19593,7 +19453,6 @@ declare namespace chrome {
|
|
|
19593
19453
|
* Creates a TCP server socket.
|
|
19594
19454
|
*
|
|
19595
19455
|
* @param properties The socket properties (optional).
|
|
19596
|
-
* @returns Called when the socket has been created.
|
|
19597
19456
|
*/
|
|
19598
19457
|
export function create(
|
|
19599
19458
|
|
|
@@ -19622,7 +19481,6 @@ declare namespace chrome {
|
|
|
19622
19481
|
*
|
|
19623
19482
|
* @param socketId The socket identifier.
|
|
19624
19483
|
* @param properties The properties to update.
|
|
19625
|
-
* @returns Called when the properties are updated.
|
|
19626
19484
|
*/
|
|
19627
19485
|
export function update(
|
|
19628
19486
|
|
|
@@ -19648,8 +19506,6 @@ declare namespace chrome {
|
|
|
19648
19506
|
|
|
19649
19507
|
/**
|
|
19650
19508
|
* 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.
|
|
19651
|
-
*
|
|
19652
|
-
* @returns Callback from the `setPaused` method.
|
|
19653
19509
|
*/
|
|
19654
19510
|
export function setPaused(
|
|
19655
19511
|
|
|
@@ -19725,7 +19581,6 @@ declare namespace chrome {
|
|
|
19725
19581
|
* Disconnects the listening socket, i.e. stops accepting new connections and releases the address/port the socket is bound to. The socket identifier remains valid, e.g. it can be used with `listen` to accept connections on a new port and address.
|
|
19726
19582
|
*
|
|
19727
19583
|
* @param socketId The socket identifier.
|
|
19728
|
-
* @returns Called when the disconnect attempt is complete.
|
|
19729
19584
|
*/
|
|
19730
19585
|
export function disconnect(
|
|
19731
19586
|
|
|
@@ -19748,7 +19603,6 @@ declare namespace chrome {
|
|
|
19748
19603
|
* Disconnects and destroys the socket. Each socket created should be closed after use. The socket id is no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
19749
19604
|
*
|
|
19750
19605
|
* @param socketId The socket identifier.
|
|
19751
|
-
* @returns Called when the `close` operation completes.
|
|
19752
19606
|
*/
|
|
19753
19607
|
export function close(
|
|
19754
19608
|
|
|
@@ -19771,7 +19625,6 @@ declare namespace chrome {
|
|
|
19771
19625
|
* Retrieves the state of the given socket.
|
|
19772
19626
|
*
|
|
19773
19627
|
* @param socketId The socket identifier.
|
|
19774
|
-
* @returns Called when the socket state is available.
|
|
19775
19628
|
*/
|
|
19776
19629
|
export function getInfo(
|
|
19777
19630
|
|
|
@@ -19797,8 +19650,6 @@ declare namespace chrome {
|
|
|
19797
19650
|
|
|
19798
19651
|
/**
|
|
19799
19652
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
19800
|
-
*
|
|
19801
|
-
* @returns Called when the list of sockets is available.
|
|
19802
19653
|
*/
|
|
19803
19654
|
export function getSockets(): Promise<SocketInfo[]>;
|
|
19804
19655
|
|
|
@@ -19965,7 +19816,6 @@ declare namespace chrome {
|
|
|
19965
19816
|
* Creates a UDP socket with the given properties.
|
|
19966
19817
|
*
|
|
19967
19818
|
* @param properties The socket properties (optional).
|
|
19968
|
-
* @returns Called when the socket has been created.
|
|
19969
19819
|
*/
|
|
19970
19820
|
export function create(
|
|
19971
19821
|
|
|
@@ -19994,7 +19844,6 @@ declare namespace chrome {
|
|
|
19994
19844
|
*
|
|
19995
19845
|
* @param socketId The socket ID.
|
|
19996
19846
|
* @param properties The properties to update.
|
|
19997
|
-
* @returns Called when the properties are updated.
|
|
19998
19847
|
*/
|
|
19999
19848
|
export function update(
|
|
20000
19849
|
|
|
@@ -20022,7 +19871,6 @@ declare namespace chrome {
|
|
|
20022
19871
|
* Pauses or unpauses a socket. A paused socket is blocked from firing `onReceive` events.
|
|
20023
19872
|
*
|
|
20024
19873
|
* @param paused Flag to indicate whether to pause or unpause.
|
|
20025
|
-
* @returns Called when the socket has been successfully paused or unpaused.
|
|
20026
19874
|
*/
|
|
20027
19875
|
export function setPaused(
|
|
20028
19876
|
|
|
@@ -20132,7 +19980,6 @@ declare namespace chrome {
|
|
|
20132
19980
|
* Closes the socket and releases the address/port the socket is bound to. Each socket created should be closed after use. The socket id is no longer valid as soon at the function is called. However, the socket is guaranteed to be closed only when the callback is invoked.
|
|
20133
19981
|
*
|
|
20134
19982
|
* @param socketId The socket ID.
|
|
20135
|
-
* @returns Called when the `close` operation completes.
|
|
20136
19983
|
*/
|
|
20137
19984
|
export function close(
|
|
20138
19985
|
|
|
@@ -20155,7 +20002,6 @@ declare namespace chrome {
|
|
|
20155
20002
|
* Retrieves the state of the given socket.
|
|
20156
20003
|
*
|
|
20157
20004
|
* @param socketId The socket ID.
|
|
20158
|
-
* @returns Called when the socket state is available.
|
|
20159
20005
|
*/
|
|
20160
20006
|
export function getInfo(
|
|
20161
20007
|
|
|
@@ -20181,8 +20027,6 @@ declare namespace chrome {
|
|
|
20181
20027
|
|
|
20182
20028
|
/**
|
|
20183
20029
|
* Retrieves the list of currently opened sockets owned by the application.
|
|
20184
|
-
*
|
|
20185
|
-
* @returns Called when the list of sockets is available.
|
|
20186
20030
|
*/
|
|
20187
20031
|
export function getSockets(): Promise<SocketInfo[]>;
|
|
20188
20032
|
|
|
@@ -20295,7 +20139,6 @@ declare namespace chrome {
|
|
|
20295
20139
|
* Gets the multicast group addresses the socket is currently joined to.
|
|
20296
20140
|
*
|
|
20297
20141
|
* @param socketId The socket ID.
|
|
20298
|
-
* @returns Called with an array of strings of the result.
|
|
20299
20142
|
*/
|
|
20300
20143
|
export function getJoinedGroups(
|
|
20301
20144
|
|
|
@@ -20386,7 +20229,6 @@ declare namespace chrome {
|
|
|
20386
20229
|
*
|
|
20387
20230
|
* @chrome-returns-extra since Chrome 95
|
|
20388
20231
|
* @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.
|
|
20389
|
-
* @returns Promise that resolves with storage items, or rejects on failure.
|
|
20390
20232
|
*/
|
|
20391
20233
|
get(
|
|
20392
20234
|
|
|
@@ -20413,7 +20255,6 @@ declare namespace chrome {
|
|
|
20413
20255
|
/**
|
|
20414
20256
|
* Gets all keys from storage.
|
|
20415
20257
|
*
|
|
20416
|
-
* @returns Promise that resolves with storage keys, or rejects on failure.
|
|
20417
20258
|
* @since Chrome 130
|
|
20418
20259
|
*/
|
|
20419
20260
|
getKeys(): Promise<string[]>;
|
|
@@ -20438,7 +20279,6 @@ declare namespace chrome {
|
|
|
20438
20279
|
*
|
|
20439
20280
|
* @chrome-returns-extra since Chrome 95
|
|
20440
20281
|
* @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.
|
|
20441
|
-
* @returns Promise that resolves with the amount of space being used by storage, or rejects on failure.
|
|
20442
20282
|
*/
|
|
20443
20283
|
getBytesInUse(
|
|
20444
20284
|
|
|
@@ -20471,7 +20311,6 @@ declare namespace chrome {
|
|
|
20471
20311
|
An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
|
|
20472
20312
|
|
|
20473
20313
|
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).
|
|
20474
|
-
* @returns Promise that resolves on success, or rejects on failure.
|
|
20475
20314
|
*/
|
|
20476
20315
|
set(
|
|
20477
20316
|
|
|
@@ -20499,7 +20338,6 @@ declare namespace chrome {
|
|
|
20499
20338
|
*
|
|
20500
20339
|
* @chrome-returns-extra since Chrome 95
|
|
20501
20340
|
* @param keys A single key or a list of keys for items to remove.
|
|
20502
|
-
* @returns Promise that resolves on success, or rejects on failure.
|
|
20503
20341
|
*/
|
|
20504
20342
|
remove(
|
|
20505
20343
|
|
|
@@ -20522,7 +20360,6 @@ declare namespace chrome {
|
|
|
20522
20360
|
* Removes all items from storage.
|
|
20523
20361
|
*
|
|
20524
20362
|
* @chrome-returns-extra since Chrome 95
|
|
20525
|
-
* @returns Promise that resolves on success, or rejects on failure.
|
|
20526
20363
|
*/
|
|
20527
20364
|
clear(): Promise<void>;
|
|
20528
20365
|
|
|
@@ -20537,7 +20374,6 @@ declare namespace chrome {
|
|
|
20537
20374
|
/**
|
|
20538
20375
|
* 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.
|
|
20539
20376
|
*
|
|
20540
|
-
* @returns Promise that resolves on success, or rejects on failure.
|
|
20541
20377
|
* @since Chrome 102
|
|
20542
20378
|
*/
|
|
20543
20379
|
setAccessLevel(
|
|
@@ -21204,7 +21040,6 @@ declare namespace chrome {
|
|
|
21204
21040
|
*
|
|
21205
21041
|
* @chrome-returns-extra since Chrome 91
|
|
21206
21042
|
* @param flags Options affecting how the information is returned.
|
|
21207
|
-
* @returns Promise that resolves with the results.
|
|
21208
21043
|
*/
|
|
21209
21044
|
export function getInfo(
|
|
21210
21045
|
|
|
@@ -21235,7 +21070,6 @@ declare namespace chrome {
|
|
|
21235
21070
|
* Requests the layout info for all displays. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.
|
|
21236
21071
|
*
|
|
21237
21072
|
* @chrome-returns-extra since Chrome 91
|
|
21238
|
-
* @returns Promise that resolves with the results.
|
|
21239
21073
|
* @since Chrome 53
|
|
21240
21074
|
*/
|
|
21241
21075
|
export function getDisplayLayout(): Promise<DisplayLayout[]>;
|
|
@@ -21258,7 +21092,6 @@ declare namespace chrome {
|
|
|
21258
21092
|
* @chrome-returns-extra since Chrome 91
|
|
21259
21093
|
* @param id The display's unique identifier.
|
|
21260
21094
|
* @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`.
|
|
21261
|
-
* @returns Promise that resolves when the function finishes.
|
|
21262
21095
|
*/
|
|
21263
21096
|
export function setDisplayProperties(
|
|
21264
21097
|
|
|
@@ -21287,7 +21120,6 @@ declare namespace chrome {
|
|
|
21287
21120
|
*
|
|
21288
21121
|
* @chrome-returns-extra since Chrome 91
|
|
21289
21122
|
* @param layouts The layout information, required for all displays except the primary display.
|
|
21290
|
-
* @returns Promise that resolves when the function finishes.
|
|
21291
21123
|
* @since Chrome 53
|
|
21292
21124
|
*/
|
|
21293
21125
|
export function setDisplayLayout(
|
|
@@ -21371,7 +21203,6 @@ declare namespace chrome {
|
|
|
21371
21203
|
*
|
|
21372
21204
|
* @chrome-returns-extra since Chrome 91
|
|
21373
21205
|
* @param id The display's unique identifier.
|
|
21374
|
-
* @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.
|
|
21375
21206
|
* @since Chrome 57
|
|
21376
21207
|
*/
|
|
21377
21208
|
export function showNativeTouchCalibration(
|
|
@@ -21435,7 +21266,6 @@ declare namespace chrome {
|
|
|
21435
21266
|
*
|
|
21436
21267
|
* @chrome-returns-extra since Chrome 91
|
|
21437
21268
|
* @param info The information of the mirror mode that should be applied to the display mode.
|
|
21438
|
-
* @returns Promise that resolves when the function finishes.
|
|
21439
21269
|
* @since Chrome 65
|
|
21440
21270
|
*/
|
|
21441
21271
|
export function setMirrorMode(
|
|
@@ -21524,8 +21354,6 @@ declare namespace chrome {
|
|
|
21524
21354
|
|
|
21525
21355
|
/**
|
|
21526
21356
|
* Retrieves information about local adapters on this system.
|
|
21527
|
-
*
|
|
21528
|
-
* @returns Called when local adapter information is available.
|
|
21529
21357
|
*/
|
|
21530
21358
|
export function getNetworkInterfaces(): Promise<NetworkInterface[]>;
|
|
21531
21359
|
|
|
@@ -21704,7 +21532,6 @@ declare namespace chrome {
|
|
|
21704
21532
|
* Adds a new log record.
|
|
21705
21533
|
*
|
|
21706
21534
|
* @param options The logging options.
|
|
21707
|
-
* @returns Returns a Promise which resolves once the log has been added.
|
|
21708
21535
|
*/
|
|
21709
21536
|
export function add(
|
|
21710
21537
|
|
|
@@ -21812,7 +21639,6 @@ declare namespace chrome {
|
|
|
21812
21639
|
* 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).
|
|
21813
21640
|
*
|
|
21814
21641
|
* @chrome-returns-extra since Chrome 116
|
|
21815
|
-
* @returns Returns a Promise which resolves with CaptureInfo\[\] for captured tabs.
|
|
21816
21642
|
*/
|
|
21817
21643
|
export function getCapturedTabs(): Promise<CaptureInfo[]>;
|
|
21818
21644
|
|
|
@@ -21830,7 +21656,6 @@ declare namespace chrome {
|
|
|
21830
21656
|
* 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.
|
|
21831
21657
|
*
|
|
21832
21658
|
* @chrome-returns-extra since Chrome 116
|
|
21833
|
-
* @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.
|
|
21834
21659
|
* @since Chrome 71
|
|
21835
21660
|
*/
|
|
21836
21661
|
export function getMediaStreamId(
|
|
@@ -24151,7 +23976,6 @@ declare namespace chrome {
|
|
|
24151
23976
|
* @chrome-returns-extra since Chrome 101
|
|
24152
23977
|
* @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.
|
|
24153
23978
|
* @param options The speech options.
|
|
24154
|
-
* @returns Resolves right away, before speech finishes. If an error occurs, the promise will be rejected. Use options.onEvent to get more detailed feedback.
|
|
24155
23979
|
*/
|
|
24156
23980
|
export function speak(
|
|
24157
23981
|
|
|
@@ -24920,7 +24744,6 @@ declare namespace chrome {
|
|
|
24920
24744
|
* Registers one or more user scripts for this extension.
|
|
24921
24745
|
*
|
|
24922
24746
|
* @param scripts Contains a list of user scripts to be registered.
|
|
24923
|
-
* @returns Promise that resolves once scripts have been fully registered. The promise will be rejected if an error occurs.
|
|
24924
24747
|
*/
|
|
24925
24748
|
export function register(
|
|
24926
24749
|
|
|
@@ -24943,7 +24766,6 @@ declare namespace chrome {
|
|
|
24943
24766
|
* Returns all dynamically-registered user scripts for this extension.
|
|
24944
24767
|
*
|
|
24945
24768
|
* @param filter If specified, this method returns only the user scripts that match it.
|
|
24946
|
-
* @returns Promise that resolves with the registered scripts. The promise will be rejected if an error occurs.
|
|
24947
24769
|
*/
|
|
24948
24770
|
export function getScripts(
|
|
24949
24771
|
|
|
@@ -24968,7 +24790,6 @@ declare namespace chrome {
|
|
|
24968
24790
|
* Unregisters all dynamically-registered user scripts for this extension.
|
|
24969
24791
|
*
|
|
24970
24792
|
* @param filter If specified, this method unregisters only the user scripts that match it.
|
|
24971
|
-
* @returns Promise that resolves once scripts have been fully unregistered. The promise will be rejected if an error occurs.
|
|
24972
24793
|
*/
|
|
24973
24794
|
export function unregister(
|
|
24974
24795
|
|
|
@@ -24991,7 +24812,6 @@ declare namespace chrome {
|
|
|
24991
24812
|
* Updates one or more user scripts for this extension.
|
|
24992
24813
|
*
|
|
24993
24814
|
* @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.
|
|
24994
|
-
* @returns Promise that resolves once scripts have been fully updated. The promise will be rejected if an error occurs.
|
|
24995
24815
|
*/
|
|
24996
24816
|
export function update(
|
|
24997
24817
|
|
|
@@ -25038,7 +24858,6 @@ declare namespace chrome {
|
|
|
25038
24858
|
* Configures the `` `USER_SCRIPT` `` execution environment.
|
|
25039
24859
|
*
|
|
25040
24860
|
* @param properties Contains the user script world configuration.
|
|
25041
|
-
* @returns Promise that resolves once the world has been configured.
|
|
25042
24861
|
*/
|
|
25043
24862
|
export function configureWorld(
|
|
25044
24863
|
|
|
@@ -25060,7 +24879,6 @@ declare namespace chrome {
|
|
|
25060
24879
|
/**
|
|
25061
24880
|
* Retrieves all registered world configurations.
|
|
25062
24881
|
*
|
|
25063
|
-
* @returns Promise that resolves with the registered world configurations.
|
|
25064
24882
|
* @since Chrome 133
|
|
25065
24883
|
*/
|
|
25066
24884
|
export function getWorldConfigurations(): Promise<WorldProperties[]>;
|
|
@@ -25081,7 +24899,6 @@ declare namespace chrome {
|
|
|
25081
24899
|
* 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.
|
|
25082
24900
|
*
|
|
25083
24901
|
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
25084
|
-
* @returns Promise that resolves when the configuration is reset.
|
|
25085
24902
|
* @since Chrome 133
|
|
25086
24903
|
*/
|
|
25087
24904
|
export function resetWorldConfiguration(
|
|
@@ -25236,7 +25053,6 @@ declare namespace chrome {
|
|
|
25236
25053
|
*
|
|
25237
25054
|
* @chrome-returns-extra since Chrome 96
|
|
25238
25055
|
* @param name The name of the VPN configuration.
|
|
25239
|
-
* @returns Returns a Promise which resolves when the configuration is created or rejects if there is an error.
|
|
25240
25056
|
*/
|
|
25241
25057
|
export function createConfig(
|
|
25242
25058
|
|
|
@@ -25265,7 +25081,6 @@ declare namespace chrome {
|
|
|
25265
25081
|
*
|
|
25266
25082
|
* @chrome-returns-extra since Chrome 96
|
|
25267
25083
|
* @param id ID of the VPN configuration to destroy.
|
|
25268
|
-
* @returns Returns a Promise which resolves when the configuration is destroyed or rejects if there is an error.
|
|
25269
25084
|
*/
|
|
25270
25085
|
export function destroyConfig(
|
|
25271
25086
|
|
|
@@ -25289,7 +25104,6 @@ declare namespace chrome {
|
|
|
25289
25104
|
*
|
|
25290
25105
|
* @chrome-returns-extra since Chrome 96
|
|
25291
25106
|
* @param parameters The parameters for the VPN session.
|
|
25292
|
-
* @returns Returns a Promise which resolves when the parameters are set or rejects if there is an error.
|
|
25293
25107
|
*/
|
|
25294
25108
|
export function setParameters(
|
|
25295
25109
|
|
|
@@ -25313,7 +25127,6 @@ declare namespace chrome {
|
|
|
25313
25127
|
*
|
|
25314
25128
|
* @chrome-returns-extra since Chrome 96
|
|
25315
25129
|
* @param data The IP packet to be sent to the platform.
|
|
25316
|
-
* @returns Returns a Promise which resolves when the packet is sent or rejects if there is an error.
|
|
25317
25130
|
*/
|
|
25318
25131
|
export function sendPacket(
|
|
25319
25132
|
|
|
@@ -25337,7 +25150,6 @@ declare namespace chrome {
|
|
|
25337
25150
|
*
|
|
25338
25151
|
* @chrome-returns-extra since Chrome 96
|
|
25339
25152
|
* @param state The VPN session state of the VPN client.
|
|
25340
|
-
* @returns Returns a Promise which resolves when the notification is complete or rejects if there is an error.
|
|
25341
25153
|
*/
|
|
25342
25154
|
export function notifyConnectionStateChanged(
|
|
25343
25155
|
|