chrome-types 0.1.402 → 0.1.403
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 +71 -71
- package/index.d.ts +59 -59
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Dec 24 2025 22:33:51 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 456fefca54e809142055dbd8348d8d51eaaef2e8
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -5123,7 +5123,7 @@ declare namespace chrome {
|
|
|
5123
5123
|
* Clears various types of browsing data stored in a user's profile.
|
|
5124
5124
|
*
|
|
5125
5125
|
* @param dataToRemove The set of data types to remove.
|
|
5126
|
-
* @param callback
|
|
5126
|
+
* @param callback Resolves when deletion has completed.
|
|
5127
5127
|
*/
|
|
5128
5128
|
export function remove(
|
|
5129
5129
|
|
|
@@ -5147,7 +5147,7 @@ declare namespace chrome {
|
|
|
5147
5147
|
/**
|
|
5148
5148
|
* Clears websites' appcache data.
|
|
5149
5149
|
*
|
|
5150
|
-
* @param callback
|
|
5150
|
+
* @param callback Resolves when websites' appcache data has been cleared.
|
|
5151
5151
|
*/
|
|
5152
5152
|
export function removeAppcache(
|
|
5153
5153
|
|
|
@@ -5169,7 +5169,7 @@ declare namespace chrome {
|
|
|
5169
5169
|
/**
|
|
5170
5170
|
* Clears the browser's cache.
|
|
5171
5171
|
*
|
|
5172
|
-
* @param callback
|
|
5172
|
+
* @param callback Resolves when the browser's cache has been cleared.
|
|
5173
5173
|
*/
|
|
5174
5174
|
export function removeCache(
|
|
5175
5175
|
|
|
@@ -5192,7 +5192,7 @@ declare namespace chrome {
|
|
|
5192
5192
|
/**
|
|
5193
5193
|
* Clears websites' cache storage data.
|
|
5194
5194
|
*
|
|
5195
|
-
* @param callback
|
|
5195
|
+
* @param callback Resolves when websites' cache storage has been cleared.
|
|
5196
5196
|
* @since Chrome 72
|
|
5197
5197
|
*/
|
|
5198
5198
|
export function removeCacheStorage(
|
|
@@ -5215,7 +5215,7 @@ declare namespace chrome {
|
|
|
5215
5215
|
/**
|
|
5216
5216
|
* Clears the browser's cookies and server-bound certificates modified within a particular timeframe.
|
|
5217
5217
|
*
|
|
5218
|
-
* @param callback
|
|
5218
|
+
* @param callback Resolves when the browser's cookies and server-bound certificates have been cleared.
|
|
5219
5219
|
*/
|
|
5220
5220
|
export function removeCookies(
|
|
5221
5221
|
|
|
@@ -5237,7 +5237,7 @@ declare namespace chrome {
|
|
|
5237
5237
|
/**
|
|
5238
5238
|
* Clears the browser's list of downloaded files (_not_ the downloaded files themselves).
|
|
5239
5239
|
*
|
|
5240
|
-
* @param callback
|
|
5240
|
+
* @param callback Resolves when the browser's list of downloaded files has been cleared.
|
|
5241
5241
|
*/
|
|
5242
5242
|
export function removeDownloads(
|
|
5243
5243
|
|
|
@@ -5259,7 +5259,7 @@ declare namespace chrome {
|
|
|
5259
5259
|
/**
|
|
5260
5260
|
* Clears websites' file system data.
|
|
5261
5261
|
*
|
|
5262
|
-
* @param callback
|
|
5262
|
+
* @param callback Resolves when websites' file systems have been cleared.
|
|
5263
5263
|
*/
|
|
5264
5264
|
export function removeFileSystems(
|
|
5265
5265
|
|
|
@@ -5281,7 +5281,7 @@ declare namespace chrome {
|
|
|
5281
5281
|
/**
|
|
5282
5282
|
* Clears the browser's stored form data (autofill).
|
|
5283
5283
|
*
|
|
5284
|
-
* @param callback
|
|
5284
|
+
* @param callback Resolves when the browser's form data has been cleared.
|
|
5285
5285
|
*/
|
|
5286
5286
|
export function removeFormData(
|
|
5287
5287
|
|
|
@@ -5303,7 +5303,7 @@ declare namespace chrome {
|
|
|
5303
5303
|
/**
|
|
5304
5304
|
* Clears the browser's history.
|
|
5305
5305
|
*
|
|
5306
|
-
* @param callback
|
|
5306
|
+
* @param callback Resolves when the browser's history has cleared.
|
|
5307
5307
|
*/
|
|
5308
5308
|
export function removeHistory(
|
|
5309
5309
|
|
|
@@ -5325,7 +5325,7 @@ declare namespace chrome {
|
|
|
5325
5325
|
/**
|
|
5326
5326
|
* Clears websites' IndexedDB data.
|
|
5327
5327
|
*
|
|
5328
|
-
* @param callback
|
|
5328
|
+
* @param callback Resolves when websites' IndexedDB data has been cleared.
|
|
5329
5329
|
*/
|
|
5330
5330
|
export function removeIndexedDB(
|
|
5331
5331
|
|
|
@@ -5347,7 +5347,7 @@ declare namespace chrome {
|
|
|
5347
5347
|
/**
|
|
5348
5348
|
* Clears websites' local storage data.
|
|
5349
5349
|
*
|
|
5350
|
-
* @param callback
|
|
5350
|
+
* @param callback Resolves when websites' local storage has been cleared.
|
|
5351
5351
|
*/
|
|
5352
5352
|
export function removeLocalStorage(
|
|
5353
5353
|
|
|
@@ -5371,7 +5371,7 @@ declare namespace chrome {
|
|
|
5371
5371
|
/**
|
|
5372
5372
|
* Clears plugins' data.
|
|
5373
5373
|
*
|
|
5374
|
-
* @param callback
|
|
5374
|
+
* @param callback Resolves when plugins' data has been cleared.
|
|
5375
5375
|
* @deprecated Support for Flash has been removed. This function has no effect.
|
|
5376
5376
|
* @chrome-deprecated-since Chrome 88
|
|
5377
5377
|
*/
|
|
@@ -5396,7 +5396,7 @@ declare namespace chrome {
|
|
|
5396
5396
|
/**
|
|
5397
5397
|
* Clears the browser's stored passwords.
|
|
5398
5398
|
*
|
|
5399
|
-
* @param callback
|
|
5399
|
+
* @param callback Resolves when the browser's passwords have been cleared.
|
|
5400
5400
|
* @deprecated Support for password deletion through extensions has been removed. This function has no effect.
|
|
5401
5401
|
*/
|
|
5402
5402
|
export function removePasswords(
|
|
@@ -5420,7 +5420,7 @@ declare namespace chrome {
|
|
|
5420
5420
|
/**
|
|
5421
5421
|
* Clears websites' service workers.
|
|
5422
5422
|
*
|
|
5423
|
-
* @param callback
|
|
5423
|
+
* @param callback Resolves when websites' service workers have been cleared.
|
|
5424
5424
|
* @since Chrome 72
|
|
5425
5425
|
*/
|
|
5426
5426
|
export function removeServiceWorkers(
|
|
@@ -5443,7 +5443,7 @@ declare namespace chrome {
|
|
|
5443
5443
|
/**
|
|
5444
5444
|
* Clears websites' WebSQL data.
|
|
5445
5445
|
*
|
|
5446
|
-
* @param callback
|
|
5446
|
+
* @param callback Resolves when websites' WebSQL databases have been cleared.
|
|
5447
5447
|
*/
|
|
5448
5448
|
export function removeWebSQL(
|
|
5449
5449
|
|
|
@@ -6036,7 +6036,7 @@ declare namespace chrome {
|
|
|
6036
6036
|
/**
|
|
6037
6037
|
* Returns all the registered extension commands for this extension and their shortcut (if active). Before Chrome 110, this command did not return `_execute_action`.
|
|
6038
6038
|
*
|
|
6039
|
-
* @param callback
|
|
6039
|
+
* @param callback Resolves with a list of the registered commands.
|
|
6040
6040
|
*/
|
|
6041
6041
|
export function getAll(
|
|
6042
6042
|
|
|
@@ -6811,7 +6811,7 @@ declare namespace chrome {
|
|
|
6811
6811
|
*
|
|
6812
6812
|
* @param id The ID of the item to update.
|
|
6813
6813
|
* @param updateProperties The properties to update. Accepts the same values as the {@link contextMenus.create} function.
|
|
6814
|
-
* @param callback
|
|
6814
|
+
* @param callback Resolves when the context menu has been updated.
|
|
6815
6815
|
*/
|
|
6816
6816
|
export function update(
|
|
6817
6817
|
|
|
@@ -6878,7 +6878,7 @@ declare namespace chrome {
|
|
|
6878
6878
|
* Removes a context menu item.
|
|
6879
6879
|
*
|
|
6880
6880
|
* @param menuItemId The ID of the context menu item to remove.
|
|
6881
|
-
* @param callback
|
|
6881
|
+
* @param callback Resolves when the context menu has been removed.
|
|
6882
6882
|
*/
|
|
6883
6883
|
export function remove(
|
|
6884
6884
|
|
|
@@ -6897,7 +6897,7 @@ declare namespace chrome {
|
|
|
6897
6897
|
/**
|
|
6898
6898
|
* Removes all context menu items added by this extension.
|
|
6899
6899
|
*
|
|
6900
|
-
* @param callback
|
|
6900
|
+
* @param callback Resolves when removal is complete.
|
|
6901
6901
|
*/
|
|
6902
6902
|
export function removeAll(
|
|
6903
6903
|
|
|
@@ -7388,7 +7388,7 @@ declare namespace chrome {
|
|
|
7388
7388
|
},
|
|
7389
7389
|
|
|
7390
7390
|
/**
|
|
7391
|
-
* @param cookie Contains details about the cookie that's been set. If setting failed for any reason,
|
|
7391
|
+
* @param cookie Contains details about the cookie that's been set. If setting failed for any reason, the promise will be rejected.
|
|
7392
7392
|
*/
|
|
7393
7393
|
callback?: (
|
|
7394
7394
|
cookie?: Cookie,
|
|
@@ -7436,7 +7436,7 @@ declare namespace chrome {
|
|
|
7436
7436
|
details: CookieDetails,
|
|
7437
7437
|
|
|
7438
7438
|
/**
|
|
7439
|
-
* @param details Contains details about the cookie that's been removed. If removal failed for any reason,
|
|
7439
|
+
* @param details Contains details about the cookie that's been removed. If removal failed for any reason, the promise will be rejected.
|
|
7440
7440
|
*/
|
|
7441
7441
|
callback?: (
|
|
7442
7442
|
details?: {
|
|
@@ -7691,7 +7691,7 @@ declare namespace chrome {
|
|
|
7691
7691
|
*
|
|
7692
7692
|
* @param target Debugging target to which you want to attach.
|
|
7693
7693
|
* @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).
|
|
7694
|
-
* @param callback
|
|
7694
|
+
* @param callback Resolves once the attach operation succeeds or fails. The promise resolves with no value. If the attach fails, the promise will be rejected.
|
|
7695
7695
|
*/
|
|
7696
7696
|
export function attach(
|
|
7697
7697
|
|
|
@@ -7717,7 +7717,7 @@ declare namespace chrome {
|
|
|
7717
7717
|
* Detaches debugger from the given target.
|
|
7718
7718
|
*
|
|
7719
7719
|
* @param target Debugging target from which you want to detach.
|
|
7720
|
-
* @param callback
|
|
7720
|
+
* @param callback Resolves once the detach operation succeeds or fails. The promise resolves with no value. If the detach fails, the promise will be rejected.
|
|
7721
7721
|
*/
|
|
7722
7722
|
export function detach(
|
|
7723
7723
|
|
|
@@ -7749,7 +7749,7 @@ declare namespace chrome {
|
|
|
7749
7749
|
* @param target Debugging target to which you want to send the command.
|
|
7750
7750
|
* @param method Method name. Should be one of the methods defined by the [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol).
|
|
7751
7751
|
* @param commandParams JSON object with request parameters. This object must conform to the remote debugging params scheme for given method.
|
|
7752
|
-
* @param callback Response body. If an error occurs while posting the message, the
|
|
7752
|
+
* @param callback Response body. If an error occurs while posting the message, the promise will be rejected.
|
|
7753
7753
|
*/
|
|
7754
7754
|
export function sendCommand(
|
|
7755
7755
|
|
|
@@ -13148,7 +13148,7 @@ declare namespace chrome {
|
|
|
13148
13148
|
request: any,
|
|
13149
13149
|
|
|
13150
13150
|
/**
|
|
13151
|
-
* @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the
|
|
13151
|
+
* @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the promise will be rejected.
|
|
13152
13152
|
* @since Chrome 99
|
|
13153
13153
|
*/
|
|
13154
13154
|
callback?: (
|
|
@@ -13167,7 +13167,7 @@ declare namespace chrome {
|
|
|
13167
13167
|
request: any,
|
|
13168
13168
|
|
|
13169
13169
|
/**
|
|
13170
|
-
* @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the
|
|
13170
|
+
* @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the promise will be rejected.
|
|
13171
13171
|
* @since Chrome 99
|
|
13172
13172
|
*/
|
|
13173
13173
|
callback?: (
|
|
@@ -15919,7 +15919,7 @@ declare namespace chrome {
|
|
|
15919
15919
|
* Registers the application with FCM. The registration ID will be returned by the `callback`. If `register` is called again with the same list of `senderIds`, the same registration ID will be returned.
|
|
15920
15920
|
*
|
|
15921
15921
|
* @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.
|
|
15922
|
-
* @param callback
|
|
15922
|
+
* @param callback Resolves when registration completes.
|
|
15923
15923
|
*/
|
|
15924
15924
|
export function register(
|
|
15925
15925
|
|
|
@@ -15943,7 +15943,7 @@ declare namespace chrome {
|
|
|
15943
15943
|
/**
|
|
15944
15944
|
* Unregisters the application from FCM.
|
|
15945
15945
|
*
|
|
15946
|
-
* @param callback
|
|
15946
|
+
* @param callback Resolves after the unregistration completes. Unregistration was successful if the promise does not reject.
|
|
15947
15947
|
*/
|
|
15948
15948
|
export function unregister(
|
|
15949
15949
|
|
|
@@ -15986,7 +15986,7 @@ declare namespace chrome {
|
|
|
15986
15986
|
* Sends a message according to its contents.
|
|
15987
15987
|
*
|
|
15988
15988
|
* @param message A message to send to the other party via FCM.
|
|
15989
|
-
* @param callback
|
|
15989
|
+
* @param callback Resolves after the message is successfully queued for sending. If an error occurs, the promise will be rejected.
|
|
15990
15990
|
*/
|
|
15991
15991
|
export function send(
|
|
15992
15992
|
|
|
@@ -17709,7 +17709,7 @@ declare namespace chrome {
|
|
|
17709
17709
|
/**
|
|
17710
17710
|
* Set the current composition. If this extension does not own the active IME, this fails.
|
|
17711
17711
|
*
|
|
17712
|
-
* @param callback
|
|
17712
|
+
* @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
17713
17713
|
*/
|
|
17714
17714
|
export function setComposition(
|
|
17715
17715
|
|
|
@@ -17786,7 +17786,7 @@ declare namespace chrome {
|
|
|
17786
17786
|
/**
|
|
17787
17787
|
* Clear the current composition. If this extension does not own the active IME, this fails.
|
|
17788
17788
|
*
|
|
17789
|
-
* @param callback
|
|
17789
|
+
* @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
17790
17790
|
*/
|
|
17791
17791
|
export function clearComposition(
|
|
17792
17792
|
|
|
@@ -17827,7 +17827,7 @@ declare namespace chrome {
|
|
|
17827
17827
|
/**
|
|
17828
17828
|
* Commits the provided text to the current input.
|
|
17829
17829
|
*
|
|
17830
|
-
* @param callback
|
|
17830
|
+
* @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
17831
17831
|
*/
|
|
17832
17832
|
export function commitText(
|
|
17833
17833
|
|
|
@@ -17873,7 +17873,7 @@ declare namespace chrome {
|
|
|
17873
17873
|
/**
|
|
17874
17874
|
* 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.
|
|
17875
17875
|
*
|
|
17876
|
-
* @param callback
|
|
17876
|
+
* @param callback Resolves when the operation completes.
|
|
17877
17877
|
*/
|
|
17878
17878
|
export function sendKeyEvents(
|
|
17879
17879
|
|
|
@@ -17969,7 +17969,7 @@ declare namespace chrome {
|
|
|
17969
17969
|
/**
|
|
17970
17970
|
* Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
|
|
17971
17971
|
*
|
|
17972
|
-
* @param callback
|
|
17972
|
+
* @param callback Resolves when the operation completes.
|
|
17973
17973
|
*/
|
|
17974
17974
|
export function setCandidateWindowProperties(
|
|
17975
17975
|
|
|
@@ -18104,7 +18104,7 @@ declare namespace chrome {
|
|
|
18104
18104
|
/**
|
|
18105
18105
|
* Sets the current candidate list. This fails if this extension doesn't own the active IME
|
|
18106
18106
|
*
|
|
18107
|
-
* @param callback
|
|
18107
|
+
* @param callback Resolves when the operation completes.
|
|
18108
18108
|
*/
|
|
18109
18109
|
export function setCandidates(
|
|
18110
18110
|
|
|
@@ -18192,7 +18192,7 @@ declare namespace chrome {
|
|
|
18192
18192
|
/**
|
|
18193
18193
|
* Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
|
|
18194
18194
|
*
|
|
18195
|
-
* @param callback
|
|
18195
|
+
* @param callback Resolves when the operation completes
|
|
18196
18196
|
*/
|
|
18197
18197
|
export function setCursorPosition(
|
|
18198
18198
|
|
|
@@ -18239,7 +18239,7 @@ declare namespace chrome {
|
|
|
18239
18239
|
/**
|
|
18240
18240
|
* Shows/Hides an assistive window with the given properties.
|
|
18241
18241
|
*
|
|
18242
|
-
* @param callback
|
|
18242
|
+
* @param callback Resolves when the operation completes.
|
|
18243
18243
|
* @since Chrome 85
|
|
18244
18244
|
*/
|
|
18245
18245
|
export function setAssistiveWindowProperties(
|
|
@@ -18302,7 +18302,7 @@ declare namespace chrome {
|
|
|
18302
18302
|
/**
|
|
18303
18303
|
* Highlights/Unhighlights a button in an assistive window.
|
|
18304
18304
|
*
|
|
18305
|
-
* @param callback
|
|
18305
|
+
* @param callback Resolves when the operation completes. On failure, the promise will be rejected.
|
|
18306
18306
|
* @since Chrome 86
|
|
18307
18307
|
*/
|
|
18308
18308
|
export function setAssistiveWindowButtonHighlighted(
|
|
@@ -18371,7 +18371,7 @@ declare namespace chrome {
|
|
|
18371
18371
|
/**
|
|
18372
18372
|
* Updates the state of the MenuItems specified
|
|
18373
18373
|
*
|
|
18374
|
-
* @param callback
|
|
18374
|
+
* @param callback Resolves when the operation completes
|
|
18375
18375
|
*/
|
|
18376
18376
|
export function updateMenuItems(
|
|
18377
18377
|
|
|
@@ -18414,7 +18414,7 @@ declare namespace chrome {
|
|
|
18414
18414
|
/**
|
|
18415
18415
|
* Deletes the text around the caret.
|
|
18416
18416
|
*
|
|
18417
|
-
* @param callback
|
|
18417
|
+
* @param callback Resolves when the operation completes.
|
|
18418
18418
|
*/
|
|
18419
18419
|
export function deleteSurroundingText(
|
|
18420
18420
|
|
|
@@ -18481,7 +18481,7 @@ declare namespace chrome {
|
|
|
18481
18481
|
/**
|
|
18482
18482
|
* 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.
|
|
18483
18483
|
*
|
|
18484
|
-
* @param callback
|
|
18484
|
+
* @param callback Resolves when the retrieval completes.
|
|
18485
18485
|
*/
|
|
18486
18486
|
export function getID(
|
|
18487
18487
|
|
|
@@ -18503,7 +18503,7 @@ declare namespace chrome {
|
|
|
18503
18503
|
/**
|
|
18504
18504
|
* Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
|
|
18505
18505
|
*
|
|
18506
|
-
* @param callback
|
|
18506
|
+
* @param callback Resolves when the retrieval completes.
|
|
18507
18507
|
*/
|
|
18508
18508
|
export function getCreationTime(
|
|
18509
18509
|
|
|
@@ -18554,7 +18554,7 @@ declare namespace chrome {
|
|
|
18554
18554
|
* Return a token that allows the authorized entity to access the service defined by scope.
|
|
18555
18555
|
*
|
|
18556
18556
|
* @param getTokenParams Parameters for getToken.
|
|
18557
|
-
* @param callback
|
|
18557
|
+
* @param callback Resolves when the retrieval completes.
|
|
18558
18558
|
*/
|
|
18559
18559
|
export function getToken(
|
|
18560
18560
|
|
|
@@ -18622,7 +18622,7 @@ declare namespace chrome {
|
|
|
18622
18622
|
* Revokes a granted token.
|
|
18623
18623
|
*
|
|
18624
18624
|
* @param deleteTokenParams Parameters for deleteToken.
|
|
18625
|
-
* @param callback
|
|
18625
|
+
* @param callback Resolves when the token deletion completes. The token was revoked successfully if the promise does not reject.
|
|
18626
18626
|
*/
|
|
18627
18627
|
export function deleteToken(
|
|
18628
18628
|
|
|
@@ -18656,7 +18656,7 @@ declare namespace chrome {
|
|
|
18656
18656
|
/**
|
|
18657
18657
|
* Resets the app instance identifier and revokes all tokens associated with it.
|
|
18658
18658
|
*
|
|
18659
|
-
* @param callback
|
|
18659
|
+
* @param callback Resolves when the deletion completes. The instance identifier was revoked successfully if the promise does not reject.
|
|
18660
18660
|
*/
|
|
18661
18661
|
export function deleteID(
|
|
18662
18662
|
|
|
@@ -22663,7 +22663,7 @@ declare namespace chrome {
|
|
|
22663
22663
|
/**
|
|
22664
22664
|
* Saves the content of the tab with given id as MHTML.
|
|
22665
22665
|
*
|
|
22666
|
-
* @param callback
|
|
22666
|
+
* @param callback Resolves when the MHTML has been generated.
|
|
22667
22667
|
*/
|
|
22668
22668
|
export function saveAsMHTML(
|
|
22669
22669
|
|
|
@@ -22762,7 +22762,7 @@ declare namespace chrome {
|
|
|
22762
22762
|
): void;
|
|
22763
22763
|
|
|
22764
22764
|
/**
|
|
22765
|
-
* Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the `optional_permissions` field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify `*://*\/*` in the `optional_permissions` section of the manifest, you can request `http://example.com/`. If there are any problems requesting the permissions,
|
|
22765
|
+
* Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the `optional_permissions` field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify `*://*\/*` in the `optional_permissions` section of the manifest, you can request `http://example.com/`. If there are any problems requesting the permissions, the promise will be rejected.
|
|
22766
22766
|
*
|
|
22767
22767
|
* @chrome-returns-extra since Chrome 96
|
|
22768
22768
|
*/
|
|
@@ -22772,7 +22772,7 @@ declare namespace chrome {
|
|
|
22772
22772
|
): Promise<boolean>;
|
|
22773
22773
|
|
|
22774
22774
|
/**
|
|
22775
|
-
* Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the `optional_permissions` field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify `*://*\/*` in the `optional_permissions` section of the manifest, you can request `http://example.com/`. If there are any problems requesting the permissions,
|
|
22775
|
+
* Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the `optional_permissions` field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify `*://*\/*` in the `optional_permissions` section of the manifest, you can request `http://example.com/`. If there are any problems requesting the permissions, the promise will be rejected.
|
|
22776
22776
|
*/
|
|
22777
22777
|
export function request(
|
|
22778
22778
|
|
|
@@ -22787,7 +22787,7 @@ declare namespace chrome {
|
|
|
22787
22787
|
): void;
|
|
22788
22788
|
|
|
22789
22789
|
/**
|
|
22790
|
-
* Removes access to the specified permissions. If there are any problems removing the permissions,
|
|
22790
|
+
* Removes access to the specified permissions. If there are any problems removing the permissions, the promise will be rejected.
|
|
22791
22791
|
*
|
|
22792
22792
|
* @chrome-returns-extra since Chrome 96
|
|
22793
22793
|
*/
|
|
@@ -22797,7 +22797,7 @@ declare namespace chrome {
|
|
|
22797
22797
|
): Promise<boolean>;
|
|
22798
22798
|
|
|
22799
22799
|
/**
|
|
22800
|
-
* Removes access to the specified permissions. If there are any problems removing the permissions,
|
|
22800
|
+
* Removes access to the specified permissions. If there are any problems removing the permissions, the promise will be rejected.
|
|
22801
22801
|
*/
|
|
22802
22802
|
export function remove(
|
|
22803
22803
|
|
|
@@ -31683,7 +31683,7 @@ declare namespace chrome {
|
|
|
31683
31683
|
request: any,
|
|
31684
31684
|
|
|
31685
31685
|
/**
|
|
31686
|
-
* @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the specified tab, the
|
|
31686
|
+
* @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the specified tab, the promise will be rejected.
|
|
31687
31687
|
* @since Chrome 99
|
|
31688
31688
|
*/
|
|
31689
31689
|
callback?: (
|
|
@@ -31746,7 +31746,7 @@ declare namespace chrome {
|
|
|
31746
31746
|
},
|
|
31747
31747
|
|
|
31748
31748
|
/**
|
|
31749
|
-
* @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the
|
|
31749
|
+
* @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the promise will be rejected.
|
|
31750
31750
|
* @since Chrome 99
|
|
31751
31751
|
*/
|
|
31752
31752
|
callback?: (
|
|
@@ -32772,7 +32772,7 @@ declare namespace chrome {
|
|
|
32772
32772
|
*
|
|
32773
32773
|
* @param tabId The ID of the tab in which to run the script; defaults to the active tab of the current window.
|
|
32774
32774
|
* @param details Details of the script to run. Either the code or the file property must be set, but both may not be set at the same time.
|
|
32775
|
-
* @param callback
|
|
32775
|
+
* @param callback Resolves after all the JavaScript has been executed.
|
|
32776
32776
|
* @deprecated Replaced by {@link scripting.executeScript} in Manifest V3.
|
|
32777
32777
|
* @chrome-max-manifest MV2
|
|
32778
32778
|
* @chrome-deprecated-since Chrome 91
|
|
@@ -32795,7 +32795,7 @@ declare namespace chrome {
|
|
|
32795
32795
|
* Injects JavaScript code into a page. For details, see the [programmatic injection](https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#programmatic) section of the content scripts doc.
|
|
32796
32796
|
*
|
|
32797
32797
|
* @param details Details of the script to run. Either the code or the file property must be set, but both may not be set at the same time.
|
|
32798
|
-
* @param callback
|
|
32798
|
+
* @param callback Resolves after all the JavaScript has been executed.
|
|
32799
32799
|
* @deprecated Replaced by {@link scripting.executeScript} in Manifest V3.
|
|
32800
32800
|
* @chrome-max-manifest MV2
|
|
32801
32801
|
* @chrome-deprecated-since Chrome 91
|
|
@@ -32848,7 +32848,7 @@ declare namespace chrome {
|
|
|
32848
32848
|
*
|
|
32849
32849
|
* @param tabId The ID of the tab in which to insert the CSS; defaults to the active tab of the current window.
|
|
32850
32850
|
* @param details Details of the CSS text to insert. Either the code or the file property must be set, but both may not be set at the same time.
|
|
32851
|
-
* @param callback
|
|
32851
|
+
* @param callback Resolves when all the CSS has been inserted.
|
|
32852
32852
|
* @deprecated Replaced by {@link scripting.insertCSS} in Manifest V3.
|
|
32853
32853
|
* @chrome-max-manifest MV2
|
|
32854
32854
|
* @chrome-deprecated-since Chrome 91
|
|
@@ -32866,7 +32866,7 @@ declare namespace chrome {
|
|
|
32866
32866
|
* Injects CSS into a page. Styles inserted with this method can be removed with {@link scripting.removeCSS}. For details, see the [programmatic injection](https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts#programmatic) section of the content scripts doc.
|
|
32867
32867
|
*
|
|
32868
32868
|
* @param details Details of the CSS text to insert. Either the code or the file property must be set, but both may not be set at the same time.
|
|
32869
|
-
* @param callback
|
|
32869
|
+
* @param callback Resolves when all the CSS has been inserted.
|
|
32870
32870
|
* @deprecated Replaced by {@link scripting.insertCSS} in Manifest V3.
|
|
32871
32871
|
* @chrome-max-manifest MV2
|
|
32872
32872
|
* @chrome-deprecated-since Chrome 91
|
|
@@ -32916,7 +32916,7 @@ declare namespace chrome {
|
|
|
32916
32916
|
*
|
|
32917
32917
|
* @param tabId The ID of the tab from which to remove the CSS; defaults to the active tab of the current window.
|
|
32918
32918
|
* @param details Details of the CSS text to remove. Either the code or the file property must be set, but both may not be set at the same time.
|
|
32919
|
-
* @param callback
|
|
32919
|
+
* @param callback Resolves when all the CSS has been removed.
|
|
32920
32920
|
* @deprecated Replaced by {@link scripting.removeCSS} in Manifest V3.
|
|
32921
32921
|
* @since Chrome 87
|
|
32922
32922
|
* @chrome-max-manifest MV2
|
|
@@ -32935,7 +32935,7 @@ declare namespace chrome {
|
|
|
32935
32935
|
* Removes from a page CSS that was previously injected by a call to {@link scripting.insertCSS}.
|
|
32936
32936
|
*
|
|
32937
32937
|
* @param details Details of the CSS text to remove. Either the code or the file property must be set, but both may not be set at the same time.
|
|
32938
|
-
* @param callback
|
|
32938
|
+
* @param callback Resolves when all the CSS has been removed.
|
|
32939
32939
|
* @deprecated Replaced by {@link scripting.removeCSS} in Manifest V3.
|
|
32940
32940
|
* @since Chrome 87
|
|
32941
32941
|
* @chrome-max-manifest MV2
|
|
@@ -32978,7 +32978,7 @@ declare namespace chrome {
|
|
|
32978
32978
|
*
|
|
32979
32979
|
* @param tabId The ID of the tab to zoom; defaults to the active tab of the current window.
|
|
32980
32980
|
* @param zoomFactor The new zoom factor. A value of `0` sets the tab to its current default zoom factor. Values greater than `0` specify a (possibly non-default) zoom factor for the tab.
|
|
32981
|
-
* @param callback
|
|
32981
|
+
* @param callback Resolves after the zoom factor has been changed.
|
|
32982
32982
|
*/
|
|
32983
32983
|
export function setZoom(
|
|
32984
32984
|
|
|
@@ -32993,7 +32993,7 @@ declare namespace chrome {
|
|
|
32993
32993
|
* Zooms a specified tab.
|
|
32994
32994
|
*
|
|
32995
32995
|
* @param zoomFactor The new zoom factor. A value of `0` sets the tab to its current default zoom factor. Values greater than `0` specify a (possibly non-default) zoom factor for the tab.
|
|
32996
|
-
* @param callback
|
|
32996
|
+
* @param callback Resolves after the zoom factor has been changed.
|
|
32997
32997
|
*/
|
|
32998
32998
|
export function setZoom(
|
|
32999
32999
|
|
|
@@ -33017,7 +33017,7 @@ declare namespace chrome {
|
|
|
33017
33017
|
* Gets the current zoom factor of a specified tab.
|
|
33018
33018
|
*
|
|
33019
33019
|
* @param tabId The ID of the tab to get the current zoom factor from; defaults to the active tab of the current window.
|
|
33020
|
-
* @param callback
|
|
33020
|
+
* @param callback Resolves with the tab's current zoom factor after it has been fetched.
|
|
33021
33021
|
*/
|
|
33022
33022
|
export function getZoom(
|
|
33023
33023
|
|
|
@@ -33061,7 +33061,7 @@ declare namespace chrome {
|
|
|
33061
33061
|
*
|
|
33062
33062
|
* @param tabId The ID of the tab to change the zoom settings for; defaults to the active tab of the current window.
|
|
33063
33063
|
* @param zoomSettings Defines how zoom changes are handled and at what scope.
|
|
33064
|
-
* @param callback
|
|
33064
|
+
* @param callback Resolves after the zoom settings are changed.
|
|
33065
33065
|
*/
|
|
33066
33066
|
export function setZoomSettings(
|
|
33067
33067
|
|
|
@@ -33076,7 +33076,7 @@ declare namespace chrome {
|
|
|
33076
33076
|
* Sets the zoom settings for a specified tab, which define how zoom changes are handled. These settings are reset to defaults upon navigating the tab.
|
|
33077
33077
|
*
|
|
33078
33078
|
* @param zoomSettings Defines how zoom changes are handled and at what scope.
|
|
33079
|
-
* @param callback
|
|
33079
|
+
* @param callback Resolves after the zoom settings are changed.
|
|
33080
33080
|
*/
|
|
33081
33081
|
export function setZoomSettings(
|
|
33082
33082
|
|
|
@@ -33100,7 +33100,7 @@ declare namespace chrome {
|
|
|
33100
33100
|
* Gets the current zoom settings of a specified tab.
|
|
33101
33101
|
*
|
|
33102
33102
|
* @param tabId The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
|
|
33103
|
-
* @param callback
|
|
33103
|
+
* @param callback Resolves with the tab's current zoom settings.
|
|
33104
33104
|
*/
|
|
33105
33105
|
export function getZoomSettings(
|
|
33106
33106
|
|
|
@@ -33130,7 +33130,7 @@ declare namespace chrome {
|
|
|
33130
33130
|
* Discards a tab from memory. Discarded tabs are still visible on the tab strip and are reloaded when activated.
|
|
33131
33131
|
*
|
|
33132
33132
|
* @param tabId The ID of the tab to be discarded. If specified, the tab is discarded unless it is active or already discarded. If omitted, the browser discards the least important tab. This can fail if no discardable tabs exist.
|
|
33133
|
-
* @param callback
|
|
33133
|
+
* @param callback Resolves after the operation is completed.
|
|
33134
33134
|
* @since Chrome 54
|
|
33135
33135
|
*/
|
|
33136
33136
|
export function discard(
|
|
@@ -33419,7 +33419,7 @@ declare namespace chrome {
|
|
|
33419
33419
|
*
|
|
33420
33420
|
* @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.
|
|
33421
33421
|
* @param options The speech options.
|
|
33422
|
-
* @param callback
|
|
33422
|
+
* @param callback Resolves right away, before speech finishes. If an error occurs, the promise will be rejected. Use options.onEvent to get more detailed feedback.
|
|
33423
33423
|
*/
|
|
33424
33424
|
export function speak(
|
|
33425
33425
|
|
|
@@ -39359,7 +39359,7 @@ declare namespace chrome {
|
|
|
39359
39359
|
/**
|
|
39360
39360
|
* Navigates backward one history entry if possible. Equivalent to `go(-1)`.
|
|
39361
39361
|
*
|
|
39362
|
-
* @param callback
|
|
39362
|
+
* @param callback Resolves after the navigation has either failed or completed successfully.
|
|
39363
39363
|
*/
|
|
39364
39364
|
export function back(
|
|
39365
39365
|
|
|
@@ -39446,7 +39446,7 @@ declare namespace chrome {
|
|
|
39446
39446
|
/**
|
|
39447
39447
|
* Navigates forward one history entry if possible. Equivalent to `go(1)`.
|
|
39448
39448
|
*
|
|
39449
|
-
* @param callback
|
|
39449
|
+
* @param callback Resolves after the navigation has either failed or completed successfully.
|
|
39450
39450
|
*/
|
|
39451
39451
|
export function forward(
|
|
39452
39452
|
|
|
@@ -39504,7 +39504,7 @@ declare namespace chrome {
|
|
|
39504
39504
|
* Navigates to a history entry using a history index relative to the current navigation. If the requested navigation is impossible, this method has no effect.
|
|
39505
39505
|
*
|
|
39506
39506
|
* @param relativeIndex Relative history index to which the `webview` should be navigated. For example, a value of `2` will navigate forward 2 history entries if possible; a value of `-3` will navigate backward 3 entries.
|
|
39507
|
-
* @param callback
|
|
39507
|
+
* @param callback Resolves after the navigation has either failed or completed successfully.
|
|
39508
39508
|
*/
|
|
39509
39509
|
export function go(
|
|
39510
39510
|
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Dec 24 2025 22:33:46 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 456fefca54e809142055dbd8348d8d51eaaef2e8
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -2000,7 +2000,7 @@ declare namespace chrome {
|
|
|
2000
2000
|
* Clears various types of browsing data stored in a user's profile.
|
|
2001
2001
|
*
|
|
2002
2002
|
* @param dataToRemove The set of data types to remove.
|
|
2003
|
-
* @param callback
|
|
2003
|
+
* @param callback Resolves when deletion has completed.
|
|
2004
2004
|
*/
|
|
2005
2005
|
export function remove(
|
|
2006
2006
|
|
|
@@ -2024,7 +2024,7 @@ declare namespace chrome {
|
|
|
2024
2024
|
/**
|
|
2025
2025
|
* Clears websites' appcache data.
|
|
2026
2026
|
*
|
|
2027
|
-
* @param callback
|
|
2027
|
+
* @param callback Resolves when websites' appcache data has been cleared.
|
|
2028
2028
|
*/
|
|
2029
2029
|
export function removeAppcache(
|
|
2030
2030
|
|
|
@@ -2046,7 +2046,7 @@ declare namespace chrome {
|
|
|
2046
2046
|
/**
|
|
2047
2047
|
* Clears the browser's cache.
|
|
2048
2048
|
*
|
|
2049
|
-
* @param callback
|
|
2049
|
+
* @param callback Resolves when the browser's cache has been cleared.
|
|
2050
2050
|
*/
|
|
2051
2051
|
export function removeCache(
|
|
2052
2052
|
|
|
@@ -2069,7 +2069,7 @@ declare namespace chrome {
|
|
|
2069
2069
|
/**
|
|
2070
2070
|
* Clears websites' cache storage data.
|
|
2071
2071
|
*
|
|
2072
|
-
* @param callback
|
|
2072
|
+
* @param callback Resolves when websites' cache storage has been cleared.
|
|
2073
2073
|
* @since Chrome 72
|
|
2074
2074
|
*/
|
|
2075
2075
|
export function removeCacheStorage(
|
|
@@ -2092,7 +2092,7 @@ declare namespace chrome {
|
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Clears the browser's cookies and server-bound certificates modified within a particular timeframe.
|
|
2094
2094
|
*
|
|
2095
|
-
* @param callback
|
|
2095
|
+
* @param callback Resolves when the browser's cookies and server-bound certificates have been cleared.
|
|
2096
2096
|
*/
|
|
2097
2097
|
export function removeCookies(
|
|
2098
2098
|
|
|
@@ -2114,7 +2114,7 @@ declare namespace chrome {
|
|
|
2114
2114
|
/**
|
|
2115
2115
|
* Clears the browser's list of downloaded files (_not_ the downloaded files themselves).
|
|
2116
2116
|
*
|
|
2117
|
-
* @param callback
|
|
2117
|
+
* @param callback Resolves when the browser's list of downloaded files has been cleared.
|
|
2118
2118
|
*/
|
|
2119
2119
|
export function removeDownloads(
|
|
2120
2120
|
|
|
@@ -2136,7 +2136,7 @@ declare namespace chrome {
|
|
|
2136
2136
|
/**
|
|
2137
2137
|
* Clears websites' file system data.
|
|
2138
2138
|
*
|
|
2139
|
-
* @param callback
|
|
2139
|
+
* @param callback Resolves when websites' file systems have been cleared.
|
|
2140
2140
|
*/
|
|
2141
2141
|
export function removeFileSystems(
|
|
2142
2142
|
|
|
@@ -2158,7 +2158,7 @@ declare namespace chrome {
|
|
|
2158
2158
|
/**
|
|
2159
2159
|
* Clears the browser's stored form data (autofill).
|
|
2160
2160
|
*
|
|
2161
|
-
* @param callback
|
|
2161
|
+
* @param callback Resolves when the browser's form data has been cleared.
|
|
2162
2162
|
*/
|
|
2163
2163
|
export function removeFormData(
|
|
2164
2164
|
|
|
@@ -2180,7 +2180,7 @@ declare namespace chrome {
|
|
|
2180
2180
|
/**
|
|
2181
2181
|
* Clears the browser's history.
|
|
2182
2182
|
*
|
|
2183
|
-
* @param callback
|
|
2183
|
+
* @param callback Resolves when the browser's history has cleared.
|
|
2184
2184
|
*/
|
|
2185
2185
|
export function removeHistory(
|
|
2186
2186
|
|
|
@@ -2202,7 +2202,7 @@ declare namespace chrome {
|
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Clears websites' IndexedDB data.
|
|
2204
2204
|
*
|
|
2205
|
-
* @param callback
|
|
2205
|
+
* @param callback Resolves when websites' IndexedDB data has been cleared.
|
|
2206
2206
|
*/
|
|
2207
2207
|
export function removeIndexedDB(
|
|
2208
2208
|
|
|
@@ -2224,7 +2224,7 @@ declare namespace chrome {
|
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Clears websites' local storage data.
|
|
2226
2226
|
*
|
|
2227
|
-
* @param callback
|
|
2227
|
+
* @param callback Resolves when websites' local storage has been cleared.
|
|
2228
2228
|
*/
|
|
2229
2229
|
export function removeLocalStorage(
|
|
2230
2230
|
|
|
@@ -2248,7 +2248,7 @@ declare namespace chrome {
|
|
|
2248
2248
|
/**
|
|
2249
2249
|
* Clears plugins' data.
|
|
2250
2250
|
*
|
|
2251
|
-
* @param callback
|
|
2251
|
+
* @param callback Resolves when plugins' data has been cleared.
|
|
2252
2252
|
* @deprecated Support for Flash has been removed. This function has no effect.
|
|
2253
2253
|
* @chrome-deprecated-since Chrome 88
|
|
2254
2254
|
*/
|
|
@@ -2273,7 +2273,7 @@ declare namespace chrome {
|
|
|
2273
2273
|
/**
|
|
2274
2274
|
* Clears the browser's stored passwords.
|
|
2275
2275
|
*
|
|
2276
|
-
* @param callback
|
|
2276
|
+
* @param callback Resolves when the browser's passwords have been cleared.
|
|
2277
2277
|
* @deprecated Support for password deletion through extensions has been removed. This function has no effect.
|
|
2278
2278
|
*/
|
|
2279
2279
|
export function removePasswords(
|
|
@@ -2297,7 +2297,7 @@ declare namespace chrome {
|
|
|
2297
2297
|
/**
|
|
2298
2298
|
* Clears websites' service workers.
|
|
2299
2299
|
*
|
|
2300
|
-
* @param callback
|
|
2300
|
+
* @param callback Resolves when websites' service workers have been cleared.
|
|
2301
2301
|
* @since Chrome 72
|
|
2302
2302
|
*/
|
|
2303
2303
|
export function removeServiceWorkers(
|
|
@@ -2320,7 +2320,7 @@ declare namespace chrome {
|
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Clears websites' WebSQL data.
|
|
2322
2322
|
*
|
|
2323
|
-
* @param callback
|
|
2323
|
+
* @param callback Resolves when websites' WebSQL databases have been cleared.
|
|
2324
2324
|
*/
|
|
2325
2325
|
export function removeWebSQL(
|
|
2326
2326
|
|
|
@@ -2785,7 +2785,7 @@ declare namespace chrome {
|
|
|
2785
2785
|
/**
|
|
2786
2786
|
* Returns all the registered extension commands for this extension and their shortcut (if active). Before Chrome 110, this command did not return `_execute_action`.
|
|
2787
2787
|
*
|
|
2788
|
-
* @param callback
|
|
2788
|
+
* @param callback Resolves with a list of the registered commands.
|
|
2789
2789
|
*/
|
|
2790
2790
|
export function getAll(
|
|
2791
2791
|
|
|
@@ -3560,7 +3560,7 @@ declare namespace chrome {
|
|
|
3560
3560
|
*
|
|
3561
3561
|
* @param id The ID of the item to update.
|
|
3562
3562
|
* @param updateProperties The properties to update. Accepts the same values as the {@link contextMenus.create} function.
|
|
3563
|
-
* @param callback
|
|
3563
|
+
* @param callback Resolves when the context menu has been updated.
|
|
3564
3564
|
*/
|
|
3565
3565
|
export function update(
|
|
3566
3566
|
|
|
@@ -3627,7 +3627,7 @@ declare namespace chrome {
|
|
|
3627
3627
|
* Removes a context menu item.
|
|
3628
3628
|
*
|
|
3629
3629
|
* @param menuItemId The ID of the context menu item to remove.
|
|
3630
|
-
* @param callback
|
|
3630
|
+
* @param callback Resolves when the context menu has been removed.
|
|
3631
3631
|
*/
|
|
3632
3632
|
export function remove(
|
|
3633
3633
|
|
|
@@ -3646,7 +3646,7 @@ declare namespace chrome {
|
|
|
3646
3646
|
/**
|
|
3647
3647
|
* Removes all context menu items added by this extension.
|
|
3648
3648
|
*
|
|
3649
|
-
* @param callback
|
|
3649
|
+
* @param callback Resolves when removal is complete.
|
|
3650
3650
|
*/
|
|
3651
3651
|
export function removeAll(
|
|
3652
3652
|
|
|
@@ -4137,7 +4137,7 @@ declare namespace chrome {
|
|
|
4137
4137
|
},
|
|
4138
4138
|
|
|
4139
4139
|
/**
|
|
4140
|
-
* @param cookie Contains details about the cookie that's been set. If setting failed for any reason,
|
|
4140
|
+
* @param cookie Contains details about the cookie that's been set. If setting failed for any reason, the promise will be rejected.
|
|
4141
4141
|
*/
|
|
4142
4142
|
callback?: (
|
|
4143
4143
|
cookie?: Cookie,
|
|
@@ -4185,7 +4185,7 @@ declare namespace chrome {
|
|
|
4185
4185
|
details: CookieDetails,
|
|
4186
4186
|
|
|
4187
4187
|
/**
|
|
4188
|
-
* @param details Contains details about the cookie that's been removed. If removal failed for any reason,
|
|
4188
|
+
* @param details Contains details about the cookie that's been removed. If removal failed for any reason, the promise will be rejected.
|
|
4189
4189
|
*/
|
|
4190
4190
|
callback?: (
|
|
4191
4191
|
details?: {
|
|
@@ -4440,7 +4440,7 @@ declare namespace chrome {
|
|
|
4440
4440
|
*
|
|
4441
4441
|
* @param target Debugging target to which you want to attach.
|
|
4442
4442
|
* @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).
|
|
4443
|
-
* @param callback
|
|
4443
|
+
* @param callback Resolves once the attach operation succeeds or fails. The promise resolves with no value. If the attach fails, the promise will be rejected.
|
|
4444
4444
|
*/
|
|
4445
4445
|
export function attach(
|
|
4446
4446
|
|
|
@@ -4466,7 +4466,7 @@ declare namespace chrome {
|
|
|
4466
4466
|
* Detaches debugger from the given target.
|
|
4467
4467
|
*
|
|
4468
4468
|
* @param target Debugging target from which you want to detach.
|
|
4469
|
-
* @param callback
|
|
4469
|
+
* @param callback Resolves once the detach operation succeeds or fails. The promise resolves with no value. If the detach fails, the promise will be rejected.
|
|
4470
4470
|
*/
|
|
4471
4471
|
export function detach(
|
|
4472
4472
|
|
|
@@ -4498,7 +4498,7 @@ declare namespace chrome {
|
|
|
4498
4498
|
* @param target Debugging target to which you want to send the command.
|
|
4499
4499
|
* @param method Method name. Should be one of the methods defined by the [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol).
|
|
4500
4500
|
* @param commandParams JSON object with request parameters. This object must conform to the remote debugging params scheme for given method.
|
|
4501
|
-
* @param callback Response body. If an error occurs while posting the message, the
|
|
4501
|
+
* @param callback Response body. If an error occurs while posting the message, the promise will be rejected.
|
|
4502
4502
|
*/
|
|
4503
4503
|
export function sendCommand(
|
|
4504
4504
|
|
|
@@ -11636,7 +11636,7 @@ declare namespace chrome {
|
|
|
11636
11636
|
* Registers the application with FCM. The registration ID will be returned by the `callback`. If `register` is called again with the same list of `senderIds`, the same registration ID will be returned.
|
|
11637
11637
|
*
|
|
11638
11638
|
* @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.
|
|
11639
|
-
* @param callback
|
|
11639
|
+
* @param callback Resolves when registration completes.
|
|
11640
11640
|
*/
|
|
11641
11641
|
export function register(
|
|
11642
11642
|
|
|
@@ -11660,7 +11660,7 @@ declare namespace chrome {
|
|
|
11660
11660
|
/**
|
|
11661
11661
|
* Unregisters the application from FCM.
|
|
11662
11662
|
*
|
|
11663
|
-
* @param callback
|
|
11663
|
+
* @param callback Resolves after the unregistration completes. Unregistration was successful if the promise does not reject.
|
|
11664
11664
|
*/
|
|
11665
11665
|
export function unregister(
|
|
11666
11666
|
|
|
@@ -11703,7 +11703,7 @@ declare namespace chrome {
|
|
|
11703
11703
|
* Sends a message according to its contents.
|
|
11704
11704
|
*
|
|
11705
11705
|
* @param message A message to send to the other party via FCM.
|
|
11706
|
-
* @param callback
|
|
11706
|
+
* @param callback Resolves after the message is successfully queued for sending. If an error occurs, the promise will be rejected.
|
|
11707
11707
|
*/
|
|
11708
11708
|
export function send(
|
|
11709
11709
|
|
|
@@ -13071,7 +13071,7 @@ declare namespace chrome {
|
|
|
13071
13071
|
/**
|
|
13072
13072
|
* Set the current composition. If this extension does not own the active IME, this fails.
|
|
13073
13073
|
*
|
|
13074
|
-
* @param callback
|
|
13074
|
+
* @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
13075
13075
|
*/
|
|
13076
13076
|
export function setComposition(
|
|
13077
13077
|
|
|
@@ -13148,7 +13148,7 @@ declare namespace chrome {
|
|
|
13148
13148
|
/**
|
|
13149
13149
|
* Clear the current composition. If this extension does not own the active IME, this fails.
|
|
13150
13150
|
*
|
|
13151
|
-
* @param callback
|
|
13151
|
+
* @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
13152
13152
|
*/
|
|
13153
13153
|
export function clearComposition(
|
|
13154
13154
|
|
|
@@ -13189,7 +13189,7 @@ declare namespace chrome {
|
|
|
13189
13189
|
/**
|
|
13190
13190
|
* Commits the provided text to the current input.
|
|
13191
13191
|
*
|
|
13192
|
-
* @param callback
|
|
13192
|
+
* @param callback Resolves when the operation completes with a boolean indicating if the text was accepted or not. On failure, the promise will be rejected.
|
|
13193
13193
|
*/
|
|
13194
13194
|
export function commitText(
|
|
13195
13195
|
|
|
@@ -13235,7 +13235,7 @@ declare namespace chrome {
|
|
|
13235
13235
|
/**
|
|
13236
13236
|
* 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.
|
|
13237
13237
|
*
|
|
13238
|
-
* @param callback
|
|
13238
|
+
* @param callback Resolves when the operation completes.
|
|
13239
13239
|
*/
|
|
13240
13240
|
export function sendKeyEvents(
|
|
13241
13241
|
|
|
@@ -13331,7 +13331,7 @@ declare namespace chrome {
|
|
|
13331
13331
|
/**
|
|
13332
13332
|
* Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
|
|
13333
13333
|
*
|
|
13334
|
-
* @param callback
|
|
13334
|
+
* @param callback Resolves when the operation completes.
|
|
13335
13335
|
*/
|
|
13336
13336
|
export function setCandidateWindowProperties(
|
|
13337
13337
|
|
|
@@ -13466,7 +13466,7 @@ declare namespace chrome {
|
|
|
13466
13466
|
/**
|
|
13467
13467
|
* Sets the current candidate list. This fails if this extension doesn't own the active IME
|
|
13468
13468
|
*
|
|
13469
|
-
* @param callback
|
|
13469
|
+
* @param callback Resolves when the operation completes.
|
|
13470
13470
|
*/
|
|
13471
13471
|
export function setCandidates(
|
|
13472
13472
|
|
|
@@ -13554,7 +13554,7 @@ declare namespace chrome {
|
|
|
13554
13554
|
/**
|
|
13555
13555
|
* Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
|
|
13556
13556
|
*
|
|
13557
|
-
* @param callback
|
|
13557
|
+
* @param callback Resolves when the operation completes
|
|
13558
13558
|
*/
|
|
13559
13559
|
export function setCursorPosition(
|
|
13560
13560
|
|
|
@@ -13601,7 +13601,7 @@ declare namespace chrome {
|
|
|
13601
13601
|
/**
|
|
13602
13602
|
* Shows/Hides an assistive window with the given properties.
|
|
13603
13603
|
*
|
|
13604
|
-
* @param callback
|
|
13604
|
+
* @param callback Resolves when the operation completes.
|
|
13605
13605
|
* @since Chrome 85
|
|
13606
13606
|
*/
|
|
13607
13607
|
export function setAssistiveWindowProperties(
|
|
@@ -13664,7 +13664,7 @@ declare namespace chrome {
|
|
|
13664
13664
|
/**
|
|
13665
13665
|
* Highlights/Unhighlights a button in an assistive window.
|
|
13666
13666
|
*
|
|
13667
|
-
* @param callback
|
|
13667
|
+
* @param callback Resolves when the operation completes. On failure, the promise will be rejected.
|
|
13668
13668
|
* @since Chrome 86
|
|
13669
13669
|
*/
|
|
13670
13670
|
export function setAssistiveWindowButtonHighlighted(
|
|
@@ -13733,7 +13733,7 @@ declare namespace chrome {
|
|
|
13733
13733
|
/**
|
|
13734
13734
|
* Updates the state of the MenuItems specified
|
|
13735
13735
|
*
|
|
13736
|
-
* @param callback
|
|
13736
|
+
* @param callback Resolves when the operation completes
|
|
13737
13737
|
*/
|
|
13738
13738
|
export function updateMenuItems(
|
|
13739
13739
|
|
|
@@ -13776,7 +13776,7 @@ declare namespace chrome {
|
|
|
13776
13776
|
/**
|
|
13777
13777
|
* Deletes the text around the caret.
|
|
13778
13778
|
*
|
|
13779
|
-
* @param callback
|
|
13779
|
+
* @param callback Resolves when the operation completes.
|
|
13780
13780
|
*/
|
|
13781
13781
|
export function deleteSurroundingText(
|
|
13782
13782
|
|
|
@@ -13843,7 +13843,7 @@ declare namespace chrome {
|
|
|
13843
13843
|
/**
|
|
13844
13844
|
* 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.
|
|
13845
13845
|
*
|
|
13846
|
-
* @param callback
|
|
13846
|
+
* @param callback Resolves when the retrieval completes.
|
|
13847
13847
|
*/
|
|
13848
13848
|
export function getID(
|
|
13849
13849
|
|
|
@@ -13865,7 +13865,7 @@ declare namespace chrome {
|
|
|
13865
13865
|
/**
|
|
13866
13866
|
* Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
|
|
13867
13867
|
*
|
|
13868
|
-
* @param callback
|
|
13868
|
+
* @param callback Resolves when the retrieval completes.
|
|
13869
13869
|
*/
|
|
13870
13870
|
export function getCreationTime(
|
|
13871
13871
|
|
|
@@ -13916,7 +13916,7 @@ declare namespace chrome {
|
|
|
13916
13916
|
* Return a token that allows the authorized entity to access the service defined by scope.
|
|
13917
13917
|
*
|
|
13918
13918
|
* @param getTokenParams Parameters for getToken.
|
|
13919
|
-
* @param callback
|
|
13919
|
+
* @param callback Resolves when the retrieval completes.
|
|
13920
13920
|
*/
|
|
13921
13921
|
export function getToken(
|
|
13922
13922
|
|
|
@@ -13984,7 +13984,7 @@ declare namespace chrome {
|
|
|
13984
13984
|
* Revokes a granted token.
|
|
13985
13985
|
*
|
|
13986
13986
|
* @param deleteTokenParams Parameters for deleteToken.
|
|
13987
|
-
* @param callback
|
|
13987
|
+
* @param callback Resolves when the token deletion completes. The token was revoked successfully if the promise does not reject.
|
|
13988
13988
|
*/
|
|
13989
13989
|
export function deleteToken(
|
|
13990
13990
|
|
|
@@ -14018,7 +14018,7 @@ declare namespace chrome {
|
|
|
14018
14018
|
/**
|
|
14019
14019
|
* Resets the app instance identifier and revokes all tokens associated with it.
|
|
14020
14020
|
*
|
|
14021
|
-
* @param callback
|
|
14021
|
+
* @param callback Resolves when the deletion completes. The instance identifier was revoked successfully if the promise does not reject.
|
|
14022
14022
|
*/
|
|
14023
14023
|
export function deleteID(
|
|
14024
14024
|
|
|
@@ -15384,7 +15384,7 @@ declare namespace chrome {
|
|
|
15384
15384
|
/**
|
|
15385
15385
|
* Saves the content of the tab with given id as MHTML.
|
|
15386
15386
|
*
|
|
15387
|
-
* @param callback
|
|
15387
|
+
* @param callback Resolves when the MHTML has been generated.
|
|
15388
15388
|
*/
|
|
15389
15389
|
export function saveAsMHTML(
|
|
15390
15390
|
|
|
@@ -15483,7 +15483,7 @@ declare namespace chrome {
|
|
|
15483
15483
|
): void;
|
|
15484
15484
|
|
|
15485
15485
|
/**
|
|
15486
|
-
* Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the `optional_permissions` field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify `*://*\/*` in the `optional_permissions` section of the manifest, you can request `http://example.com/`. If there are any problems requesting the permissions,
|
|
15486
|
+
* Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the `optional_permissions` field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify `*://*\/*` in the `optional_permissions` section of the manifest, you can request `http://example.com/`. If there are any problems requesting the permissions, the promise will be rejected.
|
|
15487
15487
|
*
|
|
15488
15488
|
* @chrome-returns-extra since Chrome 96
|
|
15489
15489
|
*/
|
|
@@ -15493,7 +15493,7 @@ declare namespace chrome {
|
|
|
15493
15493
|
): Promise<boolean>;
|
|
15494
15494
|
|
|
15495
15495
|
/**
|
|
15496
|
-
* Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the `optional_permissions` field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify `*://*\/*` in the `optional_permissions` section of the manifest, you can request `http://example.com/`. If there are any problems requesting the permissions,
|
|
15496
|
+
* Requests access to the specified permissions, displaying a prompt to the user if necessary. These permissions must either be defined in the `optional_permissions` field of the manifest or be required permissions that were withheld by the user. Paths on origin patterns will be ignored. You can request subsets of optional origin permissions; for example, if you specify `*://*\/*` in the `optional_permissions` section of the manifest, you can request `http://example.com/`. If there are any problems requesting the permissions, the promise will be rejected.
|
|
15497
15497
|
*/
|
|
15498
15498
|
export function request(
|
|
15499
15499
|
|
|
@@ -15508,7 +15508,7 @@ declare namespace chrome {
|
|
|
15508
15508
|
): void;
|
|
15509
15509
|
|
|
15510
15510
|
/**
|
|
15511
|
-
* Removes access to the specified permissions. If there are any problems removing the permissions,
|
|
15511
|
+
* Removes access to the specified permissions. If there are any problems removing the permissions, the promise will be rejected.
|
|
15512
15512
|
*
|
|
15513
15513
|
* @chrome-returns-extra since Chrome 96
|
|
15514
15514
|
*/
|
|
@@ -15518,7 +15518,7 @@ declare namespace chrome {
|
|
|
15518
15518
|
): Promise<boolean>;
|
|
15519
15519
|
|
|
15520
15520
|
/**
|
|
15521
|
-
* Removes access to the specified permissions. If there are any problems removing the permissions,
|
|
15521
|
+
* Removes access to the specified permissions. If there are any problems removing the permissions, the promise will be rejected.
|
|
15522
15522
|
*/
|
|
15523
15523
|
export function remove(
|
|
15524
15524
|
|
|
@@ -22819,7 +22819,7 @@ declare namespace chrome {
|
|
|
22819
22819
|
},
|
|
22820
22820
|
|
|
22821
22821
|
/**
|
|
22822
|
-
* @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the
|
|
22822
|
+
* @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the promise will be rejected.
|
|
22823
22823
|
* @since Chrome 99
|
|
22824
22824
|
*/
|
|
22825
22825
|
callback?: (
|
|
@@ -23781,7 +23781,7 @@ declare namespace chrome {
|
|
|
23781
23781
|
*
|
|
23782
23782
|
* @param tabId The ID of the tab to zoom; defaults to the active tab of the current window.
|
|
23783
23783
|
* @param zoomFactor The new zoom factor. A value of `0` sets the tab to its current default zoom factor. Values greater than `0` specify a (possibly non-default) zoom factor for the tab.
|
|
23784
|
-
* @param callback
|
|
23784
|
+
* @param callback Resolves after the zoom factor has been changed.
|
|
23785
23785
|
*/
|
|
23786
23786
|
export function setZoom(
|
|
23787
23787
|
|
|
@@ -23796,7 +23796,7 @@ declare namespace chrome {
|
|
|
23796
23796
|
* Zooms a specified tab.
|
|
23797
23797
|
*
|
|
23798
23798
|
* @param zoomFactor The new zoom factor. A value of `0` sets the tab to its current default zoom factor. Values greater than `0` specify a (possibly non-default) zoom factor for the tab.
|
|
23799
|
-
* @param callback
|
|
23799
|
+
* @param callback Resolves after the zoom factor has been changed.
|
|
23800
23800
|
*/
|
|
23801
23801
|
export function setZoom(
|
|
23802
23802
|
|
|
@@ -23820,7 +23820,7 @@ declare namespace chrome {
|
|
|
23820
23820
|
* Gets the current zoom factor of a specified tab.
|
|
23821
23821
|
*
|
|
23822
23822
|
* @param tabId The ID of the tab to get the current zoom factor from; defaults to the active tab of the current window.
|
|
23823
|
-
* @param callback
|
|
23823
|
+
* @param callback Resolves with the tab's current zoom factor after it has been fetched.
|
|
23824
23824
|
*/
|
|
23825
23825
|
export function getZoom(
|
|
23826
23826
|
|
|
@@ -23864,7 +23864,7 @@ declare namespace chrome {
|
|
|
23864
23864
|
*
|
|
23865
23865
|
* @param tabId The ID of the tab to change the zoom settings for; defaults to the active tab of the current window.
|
|
23866
23866
|
* @param zoomSettings Defines how zoom changes are handled and at what scope.
|
|
23867
|
-
* @param callback
|
|
23867
|
+
* @param callback Resolves after the zoom settings are changed.
|
|
23868
23868
|
*/
|
|
23869
23869
|
export function setZoomSettings(
|
|
23870
23870
|
|
|
@@ -23879,7 +23879,7 @@ declare namespace chrome {
|
|
|
23879
23879
|
* Sets the zoom settings for a specified tab, which define how zoom changes are handled. These settings are reset to defaults upon navigating the tab.
|
|
23880
23880
|
*
|
|
23881
23881
|
* @param zoomSettings Defines how zoom changes are handled and at what scope.
|
|
23882
|
-
* @param callback
|
|
23882
|
+
* @param callback Resolves after the zoom settings are changed.
|
|
23883
23883
|
*/
|
|
23884
23884
|
export function setZoomSettings(
|
|
23885
23885
|
|
|
@@ -23903,7 +23903,7 @@ declare namespace chrome {
|
|
|
23903
23903
|
* Gets the current zoom settings of a specified tab.
|
|
23904
23904
|
*
|
|
23905
23905
|
* @param tabId The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
|
|
23906
|
-
* @param callback
|
|
23906
|
+
* @param callback Resolves with the tab's current zoom settings.
|
|
23907
23907
|
*/
|
|
23908
23908
|
export function getZoomSettings(
|
|
23909
23909
|
|
|
@@ -23933,7 +23933,7 @@ declare namespace chrome {
|
|
|
23933
23933
|
* Discards a tab from memory. Discarded tabs are still visible on the tab strip and are reloaded when activated.
|
|
23934
23934
|
*
|
|
23935
23935
|
* @param tabId The ID of the tab to be discarded. If specified, the tab is discarded unless it is active or already discarded. If omitted, the browser discards the least important tab. This can fail if no discardable tabs exist.
|
|
23936
|
-
* @param callback
|
|
23936
|
+
* @param callback Resolves after the operation is completed.
|
|
23937
23937
|
* @since Chrome 54
|
|
23938
23938
|
*/
|
|
23939
23939
|
export function discard(
|
|
@@ -24222,7 +24222,7 @@ declare namespace chrome {
|
|
|
24222
24222
|
*
|
|
24223
24223
|
* @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.
|
|
24224
24224
|
* @param options The speech options.
|
|
24225
|
-
* @param callback
|
|
24225
|
+
* @param callback Resolves right away, before speech finishes. If an error occurs, the promise will be rejected. Use options.onEvent to get more detailed feedback.
|
|
24226
24226
|
*/
|
|
24227
24227
|
export function speak(
|
|
24228
24228
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "7b6a4d6236455b80"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"url": "https://github.com/GoogleChrome/chrome-types/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/GoogleChrome/chrome-types",
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.403"
|
|
20
20
|
}
|