chrome-types 0.1.64 → 0.1.68
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 +112 -692
- package/index.d.ts +107 -434
- 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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Nov 10 2021 11:36:50 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 3ab40a9b9ea32515a56ceaf4434b36e3c2ae2e04
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -103,7 +103,6 @@ declare namespace chrome {
|
|
|
103
103
|
/**
|
|
104
104
|
* Use the `chrome.accessibilityFeatures` API to manage Chrome's accessibility features. This API relies on the [ChromeSetting prototype of the type API](https://developer.chrome.com/docs/extensions/reference/types/#ChromeSetting) for getting and setting individual accessibility features. In order to get feature states the extension must request `accessibilityFeatures.read` permission. For modifying feature state, the extension needs `accessibilityFeatures.modify` permission. Note that `accessibilityFeatures.modify` does not imply `accessibilityFeatures.read` permission.
|
|
105
105
|
*
|
|
106
|
-
* @since Pending
|
|
107
106
|
* @chrome-permission accessibilityFeatures.modify
|
|
108
107
|
* @chrome-permission accessibilityFeatures.read
|
|
109
108
|
*/
|
|
@@ -239,15 +238,12 @@ declare namespace chrome {
|
|
|
239
238
|
/**
|
|
240
239
|
* Use the `chrome.action` API to control the extension's icon in the Google Chrome toolbar.
|
|
241
240
|
*
|
|
242
|
-
* @since
|
|
241
|
+
* @since Chrome 88
|
|
243
242
|
* @chrome-manifest action
|
|
244
243
|
* @chrome-min-manifest MV3
|
|
245
244
|
*/
|
|
246
245
|
export namespace action {
|
|
247
246
|
|
|
248
|
-
/**
|
|
249
|
-
* @since Chrome 88
|
|
250
|
-
*/
|
|
251
247
|
export interface TabDetails {
|
|
252
248
|
|
|
253
249
|
/**
|
|
@@ -271,8 +267,6 @@ declare namespace chrome {
|
|
|
271
267
|
|
|
272
268
|
/**
|
|
273
269
|
* Fired when an action icon is clicked. This event will not fire if the action has a popup.
|
|
274
|
-
*
|
|
275
|
-
* @since Chrome 88
|
|
276
270
|
*/
|
|
277
271
|
export const onClicked: events.Event<(
|
|
278
272
|
tab: tabs.Tab,
|
|
@@ -282,7 +276,6 @@ declare namespace chrome {
|
|
|
282
276
|
* Sets the title of the action. This shows up in the tooltip.
|
|
283
277
|
*
|
|
284
278
|
* @chrome-returns-extra since Pending
|
|
285
|
-
* @since Chrome 88
|
|
286
279
|
*/
|
|
287
280
|
export function setTitle(
|
|
288
281
|
|
|
@@ -302,8 +295,6 @@ declare namespace chrome {
|
|
|
302
295
|
|
|
303
296
|
/**
|
|
304
297
|
* Sets the title of the action. This shows up in the tooltip.
|
|
305
|
-
*
|
|
306
|
-
* @since Chrome 88
|
|
307
298
|
*/
|
|
308
299
|
export function setTitle(
|
|
309
300
|
|
|
@@ -327,7 +318,6 @@ declare namespace chrome {
|
|
|
327
318
|
* Gets the title of the action.
|
|
328
319
|
*
|
|
329
320
|
* @chrome-returns-extra since Pending
|
|
330
|
-
* @since Chrome 88
|
|
331
321
|
*/
|
|
332
322
|
export function getTitle(
|
|
333
323
|
|
|
@@ -336,8 +326,6 @@ declare namespace chrome {
|
|
|
336
326
|
|
|
337
327
|
/**
|
|
338
328
|
* Gets the title of the action.
|
|
339
|
-
*
|
|
340
|
-
* @since Chrome 88
|
|
341
329
|
*/
|
|
342
330
|
export function getTitle(
|
|
343
331
|
|
|
@@ -352,7 +340,6 @@ declare namespace chrome {
|
|
|
352
340
|
* Sets the icon for the action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the **path** or the **imageData** property must be specified.
|
|
353
341
|
*
|
|
354
342
|
* @chrome-returns-extra since Pending
|
|
355
|
-
* @since Chrome 88
|
|
356
343
|
*/
|
|
357
344
|
export function setIcon(
|
|
358
345
|
|
|
@@ -377,8 +364,6 @@ declare namespace chrome {
|
|
|
377
364
|
|
|
378
365
|
/**
|
|
379
366
|
* Sets the icon for the action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element, or as dictionary of either one of those. Either the **path** or the **imageData** property must be specified.
|
|
380
|
-
*
|
|
381
|
-
* @since Chrome 88
|
|
382
367
|
*/
|
|
383
368
|
export function setIcon(
|
|
384
369
|
|
|
@@ -407,7 +392,6 @@ declare namespace chrome {
|
|
|
407
392
|
* Sets the HTML document to be opened as a popup when the user clicks on the action's icon.
|
|
408
393
|
*
|
|
409
394
|
* @chrome-returns-extra since Pending
|
|
410
|
-
* @since Chrome 88
|
|
411
395
|
*/
|
|
412
396
|
export function setPopup(
|
|
413
397
|
|
|
@@ -427,8 +411,6 @@ declare namespace chrome {
|
|
|
427
411
|
|
|
428
412
|
/**
|
|
429
413
|
* Sets the HTML document to be opened as a popup when the user clicks on the action's icon.
|
|
430
|
-
*
|
|
431
|
-
* @since Chrome 88
|
|
432
414
|
*/
|
|
433
415
|
export function setPopup(
|
|
434
416
|
|
|
@@ -452,7 +434,6 @@ declare namespace chrome {
|
|
|
452
434
|
* Gets the html document set as the popup for this action.
|
|
453
435
|
*
|
|
454
436
|
* @chrome-returns-extra since Pending
|
|
455
|
-
* @since Chrome 88
|
|
456
437
|
*/
|
|
457
438
|
export function getPopup(
|
|
458
439
|
|
|
@@ -461,8 +442,6 @@ declare namespace chrome {
|
|
|
461
442
|
|
|
462
443
|
/**
|
|
463
444
|
* Gets the html document set as the popup for this action.
|
|
464
|
-
*
|
|
465
|
-
* @since Chrome 88
|
|
466
445
|
*/
|
|
467
446
|
export function getPopup(
|
|
468
447
|
|
|
@@ -477,7 +456,6 @@ declare namespace chrome {
|
|
|
477
456
|
* Sets the badge text for the action. The badge is displayed on top of the icon.
|
|
478
457
|
*
|
|
479
458
|
* @chrome-returns-extra since Pending
|
|
480
|
-
* @since Chrome 88
|
|
481
459
|
*/
|
|
482
460
|
export function setBadgeText(
|
|
483
461
|
|
|
@@ -497,8 +475,6 @@ declare namespace chrome {
|
|
|
497
475
|
|
|
498
476
|
/**
|
|
499
477
|
* Sets the badge text for the action. The badge is displayed on top of the icon.
|
|
500
|
-
*
|
|
501
|
-
* @since Chrome 88
|
|
502
478
|
*/
|
|
503
479
|
export function setBadgeText(
|
|
504
480
|
|
|
@@ -522,7 +498,6 @@ declare namespace chrome {
|
|
|
522
498
|
* Gets the badge text of the action. If no tab is specified, the non-tab-specific badge text is returned. If [displayActionCountAsBadgeText](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#setExtensionActionOptions) is enabled, a placeholder text will be returned unless the [declarativeNetRequestFeedback](https://developer.chrome.com/docs/extensions/declare_permissions#declarativeNetRequestFeedback) permission is present or tab-specific badge text was provided.
|
|
523
499
|
*
|
|
524
500
|
* @chrome-returns-extra since Pending
|
|
525
|
-
* @since Chrome 88
|
|
526
501
|
*/
|
|
527
502
|
export function getBadgeText(
|
|
528
503
|
|
|
@@ -531,8 +506,6 @@ declare namespace chrome {
|
|
|
531
506
|
|
|
532
507
|
/**
|
|
533
508
|
* Gets the badge text of the action. If no tab is specified, the non-tab-specific badge text is returned. If [displayActionCountAsBadgeText](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#setExtensionActionOptions) is enabled, a placeholder text will be returned unless the [declarativeNetRequestFeedback](https://developer.chrome.com/docs/extensions/declare_permissions#declarativeNetRequestFeedback) permission is present or tab-specific badge text was provided.
|
|
534
|
-
*
|
|
535
|
-
* @since Chrome 88
|
|
536
509
|
*/
|
|
537
510
|
export function getBadgeText(
|
|
538
511
|
|
|
@@ -547,7 +520,6 @@ declare namespace chrome {
|
|
|
547
520
|
* Sets the background color for the badge.
|
|
548
521
|
*
|
|
549
522
|
* @chrome-returns-extra since Pending
|
|
550
|
-
* @since Chrome 88
|
|
551
523
|
*/
|
|
552
524
|
export function setBadgeBackgroundColor(
|
|
553
525
|
|
|
@@ -567,8 +539,6 @@ declare namespace chrome {
|
|
|
567
539
|
|
|
568
540
|
/**
|
|
569
541
|
* Sets the background color for the badge.
|
|
570
|
-
*
|
|
571
|
-
* @since Chrome 88
|
|
572
542
|
*/
|
|
573
543
|
export function setBadgeBackgroundColor(
|
|
574
544
|
|
|
@@ -592,7 +562,6 @@ declare namespace chrome {
|
|
|
592
562
|
* Gets the background color of the action.
|
|
593
563
|
*
|
|
594
564
|
* @chrome-returns-extra since Pending
|
|
595
|
-
* @since Chrome 88
|
|
596
565
|
*/
|
|
597
566
|
export function getBadgeBackgroundColor(
|
|
598
567
|
|
|
@@ -601,8 +570,6 @@ declare namespace chrome {
|
|
|
601
570
|
|
|
602
571
|
/**
|
|
603
572
|
* Gets the background color of the action.
|
|
604
|
-
*
|
|
605
|
-
* @since Chrome 88
|
|
606
573
|
*/
|
|
607
574
|
export function getBadgeBackgroundColor(
|
|
608
575
|
|
|
@@ -618,7 +585,6 @@ declare namespace chrome {
|
|
|
618
585
|
*
|
|
619
586
|
* @chrome-returns-extra since Pending
|
|
620
587
|
* @param tabId The id of the tab for which you want to modify the action.
|
|
621
|
-
* @since Chrome 88
|
|
622
588
|
*/
|
|
623
589
|
export function enable(
|
|
624
590
|
|
|
@@ -629,7 +595,6 @@ declare namespace chrome {
|
|
|
629
595
|
* Enables the action for a tab. By default, actions are enabled.
|
|
630
596
|
*
|
|
631
597
|
* @param tabId The id of the tab for which you want to modify the action.
|
|
632
|
-
* @since Chrome 88
|
|
633
598
|
*/
|
|
634
599
|
export function enable(
|
|
635
600
|
|
|
@@ -643,7 +608,6 @@ declare namespace chrome {
|
|
|
643
608
|
*
|
|
644
609
|
* @chrome-returns-extra since Pending
|
|
645
610
|
* @param tabId The id of the tab for which you want to modify the action.
|
|
646
|
-
* @since Chrome 88
|
|
647
611
|
*/
|
|
648
612
|
export function disable(
|
|
649
613
|
|
|
@@ -654,7 +618,6 @@ declare namespace chrome {
|
|
|
654
618
|
* Disables the action for a tab.
|
|
655
619
|
*
|
|
656
620
|
* @param tabId The id of the tab for which you want to modify the action.
|
|
657
|
-
* @since Chrome 88
|
|
658
621
|
*/
|
|
659
622
|
export function disable(
|
|
660
623
|
|
|
@@ -687,7 +650,6 @@ declare namespace chrome {
|
|
|
687
650
|
/**
|
|
688
651
|
* Use the `chrome.alarms` API to schedule code to run periodically or at a specified time in the future.
|
|
689
652
|
*
|
|
690
|
-
* @since Pending
|
|
691
653
|
* @chrome-permission alarms
|
|
692
654
|
*/
|
|
693
655
|
export namespace alarms {
|
|
@@ -1797,6 +1759,21 @@ declare namespace chrome {
|
|
|
1797
1759
|
*/
|
|
1798
1760
|
isButton: boolean;
|
|
1799
1761
|
|
|
1762
|
+
/**
|
|
1763
|
+
* Whether or not this node is a checkbox.
|
|
1764
|
+
*/
|
|
1765
|
+
isCheckBox: boolean;
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Whether or not this node is a combobox.
|
|
1769
|
+
*/
|
|
1770
|
+
isComboBox: boolean;
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* Whether or not this node is an image.
|
|
1774
|
+
*/
|
|
1775
|
+
isImage: boolean;
|
|
1776
|
+
|
|
1800
1777
|
/**
|
|
1801
1778
|
* Aria auto complete.
|
|
1802
1779
|
*/
|
|
@@ -2393,7 +2370,6 @@ declare namespace chrome {
|
|
|
2393
2370
|
/**
|
|
2394
2371
|
* Use the `chrome.bookmarks` API to create, organize, and otherwise manipulate bookmarks. Also see [Override Pages](https://developer.chrome.com/docs/extensions/override), which you can use to create a custom Bookmark Manager page.
|
|
2395
2372
|
*
|
|
2396
|
-
* @since Pending
|
|
2397
2373
|
* @chrome-permission bookmarks
|
|
2398
2374
|
*/
|
|
2399
2375
|
export namespace bookmarks {
|
|
@@ -2475,13 +2451,11 @@ declare namespace chrome {
|
|
|
2475
2451
|
|
|
2476
2452
|
/**
|
|
2477
2453
|
* @deprecated Bookmark write operations are no longer limited by Chrome.
|
|
2478
|
-
* @chrome-deprecated-since Pending
|
|
2479
2454
|
*/
|
|
2480
2455
|
export const MAX_WRITE_OPERATIONS_PER_HOUR: 1000000;
|
|
2481
2456
|
|
|
2482
2457
|
/**
|
|
2483
2458
|
* @deprecated Bookmark write operations are no longer limited by Chrome.
|
|
2484
|
-
* @chrome-deprecated-since Pending
|
|
2485
2459
|
*/
|
|
2486
2460
|
export const MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE: 1000000;
|
|
2487
2461
|
|
|
@@ -2871,7 +2845,6 @@ declare namespace chrome {
|
|
|
2871
2845
|
/**
|
|
2872
2846
|
* Use the `chrome.browsingData` API to remove browsing data from a user's local profile.
|
|
2873
2847
|
*
|
|
2874
|
-
* @since Pending
|
|
2875
2848
|
* @chrome-permission browsingData
|
|
2876
2849
|
*/
|
|
2877
2850
|
export namespace browsingData {
|
|
@@ -3402,7 +3375,7 @@ declare namespace chrome {
|
|
|
3402
3375
|
/**
|
|
3403
3376
|
* Use this API to expose certificates to the platform which can use these certificates for TLS authentications.
|
|
3404
3377
|
*
|
|
3405
|
-
* @since
|
|
3378
|
+
* @since Chrome 46
|
|
3406
3379
|
* @chrome-permission certificateProvider
|
|
3407
3380
|
* @chrome-platform chromeos
|
|
3408
3381
|
*/
|
|
@@ -3530,8 +3503,6 @@ declare namespace chrome {
|
|
|
3530
3503
|
|
|
3531
3504
|
/**
|
|
3532
3505
|
* Deprecated. Replaced by {@link Algorithm}.
|
|
3533
|
-
*
|
|
3534
|
-
* @since Chrome 46
|
|
3535
3506
|
*/
|
|
3536
3507
|
export type Hash = "MD5_SHA1" | "SHA1" | "SHA256" | "SHA384" | "SHA512";
|
|
3537
3508
|
|
|
@@ -3549,9 +3520,6 @@ declare namespace chrome {
|
|
|
3549
3520
|
*/
|
|
3550
3521
|
export type PinRequestErrorType = "INVALID_PIN" | "INVALID_PUK" | "MAX_ATTEMPTS_EXCEEDED" | "UNKNOWN_ERROR";
|
|
3551
3522
|
|
|
3552
|
-
/**
|
|
3553
|
-
* @since Chrome 46
|
|
3554
|
-
*/
|
|
3555
3523
|
export interface CertificateInfo {
|
|
3556
3524
|
|
|
3557
3525
|
/**
|
|
@@ -3565,9 +3533,6 @@ declare namespace chrome {
|
|
|
3565
3533
|
supportedHashes: Hash[];
|
|
3566
3534
|
}
|
|
3567
3535
|
|
|
3568
|
-
/**
|
|
3569
|
-
* @since Chrome 46
|
|
3570
|
-
*/
|
|
3571
3536
|
export interface SignRequest {
|
|
3572
3537
|
|
|
3573
3538
|
/**
|
|
@@ -3781,13 +3746,10 @@ declare namespace chrome {
|
|
|
3781
3746
|
/**
|
|
3782
3747
|
* Stub namespace for the "chrome\_url\_overrides" manifest key.
|
|
3783
3748
|
*
|
|
3784
|
-
* @since
|
|
3749
|
+
* @since Chrome 93
|
|
3785
3750
|
*/
|
|
3786
3751
|
export namespace chrome_url_overrides {
|
|
3787
3752
|
|
|
3788
|
-
/**
|
|
3789
|
-
* @since Chrome 93
|
|
3790
|
-
*/
|
|
3791
3753
|
export interface UrlOverrideInfo {
|
|
3792
3754
|
|
|
3793
3755
|
/**
|
|
@@ -3810,7 +3772,6 @@ declare namespace chrome {
|
|
|
3810
3772
|
/**
|
|
3811
3773
|
* Use the commands API to add keyboard shortcuts that trigger actions in your extension, for example, an action to open the browser action or send a command to the extension.
|
|
3812
3774
|
*
|
|
3813
|
-
* @since Pending
|
|
3814
3775
|
* @chrome-manifest commands
|
|
3815
3776
|
*/
|
|
3816
3777
|
export namespace commands {
|
|
@@ -3867,7 +3828,7 @@ declare namespace chrome {
|
|
|
3867
3828
|
/**
|
|
3868
3829
|
* Stub namespace for the "content\_scripts" manifest key.
|
|
3869
3830
|
*
|
|
3870
|
-
* @since
|
|
3831
|
+
* @since Chrome 88
|
|
3871
3832
|
*/
|
|
3872
3833
|
export namespace contentScripts {
|
|
3873
3834
|
|
|
@@ -3877,13 +3838,9 @@ declare namespace chrome {
|
|
|
3877
3838
|
* @chrome-enum "document\_idle" The browser chooses a time to inject scripts between "document\_end" and immediately after the window.onload event fires. The exact moment of injection depends on how complex the document is and how long it is taking to load, and is optimized for page load speed. Content scripts running at "document\_idle" do not need to listen for the window.onload event; they are guaranteed to run after the DOM is complete. If a script definitely needs to run after window.onload, the extension can check if onload has already fired by using the document.readyState property.
|
|
3878
3839
|
* @chrome-enum "document\_start" Scripts are injected after any files from css, but before any other DOM is constructed or any other script is run.
|
|
3879
3840
|
* @chrome-enum "document\_end" Scripts are injected immediately after the DOM is complete, but before subresources like images and frames have loaded.
|
|
3880
|
-
* @since Chrome 88
|
|
3881
3841
|
*/
|
|
3882
3842
|
export type RunAt = "document_idle" | "document_start" | "document_end";
|
|
3883
3843
|
|
|
3884
|
-
/**
|
|
3885
|
-
* @since Chrome 88
|
|
3886
|
-
*/
|
|
3887
3844
|
export interface ContentScript {
|
|
3888
3845
|
|
|
3889
3846
|
/**
|
|
@@ -3936,7 +3893,6 @@ declare namespace chrome {
|
|
|
3936
3893
|
/**
|
|
3937
3894
|
* Use the `chrome.contentSettings` API to change settings that control whether websites can use features such as cookies, JavaScript, and plugins. More generally speaking, content settings allow you to customize Chrome's behavior on a per-site basis instead of globally.
|
|
3938
3895
|
*
|
|
3939
|
-
* @since Pending
|
|
3940
3896
|
* @chrome-permission contentSettings
|
|
3941
3897
|
*/
|
|
3942
3898
|
export namespace contentSettings {
|
|
@@ -4351,7 +4307,6 @@ declare namespace chrome {
|
|
|
4351
4307
|
/**
|
|
4352
4308
|
* Use the `chrome.contextMenus` API to add items to Google Chrome's context menu. You can choose what types of objects your context menu additions apply to, such as images, hyperlinks, and pages.
|
|
4353
4309
|
*
|
|
4354
|
-
* @since Pending
|
|
4355
4310
|
* @chrome-permission contextMenus
|
|
4356
4311
|
*/
|
|
4357
4312
|
export namespace contextMenus {
|
|
@@ -4612,7 +4567,6 @@ declare namespace chrome {
|
|
|
4612
4567
|
/**
|
|
4613
4568
|
* Use the `chrome.cookies` API to query and modify cookies, and to be notified when they change.
|
|
4614
4569
|
*
|
|
4615
|
-
* @since Pending
|
|
4616
4570
|
* @chrome-permission cookies
|
|
4617
4571
|
*/
|
|
4618
4572
|
export namespace cookies {
|
|
@@ -5096,13 +5050,10 @@ declare namespace chrome {
|
|
|
5096
5050
|
/**
|
|
5097
5051
|
* Stub namespace for manifest keys relating to the cross origin isolation response headers.
|
|
5098
5052
|
*
|
|
5099
|
-
* @since
|
|
5053
|
+
* @since Chrome 93
|
|
5100
5054
|
*/
|
|
5101
5055
|
export namespace crossOriginIsolation {
|
|
5102
5056
|
|
|
5103
|
-
/**
|
|
5104
|
-
* @since Chrome 93
|
|
5105
|
-
*/
|
|
5106
5057
|
export interface ResponseHeader {
|
|
5107
5058
|
|
|
5108
5059
|
value?: string;
|
|
@@ -5112,7 +5063,6 @@ declare namespace chrome {
|
|
|
5112
5063
|
/**
|
|
5113
5064
|
* The `chrome.debugger` API serves as an alternate transport for Chrome's [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol). Use `chrome.debugger` to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the Debuggee `tabId` to target tabs with sendCommand and route events by `tabId` from onEvent callbacks.
|
|
5114
5065
|
*
|
|
5115
|
-
* @since Pending
|
|
5116
5066
|
* @chrome-permission debugger
|
|
5117
5067
|
*/
|
|
5118
5068
|
namespace _debugger {
|
|
@@ -5335,7 +5285,6 @@ declare namespace chrome {
|
|
|
5335
5285
|
/**
|
|
5336
5286
|
* Use the `chrome.declarativeContent` API to take actions depending on the content of a page, without requiring permission to read the page's content.
|
|
5337
5287
|
*
|
|
5338
|
-
* @since Pending
|
|
5339
5288
|
* @chrome-permission declarativeContent
|
|
5340
5289
|
*/
|
|
5341
5290
|
export namespace declarativeContent {
|
|
@@ -5373,7 +5322,6 @@ declare namespace chrome {
|
|
|
5373
5322
|
* Declarative event action that shows the extension's {@link pageAction page action} while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/declare_permissions#host-permissions), but the extension must have a page action. If the extension has the [activeTab](https://developer.chrome.com/docs/extensions/activeTab) permission, clicking the page action grants access to the active tab.
|
|
5374
5323
|
*
|
|
5375
5324
|
* @deprecated Please use {@link declarativeContent.ShowAction}.
|
|
5376
|
-
* @chrome-deprecated-since Pending
|
|
5377
5325
|
*/
|
|
5378
5326
|
export class ShowPageAction {
|
|
5379
5327
|
constructor(arg: ShowPageAction);
|
|
@@ -5381,6 +5329,8 @@ declare namespace chrome {
|
|
|
5381
5329
|
|
|
5382
5330
|
/**
|
|
5383
5331
|
* Declarative event action that shows the extension's toolbar action ({@link pageAction page action} or {@link browserAction browser action}) while the corresponding conditions are met. This action can be used without [host permissions](https://developer.chrome.com/docs/extensions/declare_permissions#host-permissions). If the extension has the [activeTab](https://developer.chrome.com/docs/extensions/activeTab) permission, clicking the page action grants access to the active tab.
|
|
5332
|
+
*
|
|
5333
|
+
* @since Pending
|
|
5384
5334
|
*/
|
|
5385
5335
|
export class ShowAction {
|
|
5386
5336
|
constructor(arg: ShowAction);
|
|
@@ -5435,7 +5385,7 @@ declare namespace chrome {
|
|
|
5435
5385
|
/**
|
|
5436
5386
|
* The `chrome.declarativeNetRequest` API is used to block or modify network requests by specifying declarative rules. This lets extensions modify network requests without intercepting them and viewing their content, thus providing more privacy.
|
|
5437
5387
|
*
|
|
5438
|
-
* @since
|
|
5388
|
+
* @since Chrome 84
|
|
5439
5389
|
* @chrome-permission declarativeNetRequest
|
|
5440
5390
|
* @chrome-permission declarativeNetRequestWithHostAccess
|
|
5441
5391
|
*/
|
|
@@ -5443,8 +5393,6 @@ declare namespace chrome {
|
|
|
5443
5393
|
|
|
5444
5394
|
/**
|
|
5445
5395
|
* This describes the resource type of the network request.
|
|
5446
|
-
*
|
|
5447
|
-
* @since Chrome 84
|
|
5448
5396
|
*/
|
|
5449
5397
|
export type ResourceType = "main_frame" | "sub_frame" | "stylesheet" | "script" | "image" | "font" | "object" | "xmlhttprequest" | "ping" | "csp_report" | "media" | "websocket" | "webtransport" | "webbundle" | "other";
|
|
5450
5398
|
|
|
@@ -5460,7 +5408,6 @@ declare namespace chrome {
|
|
|
5460
5408
|
*
|
|
5461
5409
|
* @chrome-enum "firstParty" The network request is first party to the frame in which it originated.
|
|
5462
5410
|
* @chrome-enum "thirdParty" The network request is third party to the frame in which it originated.
|
|
5463
|
-
* @since Chrome 84
|
|
5464
5411
|
*/
|
|
5465
5412
|
export type DomainType = "firstParty" | "thirdParty";
|
|
5466
5413
|
|
|
@@ -5483,7 +5430,6 @@ declare namespace chrome {
|
|
|
5483
5430
|
* @chrome-enum "upgradeScheme" Upgrade the network request url's scheme to https if the request is http or ftp.
|
|
5484
5431
|
* @chrome-enum "modifyHeaders" Modify request/response headers from the network request.
|
|
5485
5432
|
* @chrome-enum "allowAllRequests" Allow all requests within a frame hierarchy, including the frame request itself.
|
|
5486
|
-
* @since Chrome 84
|
|
5487
5433
|
*/
|
|
5488
5434
|
export type RuleActionType = "block" | "redirect" | "allow" | "upgradeScheme" | "modifyHeaders" | "allowAllRequests";
|
|
5489
5435
|
|
|
@@ -5496,9 +5442,6 @@ declare namespace chrome {
|
|
|
5496
5442
|
*/
|
|
5497
5443
|
export type UnsupportedRegexReason = "syntaxError" | "memoryLimitExceeded";
|
|
5498
5444
|
|
|
5499
|
-
/**
|
|
5500
|
-
* @since Chrome 84
|
|
5501
|
-
*/
|
|
5502
5445
|
export interface Ruleset {
|
|
5503
5446
|
|
|
5504
5447
|
/**
|
|
@@ -5517,9 +5460,6 @@ declare namespace chrome {
|
|
|
5517
5460
|
enabled: boolean;
|
|
5518
5461
|
}
|
|
5519
5462
|
|
|
5520
|
-
/**
|
|
5521
|
-
* @since Chrome 84
|
|
5522
|
-
*/
|
|
5523
5463
|
export interface QueryKeyValue {
|
|
5524
5464
|
|
|
5525
5465
|
key: string;
|
|
@@ -5534,9 +5474,6 @@ declare namespace chrome {
|
|
|
5534
5474
|
replaceOnly?: boolean;
|
|
5535
5475
|
}
|
|
5536
5476
|
|
|
5537
|
-
/**
|
|
5538
|
-
* @since Chrome 84
|
|
5539
|
-
*/
|
|
5540
5477
|
export interface QueryTransform {
|
|
5541
5478
|
|
|
5542
5479
|
/**
|
|
@@ -5550,9 +5487,6 @@ declare namespace chrome {
|
|
|
5550
5487
|
addOrReplaceParams?: QueryKeyValue[];
|
|
5551
5488
|
}
|
|
5552
5489
|
|
|
5553
|
-
/**
|
|
5554
|
-
* @since Chrome 84
|
|
5555
|
-
*/
|
|
5556
5490
|
export interface URLTransform {
|
|
5557
5491
|
|
|
5558
5492
|
/**
|
|
@@ -5601,9 +5535,6 @@ declare namespace chrome {
|
|
|
5601
5535
|
password?: string;
|
|
5602
5536
|
}
|
|
5603
5537
|
|
|
5604
|
-
/**
|
|
5605
|
-
* @since Chrome 84
|
|
5606
|
-
*/
|
|
5607
5538
|
export interface Redirect {
|
|
5608
5539
|
|
|
5609
5540
|
/**
|
|
@@ -5627,9 +5558,6 @@ declare namespace chrome {
|
|
|
5627
5558
|
regexSubstitution?: string;
|
|
5628
5559
|
}
|
|
5629
5560
|
|
|
5630
|
-
/**
|
|
5631
|
-
* @since Chrome 84
|
|
5632
|
-
*/
|
|
5633
5561
|
export interface RuleCondition {
|
|
5634
5562
|
|
|
5635
5563
|
/**
|
|
@@ -5762,9 +5690,6 @@ declare namespace chrome {
|
|
|
5762
5690
|
value?: string;
|
|
5763
5691
|
}
|
|
5764
5692
|
|
|
5765
|
-
/**
|
|
5766
|
-
* @since Chrome 84
|
|
5767
|
-
*/
|
|
5768
5693
|
export interface RuleAction {
|
|
5769
5694
|
|
|
5770
5695
|
/**
|
|
@@ -5792,9 +5717,6 @@ declare namespace chrome {
|
|
|
5792
5717
|
responseHeaders?: ModifyHeaderInfo[];
|
|
5793
5718
|
}
|
|
5794
5719
|
|
|
5795
|
-
/**
|
|
5796
|
-
* @since Chrome 84
|
|
5797
|
-
*/
|
|
5798
5720
|
export interface Rule {
|
|
5799
5721
|
|
|
5800
5722
|
/**
|
|
@@ -5818,9 +5740,6 @@ declare namespace chrome {
|
|
|
5818
5740
|
action: RuleAction;
|
|
5819
5741
|
}
|
|
5820
5742
|
|
|
5821
|
-
/**
|
|
5822
|
-
* @since Chrome 84
|
|
5823
|
-
*/
|
|
5824
5743
|
export interface MatchedRule {
|
|
5825
5744
|
|
|
5826
5745
|
/**
|
|
@@ -5834,9 +5753,6 @@ declare namespace chrome {
|
|
|
5834
5753
|
rulesetId: string;
|
|
5835
5754
|
}
|
|
5836
5755
|
|
|
5837
|
-
/**
|
|
5838
|
-
* @since Chrome 84
|
|
5839
|
-
*/
|
|
5840
5756
|
export interface MatchedRuleInfo {
|
|
5841
5757
|
|
|
5842
5758
|
rule: MatchedRule;
|
|
@@ -5852,9 +5768,6 @@ declare namespace chrome {
|
|
|
5852
5768
|
tabId: number;
|
|
5853
5769
|
}
|
|
5854
5770
|
|
|
5855
|
-
/**
|
|
5856
|
-
* @since Chrome 84
|
|
5857
|
-
*/
|
|
5858
5771
|
export interface MatchedRulesFilter {
|
|
5859
5772
|
|
|
5860
5773
|
/**
|
|
@@ -5868,9 +5781,6 @@ declare namespace chrome {
|
|
|
5868
5781
|
minTimeStamp?: number;
|
|
5869
5782
|
}
|
|
5870
5783
|
|
|
5871
|
-
/**
|
|
5872
|
-
* @since Chrome 84
|
|
5873
|
-
*/
|
|
5874
5784
|
export interface RulesMatchedDetails {
|
|
5875
5785
|
|
|
5876
5786
|
/**
|
|
@@ -5879,9 +5789,6 @@ declare namespace chrome {
|
|
|
5879
5789
|
rulesMatchedInfo: MatchedRuleInfo[];
|
|
5880
5790
|
}
|
|
5881
5791
|
|
|
5882
|
-
/**
|
|
5883
|
-
* @since Chrome 84
|
|
5884
|
-
*/
|
|
5885
5792
|
export interface RequestDetails {
|
|
5886
5793
|
|
|
5887
5794
|
/**
|
|
@@ -5925,9 +5832,6 @@ declare namespace chrome {
|
|
|
5925
5832
|
type: ResourceType;
|
|
5926
5833
|
}
|
|
5927
5834
|
|
|
5928
|
-
/**
|
|
5929
|
-
* @since Chrome 84
|
|
5930
|
-
*/
|
|
5931
5835
|
export interface MatchedRuleInfoDebug {
|
|
5932
5836
|
|
|
5933
5837
|
rule: MatchedRule;
|
|
@@ -6054,29 +5958,21 @@ declare namespace chrome {
|
|
|
6054
5958
|
|
|
6055
5959
|
/**
|
|
6056
5960
|
* Time interval within which `MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL getMatchedRules` calls can be made, specified in minutes. Additional calls will fail immediately and set {@link runtime.lastError}. Note: `getMatchedRules` calls associated with a user gesture are exempt from the quota.
|
|
6057
|
-
*
|
|
6058
|
-
* @since Chrome 84
|
|
6059
5961
|
*/
|
|
6060
5962
|
export const GETMATCHEDRULES_QUOTA_INTERVAL: 10;
|
|
6061
5963
|
|
|
6062
5964
|
/**
|
|
6063
5965
|
* The number of times `getMatchedRules` can be called within a period of `GETMATCHEDRULES_QUOTA_INTERVAL`.
|
|
6064
|
-
*
|
|
6065
|
-
* @since Chrome 84
|
|
6066
5966
|
*/
|
|
6067
5967
|
export const MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL: 20;
|
|
6068
5968
|
|
|
6069
5969
|
/**
|
|
6070
5970
|
* The maximum number of regular expression rules that an extension can add. This limit is evaluated separately for the set of dynamic rules and those specified in the rule resources file.
|
|
6071
|
-
*
|
|
6072
|
-
* @since Chrome 84
|
|
6073
5971
|
*/
|
|
6074
5972
|
export const MAX_NUMBER_OF_REGEX_RULES: 1000;
|
|
6075
5973
|
|
|
6076
5974
|
/**
|
|
6077
5975
|
* The maximum number of static `Rulesets` an extension can specify as part of the `"rule_resources"` manifest key.
|
|
6078
|
-
*
|
|
6079
|
-
* @since Chrome 84
|
|
6080
5976
|
*/
|
|
6081
5977
|
export const MAX_NUMBER_OF_STATIC_RULESETS: 50;
|
|
6082
5978
|
|
|
@@ -6089,8 +5985,6 @@ declare namespace chrome {
|
|
|
6089
5985
|
|
|
6090
5986
|
/**
|
|
6091
5987
|
* Ruleset ID for the dynamic rules added by the extension.
|
|
6092
|
-
*
|
|
6093
|
-
* @since Chrome 84
|
|
6094
5988
|
*/
|
|
6095
5989
|
export const DYNAMIC_RULESET_ID: "_dynamic";
|
|
6096
5990
|
|
|
@@ -6104,7 +5998,6 @@ declare namespace chrome {
|
|
|
6104
5998
|
/**
|
|
6105
5999
|
* Fired when a rule is matched with a request. Only available for unpacked extensions with the `declarativeNetRequestFeedback` permission as this is intended to be used for debugging purposes only.
|
|
6106
6000
|
*
|
|
6107
|
-
* @since Chrome 84
|
|
6108
6001
|
* @chrome-permission declarativeNetRequestFeedback
|
|
6109
6002
|
*/
|
|
6110
6003
|
export const onRuleMatchedDebug: events.Event<(
|
|
@@ -6123,7 +6016,6 @@ declare namespace chrome {
|
|
|
6123
6016
|
* * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
|
|
6124
6017
|
*
|
|
6125
6018
|
* @chrome-returns-extra since Pending
|
|
6126
|
-
* @since Chrome 84
|
|
6127
6019
|
*/
|
|
6128
6020
|
export function updateDynamicRules(
|
|
6129
6021
|
|
|
@@ -6142,7 +6034,6 @@ declare namespace chrome {
|
|
|
6142
6034
|
* * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
|
|
6143
6035
|
*
|
|
6144
6036
|
* @param callback Called once the update is complete or has failed. In case of an error, {@link runtime.lastError} will be set 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.
|
|
6145
|
-
* @since Chrome 84
|
|
6146
6037
|
*/
|
|
6147
6038
|
export function updateDynamicRules(
|
|
6148
6039
|
|
|
@@ -6158,7 +6049,6 @@ declare namespace chrome {
|
|
|
6158
6049
|
* Returns the current set of dynamic rules for the extension.
|
|
6159
6050
|
*
|
|
6160
6051
|
* @chrome-returns-extra since Pending
|
|
6161
|
-
* @since Chrome 84
|
|
6162
6052
|
*/
|
|
6163
6053
|
export function getDynamicRules(): Promise<Rule[]>;
|
|
6164
6054
|
|
|
@@ -6166,7 +6056,6 @@ declare namespace chrome {
|
|
|
6166
6056
|
* Returns the current set of dynamic rules for the extension.
|
|
6167
6057
|
*
|
|
6168
6058
|
* @param callback Called with the set of dynamic rules. An error might be raised in case of transient internal errors.
|
|
6169
|
-
* @since Chrome 84
|
|
6170
6059
|
*/
|
|
6171
6060
|
export function getDynamicRules(
|
|
6172
6061
|
|
|
@@ -6233,7 +6122,6 @@ declare namespace chrome {
|
|
|
6233
6122
|
* 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.
|
|
6234
6123
|
*
|
|
6235
6124
|
* @chrome-returns-extra since Pending
|
|
6236
|
-
* @since Chrome 84
|
|
6237
6125
|
*/
|
|
6238
6126
|
export function updateEnabledRulesets(
|
|
6239
6127
|
|
|
@@ -6248,7 +6136,6 @@ declare namespace chrome {
|
|
|
6248
6136
|
* 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.
|
|
6249
6137
|
*
|
|
6250
6138
|
* @param callback Called once the update is complete. In case of an error, {@link runtime.lastError} will be set and no change will be made to set of enabled rulesets. This can happen for multiple reasons, such as invalid ruleset IDs, rule count limit exceeded, or internal errors.
|
|
6251
|
-
* @since Chrome 84
|
|
6252
6139
|
*/
|
|
6253
6140
|
export function updateEnabledRulesets(
|
|
6254
6141
|
|
|
@@ -6264,7 +6151,6 @@ declare namespace chrome {
|
|
|
6264
6151
|
* Returns the ids for the current set of enabled static rulesets.
|
|
6265
6152
|
*
|
|
6266
6153
|
* @chrome-returns-extra since Pending
|
|
6267
|
-
* @since Chrome 84
|
|
6268
6154
|
*/
|
|
6269
6155
|
export function getEnabledRulesets(): Promise<string[]>;
|
|
6270
6156
|
|
|
@@ -6272,7 +6158,6 @@ declare namespace chrome {
|
|
|
6272
6158
|
* Returns the ids for the current set of enabled static rulesets.
|
|
6273
6159
|
*
|
|
6274
6160
|
* @param callback Called with a list of ids, where each id corresponds to an enabled static {@link Ruleset}.
|
|
6275
|
-
* @since Chrome 84
|
|
6276
6161
|
*/
|
|
6277
6162
|
export function getEnabledRulesets(
|
|
6278
6163
|
|
|
@@ -6286,7 +6171,6 @@ declare namespace chrome {
|
|
|
6286
6171
|
*
|
|
6287
6172
|
* @chrome-returns-extra since Pending
|
|
6288
6173
|
* @param filter An object to filter the list of matched rules.
|
|
6289
|
-
* @since Chrome 84
|
|
6290
6174
|
*/
|
|
6291
6175
|
export function getMatchedRules(
|
|
6292
6176
|
|
|
@@ -6298,7 +6182,6 @@ declare namespace chrome {
|
|
|
6298
6182
|
*
|
|
6299
6183
|
* @param filter An object to filter the list of matched rules.
|
|
6300
6184
|
* @param callback Called once the list of matched rules has been fetched. In case of an error, {@link runtime.lastError} will be set and no rules will be returned. This can happen for multiple reasons, such as insufficient permissions, or exceeding the quota.
|
|
6301
|
-
* @since Chrome 84
|
|
6302
6185
|
*/
|
|
6303
6186
|
export function getMatchedRules(
|
|
6304
6187
|
|
|
@@ -6387,7 +6270,6 @@ declare namespace chrome {
|
|
|
6387
6270
|
/**
|
|
6388
6271
|
* Desktop Capture API that can be used to capture content of screen, individual windows or tabs.
|
|
6389
6272
|
*
|
|
6390
|
-
* @since Pending
|
|
6391
6273
|
* @chrome-permission desktopCapture
|
|
6392
6274
|
*/
|
|
6393
6275
|
export namespace desktopCapture {
|
|
@@ -7045,15 +6927,12 @@ declare namespace chrome {
|
|
|
7045
6927
|
/**
|
|
7046
6928
|
* Use the `chrome.documentScan` API to discover and retrieve images from attached paper document scanners.
|
|
7047
6929
|
*
|
|
7048
|
-
* @since
|
|
6930
|
+
* @since Chrome 44
|
|
7049
6931
|
* @chrome-permission documentScan
|
|
7050
6932
|
* @chrome-platform chromeos
|
|
7051
6933
|
*/
|
|
7052
6934
|
export namespace documentScan {
|
|
7053
6935
|
|
|
7054
|
-
/**
|
|
7055
|
-
* @since Chrome 44
|
|
7056
|
-
*/
|
|
7057
6936
|
export interface ScanOptions {
|
|
7058
6937
|
|
|
7059
6938
|
/**
|
|
@@ -7067,9 +6946,6 @@ declare namespace chrome {
|
|
|
7067
6946
|
maxImages?: number;
|
|
7068
6947
|
}
|
|
7069
6948
|
|
|
7070
|
-
/**
|
|
7071
|
-
* @since Chrome 44
|
|
7072
|
-
*/
|
|
7073
6949
|
export interface ScanResults {
|
|
7074
6950
|
|
|
7075
6951
|
/**
|
|
@@ -7088,7 +6964,6 @@ declare namespace chrome {
|
|
|
7088
6964
|
*
|
|
7089
6965
|
* @chrome-returns-extra since Pending
|
|
7090
6966
|
* @param options Object containing scan parameters.
|
|
7091
|
-
* @since Chrome 44
|
|
7092
6967
|
*/
|
|
7093
6968
|
export function scan(
|
|
7094
6969
|
|
|
@@ -7100,7 +6975,6 @@ declare namespace chrome {
|
|
|
7100
6975
|
*
|
|
7101
6976
|
* @param options Object containing scan parameters.
|
|
7102
6977
|
* @param callback Called with the result and data from the scan.
|
|
7103
|
-
* @since Chrome 44
|
|
7104
6978
|
*/
|
|
7105
6979
|
export function scan(
|
|
7106
6980
|
|
|
@@ -7115,7 +6989,7 @@ declare namespace chrome {
|
|
|
7115
6989
|
/**
|
|
7116
6990
|
* Use the `chrome.dom` API to access special DOM APIs for Extensions
|
|
7117
6991
|
*
|
|
7118
|
-
* @since
|
|
6992
|
+
* @since Chrome 88
|
|
7119
6993
|
*/
|
|
7120
6994
|
export namespace dom {
|
|
7121
6995
|
|
|
@@ -7123,7 +6997,6 @@ declare namespace chrome {
|
|
|
7123
6997
|
* Gets the open shadow root or the closed shadow root hosted by the specified element. If the element doesn't attach the shadow root, it will return null.
|
|
7124
6998
|
*
|
|
7125
6999
|
* @returns See [https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)
|
|
7126
|
-
* @since Chrome 88
|
|
7127
7000
|
*/
|
|
7128
7001
|
export function openOrClosedShadowRoot(
|
|
7129
7002
|
|
|
@@ -7134,7 +7007,6 @@ declare namespace chrome {
|
|
|
7134
7007
|
/**
|
|
7135
7008
|
* Use the `chrome.downloads` API to programmatically initiate, monitor, manipulate, and search for downloads.
|
|
7136
7009
|
*
|
|
7137
|
-
* @since Pending
|
|
7138
7010
|
* @chrome-permission downloads
|
|
7139
7011
|
*/
|
|
7140
7012
|
export namespace downloads {
|
|
@@ -7917,6 +7789,7 @@ declare namespace chrome {
|
|
|
7917
7789
|
/**
|
|
7918
7790
|
* Use the `chrome.enterprise.deviceAttributes` API to read device attributes. Note: This API is only available to extensions force-installed by enterprise policy.
|
|
7919
7791
|
*
|
|
7792
|
+
* @since Chrome 46
|
|
7920
7793
|
* @chrome-permission enterprise.deviceAttributes
|
|
7921
7794
|
* @chrome-platform chromeos
|
|
7922
7795
|
* @chrome-platform lacros
|
|
@@ -7927,7 +7800,6 @@ declare namespace chrome {
|
|
|
7927
7800
|
* 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.
|
|
7928
7801
|
*
|
|
7929
7802
|
* @chrome-returns-extra since Pending
|
|
7930
|
-
* @since Chrome 46
|
|
7931
7803
|
*/
|
|
7932
7804
|
export function getDirectoryDeviceId(): Promise<string>;
|
|
7933
7805
|
|
|
@@ -7935,7 +7807,6 @@ declare namespace chrome {
|
|
|
7935
7807
|
* 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.
|
|
7936
7808
|
*
|
|
7937
7809
|
* @param callback Called with the device identifier of the directory API when received.
|
|
7938
|
-
* @since Chrome 46
|
|
7939
7810
|
*/
|
|
7940
7811
|
export function getDirectoryDeviceId(
|
|
7941
7812
|
|
|
@@ -8032,13 +7903,11 @@ declare namespace chrome {
|
|
|
8032
7903
|
/**
|
|
8033
7904
|
* Use the `chrome.enterprise.hardwarePlatform` API to get the manufacturer and model of the hardware platform where the browser runs. Note: This API is only available to extensions installed by enterprise policy.
|
|
8034
7905
|
*
|
|
7906
|
+
* @since Chrome 71
|
|
8035
7907
|
* @chrome-permission enterprise.hardwarePlatform
|
|
8036
7908
|
*/
|
|
8037
7909
|
export namespace enterprise.hardwarePlatform {
|
|
8038
7910
|
|
|
8039
|
-
/**
|
|
8040
|
-
* @since Chrome 71
|
|
8041
|
-
*/
|
|
8042
7911
|
export interface HardwarePlatformInfo {
|
|
8043
7912
|
|
|
8044
7913
|
model: string;
|
|
@@ -8050,7 +7919,6 @@ declare namespace chrome {
|
|
|
8050
7919
|
* Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
|
|
8051
7920
|
*
|
|
8052
7921
|
* @chrome-returns-extra since Pending
|
|
8053
|
-
* @since Chrome 71
|
|
8054
7922
|
*/
|
|
8055
7923
|
export function getHardwarePlatformInfo(): Promise<HardwarePlatformInfo>;
|
|
8056
7924
|
|
|
@@ -8058,7 +7926,6 @@ declare namespace chrome {
|
|
|
8058
7926
|
* Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
|
|
8059
7927
|
*
|
|
8060
7928
|
* @param callback Called with the hardware platform info.
|
|
8061
|
-
* @since Chrome 71
|
|
8062
7929
|
*/
|
|
8063
7930
|
export function getHardwarePlatformInfo(
|
|
8064
7931
|
|
|
@@ -8071,15 +7938,13 @@ declare namespace chrome {
|
|
|
8071
7938
|
/**
|
|
8072
7939
|
* Use the `chrome.enterprise.networkingAttributes` API to read information about your current network. Note: This API is only available to extensions force-installed by enterprise policy.
|
|
8073
7940
|
*
|
|
7941
|
+
* @since Chrome 85
|
|
8074
7942
|
* @chrome-permission enterprise.networkingAttributes
|
|
8075
7943
|
* @chrome-platform chromeos
|
|
8076
7944
|
* @chrome-platform lacros
|
|
8077
7945
|
*/
|
|
8078
7946
|
export namespace enterprise.networkingAttributes {
|
|
8079
7947
|
|
|
8080
|
-
/**
|
|
8081
|
-
* @since Chrome 85
|
|
8082
|
-
*/
|
|
8083
7948
|
export interface NetworkDetails {
|
|
8084
7949
|
|
|
8085
7950
|
/**
|
|
@@ -8102,7 +7967,6 @@ declare namespace chrome {
|
|
|
8102
7967
|
* 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.
|
|
8103
7968
|
*
|
|
8104
7969
|
* @chrome-returns-extra since Pending
|
|
8105
|
-
* @since Chrome 85
|
|
8106
7970
|
*/
|
|
8107
7971
|
export function getNetworkDetails(): Promise<NetworkDetails>;
|
|
8108
7972
|
|
|
@@ -8110,7 +7974,6 @@ declare namespace chrome {
|
|
|
8110
7974
|
* 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.
|
|
8111
7975
|
*
|
|
8112
7976
|
* @param callback Called with the device's default network's {@link NetworkDetails}.
|
|
8113
|
-
* @since Chrome 85
|
|
8114
7977
|
*/
|
|
8115
7978
|
export function getNetworkDetails(
|
|
8116
7979
|
|
|
@@ -8294,8 +8157,6 @@ declare namespace chrome {
|
|
|
8294
8157
|
|
|
8295
8158
|
/**
|
|
8296
8159
|
* The `chrome.events` namespace contains common types used by APIs dispatching events to notify you when something interesting happens.
|
|
8297
|
-
*
|
|
8298
|
-
* @since Pending
|
|
8299
8160
|
*/
|
|
8300
8161
|
export namespace events {
|
|
8301
8162
|
|
|
@@ -8543,8 +8404,6 @@ declare namespace chrome {
|
|
|
8543
8404
|
|
|
8544
8405
|
/**
|
|
8545
8406
|
* The `chrome.extension` API has utilities that can be used by any extension page. It includes support for exchanging messages between an extension and its content scripts or between extensions, as described in detail in [Message Passing](https://developer.chrome.com/docs/extensions/messaging).
|
|
8546
|
-
*
|
|
8547
|
-
* @since Pending
|
|
8548
8407
|
*/
|
|
8549
8408
|
export namespace extension {
|
|
8550
8409
|
|
|
@@ -8633,8 +8492,6 @@ declare namespace chrome {
|
|
|
8633
8492
|
|
|
8634
8493
|
/**
|
|
8635
8494
|
* Schemas for structured manifest entries
|
|
8636
|
-
*
|
|
8637
|
-
* @since Pending
|
|
8638
8495
|
*/
|
|
8639
8496
|
export namespace extensionsManifestTypes {
|
|
8640
8497
|
|
|
@@ -8866,8 +8723,6 @@ declare namespace chrome {
|
|
|
8866
8723
|
|
|
8867
8724
|
/**
|
|
8868
8725
|
* The `chrome.extensionTypes` API contains type declarations for Chrome extensions.
|
|
8869
|
-
*
|
|
8870
|
-
* @since Pending
|
|
8871
8726
|
*/
|
|
8872
8727
|
export namespace extensionTypes {
|
|
8873
8728
|
|
|
@@ -8998,7 +8853,6 @@ declare namespace chrome {
|
|
|
8998
8853
|
/**
|
|
8999
8854
|
* Use the `chrome.fileBrowserHandler` API to extend the Chrome OS file browser. For example, you can use this API to enable users to upload files to your website.
|
|
9000
8855
|
*
|
|
9001
|
-
* @since Pending
|
|
9002
8856
|
* @chrome-permission fileBrowserHandler
|
|
9003
8857
|
* @chrome-disallow-service-workers
|
|
9004
8858
|
* @chrome-platform chromeos
|
|
@@ -9106,7 +8960,6 @@ declare namespace chrome {
|
|
|
9106
8960
|
/**
|
|
9107
8961
|
* Use the `chrome.fileSystemProvider` API to create file systems, that can be accessible from the file manager on Chrome OS.
|
|
9108
8962
|
*
|
|
9109
|
-
* @since Pending
|
|
9110
8963
|
* @chrome-permission fileSystemProvider
|
|
9111
8964
|
* @chrome-disallow-service-workers
|
|
9112
8965
|
* @chrome-platform chromeos
|
|
@@ -10233,7 +10086,6 @@ declare namespace chrome {
|
|
|
10233
10086
|
/**
|
|
10234
10087
|
* Use the `chrome.fontSettings` API to manage Chrome's font settings.
|
|
10235
10088
|
*
|
|
10236
|
-
* @since Pending
|
|
10237
10089
|
* @chrome-permission fontSettings
|
|
10238
10090
|
*/
|
|
10239
10091
|
export namespace fontSettings {
|
|
@@ -10842,7 +10694,6 @@ declare namespace chrome {
|
|
|
10842
10694
|
/**
|
|
10843
10695
|
* Use `chrome.gcm` to enable apps and extensions to send and receive messages through the [Google Cloud Messaging Service](https://developer.android.com/google/gcm/).
|
|
10844
10696
|
*
|
|
10845
|
-
* @since Pending
|
|
10846
10697
|
* @chrome-permission gcm
|
|
10847
10698
|
*/
|
|
10848
10699
|
export namespace gcm {
|
|
@@ -10974,7 +10825,6 @@ declare namespace chrome {
|
|
|
10974
10825
|
/**
|
|
10975
10826
|
* Use the `chrome.history` API to interact with the browser's record of visited pages. You can add, remove, and query for URLs in the browser's history. To override the history page with your own version, see [Override Pages](https://developer.chrome.com/docs/extensions/override).
|
|
10976
10827
|
*
|
|
10977
|
-
* @since Pending
|
|
10978
10828
|
* @chrome-permission history
|
|
10979
10829
|
*/
|
|
10980
10830
|
export namespace history {
|
|
@@ -11272,8 +11122,6 @@ declare namespace chrome {
|
|
|
11272
11122
|
|
|
11273
11123
|
/**
|
|
11274
11124
|
* Use the `chrome.i18n` infrastructure to implement internationalization across your whole app or extension.
|
|
11275
|
-
*
|
|
11276
|
-
* @since Pending
|
|
11277
11125
|
*/
|
|
11278
11126
|
export namespace i18n {
|
|
11279
11127
|
|
|
@@ -11371,7 +11219,6 @@ declare namespace chrome {
|
|
|
11371
11219
|
/**
|
|
11372
11220
|
* Use the `chrome.identity` API to get OAuth2 access tokens.
|
|
11373
11221
|
*
|
|
11374
|
-
* @since Pending
|
|
11375
11222
|
* @chrome-permission identity
|
|
11376
11223
|
*/
|
|
11377
11224
|
export namespace identity {
|
|
@@ -11613,7 +11460,6 @@ declare namespace chrome {
|
|
|
11613
11460
|
/**
|
|
11614
11461
|
* Use the `chrome.idle` API to detect when the machine's idle state changes.
|
|
11615
11462
|
*
|
|
11616
|
-
* @since Pending
|
|
11617
11463
|
* @chrome-permission idle
|
|
11618
11464
|
*/
|
|
11619
11465
|
export namespace idle {
|
|
@@ -11675,13 +11521,10 @@ declare namespace chrome {
|
|
|
11675
11521
|
/**
|
|
11676
11522
|
* Dummy namepsace for the incognito manifest key.
|
|
11677
11523
|
*
|
|
11678
|
-
* @since
|
|
11524
|
+
* @since Chrome 87
|
|
11679
11525
|
*/
|
|
11680
11526
|
export namespace incognito {
|
|
11681
11527
|
|
|
11682
|
-
/**
|
|
11683
|
-
* @since Chrome 87
|
|
11684
|
-
*/
|
|
11685
11528
|
export type IncognitoMode = "split" | "spanning" | "not_allowed";
|
|
11686
11529
|
}
|
|
11687
11530
|
|
|
@@ -12507,15 +12350,13 @@ declare namespace chrome {
|
|
|
12507
12350
|
/**
|
|
12508
12351
|
* Use `chrome.instanceID` to access the Instance ID service.
|
|
12509
12352
|
*
|
|
12510
|
-
* @since
|
|
12353
|
+
* @since Chrome 44
|
|
12511
12354
|
* @chrome-permission gcm
|
|
12512
12355
|
*/
|
|
12513
12356
|
export namespace instanceID {
|
|
12514
12357
|
|
|
12515
12358
|
/**
|
|
12516
12359
|
* Fired when all the granted tokens need to be refreshed.
|
|
12517
|
-
*
|
|
12518
|
-
* @since Chrome 44
|
|
12519
12360
|
*/
|
|
12520
12361
|
export const onTokenRefresh: events.Event<() => void>;
|
|
12521
12362
|
|
|
@@ -12523,7 +12364,6 @@ declare namespace chrome {
|
|
|
12523
12364
|
* 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.
|
|
12524
12365
|
*
|
|
12525
12366
|
* @chrome-returns-extra since Pending
|
|
12526
|
-
* @since Chrome 44
|
|
12527
12367
|
*/
|
|
12528
12368
|
export function getID(): Promise<string>;
|
|
12529
12369
|
|
|
@@ -12531,7 +12371,6 @@ declare namespace chrome {
|
|
|
12531
12371
|
* 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.
|
|
12532
12372
|
*
|
|
12533
12373
|
* @param callback Function called when the retrieval completes. It should check {@link runtime.lastError} for error when instanceID is empty.
|
|
12534
|
-
* @since Chrome 44
|
|
12535
12374
|
*/
|
|
12536
12375
|
export function getID(
|
|
12537
12376
|
|
|
@@ -12547,7 +12386,6 @@ declare namespace chrome {
|
|
|
12547
12386
|
* Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
|
|
12548
12387
|
*
|
|
12549
12388
|
* @chrome-returns-extra since Pending
|
|
12550
|
-
* @since Chrome 44
|
|
12551
12389
|
*/
|
|
12552
12390
|
export function getCreationTime(): Promise<number>;
|
|
12553
12391
|
|
|
@@ -12555,7 +12393,6 @@ declare namespace chrome {
|
|
|
12555
12393
|
* Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
|
|
12556
12394
|
*
|
|
12557
12395
|
* @param callback Function called when the retrieval completes. It should check {@link runtime.lastError} for error when creationTime is zero.
|
|
12558
|
-
* @since Chrome 44
|
|
12559
12396
|
*/
|
|
12560
12397
|
export function getCreationTime(
|
|
12561
12398
|
|
|
@@ -12572,7 +12409,6 @@ declare namespace chrome {
|
|
|
12572
12409
|
*
|
|
12573
12410
|
* @chrome-returns-extra since Pending
|
|
12574
12411
|
* @param getTokenParams Parameters for getToken.
|
|
12575
|
-
* @since Chrome 44
|
|
12576
12412
|
*/
|
|
12577
12413
|
export function getToken(
|
|
12578
12414
|
|
|
@@ -12608,7 +12444,6 @@ declare namespace chrome {
|
|
|
12608
12444
|
*
|
|
12609
12445
|
* @param getTokenParams Parameters for getToken.
|
|
12610
12446
|
* @param callback Function called when the retrieval completes. It should check {@link runtime.lastError} for error when token is empty.
|
|
12611
|
-
* @since Chrome 44
|
|
12612
12447
|
*/
|
|
12613
12448
|
export function getToken(
|
|
12614
12449
|
|
|
@@ -12651,7 +12486,6 @@ declare namespace chrome {
|
|
|
12651
12486
|
*
|
|
12652
12487
|
* @chrome-returns-extra since Pending
|
|
12653
12488
|
* @param deleteTokenParams Parameters for deleteToken.
|
|
12654
|
-
* @since Chrome 44
|
|
12655
12489
|
*/
|
|
12656
12490
|
export function deleteToken(
|
|
12657
12491
|
|
|
@@ -12678,7 +12512,6 @@ declare namespace chrome {
|
|
|
12678
12512
|
*
|
|
12679
12513
|
* @param deleteTokenParams Parameters for deleteToken.
|
|
12680
12514
|
* @param callback Function called when the token deletion completes. The token was revoked successfully if {@link runtime.lastError} is not set.
|
|
12681
|
-
* @since Chrome 44
|
|
12682
12515
|
*/
|
|
12683
12516
|
export function deleteToken(
|
|
12684
12517
|
|
|
@@ -12706,7 +12539,6 @@ declare namespace chrome {
|
|
|
12706
12539
|
* Resets the app instance identifier and revokes all tokens associated with it.
|
|
12707
12540
|
*
|
|
12708
12541
|
* @chrome-returns-extra since Pending
|
|
12709
|
-
* @since Chrome 44
|
|
12710
12542
|
*/
|
|
12711
12543
|
export function deleteID(): Promise<void>;
|
|
12712
12544
|
|
|
@@ -12714,7 +12546,6 @@ declare namespace chrome {
|
|
|
12714
12546
|
* Resets the app instance identifier and revokes all tokens associated with it.
|
|
12715
12547
|
*
|
|
12716
12548
|
* @param callback Function called when the deletion completes. The instance identifier was revoked successfully if {@link runtime.lastError} is not set.
|
|
12717
|
-
* @since Chrome 44
|
|
12718
12549
|
*/
|
|
12719
12550
|
export function deleteID(
|
|
12720
12551
|
|
|
@@ -12725,7 +12556,7 @@ declare namespace chrome {
|
|
|
12725
12556
|
/**
|
|
12726
12557
|
* Use the `chrome.loginState` API to read and monitor the login state.
|
|
12727
12558
|
*
|
|
12728
|
-
* @since
|
|
12559
|
+
* @since Chrome 78
|
|
12729
12560
|
* @chrome-permission loginState
|
|
12730
12561
|
* @chrome-platform chromeos
|
|
12731
12562
|
* @chrome-platform lacros
|
|
@@ -12735,7 +12566,6 @@ declare namespace chrome {
|
|
|
12735
12566
|
/**
|
|
12736
12567
|
* @chrome-enum "SIGNIN\_PROFILE" The extension is in the signin profile.
|
|
12737
12568
|
* @chrome-enum "USER\_PROFILE" The extension is in the user profile.
|
|
12738
|
-
* @since Chrome 78
|
|
12739
12569
|
*/
|
|
12740
12570
|
export type ProfileType = "SIGNIN_PROFILE" | "USER_PROFILE";
|
|
12741
12571
|
|
|
@@ -12745,14 +12575,11 @@ declare namespace chrome {
|
|
|
12745
12575
|
* @chrome-enum "IN\_LOGIN\_SCREEN" The user is in the login screen.
|
|
12746
12576
|
* @chrome-enum "IN\_SESSION" The user is in the session.
|
|
12747
12577
|
* @chrome-enum "IN\_LOCK\_SCREEN" The user is in the lock screen.
|
|
12748
|
-
* @since Chrome 78
|
|
12749
12578
|
*/
|
|
12750
12579
|
export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN";
|
|
12751
12580
|
|
|
12752
12581
|
/**
|
|
12753
12582
|
* Dispatched when the session state changes. `sessionState` is the new session state.
|
|
12754
|
-
*
|
|
12755
|
-
* @since Chrome 78
|
|
12756
12583
|
*/
|
|
12757
12584
|
export const onSessionStateChanged: events.Event<(
|
|
12758
12585
|
sessionState: SessionState,
|
|
@@ -12762,14 +12589,11 @@ declare namespace chrome {
|
|
|
12762
12589
|
* Gets the type of the profile the extension is in.
|
|
12763
12590
|
*
|
|
12764
12591
|
* @chrome-returns-extra since Pending
|
|
12765
|
-
* @since Chrome 78
|
|
12766
12592
|
*/
|
|
12767
12593
|
export function getProfileType(): Promise<ProfileType>;
|
|
12768
12594
|
|
|
12769
12595
|
/**
|
|
12770
12596
|
* Gets the type of the profile the extension is in.
|
|
12771
|
-
*
|
|
12772
|
-
* @since Chrome 78
|
|
12773
12597
|
*/
|
|
12774
12598
|
export function getProfileType(
|
|
12775
12599
|
|
|
@@ -12782,14 +12606,11 @@ declare namespace chrome {
|
|
|
12782
12606
|
* Gets the current session state.
|
|
12783
12607
|
*
|
|
12784
12608
|
* @chrome-returns-extra since Pending
|
|
12785
|
-
* @since Chrome 78
|
|
12786
12609
|
*/
|
|
12787
12610
|
export function getSessionState(): Promise<SessionState>;
|
|
12788
12611
|
|
|
12789
12612
|
/**
|
|
12790
12613
|
* Gets the current session state.
|
|
12791
|
-
*
|
|
12792
|
-
* @since Chrome 78
|
|
12793
12614
|
*/
|
|
12794
12615
|
export function getSessionState(
|
|
12795
12616
|
|
|
@@ -12802,7 +12623,6 @@ declare namespace chrome {
|
|
|
12802
12623
|
/**
|
|
12803
12624
|
* The `chrome.management` API provides ways to manage the list of extensions/apps that are installed and running. It is particularly useful for extensions that [override](https://developer.chrome.com/docs/extensions/override) the built-in New Tab page.
|
|
12804
12625
|
*
|
|
12805
|
-
* @since Pending
|
|
12806
12626
|
* @chrome-permission management
|
|
12807
12627
|
*/
|
|
12808
12628
|
export namespace management {
|
|
@@ -13336,8 +13156,6 @@ declare namespace chrome {
|
|
|
13336
13156
|
|
|
13337
13157
|
/**
|
|
13338
13158
|
* Schemas for structured manifest entries
|
|
13339
|
-
*
|
|
13340
|
-
* @since Pending
|
|
13341
13159
|
*/
|
|
13342
13160
|
export namespace manifestTypes {
|
|
13343
13161
|
|
|
@@ -13469,7 +13287,6 @@ declare namespace chrome {
|
|
|
13469
13287
|
/**
|
|
13470
13288
|
* Use the `chrome.notifications` API to create rich notifications using templates and show these notifications to users in the system tray.
|
|
13471
13289
|
*
|
|
13472
|
-
* @since Pending
|
|
13473
13290
|
* @chrome-permission notifications
|
|
13474
13291
|
*/
|
|
13475
13292
|
export namespace notifications {
|
|
@@ -13760,13 +13577,10 @@ declare namespace chrome {
|
|
|
13760
13577
|
/**
|
|
13761
13578
|
* Stub namespace for the "oauth2" manifest key.
|
|
13762
13579
|
*
|
|
13763
|
-
* @since
|
|
13580
|
+
* @since Chrome 93
|
|
13764
13581
|
*/
|
|
13765
13582
|
export namespace oauth2 {
|
|
13766
13583
|
|
|
13767
|
-
/**
|
|
13768
|
-
* @since Chrome 93
|
|
13769
|
-
*/
|
|
13770
13584
|
export interface OAuth2Info {
|
|
13771
13585
|
|
|
13772
13586
|
/**
|
|
@@ -13784,7 +13598,6 @@ declare namespace chrome {
|
|
|
13784
13598
|
/**
|
|
13785
13599
|
* The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.
|
|
13786
13600
|
*
|
|
13787
|
-
* @since Pending
|
|
13788
13601
|
* @chrome-manifest omnibox
|
|
13789
13602
|
*/
|
|
13790
13603
|
export namespace omnibox {
|
|
@@ -13891,7 +13704,6 @@ declare namespace chrome {
|
|
|
13891
13704
|
/**
|
|
13892
13705
|
* Use the `chrome.pageCapture` API to save a tab as MHTML.
|
|
13893
13706
|
*
|
|
13894
|
-
* @since Pending
|
|
13895
13707
|
* @chrome-permission pageCapture
|
|
13896
13708
|
*/
|
|
13897
13709
|
export namespace pageCapture {
|
|
@@ -13922,8 +13734,6 @@ declare namespace chrome {
|
|
|
13922
13734
|
|
|
13923
13735
|
/**
|
|
13924
13736
|
* Use the `chrome.permissions` API to request [declared optional permissions](https://developer.chrome.com/docs/extensions/reference/permissions/#manifest) at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
|
|
13925
|
-
*
|
|
13926
|
-
* @since Pending
|
|
13927
13737
|
*/
|
|
13928
13738
|
export namespace permissions {
|
|
13929
13739
|
|
|
@@ -14053,7 +13863,7 @@ declare namespace chrome {
|
|
|
14053
13863
|
/**
|
|
14054
13864
|
* Use the `chrome.platformKeys` API to access client certificates managed by the platform. If the user or policy grants the permission, an extension can use such a certficate in its custom authentication protocol. E.g. this allows usage of platform managed certificates in third party VPNs (see {@link vpnProvider chrome.vpnProvider}).
|
|
14055
13865
|
*
|
|
14056
|
-
* @since
|
|
13866
|
+
* @since Chrome 45
|
|
14057
13867
|
* @chrome-permission platformKeys
|
|
14058
13868
|
* @chrome-disallow-service-workers
|
|
14059
13869
|
* @chrome-platform chromeos
|
|
@@ -14061,9 +13871,6 @@ declare namespace chrome {
|
|
|
14061
13871
|
*/
|
|
14062
13872
|
export namespace platformKeys {
|
|
14063
13873
|
|
|
14064
|
-
/**
|
|
14065
|
-
* @since Chrome 45
|
|
14066
|
-
*/
|
|
14067
13874
|
export interface Match {
|
|
14068
13875
|
|
|
14069
13876
|
/**
|
|
@@ -14077,14 +13884,8 @@ declare namespace chrome {
|
|
|
14077
13884
|
keyAlgorithm: {[name: string]: any};
|
|
14078
13885
|
}
|
|
14079
13886
|
|
|
14080
|
-
/**
|
|
14081
|
-
* @since Chrome 45
|
|
14082
|
-
*/
|
|
14083
13887
|
export type ClientCertificateType = "rsaSign" | "ecdsaSign";
|
|
14084
13888
|
|
|
14085
|
-
/**
|
|
14086
|
-
* @since Chrome 45
|
|
14087
|
-
*/
|
|
14088
13889
|
export interface ClientCertificateRequest {
|
|
14089
13890
|
|
|
14090
13891
|
/**
|
|
@@ -14098,9 +13899,6 @@ declare namespace chrome {
|
|
|
14098
13899
|
certificateAuthorities: ArrayBuffer[];
|
|
14099
13900
|
}
|
|
14100
13901
|
|
|
14101
|
-
/**
|
|
14102
|
-
* @since Chrome 45
|
|
14103
|
-
*/
|
|
14104
13902
|
export interface SelectDetails {
|
|
14105
13903
|
|
|
14106
13904
|
/**
|
|
@@ -14119,9 +13917,6 @@ declare namespace chrome {
|
|
|
14119
13917
|
interactive: boolean;
|
|
14120
13918
|
}
|
|
14121
13919
|
|
|
14122
|
-
/**
|
|
14123
|
-
* @since Chrome 45
|
|
14124
|
-
*/
|
|
14125
13920
|
export interface VerificationDetails {
|
|
14126
13921
|
|
|
14127
13922
|
/**
|
|
@@ -14135,9 +13930,6 @@ declare namespace chrome {
|
|
|
14135
13930
|
hostname: string;
|
|
14136
13931
|
}
|
|
14137
13932
|
|
|
14138
|
-
/**
|
|
14139
|
-
* @since Chrome 45
|
|
14140
|
-
*/
|
|
14141
13933
|
export interface VerificationResult {
|
|
14142
13934
|
|
|
14143
13935
|
/**
|
|
@@ -14155,8 +13947,6 @@ declare namespace chrome {
|
|
|
14155
13947
|
|
|
14156
13948
|
/**
|
|
14157
13949
|
* This method filters from a list of client certificates the ones that are known to the platform, match `request` and for which the extension has permission to access the certificate and its private key. If `interactive` is true, the user is presented a dialog where they can select from matching certificates and grant the extension access to the certificate. The selected/filtered client certificates will be passed to `callback`.
|
|
14158
|
-
*
|
|
14159
|
-
* @since Chrome 45
|
|
14160
13950
|
*/
|
|
14161
13951
|
export function selectClientCertificates(
|
|
14162
13952
|
|
|
@@ -14178,7 +13968,6 @@ declare namespace chrome {
|
|
|
14178
13968
|
|
|
14179
13969
|
Currently, this method only supports the "RSASSA-PKCS1-v1\_5" and "ECDSA" algorithms.
|
|
14180
13970
|
* @param callback The public and private [CryptoKey](https://www.w3.org/TR/WebCryptoAPI/#dfn-CryptoKey) of a certificate which can only be used with {@link platformKeys.subtleCrypto}.
|
|
14181
|
-
* @since Chrome 45
|
|
14182
13971
|
*/
|
|
14183
13972
|
export function getKeyPair(
|
|
14184
13973
|
|
|
@@ -14222,15 +14011,11 @@ declare namespace chrome {
|
|
|
14222
14011
|
|
|
14223
14012
|
/**
|
|
14224
14013
|
* An implementation of WebCrypto's [SubtleCrypto](https://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface) that allows crypto operations on keys of client certificates that are available to this extension.
|
|
14225
|
-
*
|
|
14226
|
-
* @since Chrome 45
|
|
14227
14014
|
*/
|
|
14228
14015
|
export function subtleCrypto(): {[name: string]: any} | undefined;
|
|
14229
14016
|
|
|
14230
14017
|
/**
|
|
14231
14018
|
* Checks whether `details.serverCertificateChain` can be trusted for `details.hostname` according to the trust settings of the platform. Note: The actual behavior of the trust verification is not fully specified and might change in the future. The API implementation verifies certificate expiration, validates the certification path and checks trust by a known CA. The implementation is supposed to respect the EKU serverAuth and to support subject alternative names.
|
|
14232
|
-
*
|
|
14233
|
-
* @since Chrome 45
|
|
14234
14019
|
*/
|
|
14235
14020
|
export function verifyTLSServerCertificate(
|
|
14236
14021
|
|
|
@@ -14245,7 +14030,6 @@ declare namespace chrome {
|
|
|
14245
14030
|
/**
|
|
14246
14031
|
* Use the `chrome.power` API to override the system's power management features.
|
|
14247
14032
|
*
|
|
14248
|
-
* @since Pending
|
|
14249
14033
|
* @chrome-permission power
|
|
14250
14034
|
*/
|
|
14251
14035
|
export namespace power {
|
|
@@ -14273,7 +14057,7 @@ declare namespace chrome {
|
|
|
14273
14057
|
/**
|
|
14274
14058
|
* The `chrome.printerProvider` API exposes events used by print manager to query printers controlled by extensions, to query their capabilities and to submit print jobs to these printers.
|
|
14275
14059
|
*
|
|
14276
|
-
* @since
|
|
14060
|
+
* @since Chrome 44
|
|
14277
14061
|
* @chrome-permission printerProvider
|
|
14278
14062
|
*/
|
|
14279
14063
|
export namespace printerProvider {
|
|
@@ -14285,13 +14069,9 @@ declare namespace chrome {
|
|
|
14285
14069
|
* @chrome-enum "FAILED" General failure.
|
|
14286
14070
|
* @chrome-enum "INVALID\_TICKET" Print ticket is invalid. For example, ticket is inconsistent with capabilities or extension is not able to handle all settings from the ticket.
|
|
14287
14071
|
* @chrome-enum "INVALID\_DATA" Document is invalid. For example, data may be corrupted or the format is incompatible with the extension.
|
|
14288
|
-
* @since Chrome 44
|
|
14289
14072
|
*/
|
|
14290
14073
|
export type PrintError = "OK" | "FAILED" | "INVALID_TICKET" | "INVALID_DATA";
|
|
14291
14074
|
|
|
14292
|
-
/**
|
|
14293
|
-
* @since Chrome 44
|
|
14294
|
-
*/
|
|
14295
14075
|
export interface PrinterInfo {
|
|
14296
14076
|
|
|
14297
14077
|
/**
|
|
@@ -14310,9 +14090,6 @@ declare namespace chrome {
|
|
|
14310
14090
|
description?: string;
|
|
14311
14091
|
}
|
|
14312
14092
|
|
|
14313
|
-
/**
|
|
14314
|
-
* @since Chrome 44
|
|
14315
|
-
*/
|
|
14316
14093
|
export interface PrintJob {
|
|
14317
14094
|
|
|
14318
14095
|
/**
|
|
@@ -14343,8 +14120,6 @@ declare namespace chrome {
|
|
|
14343
14120
|
|
|
14344
14121
|
/**
|
|
14345
14122
|
* Event fired when print manager requests printers provided by extensions.
|
|
14346
|
-
*
|
|
14347
|
-
* @since Chrome 44
|
|
14348
14123
|
*/
|
|
14349
14124
|
export const onGetPrintersRequested: events.Event<(
|
|
14350
14125
|
resultCallback: (
|
|
@@ -14368,8 +14143,6 @@ declare namespace chrome {
|
|
|
14368
14143
|
|
|
14369
14144
|
/**
|
|
14370
14145
|
* Event fired when print manager requests printer capabilities.
|
|
14371
|
-
*
|
|
14372
|
-
* @since Chrome 44
|
|
14373
14146
|
*/
|
|
14374
14147
|
export const onGetCapabilityRequested: events.Event<(
|
|
14375
14148
|
printerId: string,
|
|
@@ -14383,8 +14156,6 @@ declare namespace chrome {
|
|
|
14383
14156
|
|
|
14384
14157
|
/**
|
|
14385
14158
|
* Event fired when print manager requests printing.
|
|
14386
|
-
*
|
|
14387
|
-
* @since Chrome 44
|
|
14388
14159
|
*/
|
|
14389
14160
|
export const onPrintRequested: events.Event<(
|
|
14390
14161
|
printJob: PrintJob,
|
|
@@ -14397,16 +14168,13 @@ declare namespace chrome {
|
|
|
14397
14168
|
/**
|
|
14398
14169
|
* Use the `chrome.printing` API to send print jobs to printers installed on Chromebook.
|
|
14399
14170
|
*
|
|
14400
|
-
* @since
|
|
14171
|
+
* @since Chrome 81
|
|
14401
14172
|
* @chrome-permission printing
|
|
14402
14173
|
* @chrome-platform chromeos
|
|
14403
14174
|
* @chrome-platform lacros
|
|
14404
14175
|
*/
|
|
14405
14176
|
export namespace printing {
|
|
14406
14177
|
|
|
14407
|
-
/**
|
|
14408
|
-
* @since Chrome 81
|
|
14409
|
-
*/
|
|
14410
14178
|
export interface SubmitJobRequest {
|
|
14411
14179
|
|
|
14412
14180
|
/**
|
|
@@ -14420,13 +14188,9 @@ declare namespace chrome {
|
|
|
14420
14188
|
*
|
|
14421
14189
|
* @chrome-enum "OK" Sent print job request is accepted.
|
|
14422
14190
|
* @chrome-enum "USER\_REJECTED" Sent print job request is rejected by the user.
|
|
14423
|
-
* @since Chrome 81
|
|
14424
14191
|
*/
|
|
14425
14192
|
export type SubmitJobStatus = "OK" | "USER_REJECTED";
|
|
14426
14193
|
|
|
14427
|
-
/**
|
|
14428
|
-
* @since Chrome 81
|
|
14429
|
-
*/
|
|
14430
14194
|
export interface SubmitJobResponse {
|
|
14431
14195
|
|
|
14432
14196
|
/**
|
|
@@ -14445,13 +14209,9 @@ declare namespace chrome {
|
|
|
14445
14209
|
*
|
|
14446
14210
|
* @chrome-enum "USER" Printer was added by user.
|
|
14447
14211
|
* @chrome-enum "POLICY" Printer was added via policy.
|
|
14448
|
-
* @since Chrome 81
|
|
14449
14212
|
*/
|
|
14450
14213
|
export type PrinterSource = "USER" | "POLICY";
|
|
14451
14214
|
|
|
14452
|
-
/**
|
|
14453
|
-
* @since Chrome 81
|
|
14454
|
-
*/
|
|
14455
14215
|
export interface Printer {
|
|
14456
14216
|
|
|
14457
14217
|
/**
|
|
@@ -14503,13 +14263,9 @@ declare namespace chrome {
|
|
|
14503
14263
|
* @chrome-enum "STOPPED" The printer is stopped and doesn't print but still accepts print jobs.
|
|
14504
14264
|
* @chrome-enum "UNREACHABLE" The printer is unreachable and doesn't accept print jobs.
|
|
14505
14265
|
* @chrome-enum "AVAILABLE" The printer is available.
|
|
14506
|
-
* @since Chrome 81
|
|
14507
14266
|
*/
|
|
14508
14267
|
export type PrinterStatus = "DOOR_OPEN" | "TRAY_MISSING" | "OUT_OF_INK" | "OUT_OF_PAPER" | "OUTPUT_FULL" | "PAPER_JAM" | "GENERIC_ISSUE" | "STOPPED" | "UNREACHABLE" | "AVAILABLE";
|
|
14509
14268
|
|
|
14510
|
-
/**
|
|
14511
|
-
* @since Chrome 81
|
|
14512
|
-
*/
|
|
14513
14269
|
export interface GetPrinterInfoResponse {
|
|
14514
14270
|
|
|
14515
14271
|
/**
|
|
@@ -14531,28 +14287,21 @@ declare namespace chrome {
|
|
|
14531
14287
|
* @chrome-enum "FAILED" Print job was interrupted due to some error.
|
|
14532
14288
|
* @chrome-enum "CANCELED" Print job was canceled by the user or via API.
|
|
14533
14289
|
* @chrome-enum "PRINTED" Print job was printed without any errors.
|
|
14534
|
-
* @since Chrome 81
|
|
14535
14290
|
*/
|
|
14536
14291
|
export type JobStatus = "PENDING" | "IN_PROGRESS" | "FAILED" | "CANCELED" | "PRINTED";
|
|
14537
14292
|
|
|
14538
14293
|
/**
|
|
14539
14294
|
* The maximum number of times that {@link submitJob} can be called per minute.
|
|
14540
|
-
*
|
|
14541
|
-
* @since Chrome 81
|
|
14542
14295
|
*/
|
|
14543
14296
|
export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE: 20;
|
|
14544
14297
|
|
|
14545
14298
|
/**
|
|
14546
14299
|
* The maximum number of times that {@link getPrinterInfo} can be called per minute.
|
|
14547
|
-
*
|
|
14548
|
-
* @since Chrome 81
|
|
14549
14300
|
*/
|
|
14550
14301
|
export const MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE: 20;
|
|
14551
14302
|
|
|
14552
14303
|
/**
|
|
14553
14304
|
* Event fired when the status of the job is changed. This is only fired for the jobs created by this extension.
|
|
14554
|
-
*
|
|
14555
|
-
* @since Chrome 81
|
|
14556
14305
|
*/
|
|
14557
14306
|
export const onJobStatusChanged: events.Event<(
|
|
14558
14307
|
jobId: string,
|
|
@@ -14561,8 +14310,6 @@ declare namespace chrome {
|
|
|
14561
14310
|
|
|
14562
14311
|
/**
|
|
14563
14312
|
* Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
|
|
14564
|
-
*
|
|
14565
|
-
* @since Chrome 81
|
|
14566
14313
|
*/
|
|
14567
14314
|
export function submitJob(
|
|
14568
14315
|
|
|
@@ -14577,7 +14324,6 @@ declare namespace chrome {
|
|
|
14577
14324
|
* Cancels previously submitted job.
|
|
14578
14325
|
*
|
|
14579
14326
|
* @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
|
|
14580
|
-
* @since Chrome 81
|
|
14581
14327
|
*/
|
|
14582
14328
|
export function cancelJob(
|
|
14583
14329
|
|
|
@@ -14588,8 +14334,6 @@ declare namespace chrome {
|
|
|
14588
14334
|
|
|
14589
14335
|
/**
|
|
14590
14336
|
* Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
|
|
14591
|
-
*
|
|
14592
|
-
* @since Chrome 81
|
|
14593
14337
|
*/
|
|
14594
14338
|
export function getPrinters(
|
|
14595
14339
|
|
|
@@ -14600,8 +14344,6 @@ declare namespace chrome {
|
|
|
14600
14344
|
|
|
14601
14345
|
/**
|
|
14602
14346
|
* Returns the status and capabilities of the printer in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd). This call will fail with a runtime error if no printers with given id are installed.
|
|
14603
|
-
*
|
|
14604
|
-
* @since Chrome 81
|
|
14605
14347
|
*/
|
|
14606
14348
|
export function getPrinterInfo(
|
|
14607
14349
|
|
|
@@ -14616,7 +14358,7 @@ declare namespace chrome {
|
|
|
14616
14358
|
/**
|
|
14617
14359
|
* Use the `chrome.printingMetrics` API to fetch data about printing usage.
|
|
14618
14360
|
*
|
|
14619
|
-
* @since
|
|
14361
|
+
* @since Chrome 79
|
|
14620
14362
|
* @chrome-permission printingMetrics
|
|
14621
14363
|
* @chrome-platform chromeos
|
|
14622
14364
|
*/
|
|
@@ -14628,7 +14370,6 @@ declare namespace chrome {
|
|
|
14628
14370
|
* @chrome-enum "PRINT\_PREVIEW" The job was created from the Print Preview page initiated by the user.
|
|
14629
14371
|
* @chrome-enum "ANDROID\_APP" The job was created from an Android App.
|
|
14630
14372
|
* @chrome-enum "EXTENSION" The job was created by extension via Chrome API.
|
|
14631
|
-
* @since Chrome 79
|
|
14632
14373
|
*/
|
|
14633
14374
|
export type PrintJobSource = "PRINT_PREVIEW" | "ANDROID_APP" | "EXTENSION";
|
|
14634
14375
|
|
|
@@ -14638,7 +14379,6 @@ declare namespace chrome {
|
|
|
14638
14379
|
* @chrome-enum "FAILED" Print job was interrupted due to some error.
|
|
14639
14380
|
* @chrome-enum "CANCELED" Print job was canceled by the user or via API.
|
|
14640
14381
|
* @chrome-enum "PRINTED" Print job was printed without any errors.
|
|
14641
|
-
* @since Chrome 79
|
|
14642
14382
|
*/
|
|
14643
14383
|
export type PrintJobStatus = "FAILED" | "CANCELED" | "PRINTED";
|
|
14644
14384
|
|
|
@@ -14647,14 +14387,12 @@ declare namespace chrome {
|
|
|
14647
14387
|
*
|
|
14648
14388
|
* @chrome-enum "USER" Printer was added by user.
|
|
14649
14389
|
* @chrome-enum "POLICY" Printer was added via policy.
|
|
14650
|
-
* @since Chrome 79
|
|
14651
14390
|
*/
|
|
14652
14391
|
export type PrinterSource = "USER" | "POLICY";
|
|
14653
14392
|
|
|
14654
14393
|
/**
|
|
14655
14394
|
* @chrome-enum "BLACK\_AND\_WHITE" Black and white mode was used.
|
|
14656
14395
|
* @chrome-enum "COLOR" Color mode was used.
|
|
14657
|
-
* @since Chrome 79
|
|
14658
14396
|
*/
|
|
14659
14397
|
export type ColorMode = "BLACK_AND_WHITE" | "COLOR";
|
|
14660
14398
|
|
|
@@ -14662,13 +14400,9 @@ declare namespace chrome {
|
|
|
14662
14400
|
* @chrome-enum "ONE\_SIDED" One-sided printing was used.
|
|
14663
14401
|
* @chrome-enum "TWO\_SIDED\_LONG\_EDGE" Two-sided printing was used, flipping on long edge.
|
|
14664
14402
|
* @chrome-enum "TWO\_SIDED\_SHORT\_EDGE" Two-sided printing was used, flipping on short edge.
|
|
14665
|
-
* @since Chrome 79
|
|
14666
14403
|
*/
|
|
14667
14404
|
export type DuplexMode = "ONE_SIDED" | "TWO_SIDED_LONG_EDGE" | "TWO_SIDED_SHORT_EDGE";
|
|
14668
14405
|
|
|
14669
|
-
/**
|
|
14670
|
-
* @since Chrome 79
|
|
14671
|
-
*/
|
|
14672
14406
|
export interface MediaSize {
|
|
14673
14407
|
|
|
14674
14408
|
/**
|
|
@@ -14687,9 +14421,6 @@ declare namespace chrome {
|
|
|
14687
14421
|
vendorId: string;
|
|
14688
14422
|
}
|
|
14689
14423
|
|
|
14690
|
-
/**
|
|
14691
|
-
* @since Chrome 79
|
|
14692
|
-
*/
|
|
14693
14424
|
export interface PrintSettings {
|
|
14694
14425
|
|
|
14695
14426
|
/**
|
|
@@ -14713,9 +14444,6 @@ declare namespace chrome {
|
|
|
14713
14444
|
copies: number;
|
|
14714
14445
|
}
|
|
14715
14446
|
|
|
14716
|
-
/**
|
|
14717
|
-
* @since Chrome 79
|
|
14718
|
-
*/
|
|
14719
14447
|
export interface Printer {
|
|
14720
14448
|
|
|
14721
14449
|
/**
|
|
@@ -14734,9 +14462,6 @@ declare namespace chrome {
|
|
|
14734
14462
|
source: PrinterSource;
|
|
14735
14463
|
}
|
|
14736
14464
|
|
|
14737
|
-
/**
|
|
14738
|
-
* @since Chrome 79
|
|
14739
|
-
*/
|
|
14740
14465
|
export interface PrintJobInfo {
|
|
14741
14466
|
|
|
14742
14467
|
/**
|
|
@@ -14799,8 +14524,6 @@ declare namespace chrome {
|
|
|
14799
14524
|
|
|
14800
14525
|
/**
|
|
14801
14526
|
* Event fired when the print job is finished. This includes any of termination statuses: FAILED, CANCELED and PRINTED.
|
|
14802
|
-
*
|
|
14803
|
-
* @since Chrome 79
|
|
14804
14527
|
*/
|
|
14805
14528
|
export const onPrintJobFinished: events.Event<(
|
|
14806
14529
|
jobInfo: PrintJobInfo,
|
|
@@ -14810,14 +14533,11 @@ declare namespace chrome {
|
|
|
14810
14533
|
* Returns the list of the finished print jobs.
|
|
14811
14534
|
*
|
|
14812
14535
|
* @chrome-returns-extra since Pending
|
|
14813
|
-
* @since Chrome 79
|
|
14814
14536
|
*/
|
|
14815
14537
|
export function getPrintJobs(): Promise<PrintJobInfo[]>;
|
|
14816
14538
|
|
|
14817
14539
|
/**
|
|
14818
14540
|
* Returns the list of the finished print jobs.
|
|
14819
|
-
*
|
|
14820
|
-
* @since Chrome 79
|
|
14821
14541
|
*/
|
|
14822
14542
|
export function getPrintJobs(
|
|
14823
14543
|
|
|
@@ -14830,7 +14550,6 @@ declare namespace chrome {
|
|
|
14830
14550
|
/**
|
|
14831
14551
|
* Use the `chrome.privacy` API to control usage of the features in Chrome that can affect a user's privacy. This API relies on the [ChromeSetting prototype of the type API](https://developer.chrome.com/docs/extensions/reference/types/#ChromeSetting) for getting and setting Chrome's configuration.
|
|
14832
14552
|
*
|
|
14833
|
-
* @since Pending
|
|
14834
14553
|
* @chrome-permission privacy
|
|
14835
14554
|
*/
|
|
14836
14555
|
export namespace privacy {
|
|
@@ -15213,7 +14932,6 @@ declare namespace chrome {
|
|
|
15213
14932
|
/**
|
|
15214
14933
|
* Use the `chrome.proxy` API to manage Chrome's proxy settings. This API relies on the [ChromeSetting prototype of the type API](https://developer.chrome.com/docs/extensions/reference/types/#ChromeSetting) for getting and setting the proxy configuration.
|
|
15215
14934
|
*
|
|
15216
|
-
* @since Pending
|
|
15217
14935
|
* @chrome-permission proxy
|
|
15218
14936
|
*/
|
|
15219
14937
|
export namespace proxy {
|
|
@@ -15362,8 +15080,6 @@ declare namespace chrome {
|
|
|
15362
15080
|
|
|
15363
15081
|
/**
|
|
15364
15082
|
* Use the `chrome.runtime` API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
|
|
15365
|
-
*
|
|
15366
|
-
* @since Pending
|
|
15367
15083
|
*/
|
|
15368
15084
|
export namespace runtime {
|
|
15369
15085
|
|
|
@@ -15585,7 +15301,6 @@ declare namespace chrome {
|
|
|
15585
15301
|
* Fired when a Chrome update is available, but isn't installed immediately because a browser restart is required.
|
|
15586
15302
|
*
|
|
15587
15303
|
* @deprecated Please use {@link runtime.onRestartRequired}.
|
|
15588
|
-
* @chrome-deprecated-since Pending
|
|
15589
15304
|
*/
|
|
15590
15305
|
export const onBrowserUpdateAvailable: events.Event<() => void>;
|
|
15591
15306
|
|
|
@@ -15886,7 +15601,7 @@ declare namespace chrome {
|
|
|
15886
15601
|
/**
|
|
15887
15602
|
* Use the `chrome.scripting` API to execute script in different contexts.
|
|
15888
15603
|
*
|
|
15889
|
-
* @since
|
|
15604
|
+
* @since Chrome 88
|
|
15890
15605
|
* @chrome-permission scripting
|
|
15891
15606
|
* @chrome-min-manifest MV3
|
|
15892
15607
|
*/
|
|
@@ -15894,8 +15609,6 @@ declare namespace chrome {
|
|
|
15894
15609
|
|
|
15895
15610
|
/**
|
|
15896
15611
|
* The origin for a style change. See [style origins](https://developer.mozilla.org/en-US/docs/Glossary/Style_origin) for more info.
|
|
15897
|
-
*
|
|
15898
|
-
* @since Chrome 88
|
|
15899
15612
|
*/
|
|
15900
15613
|
export type StyleOrigin = "AUTHOR" | "USER";
|
|
15901
15614
|
|
|
@@ -15908,9 +15621,6 @@ declare namespace chrome {
|
|
|
15908
15621
|
*/
|
|
15909
15622
|
export type ExecutionWorld = "ISOLATED" | "MAIN";
|
|
15910
15623
|
|
|
15911
|
-
/**
|
|
15912
|
-
* @since Chrome 88
|
|
15913
|
-
*/
|
|
15914
15624
|
export interface InjectionTarget {
|
|
15915
15625
|
|
|
15916
15626
|
/**
|
|
@@ -15929,9 +15639,6 @@ declare namespace chrome {
|
|
|
15929
15639
|
allFrames?: boolean;
|
|
15930
15640
|
}
|
|
15931
15641
|
|
|
15932
|
-
/**
|
|
15933
|
-
* @since Chrome 88
|
|
15934
|
-
*/
|
|
15935
15642
|
export interface ScriptInjection {
|
|
15936
15643
|
|
|
15937
15644
|
/**
|
|
@@ -15949,7 +15656,7 @@ declare namespace chrome {
|
|
|
15949
15656
|
args?: any[];
|
|
15950
15657
|
|
|
15951
15658
|
/**
|
|
15952
|
-
* The path of the JS or CSS files to inject, relative to the extension's root directory.
|
|
15659
|
+
* The path of the JS or CSS files to inject, relative to the extension's root directory. Exactly one of `files` and `func` must be specified.
|
|
15953
15660
|
*/
|
|
15954
15661
|
files?: string[];
|
|
15955
15662
|
|
|
@@ -15966,9 +15673,6 @@ declare namespace chrome {
|
|
|
15966
15673
|
world?: ExecutionWorld;
|
|
15967
15674
|
}
|
|
15968
15675
|
|
|
15969
|
-
/**
|
|
15970
|
-
* @since Chrome 88
|
|
15971
|
-
*/
|
|
15972
15676
|
export interface CSSInjection {
|
|
15973
15677
|
|
|
15974
15678
|
/**
|
|
@@ -15982,7 +15686,7 @@ declare namespace chrome {
|
|
|
15982
15686
|
css?: string;
|
|
15983
15687
|
|
|
15984
15688
|
/**
|
|
15985
|
-
* The path of the CSS files to inject, relative to the extension's root directory.
|
|
15689
|
+
* The path of the CSS files to inject, relative to the extension's root directory. Exactly one of `files` and `css` must be specified.
|
|
15986
15690
|
*/
|
|
15987
15691
|
files?: string[];
|
|
15988
15692
|
|
|
@@ -15992,9 +15696,6 @@ declare namespace chrome {
|
|
|
15992
15696
|
origin?: StyleOrigin;
|
|
15993
15697
|
}
|
|
15994
15698
|
|
|
15995
|
-
/**
|
|
15996
|
-
* @since Chrome 88
|
|
15997
|
-
*/
|
|
15998
15699
|
export interface InjectionResult {
|
|
15999
15700
|
|
|
16000
15701
|
/**
|
|
@@ -16010,6 +15711,9 @@ declare namespace chrome {
|
|
|
16010
15711
|
frameId: number;
|
|
16011
15712
|
}
|
|
16012
15713
|
|
|
15714
|
+
/**
|
|
15715
|
+
* @since Pending
|
|
15716
|
+
*/
|
|
16013
15717
|
export interface RegisteredContentScript {
|
|
16014
15718
|
|
|
16015
15719
|
/**
|
|
@@ -16053,6 +15757,9 @@ declare namespace chrome {
|
|
|
16053
15757
|
persistAcrossSessions?: boolean;
|
|
16054
15758
|
}
|
|
16055
15759
|
|
|
15760
|
+
/**
|
|
15761
|
+
* @since Pending
|
|
15762
|
+
*/
|
|
16056
15763
|
export interface ContentScriptFilter {
|
|
16057
15764
|
|
|
16058
15765
|
/**
|
|
@@ -16066,7 +15773,6 @@ declare namespace chrome {
|
|
|
16066
15773
|
*
|
|
16067
15774
|
* @chrome-returns-extra since Pending
|
|
16068
15775
|
* @param injection The details of the script which to inject.
|
|
16069
|
-
* @since Chrome 88
|
|
16070
15776
|
*/
|
|
16071
15777
|
export function executeScript(
|
|
16072
15778
|
|
|
@@ -16078,7 +15784,6 @@ declare namespace chrome {
|
|
|
16078
15784
|
*
|
|
16079
15785
|
* @param injection The details of the script which to inject.
|
|
16080
15786
|
* @param callback Invoked upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.
|
|
16081
|
-
* @since Chrome 88
|
|
16082
15787
|
*/
|
|
16083
15788
|
export function executeScript(
|
|
16084
15789
|
|
|
@@ -16094,7 +15799,6 @@ declare namespace chrome {
|
|
|
16094
15799
|
*
|
|
16095
15800
|
* @chrome-returns-extra since Pending
|
|
16096
15801
|
* @param injection The details of the styles to insert.
|
|
16097
|
-
* @since Chrome 88
|
|
16098
15802
|
*/
|
|
16099
15803
|
export function insertCSS(
|
|
16100
15804
|
|
|
@@ -16106,7 +15810,6 @@ declare namespace chrome {
|
|
|
16106
15810
|
*
|
|
16107
15811
|
* @param injection The details of the styles to insert.
|
|
16108
15812
|
* @param callback Invoked upon completion of the insertion.
|
|
16109
|
-
* @since Chrome 88
|
|
16110
15813
|
*/
|
|
16111
15814
|
export function insertCSS(
|
|
16112
15815
|
|
|
@@ -16145,6 +15848,7 @@ declare namespace chrome {
|
|
|
16145
15848
|
* Registers one or more content scripts for this extension.
|
|
16146
15849
|
*
|
|
16147
15850
|
* @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.
|
|
15851
|
+
* @since Pending
|
|
16148
15852
|
*/
|
|
16149
15853
|
export function registerContentScripts(
|
|
16150
15854
|
|
|
@@ -16156,6 +15860,7 @@ declare namespace chrome {
|
|
|
16156
15860
|
*
|
|
16157
15861
|
* @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.
|
|
16158
15862
|
* @param callback A callback to be invoked once scripts have been fully registered or if an error has occurred.
|
|
15863
|
+
* @since Pending
|
|
16159
15864
|
*/
|
|
16160
15865
|
export function registerContentScripts(
|
|
16161
15866
|
|
|
@@ -16168,6 +15873,7 @@ declare namespace chrome {
|
|
|
16168
15873
|
* Returns all dynamically registered content scripts for this extension that match the given filter.
|
|
16169
15874
|
*
|
|
16170
15875
|
* @param filter An object to filter the extension's dynamically registered scripts.
|
|
15876
|
+
* @since Pending
|
|
16171
15877
|
*/
|
|
16172
15878
|
export function getRegisteredContentScripts(
|
|
16173
15879
|
|
|
@@ -16178,6 +15884,7 @@ declare namespace chrome {
|
|
|
16178
15884
|
* Returns all dynamically registered content scripts for this extension that match the given filter.
|
|
16179
15885
|
*
|
|
16180
15886
|
* @param filter An object to filter the extension's dynamically registered scripts.
|
|
15887
|
+
* @since Pending
|
|
16181
15888
|
*/
|
|
16182
15889
|
export function getRegisteredContentScripts(
|
|
16183
15890
|
|
|
@@ -16192,6 +15899,7 @@ declare namespace chrome {
|
|
|
16192
15899
|
* Unregisters content scripts for this extension.
|
|
16193
15900
|
*
|
|
16194
15901
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
15902
|
+
* @since Pending
|
|
16195
15903
|
*/
|
|
16196
15904
|
export function unregisterContentScripts(
|
|
16197
15905
|
|
|
@@ -16203,6 +15911,7 @@ declare namespace chrome {
|
|
|
16203
15911
|
*
|
|
16204
15912
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
16205
15913
|
* @param callback A callback to be invoked once scripts have been unregistered or if an error has occurred.
|
|
15914
|
+
* @since Pending
|
|
16206
15915
|
*/
|
|
16207
15916
|
export function unregisterContentScripts(
|
|
16208
15917
|
|
|
@@ -16215,6 +15924,7 @@ declare namespace chrome {
|
|
|
16215
15924
|
* Updates one or more content scripts for this extension.
|
|
16216
15925
|
*
|
|
16217
15926
|
* @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.
|
|
15927
|
+
* @since Pending
|
|
16218
15928
|
*/
|
|
16219
15929
|
export function updateContentScripts(
|
|
16220
15930
|
|
|
@@ -16226,6 +15936,7 @@ declare namespace chrome {
|
|
|
16226
15936
|
*
|
|
16227
15937
|
* @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.
|
|
16228
15938
|
* @param callback A callback to be invoked once scripts have been updated or if an error has occurred.
|
|
15939
|
+
* @since Pending
|
|
16229
15940
|
*/
|
|
16230
15941
|
export function updateContentScripts(
|
|
16231
15942
|
|
|
@@ -16238,7 +15949,7 @@ declare namespace chrome {
|
|
|
16238
15949
|
/**
|
|
16239
15950
|
* Use the `chrome.search` API to search via the default provider.
|
|
16240
15951
|
*
|
|
16241
|
-
* @since
|
|
15952
|
+
* @since Chrome 87
|
|
16242
15953
|
* @chrome-permission search
|
|
16243
15954
|
*/
|
|
16244
15955
|
export namespace search {
|
|
@@ -16247,13 +15958,9 @@ declare namespace chrome {
|
|
|
16247
15958
|
* @chrome-enum "CURRENT\_TAB" Display results in the calling tab or the tab from the active browser.
|
|
16248
15959
|
* @chrome-enum "NEW\_TAB" Display search results in a new tab.
|
|
16249
15960
|
* @chrome-enum "NEW\_WINDOW" Display search results in a new window.
|
|
16250
|
-
* @since Chrome 87
|
|
16251
15961
|
*/
|
|
16252
15962
|
export type Disposition = "CURRENT_TAB" | "NEW_TAB" | "NEW_WINDOW";
|
|
16253
15963
|
|
|
16254
|
-
/**
|
|
16255
|
-
* @since Chrome 87
|
|
16256
|
-
*/
|
|
16257
15964
|
export interface QueryInfo {
|
|
16258
15965
|
|
|
16259
15966
|
/**
|
|
@@ -16276,7 +15983,6 @@ declare namespace chrome {
|
|
|
16276
15983
|
* Used to query the default search provider. In case of an error, {@link runtime.lastError} will be set.
|
|
16277
15984
|
*
|
|
16278
15985
|
* @chrome-returns-extra since Pending
|
|
16279
|
-
* @since Chrome 87
|
|
16280
15986
|
*/
|
|
16281
15987
|
export function query(
|
|
16282
15988
|
|
|
@@ -16285,8 +15991,6 @@ declare namespace chrome {
|
|
|
16285
15991
|
|
|
16286
15992
|
/**
|
|
16287
15993
|
* Used to query the default search provider. In case of an error, {@link runtime.lastError} will be set.
|
|
16288
|
-
*
|
|
16289
|
-
* @since Chrome 87
|
|
16290
15994
|
*/
|
|
16291
15995
|
export function query(
|
|
16292
15996
|
|
|
@@ -16299,7 +16003,6 @@ declare namespace chrome {
|
|
|
16299
16003
|
/**
|
|
16300
16004
|
* Use the `chrome.sessions` API to query and restore tabs and windows from a browsing session.
|
|
16301
16005
|
*
|
|
16302
|
-
* @since Pending
|
|
16303
16006
|
* @chrome-permission sessions
|
|
16304
16007
|
*/
|
|
16305
16008
|
export namespace sessions {
|
|
@@ -16435,13 +16138,10 @@ declare namespace chrome {
|
|
|
16435
16138
|
/**
|
|
16436
16139
|
* Stub namespace for the "import" and "export" manifest keys.
|
|
16437
16140
|
*
|
|
16438
|
-
* @since
|
|
16141
|
+
* @since Chrome 89
|
|
16439
16142
|
*/
|
|
16440
16143
|
export namespace sharedModule {
|
|
16441
16144
|
|
|
16442
|
-
/**
|
|
16443
|
-
* @since Chrome 89
|
|
16444
|
-
*/
|
|
16445
16145
|
export interface Import {
|
|
16446
16146
|
|
|
16447
16147
|
/**
|
|
@@ -16455,9 +16155,6 @@ declare namespace chrome {
|
|
|
16455
16155
|
minimum_version?: string;
|
|
16456
16156
|
}
|
|
16457
16157
|
|
|
16458
|
-
/**
|
|
16459
|
-
* @since Chrome 89
|
|
16460
|
-
*/
|
|
16461
16158
|
export interface Export {
|
|
16462
16159
|
|
|
16463
16160
|
/**
|
|
@@ -16544,7 +16241,6 @@ declare namespace chrome {
|
|
|
16544
16241
|
/**
|
|
16545
16242
|
* Use the `chrome.storage` API to store, retrieve, and track changes to user data.
|
|
16546
16243
|
*
|
|
16547
|
-
* @since Pending
|
|
16548
16244
|
* @chrome-permission storage
|
|
16549
16245
|
*/
|
|
16550
16246
|
export namespace storage {
|
|
@@ -17735,7 +17431,6 @@ declare namespace chrome {
|
|
|
17735
17431
|
/**
|
|
17736
17432
|
* Use the `chrome.tabCapture` API to interact with tab media streams.
|
|
17737
17433
|
*
|
|
17738
|
-
* @since Pending
|
|
17739
17434
|
* @chrome-permission tabCapture
|
|
17740
17435
|
* @chrome-disallow-service-workers
|
|
17741
17436
|
*/
|
|
@@ -17861,7 +17556,7 @@ declare namespace chrome {
|
|
|
17861
17556
|
/**
|
|
17862
17557
|
* Use the `chrome.tabGroups` API to interact with the browser's tab grouping system. You can use this API to modify and rearrange tab groups in the browser. To group and ungroup tabs, or to query what tabs are in groups, use the `chrome.tabs` API.
|
|
17863
17558
|
*
|
|
17864
|
-
* @since
|
|
17559
|
+
* @since Chrome 89
|
|
17865
17560
|
* @chrome-permission tabGroups
|
|
17866
17561
|
* @chrome-min-manifest MV3
|
|
17867
17562
|
*/
|
|
@@ -17869,14 +17564,9 @@ declare namespace chrome {
|
|
|
17869
17564
|
|
|
17870
17565
|
/**
|
|
17871
17566
|
* The group's color.
|
|
17872
|
-
*
|
|
17873
|
-
* @since Chrome 89
|
|
17874
17567
|
*/
|
|
17875
17568
|
export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan";
|
|
17876
17569
|
|
|
17877
|
-
/**
|
|
17878
|
-
* @since Chrome 89
|
|
17879
|
-
*/
|
|
17880
17570
|
export interface TabGroup {
|
|
17881
17571
|
|
|
17882
17572
|
/**
|
|
@@ -17907,15 +17597,11 @@ declare namespace chrome {
|
|
|
17907
17597
|
|
|
17908
17598
|
/**
|
|
17909
17599
|
* An ID that represents the absence of a group.
|
|
17910
|
-
*
|
|
17911
|
-
* @since Chrome 89
|
|
17912
17600
|
*/
|
|
17913
17601
|
export const TAB_GROUP_ID_NONE: -1;
|
|
17914
17602
|
|
|
17915
17603
|
/**
|
|
17916
17604
|
* Fired when a group is created.
|
|
17917
|
-
*
|
|
17918
|
-
* @since Chrome 89
|
|
17919
17605
|
*/
|
|
17920
17606
|
export const onCreated: events.Event<(
|
|
17921
17607
|
group: TabGroup,
|
|
@@ -17923,8 +17609,6 @@ declare namespace chrome {
|
|
|
17923
17609
|
|
|
17924
17610
|
/**
|
|
17925
17611
|
* Fired when a group is updated.
|
|
17926
|
-
*
|
|
17927
|
-
* @since Chrome 89
|
|
17928
17612
|
*/
|
|
17929
17613
|
export const onUpdated: events.Event<(
|
|
17930
17614
|
group: TabGroup,
|
|
@@ -17932,8 +17616,6 @@ declare namespace chrome {
|
|
|
17932
17616
|
|
|
17933
17617
|
/**
|
|
17934
17618
|
* Fired when a group is moved within a window. Move events are still fired for the individual tabs within the group, as well as for the group itself. This event is not fired when a group is moved between windows; instead, it will be removed from one window and created in another.
|
|
17935
|
-
*
|
|
17936
|
-
* @since Chrome 89
|
|
17937
17619
|
*/
|
|
17938
17620
|
export const onMoved: events.Event<(
|
|
17939
17621
|
group: TabGroup,
|
|
@@ -17941,8 +17623,6 @@ declare namespace chrome {
|
|
|
17941
17623
|
|
|
17942
17624
|
/**
|
|
17943
17625
|
* Fired when a group is closed, either directly by the user or automatically because it contained zero tabs.
|
|
17944
|
-
*
|
|
17945
|
-
* @since Chrome 89
|
|
17946
17626
|
*/
|
|
17947
17627
|
export const onRemoved: events.Event<(
|
|
17948
17628
|
group: TabGroup,
|
|
@@ -17952,7 +17632,6 @@ declare namespace chrome {
|
|
|
17952
17632
|
* Retrieves details about the specified group.
|
|
17953
17633
|
*
|
|
17954
17634
|
* @chrome-returns-extra since Pending
|
|
17955
|
-
* @since Chrome 89
|
|
17956
17635
|
*/
|
|
17957
17636
|
export function get(
|
|
17958
17637
|
|
|
@@ -17961,8 +17640,6 @@ declare namespace chrome {
|
|
|
17961
17640
|
|
|
17962
17641
|
/**
|
|
17963
17642
|
* Retrieves details about the specified group.
|
|
17964
|
-
*
|
|
17965
|
-
* @since Chrome 89
|
|
17966
17643
|
*/
|
|
17967
17644
|
export function get(
|
|
17968
17645
|
|
|
@@ -17977,7 +17654,6 @@ declare namespace chrome {
|
|
|
17977
17654
|
* Gets all groups that have the specified properties, or all groups if no properties are specified.
|
|
17978
17655
|
*
|
|
17979
17656
|
* @chrome-returns-extra since Pending
|
|
17980
|
-
* @since Chrome 89
|
|
17981
17657
|
*/
|
|
17982
17658
|
export function query(
|
|
17983
17659
|
|
|
@@ -18007,8 +17683,6 @@ declare namespace chrome {
|
|
|
18007
17683
|
|
|
18008
17684
|
/**
|
|
18009
17685
|
* Gets all groups that have the specified properties, or all groups if no properties are specified.
|
|
18010
|
-
*
|
|
18011
|
-
* @since Chrome 89
|
|
18012
17686
|
*/
|
|
18013
17687
|
export function query(
|
|
18014
17688
|
|
|
@@ -18045,7 +17719,6 @@ declare namespace chrome {
|
|
|
18045
17719
|
*
|
|
18046
17720
|
* @chrome-returns-extra since Pending
|
|
18047
17721
|
* @param groupId The ID of the group to modify.
|
|
18048
|
-
* @since Chrome 89
|
|
18049
17722
|
*/
|
|
18050
17723
|
export function update(
|
|
18051
17724
|
|
|
@@ -18074,7 +17747,6 @@ declare namespace chrome {
|
|
|
18074
17747
|
* Modifies the properties of a group. Properties that are not specified in `updateProperties` are not modified.
|
|
18075
17748
|
*
|
|
18076
17749
|
* @param groupId The ID of the group to modify.
|
|
18077
|
-
* @since Chrome 89
|
|
18078
17750
|
*/
|
|
18079
17751
|
export function update(
|
|
18080
17752
|
|
|
@@ -18111,7 +17783,6 @@ declare namespace chrome {
|
|
|
18111
17783
|
*
|
|
18112
17784
|
* @chrome-returns-extra since Pending
|
|
18113
17785
|
* @param groupId The ID of the group to move.
|
|
18114
|
-
* @since Chrome 89
|
|
18115
17786
|
*/
|
|
18116
17787
|
export function move(
|
|
18117
17788
|
|
|
@@ -18135,7 +17806,6 @@ declare namespace chrome {
|
|
|
18135
17806
|
* Moves the group and all its tabs within its window, or to a new window.
|
|
18136
17807
|
*
|
|
18137
17808
|
* @param groupId The ID of the group to move.
|
|
18138
|
-
* @since Chrome 89
|
|
18139
17809
|
*/
|
|
18140
17810
|
export function move(
|
|
18141
17811
|
|
|
@@ -18165,8 +17835,6 @@ declare namespace chrome {
|
|
|
18165
17835
|
|
|
18166
17836
|
/**
|
|
18167
17837
|
* Use the `chrome.tabs` API to interact with the browser's tab system. You can use this API to create, modify, and rearrange tabs in the browser.
|
|
18168
|
-
*
|
|
18169
|
-
* @since Pending
|
|
18170
17838
|
*/
|
|
18171
17839
|
export namespace tabs {
|
|
18172
17840
|
|
|
@@ -19837,7 +19505,6 @@ declare namespace chrome {
|
|
|
19837
19505
|
/**
|
|
19838
19506
|
* Use the `chrome.topSites` API to access the top sites (i.e. most visited sites) that are displayed on the new tab page. These do not include shortcuts customized by the user.
|
|
19839
19507
|
*
|
|
19840
|
-
* @since Pending
|
|
19841
19508
|
* @chrome-permission topSites
|
|
19842
19509
|
*/
|
|
19843
19510
|
export namespace topSites {
|
|
@@ -19879,7 +19546,6 @@ declare namespace chrome {
|
|
|
19879
19546
|
/**
|
|
19880
19547
|
* Use the `chrome.tts` API to play synthesized text-to-speech (TTS). See also the related {@link ttsEngine} API, which allows an extension to implement a speech engine.
|
|
19881
19548
|
*
|
|
19882
|
-
* @since Pending
|
|
19883
19549
|
* @chrome-permission tts
|
|
19884
19550
|
*/
|
|
19885
19551
|
export namespace tts {
|
|
@@ -20094,7 +19760,6 @@ declare namespace chrome {
|
|
|
20094
19760
|
/**
|
|
20095
19761
|
* Use the `chrome.ttsEngine` API to implement a text-to-speech(TTS) engine using an extension. If your extension registers using this API, it will receive events containing an utterance to be spoken and other parameters when any extension or Chrome App uses the {@link tts} API to generate speech. Your extension can then use any available web technology to synthesize and output the speech, and send events back to the calling function to report the status.
|
|
20096
19762
|
*
|
|
20097
|
-
* @since Pending
|
|
20098
19763
|
* @chrome-permission ttsEngine
|
|
20099
19764
|
*/
|
|
20100
19765
|
export namespace ttsEngine {
|
|
@@ -20255,8 +19920,6 @@ declare namespace chrome {
|
|
|
20255
19920
|
|
|
20256
19921
|
/**
|
|
20257
19922
|
* The `chrome.types` API contains type declarations for Chrome.
|
|
20258
|
-
*
|
|
20259
|
-
* @since Pending
|
|
20260
19923
|
*/
|
|
20261
19924
|
export namespace types {
|
|
20262
19925
|
|
|
@@ -20476,15 +20139,12 @@ declare namespace chrome {
|
|
|
20476
20139
|
/**
|
|
20477
20140
|
* Use the `chrome.vpnProvider` API to implement a VPN client.
|
|
20478
20141
|
*
|
|
20479
|
-
* @since
|
|
20142
|
+
* @since Chrome 43
|
|
20480
20143
|
* @chrome-permission vpnProvider
|
|
20481
20144
|
* @chrome-platform chromeos
|
|
20482
20145
|
*/
|
|
20483
20146
|
export namespace vpnProvider {
|
|
20484
20147
|
|
|
20485
|
-
/**
|
|
20486
|
-
* @since Chrome 43
|
|
20487
|
-
*/
|
|
20488
20148
|
export interface Parameters {
|
|
20489
20149
|
|
|
20490
20150
|
/**
|
|
@@ -20545,7 +20205,6 @@ declare namespace chrome {
|
|
|
20545
20205
|
* @chrome-enum "linkChanged" The default physical network connection changed, e.g. wifi->mobile.
|
|
20546
20206
|
* @chrome-enum "suspend" The OS is preparing to suspend, so the VPN should drop its connection. The extension is not guaranteed to receive this event prior to suspending.
|
|
20547
20207
|
* @chrome-enum "resume" The OS has resumed and the user has logged back in, so the VPN should try to reconnect.
|
|
20548
|
-
* @since Chrome 43
|
|
20549
20208
|
*/
|
|
20550
20209
|
export type PlatformMessage = "connected" | "disconnected" | "error" | "linkDown" | "linkUp" | "linkChanged" | "suspend" | "resume";
|
|
20551
20210
|
|
|
@@ -20554,7 +20213,6 @@ declare namespace chrome {
|
|
|
20554
20213
|
*
|
|
20555
20214
|
* @chrome-enum "connected" VPN connection was successful.
|
|
20556
20215
|
* @chrome-enum "failure" VPN connection failed.
|
|
20557
|
-
* @since Chrome 43
|
|
20558
20216
|
*/
|
|
20559
20217
|
export type VpnConnectionState = "connected" | "failure";
|
|
20560
20218
|
|
|
@@ -20563,14 +20221,11 @@ declare namespace chrome {
|
|
|
20563
20221
|
*
|
|
20564
20222
|
* @chrome-enum "showAddDialog" Request the VPN client to show add configuration dialog to the user.
|
|
20565
20223
|
* @chrome-enum "showConfigureDialog" Request the VPN client to show configuration settings dialog to the user.
|
|
20566
|
-
* @since Chrome 43
|
|
20567
20224
|
*/
|
|
20568
20225
|
export type UIEvent = "showAddDialog" | "showConfigureDialog";
|
|
20569
20226
|
|
|
20570
20227
|
/**
|
|
20571
20228
|
* Triggered when a message is received from the platform for a VPN configuration owned by the extension.
|
|
20572
|
-
*
|
|
20573
|
-
* @since Chrome 43
|
|
20574
20229
|
*/
|
|
20575
20230
|
export const onPlatformMessage: events.Event<(
|
|
20576
20231
|
id: string,
|
|
@@ -20580,8 +20235,6 @@ declare namespace chrome {
|
|
|
20580
20235
|
|
|
20581
20236
|
/**
|
|
20582
20237
|
* Triggered when an IP packet is received via the tunnel for the VPN session owned by the extension.
|
|
20583
|
-
*
|
|
20584
|
-
* @since Chrome 43
|
|
20585
20238
|
*/
|
|
20586
20239
|
export const onPacketReceived: events.Event<(
|
|
20587
20240
|
data: ArrayBuffer,
|
|
@@ -20589,8 +20242,6 @@ declare namespace chrome {
|
|
|
20589
20242
|
|
|
20590
20243
|
/**
|
|
20591
20244
|
* Triggered when a configuration created by the extension is removed by the platform.
|
|
20592
|
-
*
|
|
20593
|
-
* @since Chrome 43
|
|
20594
20245
|
*/
|
|
20595
20246
|
export const onConfigRemoved: events.Event<(
|
|
20596
20247
|
id: string,
|
|
@@ -20598,8 +20249,6 @@ declare namespace chrome {
|
|
|
20598
20249
|
|
|
20599
20250
|
/**
|
|
20600
20251
|
* Triggered when a configuration is created by the platform for the extension.
|
|
20601
|
-
*
|
|
20602
|
-
* @since Chrome 43
|
|
20603
20252
|
*/
|
|
20604
20253
|
export const onConfigCreated: events.Event<(
|
|
20605
20254
|
id: string,
|
|
@@ -20609,8 +20258,6 @@ declare namespace chrome {
|
|
|
20609
20258
|
|
|
20610
20259
|
/**
|
|
20611
20260
|
* Triggered when there is a UI event for the extension. UI events are signals from the platform that indicate to the app that a UI dialog needs to be shown to the user.
|
|
20612
|
-
*
|
|
20613
|
-
* @since Chrome 43
|
|
20614
20261
|
*/
|
|
20615
20262
|
export const onUIEvent: events.Event<(
|
|
20616
20263
|
event: UIEvent,
|
|
@@ -20622,7 +20269,6 @@ declare namespace chrome {
|
|
|
20622
20269
|
*
|
|
20623
20270
|
* @chrome-returns-extra since Pending
|
|
20624
20271
|
* @param name The name of the VPN configuration.
|
|
20625
|
-
* @since Chrome 43
|
|
20626
20272
|
*/
|
|
20627
20273
|
export function createConfig(
|
|
20628
20274
|
|
|
@@ -20634,7 +20280,6 @@ declare namespace chrome {
|
|
|
20634
20280
|
*
|
|
20635
20281
|
* @param name The name of the VPN configuration.
|
|
20636
20282
|
* @param callback Called when the configuration is created or if there is an error.
|
|
20637
|
-
* @since Chrome 43
|
|
20638
20283
|
*/
|
|
20639
20284
|
export function createConfig(
|
|
20640
20285
|
|
|
@@ -20653,7 +20298,6 @@ declare namespace chrome {
|
|
|
20653
20298
|
*
|
|
20654
20299
|
* @chrome-returns-extra since Pending
|
|
20655
20300
|
* @param id ID of the VPN configuration to destroy.
|
|
20656
|
-
* @since Chrome 43
|
|
20657
20301
|
*/
|
|
20658
20302
|
export function destroyConfig(
|
|
20659
20303
|
|
|
@@ -20665,7 +20309,6 @@ declare namespace chrome {
|
|
|
20665
20309
|
*
|
|
20666
20310
|
* @param id ID of the VPN configuration to destroy.
|
|
20667
20311
|
* @param callback Called when the configuration is destroyed or if there is an error.
|
|
20668
|
-
* @since Chrome 43
|
|
20669
20312
|
*/
|
|
20670
20313
|
export function destroyConfig(
|
|
20671
20314
|
|
|
@@ -20679,7 +20322,6 @@ declare namespace chrome {
|
|
|
20679
20322
|
*
|
|
20680
20323
|
* @chrome-returns-extra since Pending
|
|
20681
20324
|
* @param parameters The parameters for the VPN session.
|
|
20682
|
-
* @since Chrome 43
|
|
20683
20325
|
*/
|
|
20684
20326
|
export function setParameters(
|
|
20685
20327
|
|
|
@@ -20691,7 +20333,6 @@ declare namespace chrome {
|
|
|
20691
20333
|
*
|
|
20692
20334
|
* @param parameters The parameters for the VPN session.
|
|
20693
20335
|
* @param callback Called when the parameters are set or if there is an error.
|
|
20694
|
-
* @since Chrome 43
|
|
20695
20336
|
*/
|
|
20696
20337
|
export function setParameters(
|
|
20697
20338
|
|
|
@@ -20705,7 +20346,6 @@ declare namespace chrome {
|
|
|
20705
20346
|
*
|
|
20706
20347
|
* @chrome-returns-extra since Pending
|
|
20707
20348
|
* @param data The IP packet to be sent to the platform.
|
|
20708
|
-
* @since Chrome 43
|
|
20709
20349
|
*/
|
|
20710
20350
|
export function sendPacket(
|
|
20711
20351
|
|
|
@@ -20717,7 +20357,6 @@ declare namespace chrome {
|
|
|
20717
20357
|
*
|
|
20718
20358
|
* @param data The IP packet to be sent to the platform.
|
|
20719
20359
|
* @param callback Called when the packet is sent or if there is an error.
|
|
20720
|
-
* @since Chrome 43
|
|
20721
20360
|
*/
|
|
20722
20361
|
export function sendPacket(
|
|
20723
20362
|
|
|
@@ -20731,7 +20370,6 @@ declare namespace chrome {
|
|
|
20731
20370
|
*
|
|
20732
20371
|
* @chrome-returns-extra since Pending
|
|
20733
20372
|
* @param state The VPN session state of the VPN client.
|
|
20734
|
-
* @since Chrome 43
|
|
20735
20373
|
*/
|
|
20736
20374
|
export function notifyConnectionStateChanged(
|
|
20737
20375
|
|
|
@@ -20743,7 +20381,6 @@ declare namespace chrome {
|
|
|
20743
20381
|
*
|
|
20744
20382
|
* @param state The VPN session state of the VPN client.
|
|
20745
20383
|
* @param callback Called when the notification is complete or if there is an error.
|
|
20746
|
-
* @since Chrome 43
|
|
20747
20384
|
*/
|
|
20748
20385
|
export function notifyConnectionStateChanged(
|
|
20749
20386
|
|
|
@@ -20756,7 +20393,7 @@ declare namespace chrome {
|
|
|
20756
20393
|
/**
|
|
20757
20394
|
* Use the `chrome.wallpaper` API to change the ChromeOS wallpaper.
|
|
20758
20395
|
*
|
|
20759
|
-
* @since
|
|
20396
|
+
* @since Chrome 43
|
|
20760
20397
|
* @chrome-permission wallpaper
|
|
20761
20398
|
* @chrome-platform chromeos
|
|
20762
20399
|
*/
|
|
@@ -20773,7 +20410,6 @@ declare namespace chrome {
|
|
|
20773
20410
|
* Sets wallpaper to the image at _url_ or _wallpaperData_ with the specified _layout_
|
|
20774
20411
|
*
|
|
20775
20412
|
* @chrome-returns-extra since Pending
|
|
20776
|
-
* @since Chrome 43
|
|
20777
20413
|
*/
|
|
20778
20414
|
export function setWallpaper(
|
|
20779
20415
|
|
|
@@ -20808,8 +20444,6 @@ declare namespace chrome {
|
|
|
20808
20444
|
|
|
20809
20445
|
/**
|
|
20810
20446
|
* Sets wallpaper to the image at _url_ or _wallpaperData_ with the specified _layout_
|
|
20811
|
-
*
|
|
20812
|
-
* @since Chrome 43
|
|
20813
20447
|
*/
|
|
20814
20448
|
export function setWallpaper(
|
|
20815
20449
|
|
|
@@ -20853,13 +20487,10 @@ declare namespace chrome {
|
|
|
20853
20487
|
/**
|
|
20854
20488
|
* Stub namepsace for the "web\_accessible\_resources" manifest key.
|
|
20855
20489
|
*
|
|
20856
|
-
* @since
|
|
20490
|
+
* @since Chrome 90
|
|
20857
20491
|
*/
|
|
20858
20492
|
export namespace webAccessibleResources {
|
|
20859
20493
|
|
|
20860
|
-
/**
|
|
20861
|
-
* @since Chrome 90
|
|
20862
|
-
*/
|
|
20863
20494
|
export interface WebAccessibleResource {
|
|
20864
20495
|
|
|
20865
20496
|
/**
|
|
@@ -20933,12 +20564,57 @@ declare namespace chrome {
|
|
|
20933
20564
|
|
|
20934
20565
|
callback?: () => void,
|
|
20935
20566
|
): void;
|
|
20567
|
+
|
|
20568
|
+
/**
|
|
20569
|
+
* Makes this extension the active Web Authentication API request proxy.
|
|
20570
|
+
*
|
|
20571
|
+
* Remote desktop extensions typically call this method after detecting attachment of a remote session to this host. Once this method returns without error, regular processing of WebAuthn requests is suspended, and events from this extension API are raised.
|
|
20572
|
+
*
|
|
20573
|
+
* This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
|
|
20574
|
+
*
|
|
20575
|
+
* The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
|
|
20576
|
+
*/
|
|
20577
|
+
export function attach(): Promise<string | undefined>;
|
|
20578
|
+
|
|
20579
|
+
/**
|
|
20580
|
+
* Makes this extension the active Web Authentication API request proxy.
|
|
20581
|
+
*
|
|
20582
|
+
* Remote desktop extensions typically call this method after detecting attachment of a remote session to this host. Once this method returns without error, regular processing of WebAuthn requests is suspended, and events from this extension API are raised.
|
|
20583
|
+
*
|
|
20584
|
+
* This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
|
|
20585
|
+
*
|
|
20586
|
+
* The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
|
|
20587
|
+
*/
|
|
20588
|
+
export function attach(
|
|
20589
|
+
|
|
20590
|
+
callback?: (
|
|
20591
|
+
error?: string,
|
|
20592
|
+
) => void,
|
|
20593
|
+
): void;
|
|
20594
|
+
|
|
20595
|
+
/**
|
|
20596
|
+
* Removes this extension from being the active Web Authentication API request proxy.
|
|
20597
|
+
*
|
|
20598
|
+
* This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
|
|
20599
|
+
*/
|
|
20600
|
+
export function detach(): Promise<string | undefined>;
|
|
20601
|
+
|
|
20602
|
+
/**
|
|
20603
|
+
* Removes this extension from being the active Web Authentication API request proxy.
|
|
20604
|
+
*
|
|
20605
|
+
* This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
|
|
20606
|
+
*/
|
|
20607
|
+
export function detach(
|
|
20608
|
+
|
|
20609
|
+
callback?: (
|
|
20610
|
+
error?: string,
|
|
20611
|
+
) => void,
|
|
20612
|
+
): void;
|
|
20936
20613
|
}
|
|
20937
20614
|
|
|
20938
20615
|
/**
|
|
20939
20616
|
* Use the `chrome.webNavigation` API to receive notifications about the status of navigation requests in-flight.
|
|
20940
20617
|
*
|
|
20941
|
-
* @since Pending
|
|
20942
20618
|
* @chrome-permission webNavigation
|
|
20943
20619
|
*/
|
|
20944
20620
|
export namespace webNavigation {
|
|
@@ -21580,7 +21256,6 @@ declare namespace chrome {
|
|
|
21580
21256
|
/**
|
|
21581
21257
|
* Use the `chrome.webRequest` API to observe and analyze traffic and to intercept, block, or modify requests in-flight.
|
|
21582
21258
|
*
|
|
21583
|
-
* @since Pending
|
|
21584
21259
|
* @chrome-permission webRequest
|
|
21585
21260
|
*/
|
|
21586
21261
|
export namespace webRequest {
|
|
@@ -22487,8 +22162,6 @@ declare namespace chrome {
|
|
|
22487
22162
|
|
|
22488
22163
|
/**
|
|
22489
22164
|
* Use the `chrome.windows` API to interact with browser windows. You can use this API to create, modify, and rearrange windows in the browser.
|
|
22490
|
-
*
|
|
22491
|
-
* @since Pending
|
|
22492
22165
|
*/
|
|
22493
22166
|
export namespace windows {
|
|
22494
22167
|
|