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/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Nov 10 2021 11:36:55 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 3ab40a9b9ea32515a56ceaf4434b36e3c2ae2e04
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -45,7 +45,6 @@ declare namespace chrome {
|
|
|
45
45
|
/**
|
|
46
46
|
* 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.
|
|
47
47
|
*
|
|
48
|
-
* @since Pending
|
|
49
48
|
* @chrome-permission accessibilityFeatures.modify
|
|
50
49
|
* @chrome-permission accessibilityFeatures.read
|
|
51
50
|
*/
|
|
@@ -181,15 +180,12 @@ declare namespace chrome {
|
|
|
181
180
|
/**
|
|
182
181
|
* Use the `chrome.action` API to control the extension's icon in the Google Chrome toolbar.
|
|
183
182
|
*
|
|
184
|
-
* @since
|
|
183
|
+
* @since Chrome 88
|
|
185
184
|
* @chrome-manifest action
|
|
186
185
|
* @chrome-min-manifest MV3
|
|
187
186
|
*/
|
|
188
187
|
export namespace action {
|
|
189
188
|
|
|
190
|
-
/**
|
|
191
|
-
* @since Chrome 88
|
|
192
|
-
*/
|
|
193
189
|
export interface TabDetails {
|
|
194
190
|
|
|
195
191
|
/**
|
|
@@ -213,8 +209,6 @@ declare namespace chrome {
|
|
|
213
209
|
|
|
214
210
|
/**
|
|
215
211
|
* Fired when an action icon is clicked. This event will not fire if the action has a popup.
|
|
216
|
-
*
|
|
217
|
-
* @since Chrome 88
|
|
218
212
|
*/
|
|
219
213
|
export const onClicked: events.Event<(
|
|
220
214
|
tab: tabs.Tab,
|
|
@@ -224,7 +218,6 @@ declare namespace chrome {
|
|
|
224
218
|
* Sets the title of the action. This shows up in the tooltip.
|
|
225
219
|
*
|
|
226
220
|
* @chrome-returns-extra since Pending
|
|
227
|
-
* @since Chrome 88
|
|
228
221
|
*/
|
|
229
222
|
export function setTitle(
|
|
230
223
|
|
|
@@ -244,8 +237,6 @@ declare namespace chrome {
|
|
|
244
237
|
|
|
245
238
|
/**
|
|
246
239
|
* Sets the title of the action. This shows up in the tooltip.
|
|
247
|
-
*
|
|
248
|
-
* @since Chrome 88
|
|
249
240
|
*/
|
|
250
241
|
export function setTitle(
|
|
251
242
|
|
|
@@ -269,7 +260,6 @@ declare namespace chrome {
|
|
|
269
260
|
* Gets the title of the action.
|
|
270
261
|
*
|
|
271
262
|
* @chrome-returns-extra since Pending
|
|
272
|
-
* @since Chrome 88
|
|
273
263
|
*/
|
|
274
264
|
export function getTitle(
|
|
275
265
|
|
|
@@ -278,8 +268,6 @@ declare namespace chrome {
|
|
|
278
268
|
|
|
279
269
|
/**
|
|
280
270
|
* Gets the title of the action.
|
|
281
|
-
*
|
|
282
|
-
* @since Chrome 88
|
|
283
271
|
*/
|
|
284
272
|
export function getTitle(
|
|
285
273
|
|
|
@@ -294,7 +282,6 @@ declare namespace chrome {
|
|
|
294
282
|
* 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.
|
|
295
283
|
*
|
|
296
284
|
* @chrome-returns-extra since Pending
|
|
297
|
-
* @since Chrome 88
|
|
298
285
|
*/
|
|
299
286
|
export function setIcon(
|
|
300
287
|
|
|
@@ -319,8 +306,6 @@ declare namespace chrome {
|
|
|
319
306
|
|
|
320
307
|
/**
|
|
321
308
|
* 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.
|
|
322
|
-
*
|
|
323
|
-
* @since Chrome 88
|
|
324
309
|
*/
|
|
325
310
|
export function setIcon(
|
|
326
311
|
|
|
@@ -349,7 +334,6 @@ declare namespace chrome {
|
|
|
349
334
|
* Sets the HTML document to be opened as a popup when the user clicks on the action's icon.
|
|
350
335
|
*
|
|
351
336
|
* @chrome-returns-extra since Pending
|
|
352
|
-
* @since Chrome 88
|
|
353
337
|
*/
|
|
354
338
|
export function setPopup(
|
|
355
339
|
|
|
@@ -369,8 +353,6 @@ declare namespace chrome {
|
|
|
369
353
|
|
|
370
354
|
/**
|
|
371
355
|
* Sets the HTML document to be opened as a popup when the user clicks on the action's icon.
|
|
372
|
-
*
|
|
373
|
-
* @since Chrome 88
|
|
374
356
|
*/
|
|
375
357
|
export function setPopup(
|
|
376
358
|
|
|
@@ -394,7 +376,6 @@ declare namespace chrome {
|
|
|
394
376
|
* Gets the html document set as the popup for this action.
|
|
395
377
|
*
|
|
396
378
|
* @chrome-returns-extra since Pending
|
|
397
|
-
* @since Chrome 88
|
|
398
379
|
*/
|
|
399
380
|
export function getPopup(
|
|
400
381
|
|
|
@@ -403,8 +384,6 @@ declare namespace chrome {
|
|
|
403
384
|
|
|
404
385
|
/**
|
|
405
386
|
* Gets the html document set as the popup for this action.
|
|
406
|
-
*
|
|
407
|
-
* @since Chrome 88
|
|
408
387
|
*/
|
|
409
388
|
export function getPopup(
|
|
410
389
|
|
|
@@ -419,7 +398,6 @@ declare namespace chrome {
|
|
|
419
398
|
* Sets the badge text for the action. The badge is displayed on top of the icon.
|
|
420
399
|
*
|
|
421
400
|
* @chrome-returns-extra since Pending
|
|
422
|
-
* @since Chrome 88
|
|
423
401
|
*/
|
|
424
402
|
export function setBadgeText(
|
|
425
403
|
|
|
@@ -439,8 +417,6 @@ declare namespace chrome {
|
|
|
439
417
|
|
|
440
418
|
/**
|
|
441
419
|
* Sets the badge text for the action. The badge is displayed on top of the icon.
|
|
442
|
-
*
|
|
443
|
-
* @since Chrome 88
|
|
444
420
|
*/
|
|
445
421
|
export function setBadgeText(
|
|
446
422
|
|
|
@@ -464,7 +440,6 @@ declare namespace chrome {
|
|
|
464
440
|
* 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.
|
|
465
441
|
*
|
|
466
442
|
* @chrome-returns-extra since Pending
|
|
467
|
-
* @since Chrome 88
|
|
468
443
|
*/
|
|
469
444
|
export function getBadgeText(
|
|
470
445
|
|
|
@@ -473,8 +448,6 @@ declare namespace chrome {
|
|
|
473
448
|
|
|
474
449
|
/**
|
|
475
450
|
* 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.
|
|
476
|
-
*
|
|
477
|
-
* @since Chrome 88
|
|
478
451
|
*/
|
|
479
452
|
export function getBadgeText(
|
|
480
453
|
|
|
@@ -489,7 +462,6 @@ declare namespace chrome {
|
|
|
489
462
|
* Sets the background color for the badge.
|
|
490
463
|
*
|
|
491
464
|
* @chrome-returns-extra since Pending
|
|
492
|
-
* @since Chrome 88
|
|
493
465
|
*/
|
|
494
466
|
export function setBadgeBackgroundColor(
|
|
495
467
|
|
|
@@ -509,8 +481,6 @@ declare namespace chrome {
|
|
|
509
481
|
|
|
510
482
|
/**
|
|
511
483
|
* Sets the background color for the badge.
|
|
512
|
-
*
|
|
513
|
-
* @since Chrome 88
|
|
514
484
|
*/
|
|
515
485
|
export function setBadgeBackgroundColor(
|
|
516
486
|
|
|
@@ -534,7 +504,6 @@ declare namespace chrome {
|
|
|
534
504
|
* Gets the background color of the action.
|
|
535
505
|
*
|
|
536
506
|
* @chrome-returns-extra since Pending
|
|
537
|
-
* @since Chrome 88
|
|
538
507
|
*/
|
|
539
508
|
export function getBadgeBackgroundColor(
|
|
540
509
|
|
|
@@ -543,8 +512,6 @@ declare namespace chrome {
|
|
|
543
512
|
|
|
544
513
|
/**
|
|
545
514
|
* Gets the background color of the action.
|
|
546
|
-
*
|
|
547
|
-
* @since Chrome 88
|
|
548
515
|
*/
|
|
549
516
|
export function getBadgeBackgroundColor(
|
|
550
517
|
|
|
@@ -560,7 +527,6 @@ declare namespace chrome {
|
|
|
560
527
|
*
|
|
561
528
|
* @chrome-returns-extra since Pending
|
|
562
529
|
* @param tabId The id of the tab for which you want to modify the action.
|
|
563
|
-
* @since Chrome 88
|
|
564
530
|
*/
|
|
565
531
|
export function enable(
|
|
566
532
|
|
|
@@ -571,7 +537,6 @@ declare namespace chrome {
|
|
|
571
537
|
* Enables the action for a tab. By default, actions are enabled.
|
|
572
538
|
*
|
|
573
539
|
* @param tabId The id of the tab for which you want to modify the action.
|
|
574
|
-
* @since Chrome 88
|
|
575
540
|
*/
|
|
576
541
|
export function enable(
|
|
577
542
|
|
|
@@ -585,7 +550,6 @@ declare namespace chrome {
|
|
|
585
550
|
*
|
|
586
551
|
* @chrome-returns-extra since Pending
|
|
587
552
|
* @param tabId The id of the tab for which you want to modify the action.
|
|
588
|
-
* @since Chrome 88
|
|
589
553
|
*/
|
|
590
554
|
export function disable(
|
|
591
555
|
|
|
@@ -596,7 +560,6 @@ declare namespace chrome {
|
|
|
596
560
|
* Disables the action for a tab.
|
|
597
561
|
*
|
|
598
562
|
* @param tabId The id of the tab for which you want to modify the action.
|
|
599
|
-
* @since Chrome 88
|
|
600
563
|
*/
|
|
601
564
|
export function disable(
|
|
602
565
|
|
|
@@ -629,7 +592,6 @@ declare namespace chrome {
|
|
|
629
592
|
/**
|
|
630
593
|
* Use the `chrome.alarms` API to schedule code to run periodically or at a specified time in the future.
|
|
631
594
|
*
|
|
632
|
-
* @since Pending
|
|
633
595
|
* @chrome-permission alarms
|
|
634
596
|
*/
|
|
635
597
|
export namespace alarms {
|
|
@@ -794,7 +756,6 @@ declare namespace chrome {
|
|
|
794
756
|
}
|
|
795
757
|
|
|
796
758
|
/**
|
|
797
|
-
* @since Pending
|
|
798
759
|
* @chrome-disallow-service-workers
|
|
799
760
|
* @chrome-max-manifest MV2
|
|
800
761
|
*/
|
|
@@ -1541,15 +1502,12 @@ declare namespace chrome {
|
|
|
1541
1502
|
/**
|
|
1542
1503
|
* Use the `appview` tag to embed other Chrome Apps within your Chrome App. (see [Usage](#usage)).
|
|
1543
1504
|
*
|
|
1544
|
-
* @since
|
|
1505
|
+
* @since Chrome 43
|
|
1545
1506
|
* @chrome-permission appview
|
|
1546
1507
|
* @chrome-platform-apps
|
|
1547
1508
|
*/
|
|
1548
1509
|
export namespace appviewTag {
|
|
1549
1510
|
|
|
1550
|
-
/**
|
|
1551
|
-
* @since Chrome 43
|
|
1552
|
-
*/
|
|
1553
1511
|
export interface EmbedRequest {
|
|
1554
1512
|
|
|
1555
1513
|
/**
|
|
@@ -1584,7 +1542,6 @@ declare namespace chrome {
|
|
|
1584
1542
|
* @param app The extension id of the app to be embedded.
|
|
1585
1543
|
* @param data Optional developer specified data that the app to be embedded can use when making an embedding decision.
|
|
1586
1544
|
* @param callback An optional function that's called after the embedding request is completed.
|
|
1587
|
-
* @since Chrome 43
|
|
1588
1545
|
*/
|
|
1589
1546
|
export function connect(
|
|
1590
1547
|
|
|
@@ -1604,7 +1561,7 @@ declare namespace chrome {
|
|
|
1604
1561
|
/**
|
|
1605
1562
|
* The `chrome.audio` API is provided to allow users to get information about and control the audio devices attached to the system. This API is currently only available in kiosk mode for ChromeOS.
|
|
1606
1563
|
*
|
|
1607
|
-
* @since
|
|
1564
|
+
* @since Chrome 59
|
|
1608
1565
|
* @chrome-permission audio
|
|
1609
1566
|
* @chrome-platform-apps
|
|
1610
1567
|
* @chrome-platform chromeos
|
|
@@ -1613,21 +1570,14 @@ declare namespace chrome {
|
|
|
1613
1570
|
|
|
1614
1571
|
/**
|
|
1615
1572
|
* Type of stream an audio device provides.
|
|
1616
|
-
*
|
|
1617
|
-
* @since Chrome 59
|
|
1618
1573
|
*/
|
|
1619
1574
|
export type StreamType = "INPUT" | "OUTPUT";
|
|
1620
1575
|
|
|
1621
1576
|
/**
|
|
1622
1577
|
* Available audio device types.
|
|
1623
|
-
*
|
|
1624
|
-
* @since Chrome 59
|
|
1625
1578
|
*/
|
|
1626
1579
|
export type DeviceType = "HEADPHONE" | "MIC" | "USB" | "BLUETOOTH" | "HDMI" | "INTERNAL_SPEAKER" | "INTERNAL_MIC" | "FRONT_MIC" | "REAR_MIC" | "KEYBOARD_MIC" | "HOTWORD" | "LINEOUT" | "POST_MIX_LOOPBACK" | "POST_DSP_LOOPBACK" | "ALSA_LOOPBACK" | "OTHER";
|
|
1627
1580
|
|
|
1628
|
-
/**
|
|
1629
|
-
* @since Chrome 59
|
|
1630
|
-
*/
|
|
1631
1581
|
export interface AudioDeviceInfo {
|
|
1632
1582
|
|
|
1633
1583
|
/**
|
|
@@ -1671,9 +1621,6 @@ declare namespace chrome {
|
|
|
1671
1621
|
stableDeviceId?: string;
|
|
1672
1622
|
}
|
|
1673
1623
|
|
|
1674
|
-
/**
|
|
1675
|
-
* @since Chrome 59
|
|
1676
|
-
*/
|
|
1677
1624
|
export interface DeviceFilter {
|
|
1678
1625
|
|
|
1679
1626
|
/**
|
|
@@ -1687,9 +1634,6 @@ declare namespace chrome {
|
|
|
1687
1634
|
isActive?: boolean;
|
|
1688
1635
|
}
|
|
1689
1636
|
|
|
1690
|
-
/**
|
|
1691
|
-
* @since Chrome 59
|
|
1692
|
-
*/
|
|
1693
1637
|
export interface DeviceProperties {
|
|
1694
1638
|
|
|
1695
1639
|
/**
|
|
@@ -1702,9 +1646,6 @@ declare namespace chrome {
|
|
|
1702
1646
|
level?: number;
|
|
1703
1647
|
}
|
|
1704
1648
|
|
|
1705
|
-
/**
|
|
1706
|
-
* @since Chrome 59
|
|
1707
|
-
*/
|
|
1708
1649
|
export interface DeviceIdLists {
|
|
1709
1650
|
|
|
1710
1651
|
/**
|
|
@@ -1722,9 +1663,6 @@ declare namespace chrome {
|
|
|
1722
1663
|
output?: string[];
|
|
1723
1664
|
}
|
|
1724
1665
|
|
|
1725
|
-
/**
|
|
1726
|
-
* @since Chrome 59
|
|
1727
|
-
*/
|
|
1728
1666
|
export interface MuteChangedEvent {
|
|
1729
1667
|
|
|
1730
1668
|
/**
|
|
@@ -1738,9 +1676,6 @@ declare namespace chrome {
|
|
|
1738
1676
|
isMuted: boolean;
|
|
1739
1677
|
}
|
|
1740
1678
|
|
|
1741
|
-
/**
|
|
1742
|
-
* @since Chrome 59
|
|
1743
|
-
*/
|
|
1744
1679
|
export interface LevelChangedEvent {
|
|
1745
1680
|
|
|
1746
1681
|
/**
|
|
@@ -1756,8 +1691,6 @@ declare namespace chrome {
|
|
|
1756
1691
|
|
|
1757
1692
|
/**
|
|
1758
1693
|
* Fired when sound level changes for an active audio device.
|
|
1759
|
-
*
|
|
1760
|
-
* @since Chrome 59
|
|
1761
1694
|
*/
|
|
1762
1695
|
export const onLevelChanged: events.Event<(
|
|
1763
1696
|
event: LevelChangedEvent,
|
|
@@ -1765,8 +1698,6 @@ declare namespace chrome {
|
|
|
1765
1698
|
|
|
1766
1699
|
/**
|
|
1767
1700
|
* Fired when the mute state of the audio input or output changes. Note that mute state is system-wide and the new value applies to every audio device with specified stream type.
|
|
1768
|
-
*
|
|
1769
|
-
* @since Chrome 59
|
|
1770
1701
|
*/
|
|
1771
1702
|
export const onMuteChanged: events.Event<(
|
|
1772
1703
|
event: MuteChangedEvent,
|
|
@@ -1774,8 +1705,6 @@ declare namespace chrome {
|
|
|
1774
1705
|
|
|
1775
1706
|
/**
|
|
1776
1707
|
* Fired when audio devices change, either new devices being added, or existing devices being removed.
|
|
1777
|
-
*
|
|
1778
|
-
* @since Chrome 59
|
|
1779
1708
|
*/
|
|
1780
1709
|
export const onDeviceListChanged: events.Event<(
|
|
1781
1710
|
devices: AudioDeviceInfo[],
|
|
@@ -1786,7 +1715,6 @@ declare namespace chrome {
|
|
|
1786
1715
|
*
|
|
1787
1716
|
* @param filter Device properties by which to filter the list of returned audio devices. If the filter is not set or set to `{}`, returned device list will contain all available audio devices.
|
|
1788
1717
|
* @param callback Reports the requested list of audio devices.
|
|
1789
|
-
* @since Chrome 59
|
|
1790
1718
|
*/
|
|
1791
1719
|
export function getDevices(
|
|
1792
1720
|
|
|
@@ -1801,7 +1729,6 @@ declare namespace chrome {
|
|
|
1801
1729
|
* Gets a list of audio devices filtered based on `filter`.
|
|
1802
1730
|
*
|
|
1803
1731
|
* @param callback Reports the requested list of audio devices.
|
|
1804
|
-
* @since Chrome 59
|
|
1805
1732
|
*/
|
|
1806
1733
|
export function getDevices(
|
|
1807
1734
|
|
|
@@ -1820,7 +1747,6 @@ declare namespace chrome {
|
|
|
1820
1747
|
It is an error to pass in a non-existent device ID.
|
|
1821
1748
|
|
|
1822
1749
|
**NOTE:** While the method signature allows device IDs to be passed as a list of strings, this method of setting active devices is deprecated and should not be relied upon to work. Please use {@link DeviceIdLists} instead.
|
|
1823
|
-
* @since Chrome 59
|
|
1824
1750
|
*/
|
|
1825
1751
|
export function setActiveDevices(
|
|
1826
1752
|
|
|
@@ -1831,8 +1757,6 @@ declare namespace chrome {
|
|
|
1831
1757
|
|
|
1832
1758
|
/**
|
|
1833
1759
|
* Sets the properties for the input or output device.
|
|
1834
|
-
*
|
|
1835
|
-
* @since Chrome 59
|
|
1836
1760
|
*/
|
|
1837
1761
|
export function setProperties(
|
|
1838
1762
|
|
|
@@ -1848,7 +1772,6 @@ declare namespace chrome {
|
|
|
1848
1772
|
*
|
|
1849
1773
|
* @param streamType Stream type for which mute state should be fetched.
|
|
1850
1774
|
* @param callback Callback reporting whether mute is set or not for specified stream type.
|
|
1851
|
-
* @since Chrome 59
|
|
1852
1775
|
*/
|
|
1853
1776
|
export function getMute(
|
|
1854
1777
|
|
|
@@ -1864,7 +1787,6 @@ declare namespace chrome {
|
|
|
1864
1787
|
*
|
|
1865
1788
|
* @param streamType Stream type for which mute state should be set.
|
|
1866
1789
|
* @param isMuted New mute value.
|
|
1867
|
-
* @since Chrome 59
|
|
1868
1790
|
*/
|
|
1869
1791
|
export function setMute(
|
|
1870
1792
|
|
|
@@ -2822,6 +2744,21 @@ declare namespace chrome {
|
|
|
2822
2744
|
*/
|
|
2823
2745
|
isButton: boolean;
|
|
2824
2746
|
|
|
2747
|
+
/**
|
|
2748
|
+
* Whether or not this node is a checkbox.
|
|
2749
|
+
*/
|
|
2750
|
+
isCheckBox: boolean;
|
|
2751
|
+
|
|
2752
|
+
/**
|
|
2753
|
+
* Whether or not this node is a combobox.
|
|
2754
|
+
*/
|
|
2755
|
+
isComboBox: boolean;
|
|
2756
|
+
|
|
2757
|
+
/**
|
|
2758
|
+
* Whether or not this node is an image.
|
|
2759
|
+
*/
|
|
2760
|
+
isImage: boolean;
|
|
2761
|
+
|
|
2825
2762
|
/**
|
|
2826
2763
|
* Aria auto complete.
|
|
2827
2764
|
*/
|
|
@@ -3418,7 +3355,6 @@ declare namespace chrome {
|
|
|
3418
3355
|
/**
|
|
3419
3356
|
* Use the `chrome.bluetooth` API to connect to a Bluetooth device. All functions report failures via chrome.runtime.lastError.
|
|
3420
3357
|
*
|
|
3421
|
-
* @since Pending
|
|
3422
3358
|
* @chrome-manifest bluetooth
|
|
3423
3359
|
* @chrome-platform-apps
|
|
3424
3360
|
* @chrome-platform chromeos
|
|
@@ -3742,7 +3678,6 @@ declare namespace chrome {
|
|
|
3742
3678
|
/**
|
|
3743
3679
|
* The `chrome.bluetoothLowEnergy` API is used to communicate with Bluetooth Smart (Low Energy) devices using the [Generic Attribute Profile (GATT)](https://developer.bluetooth.org/TechnologyOverview/Pages/GATT.aspx).
|
|
3744
3680
|
*
|
|
3745
|
-
* @since Pending
|
|
3746
3681
|
* @chrome-manifest bluetooth
|
|
3747
3682
|
* @chrome-platform-apps
|
|
3748
3683
|
* @chrome-platform chromeos
|
|
@@ -4803,7 +4738,6 @@ declare namespace chrome {
|
|
|
4803
4738
|
/**
|
|
4804
4739
|
* Use the `chrome.bluetoothSocket` API to send and receive data to Bluetooth devices using RFCOMM and L2CAP connections.
|
|
4805
4740
|
*
|
|
4806
|
-
* @since Pending
|
|
4807
4741
|
* @chrome-manifest bluetooth
|
|
4808
4742
|
* @chrome-platform-apps
|
|
4809
4743
|
* @chrome-platform chromeos
|
|
@@ -5330,7 +5264,6 @@ declare namespace chrome {
|
|
|
5330
5264
|
/**
|
|
5331
5265
|
* 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.
|
|
5332
5266
|
*
|
|
5333
|
-
* @since Pending
|
|
5334
5267
|
* @chrome-permission bookmarks
|
|
5335
5268
|
*/
|
|
5336
5269
|
export namespace bookmarks {
|
|
@@ -5412,13 +5345,11 @@ declare namespace chrome {
|
|
|
5412
5345
|
|
|
5413
5346
|
/**
|
|
5414
5347
|
* @deprecated Bookmark write operations are no longer limited by Chrome.
|
|
5415
|
-
* @chrome-deprecated-since Pending
|
|
5416
5348
|
*/
|
|
5417
5349
|
export const MAX_WRITE_OPERATIONS_PER_HOUR: 1000000;
|
|
5418
5350
|
|
|
5419
5351
|
/**
|
|
5420
5352
|
* @deprecated Bookmark write operations are no longer limited by Chrome.
|
|
5421
|
-
* @chrome-deprecated-since Pending
|
|
5422
5353
|
*/
|
|
5423
5354
|
export const MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE: 1000000;
|
|
5424
5355
|
|
|
@@ -5808,7 +5739,6 @@ declare namespace chrome {
|
|
|
5808
5739
|
/**
|
|
5809
5740
|
* Use the `chrome.browser` API to interact with the Chrome browser associated with the current application and Chrome profile.
|
|
5810
5741
|
*
|
|
5811
|
-
* @since Pending
|
|
5812
5742
|
* @chrome-permission browser
|
|
5813
5743
|
* @chrome-platform-apps
|
|
5814
5744
|
*/
|
|
@@ -5839,7 +5769,6 @@ declare namespace chrome {
|
|
|
5839
5769
|
/**
|
|
5840
5770
|
* Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its [icon](https://developer.chrome.com/docs/extensions/reference/browserAction/#icon), a browser action can have a [tooltip](https://developer.chrome.com/docs/extensions/reference/browserAction/#tooltip), a [badge](https://developer.chrome.com/docs/extensions/reference/browserAction/#badge), and a [popup](https://developer.chrome.com/docs/extensions/reference/browserAction/#popups).
|
|
5841
5771
|
*
|
|
5842
|
-
* @since Pending
|
|
5843
5772
|
* @chrome-manifest browser_action
|
|
5844
5773
|
* @chrome-max-manifest MV2
|
|
5845
5774
|
*/
|
|
@@ -6220,7 +6149,6 @@ declare namespace chrome {
|
|
|
6220
6149
|
/**
|
|
6221
6150
|
* Use the `chrome.browsingData` API to remove browsing data from a user's local profile.
|
|
6222
6151
|
*
|
|
6223
|
-
* @since Pending
|
|
6224
6152
|
* @chrome-permission browsingData
|
|
6225
6153
|
*/
|
|
6226
6154
|
export namespace browsingData {
|
|
@@ -6751,7 +6679,7 @@ declare namespace chrome {
|
|
|
6751
6679
|
/**
|
|
6752
6680
|
* Use this API to expose certificates to the platform which can use these certificates for TLS authentications.
|
|
6753
6681
|
*
|
|
6754
|
-
* @since
|
|
6682
|
+
* @since Chrome 46
|
|
6755
6683
|
* @chrome-permission certificateProvider
|
|
6756
6684
|
* @chrome-platform chromeos
|
|
6757
6685
|
*/
|
|
@@ -6879,8 +6807,6 @@ declare namespace chrome {
|
|
|
6879
6807
|
|
|
6880
6808
|
/**
|
|
6881
6809
|
* Deprecated. Replaced by {@link Algorithm}.
|
|
6882
|
-
*
|
|
6883
|
-
* @since Chrome 46
|
|
6884
6810
|
*/
|
|
6885
6811
|
export type Hash = "MD5_SHA1" | "SHA1" | "SHA256" | "SHA384" | "SHA512";
|
|
6886
6812
|
|
|
@@ -6898,9 +6824,6 @@ declare namespace chrome {
|
|
|
6898
6824
|
*/
|
|
6899
6825
|
export type PinRequestErrorType = "INVALID_PIN" | "INVALID_PUK" | "MAX_ATTEMPTS_EXCEEDED" | "UNKNOWN_ERROR";
|
|
6900
6826
|
|
|
6901
|
-
/**
|
|
6902
|
-
* @since Chrome 46
|
|
6903
|
-
*/
|
|
6904
6827
|
export interface CertificateInfo {
|
|
6905
6828
|
|
|
6906
6829
|
/**
|
|
@@ -6914,9 +6837,6 @@ declare namespace chrome {
|
|
|
6914
6837
|
supportedHashes: Hash[];
|
|
6915
6838
|
}
|
|
6916
6839
|
|
|
6917
|
-
/**
|
|
6918
|
-
* @since Chrome 46
|
|
6919
|
-
*/
|
|
6920
6840
|
export interface SignRequest {
|
|
6921
6841
|
|
|
6922
6842
|
/**
|
|
@@ -7039,7 +6959,6 @@ declare namespace chrome {
|
|
|
7039
6959
|
* This event fires every time the browser needs to sign a message using a certificate provided by this extension in reply to an {@link onCertificatesRequested} event. The extension must sign the data in `request` using the appropriate algorithm and private key and return it by calling `reportCallback`. `reportCallback` must be called exactly once.
|
|
7040
6960
|
*
|
|
7041
6961
|
* @deprecated Use {@link onSignatureRequested} instead.
|
|
7042
|
-
* @since Chrome 46
|
|
7043
6962
|
* @chrome-max-manifest MV2
|
|
7044
6963
|
* @chrome-deprecated-since Chrome 86
|
|
7045
6964
|
*/
|
|
@@ -7168,13 +7087,10 @@ declare namespace chrome {
|
|
|
7168
7087
|
/**
|
|
7169
7088
|
* Stub namespace for the "chrome\_url\_overrides" manifest key.
|
|
7170
7089
|
*
|
|
7171
|
-
* @since
|
|
7090
|
+
* @since Chrome 93
|
|
7172
7091
|
*/
|
|
7173
7092
|
export namespace chrome_url_overrides {
|
|
7174
7093
|
|
|
7175
|
-
/**
|
|
7176
|
-
* @since Chrome 93
|
|
7177
|
-
*/
|
|
7178
7094
|
export interface UrlOverrideInfo {
|
|
7179
7095
|
|
|
7180
7096
|
/**
|
|
@@ -7289,7 +7205,6 @@ declare namespace chrome {
|
|
|
7289
7205
|
/**
|
|
7290
7206
|
* 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.
|
|
7291
7207
|
*
|
|
7292
|
-
* @since Pending
|
|
7293
7208
|
* @chrome-manifest commands
|
|
7294
7209
|
*/
|
|
7295
7210
|
export namespace commands {
|
|
@@ -7346,7 +7261,7 @@ declare namespace chrome {
|
|
|
7346
7261
|
/**
|
|
7347
7262
|
* Stub namespace for the "content\_scripts" manifest key.
|
|
7348
7263
|
*
|
|
7349
|
-
* @since
|
|
7264
|
+
* @since Chrome 88
|
|
7350
7265
|
*/
|
|
7351
7266
|
export namespace contentScripts {
|
|
7352
7267
|
|
|
@@ -7356,13 +7271,9 @@ declare namespace chrome {
|
|
|
7356
7271
|
* @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.
|
|
7357
7272
|
* @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.
|
|
7358
7273
|
* @chrome-enum "document\_end" Scripts are injected immediately after the DOM is complete, but before subresources like images and frames have loaded.
|
|
7359
|
-
* @since Chrome 88
|
|
7360
7274
|
*/
|
|
7361
7275
|
export type RunAt = "document_idle" | "document_start" | "document_end";
|
|
7362
7276
|
|
|
7363
|
-
/**
|
|
7364
|
-
* @since Chrome 88
|
|
7365
|
-
*/
|
|
7366
7277
|
export interface ContentScript {
|
|
7367
7278
|
|
|
7368
7279
|
/**
|
|
@@ -7415,7 +7326,6 @@ declare namespace chrome {
|
|
|
7415
7326
|
/**
|
|
7416
7327
|
* 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.
|
|
7417
7328
|
*
|
|
7418
|
-
* @since Pending
|
|
7419
7329
|
* @chrome-permission contentSettings
|
|
7420
7330
|
*/
|
|
7421
7331
|
export namespace contentSettings {
|
|
@@ -7830,7 +7740,6 @@ declare namespace chrome {
|
|
|
7830
7740
|
/**
|
|
7831
7741
|
* 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.
|
|
7832
7742
|
*
|
|
7833
|
-
* @since Pending
|
|
7834
7743
|
* @chrome-permission contextMenus
|
|
7835
7744
|
*/
|
|
7836
7745
|
export namespace contextMenus {
|
|
@@ -8091,7 +8000,6 @@ declare namespace chrome {
|
|
|
8091
8000
|
/**
|
|
8092
8001
|
* Use the `chrome.cookies` API to query and modify cookies, and to be notified when they change.
|
|
8093
8002
|
*
|
|
8094
|
-
* @since Pending
|
|
8095
8003
|
* @chrome-permission cookies
|
|
8096
8004
|
*/
|
|
8097
8005
|
export namespace cookies {
|
|
@@ -8575,13 +8483,10 @@ declare namespace chrome {
|
|
|
8575
8483
|
/**
|
|
8576
8484
|
* Stub namespace for manifest keys relating to the cross origin isolation response headers.
|
|
8577
8485
|
*
|
|
8578
|
-
* @since
|
|
8486
|
+
* @since Chrome 93
|
|
8579
8487
|
*/
|
|
8580
8488
|
export namespace crossOriginIsolation {
|
|
8581
8489
|
|
|
8582
|
-
/**
|
|
8583
|
-
* @since Chrome 93
|
|
8584
|
-
*/
|
|
8585
8490
|
export interface ResponseHeader {
|
|
8586
8491
|
|
|
8587
8492
|
value?: string;
|
|
@@ -8591,7 +8496,6 @@ declare namespace chrome {
|
|
|
8591
8496
|
/**
|
|
8592
8497
|
* 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.
|
|
8593
8498
|
*
|
|
8594
|
-
* @since Pending
|
|
8595
8499
|
* @chrome-permission debugger
|
|
8596
8500
|
*/
|
|
8597
8501
|
namespace _debugger {
|
|
@@ -8814,7 +8718,6 @@ declare namespace chrome {
|
|
|
8814
8718
|
/**
|
|
8815
8719
|
* Use the `chrome.declarativeContent` API to take actions depending on the content of a page, without requiring permission to read the page's content.
|
|
8816
8720
|
*
|
|
8817
|
-
* @since Pending
|
|
8818
8721
|
* @chrome-permission declarativeContent
|
|
8819
8722
|
*/
|
|
8820
8723
|
export namespace declarativeContent {
|
|
@@ -8852,7 +8755,6 @@ declare namespace chrome {
|
|
|
8852
8755
|
* 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.
|
|
8853
8756
|
*
|
|
8854
8757
|
* @deprecated Please use {@link declarativeContent.ShowAction}.
|
|
8855
|
-
* @chrome-deprecated-since Pending
|
|
8856
8758
|
*/
|
|
8857
8759
|
export class ShowPageAction {
|
|
8858
8760
|
constructor(arg: ShowPageAction);
|
|
@@ -8860,6 +8762,8 @@ declare namespace chrome {
|
|
|
8860
8762
|
|
|
8861
8763
|
/**
|
|
8862
8764
|
* 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.
|
|
8765
|
+
*
|
|
8766
|
+
* @since Pending
|
|
8863
8767
|
*/
|
|
8864
8768
|
export class ShowAction {
|
|
8865
8769
|
constructor(arg: ShowAction);
|
|
@@ -8914,7 +8818,7 @@ declare namespace chrome {
|
|
|
8914
8818
|
/**
|
|
8915
8819
|
* 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.
|
|
8916
8820
|
*
|
|
8917
|
-
* @since
|
|
8821
|
+
* @since Chrome 84
|
|
8918
8822
|
* @chrome-permission declarativeNetRequest
|
|
8919
8823
|
* @chrome-permission declarativeNetRequestWithHostAccess
|
|
8920
8824
|
*/
|
|
@@ -8922,8 +8826,6 @@ declare namespace chrome {
|
|
|
8922
8826
|
|
|
8923
8827
|
/**
|
|
8924
8828
|
* This describes the resource type of the network request.
|
|
8925
|
-
*
|
|
8926
|
-
* @since Chrome 84
|
|
8927
8829
|
*/
|
|
8928
8830
|
export type ResourceType = "main_frame" | "sub_frame" | "stylesheet" | "script" | "image" | "font" | "object" | "xmlhttprequest" | "ping" | "csp_report" | "media" | "websocket" | "webtransport" | "webbundle" | "other";
|
|
8929
8831
|
|
|
@@ -8939,7 +8841,6 @@ declare namespace chrome {
|
|
|
8939
8841
|
*
|
|
8940
8842
|
* @chrome-enum "firstParty" The network request is first party to the frame in which it originated.
|
|
8941
8843
|
* @chrome-enum "thirdParty" The network request is third party to the frame in which it originated.
|
|
8942
|
-
* @since Chrome 84
|
|
8943
8844
|
*/
|
|
8944
8845
|
export type DomainType = "firstParty" | "thirdParty";
|
|
8945
8846
|
|
|
@@ -8962,7 +8863,6 @@ declare namespace chrome {
|
|
|
8962
8863
|
* @chrome-enum "upgradeScheme" Upgrade the network request url's scheme to https if the request is http or ftp.
|
|
8963
8864
|
* @chrome-enum "modifyHeaders" Modify request/response headers from the network request.
|
|
8964
8865
|
* @chrome-enum "allowAllRequests" Allow all requests within a frame hierarchy, including the frame request itself.
|
|
8965
|
-
* @since Chrome 84
|
|
8966
8866
|
*/
|
|
8967
8867
|
export type RuleActionType = "block" | "redirect" | "allow" | "upgradeScheme" | "modifyHeaders" | "allowAllRequests";
|
|
8968
8868
|
|
|
@@ -8975,9 +8875,6 @@ declare namespace chrome {
|
|
|
8975
8875
|
*/
|
|
8976
8876
|
export type UnsupportedRegexReason = "syntaxError" | "memoryLimitExceeded";
|
|
8977
8877
|
|
|
8978
|
-
/**
|
|
8979
|
-
* @since Chrome 84
|
|
8980
|
-
*/
|
|
8981
8878
|
export interface Ruleset {
|
|
8982
8879
|
|
|
8983
8880
|
/**
|
|
@@ -8996,9 +8893,6 @@ declare namespace chrome {
|
|
|
8996
8893
|
enabled: boolean;
|
|
8997
8894
|
}
|
|
8998
8895
|
|
|
8999
|
-
/**
|
|
9000
|
-
* @since Chrome 84
|
|
9001
|
-
*/
|
|
9002
8896
|
export interface QueryKeyValue {
|
|
9003
8897
|
|
|
9004
8898
|
key: string;
|
|
@@ -9013,9 +8907,6 @@ declare namespace chrome {
|
|
|
9013
8907
|
replaceOnly?: boolean;
|
|
9014
8908
|
}
|
|
9015
8909
|
|
|
9016
|
-
/**
|
|
9017
|
-
* @since Chrome 84
|
|
9018
|
-
*/
|
|
9019
8910
|
export interface QueryTransform {
|
|
9020
8911
|
|
|
9021
8912
|
/**
|
|
@@ -9029,9 +8920,6 @@ declare namespace chrome {
|
|
|
9029
8920
|
addOrReplaceParams?: QueryKeyValue[];
|
|
9030
8921
|
}
|
|
9031
8922
|
|
|
9032
|
-
/**
|
|
9033
|
-
* @since Chrome 84
|
|
9034
|
-
*/
|
|
9035
8923
|
export interface URLTransform {
|
|
9036
8924
|
|
|
9037
8925
|
/**
|
|
@@ -9080,9 +8968,6 @@ declare namespace chrome {
|
|
|
9080
8968
|
password?: string;
|
|
9081
8969
|
}
|
|
9082
8970
|
|
|
9083
|
-
/**
|
|
9084
|
-
* @since Chrome 84
|
|
9085
|
-
*/
|
|
9086
8971
|
export interface Redirect {
|
|
9087
8972
|
|
|
9088
8973
|
/**
|
|
@@ -9106,9 +8991,6 @@ declare namespace chrome {
|
|
|
9106
8991
|
regexSubstitution?: string;
|
|
9107
8992
|
}
|
|
9108
8993
|
|
|
9109
|
-
/**
|
|
9110
|
-
* @since Chrome 84
|
|
9111
|
-
*/
|
|
9112
8994
|
export interface RuleCondition {
|
|
9113
8995
|
|
|
9114
8996
|
/**
|
|
@@ -9241,9 +9123,6 @@ declare namespace chrome {
|
|
|
9241
9123
|
value?: string;
|
|
9242
9124
|
}
|
|
9243
9125
|
|
|
9244
|
-
/**
|
|
9245
|
-
* @since Chrome 84
|
|
9246
|
-
*/
|
|
9247
9126
|
export interface RuleAction {
|
|
9248
9127
|
|
|
9249
9128
|
/**
|
|
@@ -9271,9 +9150,6 @@ declare namespace chrome {
|
|
|
9271
9150
|
responseHeaders?: ModifyHeaderInfo[];
|
|
9272
9151
|
}
|
|
9273
9152
|
|
|
9274
|
-
/**
|
|
9275
|
-
* @since Chrome 84
|
|
9276
|
-
*/
|
|
9277
9153
|
export interface Rule {
|
|
9278
9154
|
|
|
9279
9155
|
/**
|
|
@@ -9297,9 +9173,6 @@ declare namespace chrome {
|
|
|
9297
9173
|
action: RuleAction;
|
|
9298
9174
|
}
|
|
9299
9175
|
|
|
9300
|
-
/**
|
|
9301
|
-
* @since Chrome 84
|
|
9302
|
-
*/
|
|
9303
9176
|
export interface MatchedRule {
|
|
9304
9177
|
|
|
9305
9178
|
/**
|
|
@@ -9313,9 +9186,6 @@ declare namespace chrome {
|
|
|
9313
9186
|
rulesetId: string;
|
|
9314
9187
|
}
|
|
9315
9188
|
|
|
9316
|
-
/**
|
|
9317
|
-
* @since Chrome 84
|
|
9318
|
-
*/
|
|
9319
9189
|
export interface MatchedRuleInfo {
|
|
9320
9190
|
|
|
9321
9191
|
rule: MatchedRule;
|
|
@@ -9331,9 +9201,6 @@ declare namespace chrome {
|
|
|
9331
9201
|
tabId: number;
|
|
9332
9202
|
}
|
|
9333
9203
|
|
|
9334
|
-
/**
|
|
9335
|
-
* @since Chrome 84
|
|
9336
|
-
*/
|
|
9337
9204
|
export interface MatchedRulesFilter {
|
|
9338
9205
|
|
|
9339
9206
|
/**
|
|
@@ -9347,9 +9214,6 @@ declare namespace chrome {
|
|
|
9347
9214
|
minTimeStamp?: number;
|
|
9348
9215
|
}
|
|
9349
9216
|
|
|
9350
|
-
/**
|
|
9351
|
-
* @since Chrome 84
|
|
9352
|
-
*/
|
|
9353
9217
|
export interface RulesMatchedDetails {
|
|
9354
9218
|
|
|
9355
9219
|
/**
|
|
@@ -9358,9 +9222,6 @@ declare namespace chrome {
|
|
|
9358
9222
|
rulesMatchedInfo: MatchedRuleInfo[];
|
|
9359
9223
|
}
|
|
9360
9224
|
|
|
9361
|
-
/**
|
|
9362
|
-
* @since Chrome 84
|
|
9363
|
-
*/
|
|
9364
9225
|
export interface RequestDetails {
|
|
9365
9226
|
|
|
9366
9227
|
/**
|
|
@@ -9404,9 +9265,6 @@ declare namespace chrome {
|
|
|
9404
9265
|
type: ResourceType;
|
|
9405
9266
|
}
|
|
9406
9267
|
|
|
9407
|
-
/**
|
|
9408
|
-
* @since Chrome 84
|
|
9409
|
-
*/
|
|
9410
9268
|
export interface MatchedRuleInfoDebug {
|
|
9411
9269
|
|
|
9412
9270
|
rule: MatchedRule;
|
|
@@ -9533,29 +9391,21 @@ declare namespace chrome {
|
|
|
9533
9391
|
|
|
9534
9392
|
/**
|
|
9535
9393
|
* 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.
|
|
9536
|
-
*
|
|
9537
|
-
* @since Chrome 84
|
|
9538
9394
|
*/
|
|
9539
9395
|
export const GETMATCHEDRULES_QUOTA_INTERVAL: 10;
|
|
9540
9396
|
|
|
9541
9397
|
/**
|
|
9542
9398
|
* The number of times `getMatchedRules` can be called within a period of `GETMATCHEDRULES_QUOTA_INTERVAL`.
|
|
9543
|
-
*
|
|
9544
|
-
* @since Chrome 84
|
|
9545
9399
|
*/
|
|
9546
9400
|
export const MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL: 20;
|
|
9547
9401
|
|
|
9548
9402
|
/**
|
|
9549
9403
|
* 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.
|
|
9550
|
-
*
|
|
9551
|
-
* @since Chrome 84
|
|
9552
9404
|
*/
|
|
9553
9405
|
export const MAX_NUMBER_OF_REGEX_RULES: 1000;
|
|
9554
9406
|
|
|
9555
9407
|
/**
|
|
9556
9408
|
* The maximum number of static `Rulesets` an extension can specify as part of the `"rule_resources"` manifest key.
|
|
9557
|
-
*
|
|
9558
|
-
* @since Chrome 84
|
|
9559
9409
|
*/
|
|
9560
9410
|
export const MAX_NUMBER_OF_STATIC_RULESETS: 50;
|
|
9561
9411
|
|
|
@@ -9568,8 +9418,6 @@ declare namespace chrome {
|
|
|
9568
9418
|
|
|
9569
9419
|
/**
|
|
9570
9420
|
* Ruleset ID for the dynamic rules added by the extension.
|
|
9571
|
-
*
|
|
9572
|
-
* @since Chrome 84
|
|
9573
9421
|
*/
|
|
9574
9422
|
export const DYNAMIC_RULESET_ID: "_dynamic";
|
|
9575
9423
|
|
|
@@ -9583,7 +9431,6 @@ declare namespace chrome {
|
|
|
9583
9431
|
/**
|
|
9584
9432
|
* 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.
|
|
9585
9433
|
*
|
|
9586
|
-
* @since Chrome 84
|
|
9587
9434
|
* @chrome-permission declarativeNetRequestFeedback
|
|
9588
9435
|
*/
|
|
9589
9436
|
export const onRuleMatchedDebug: events.Event<(
|
|
@@ -9602,7 +9449,6 @@ declare namespace chrome {
|
|
|
9602
9449
|
* * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
|
|
9603
9450
|
*
|
|
9604
9451
|
* @chrome-returns-extra since Pending
|
|
9605
|
-
* @since Chrome 84
|
|
9606
9452
|
*/
|
|
9607
9453
|
export function updateDynamicRules(
|
|
9608
9454
|
|
|
@@ -9621,7 +9467,6 @@ declare namespace chrome {
|
|
|
9621
9467
|
* * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
|
|
9622
9468
|
*
|
|
9623
9469
|
* @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.
|
|
9624
|
-
* @since Chrome 84
|
|
9625
9470
|
*/
|
|
9626
9471
|
export function updateDynamicRules(
|
|
9627
9472
|
|
|
@@ -9637,7 +9482,6 @@ declare namespace chrome {
|
|
|
9637
9482
|
* Returns the current set of dynamic rules for the extension.
|
|
9638
9483
|
*
|
|
9639
9484
|
* @chrome-returns-extra since Pending
|
|
9640
|
-
* @since Chrome 84
|
|
9641
9485
|
*/
|
|
9642
9486
|
export function getDynamicRules(): Promise<Rule[]>;
|
|
9643
9487
|
|
|
@@ -9645,7 +9489,6 @@ declare namespace chrome {
|
|
|
9645
9489
|
* Returns the current set of dynamic rules for the extension.
|
|
9646
9490
|
*
|
|
9647
9491
|
* @param callback Called with the set of dynamic rules. An error might be raised in case of transient internal errors.
|
|
9648
|
-
* @since Chrome 84
|
|
9649
9492
|
*/
|
|
9650
9493
|
export function getDynamicRules(
|
|
9651
9494
|
|
|
@@ -9712,7 +9555,6 @@ declare namespace chrome {
|
|
|
9712
9555
|
* 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.
|
|
9713
9556
|
*
|
|
9714
9557
|
* @chrome-returns-extra since Pending
|
|
9715
|
-
* @since Chrome 84
|
|
9716
9558
|
*/
|
|
9717
9559
|
export function updateEnabledRulesets(
|
|
9718
9560
|
|
|
@@ -9727,7 +9569,6 @@ declare namespace chrome {
|
|
|
9727
9569
|
* 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.
|
|
9728
9570
|
*
|
|
9729
9571
|
* @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.
|
|
9730
|
-
* @since Chrome 84
|
|
9731
9572
|
*/
|
|
9732
9573
|
export function updateEnabledRulesets(
|
|
9733
9574
|
|
|
@@ -9743,7 +9584,6 @@ declare namespace chrome {
|
|
|
9743
9584
|
* Returns the ids for the current set of enabled static rulesets.
|
|
9744
9585
|
*
|
|
9745
9586
|
* @chrome-returns-extra since Pending
|
|
9746
|
-
* @since Chrome 84
|
|
9747
9587
|
*/
|
|
9748
9588
|
export function getEnabledRulesets(): Promise<string[]>;
|
|
9749
9589
|
|
|
@@ -9751,7 +9591,6 @@ declare namespace chrome {
|
|
|
9751
9591
|
* Returns the ids for the current set of enabled static rulesets.
|
|
9752
9592
|
*
|
|
9753
9593
|
* @param callback Called with a list of ids, where each id corresponds to an enabled static {@link Ruleset}.
|
|
9754
|
-
* @since Chrome 84
|
|
9755
9594
|
*/
|
|
9756
9595
|
export function getEnabledRulesets(
|
|
9757
9596
|
|
|
@@ -9765,7 +9604,6 @@ declare namespace chrome {
|
|
|
9765
9604
|
*
|
|
9766
9605
|
* @chrome-returns-extra since Pending
|
|
9767
9606
|
* @param filter An object to filter the list of matched rules.
|
|
9768
|
-
* @since Chrome 84
|
|
9769
9607
|
*/
|
|
9770
9608
|
export function getMatchedRules(
|
|
9771
9609
|
|
|
@@ -9777,7 +9615,6 @@ declare namespace chrome {
|
|
|
9777
9615
|
*
|
|
9778
9616
|
* @param filter An object to filter the list of matched rules.
|
|
9779
9617
|
* @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.
|
|
9780
|
-
* @since Chrome 84
|
|
9781
9618
|
*/
|
|
9782
9619
|
export function getMatchedRules(
|
|
9783
9620
|
|
|
@@ -10395,7 +10232,6 @@ declare namespace chrome {
|
|
|
10395
10232
|
/**
|
|
10396
10233
|
* Desktop Capture API that can be used to capture content of screen, individual windows or tabs.
|
|
10397
10234
|
*
|
|
10398
|
-
* @since Pending
|
|
10399
10235
|
* @chrome-permission desktopCapture
|
|
10400
10236
|
*/
|
|
10401
10237
|
export namespace desktopCapture {
|
|
@@ -11120,15 +10956,12 @@ declare namespace chrome {
|
|
|
11120
10956
|
/**
|
|
11121
10957
|
* Use the `chrome.documentScan` API to discover and retrieve images from attached paper document scanners.
|
|
11122
10958
|
*
|
|
11123
|
-
* @since
|
|
10959
|
+
* @since Chrome 44
|
|
11124
10960
|
* @chrome-permission documentScan
|
|
11125
10961
|
* @chrome-platform chromeos
|
|
11126
10962
|
*/
|
|
11127
10963
|
export namespace documentScan {
|
|
11128
10964
|
|
|
11129
|
-
/**
|
|
11130
|
-
* @since Chrome 44
|
|
11131
|
-
*/
|
|
11132
10965
|
export interface ScanOptions {
|
|
11133
10966
|
|
|
11134
10967
|
/**
|
|
@@ -11142,9 +10975,6 @@ declare namespace chrome {
|
|
|
11142
10975
|
maxImages?: number;
|
|
11143
10976
|
}
|
|
11144
10977
|
|
|
11145
|
-
/**
|
|
11146
|
-
* @since Chrome 44
|
|
11147
|
-
*/
|
|
11148
10978
|
export interface ScanResults {
|
|
11149
10979
|
|
|
11150
10980
|
/**
|
|
@@ -11163,7 +10993,6 @@ declare namespace chrome {
|
|
|
11163
10993
|
*
|
|
11164
10994
|
* @chrome-returns-extra since Pending
|
|
11165
10995
|
* @param options Object containing scan parameters.
|
|
11166
|
-
* @since Chrome 44
|
|
11167
10996
|
*/
|
|
11168
10997
|
export function scan(
|
|
11169
10998
|
|
|
@@ -11175,7 +11004,6 @@ declare namespace chrome {
|
|
|
11175
11004
|
*
|
|
11176
11005
|
* @param options Object containing scan parameters.
|
|
11177
11006
|
* @param callback Called with the result and data from the scan.
|
|
11178
|
-
* @since Chrome 44
|
|
11179
11007
|
*/
|
|
11180
11008
|
export function scan(
|
|
11181
11009
|
|
|
@@ -11190,7 +11018,7 @@ declare namespace chrome {
|
|
|
11190
11018
|
/**
|
|
11191
11019
|
* Use the `chrome.dom` API to access special DOM APIs for Extensions
|
|
11192
11020
|
*
|
|
11193
|
-
* @since
|
|
11021
|
+
* @since Chrome 88
|
|
11194
11022
|
*/
|
|
11195
11023
|
export namespace dom {
|
|
11196
11024
|
|
|
@@ -11198,7 +11026,6 @@ declare namespace chrome {
|
|
|
11198
11026
|
* 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.
|
|
11199
11027
|
*
|
|
11200
11028
|
* @returns See [https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)
|
|
11201
|
-
* @since Chrome 88
|
|
11202
11029
|
*/
|
|
11203
11030
|
export function openOrClosedShadowRoot(
|
|
11204
11031
|
|
|
@@ -11209,7 +11036,6 @@ declare namespace chrome {
|
|
|
11209
11036
|
/**
|
|
11210
11037
|
* Use the `chrome.downloads` API to programmatically initiate, monitor, manipulate, and search for downloads.
|
|
11211
11038
|
*
|
|
11212
|
-
* @since Pending
|
|
11213
11039
|
* @chrome-permission downloads
|
|
11214
11040
|
*/
|
|
11215
11041
|
export namespace downloads {
|
|
@@ -11992,6 +11818,7 @@ declare namespace chrome {
|
|
|
11992
11818
|
/**
|
|
11993
11819
|
* Use the `chrome.enterprise.deviceAttributes` API to read device attributes. Note: This API is only available to extensions force-installed by enterprise policy.
|
|
11994
11820
|
*
|
|
11821
|
+
* @since Chrome 46
|
|
11995
11822
|
* @chrome-permission enterprise.deviceAttributes
|
|
11996
11823
|
* @chrome-platform chromeos
|
|
11997
11824
|
* @chrome-platform lacros
|
|
@@ -12002,7 +11829,6 @@ declare namespace chrome {
|
|
|
12002
11829
|
* 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.
|
|
12003
11830
|
*
|
|
12004
11831
|
* @chrome-returns-extra since Pending
|
|
12005
|
-
* @since Chrome 46
|
|
12006
11832
|
*/
|
|
12007
11833
|
export function getDirectoryDeviceId(): Promise<string>;
|
|
12008
11834
|
|
|
@@ -12010,7 +11836,6 @@ declare namespace chrome {
|
|
|
12010
11836
|
* 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.
|
|
12011
11837
|
*
|
|
12012
11838
|
* @param callback Called with the device identifier of the directory API when received.
|
|
12013
|
-
* @since Chrome 46
|
|
12014
11839
|
*/
|
|
12015
11840
|
export function getDirectoryDeviceId(
|
|
12016
11841
|
|
|
@@ -12107,13 +11932,11 @@ declare namespace chrome {
|
|
|
12107
11932
|
/**
|
|
12108
11933
|
* 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.
|
|
12109
11934
|
*
|
|
11935
|
+
* @since Chrome 71
|
|
12110
11936
|
* @chrome-permission enterprise.hardwarePlatform
|
|
12111
11937
|
*/
|
|
12112
11938
|
export namespace enterprise.hardwarePlatform {
|
|
12113
11939
|
|
|
12114
|
-
/**
|
|
12115
|
-
* @since Chrome 71
|
|
12116
|
-
*/
|
|
12117
11940
|
export interface HardwarePlatformInfo {
|
|
12118
11941
|
|
|
12119
11942
|
model: string;
|
|
@@ -12125,7 +11948,6 @@ declare namespace chrome {
|
|
|
12125
11948
|
* Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
|
|
12126
11949
|
*
|
|
12127
11950
|
* @chrome-returns-extra since Pending
|
|
12128
|
-
* @since Chrome 71
|
|
12129
11951
|
*/
|
|
12130
11952
|
export function getHardwarePlatformInfo(): Promise<HardwarePlatformInfo>;
|
|
12131
11953
|
|
|
@@ -12133,7 +11955,6 @@ declare namespace chrome {
|
|
|
12133
11955
|
* Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
|
|
12134
11956
|
*
|
|
12135
11957
|
* @param callback Called with the hardware platform info.
|
|
12136
|
-
* @since Chrome 71
|
|
12137
11958
|
*/
|
|
12138
11959
|
export function getHardwarePlatformInfo(
|
|
12139
11960
|
|
|
@@ -12146,15 +11967,13 @@ declare namespace chrome {
|
|
|
12146
11967
|
/**
|
|
12147
11968
|
* 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.
|
|
12148
11969
|
*
|
|
11970
|
+
* @since Chrome 85
|
|
12149
11971
|
* @chrome-permission enterprise.networkingAttributes
|
|
12150
11972
|
* @chrome-platform chromeos
|
|
12151
11973
|
* @chrome-platform lacros
|
|
12152
11974
|
*/
|
|
12153
11975
|
export namespace enterprise.networkingAttributes {
|
|
12154
11976
|
|
|
12155
|
-
/**
|
|
12156
|
-
* @since Chrome 85
|
|
12157
|
-
*/
|
|
12158
11977
|
export interface NetworkDetails {
|
|
12159
11978
|
|
|
12160
11979
|
/**
|
|
@@ -12177,7 +11996,6 @@ declare namespace chrome {
|
|
|
12177
11996
|
* 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.
|
|
12178
11997
|
*
|
|
12179
11998
|
* @chrome-returns-extra since Pending
|
|
12180
|
-
* @since Chrome 85
|
|
12181
11999
|
*/
|
|
12182
12000
|
export function getNetworkDetails(): Promise<NetworkDetails>;
|
|
12183
12001
|
|
|
@@ -12185,7 +12003,6 @@ declare namespace chrome {
|
|
|
12185
12003
|
* 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.
|
|
12186
12004
|
*
|
|
12187
12005
|
* @param callback Called with the device's default network's {@link NetworkDetails}.
|
|
12188
|
-
* @since Chrome 85
|
|
12189
12006
|
*/
|
|
12190
12007
|
export function getNetworkDetails(
|
|
12191
12008
|
|
|
@@ -12369,8 +12186,6 @@ declare namespace chrome {
|
|
|
12369
12186
|
|
|
12370
12187
|
/**
|
|
12371
12188
|
* The `chrome.events` namespace contains common types used by APIs dispatching events to notify you when something interesting happens.
|
|
12372
|
-
*
|
|
12373
|
-
* @since Pending
|
|
12374
12189
|
*/
|
|
12375
12190
|
export namespace events {
|
|
12376
12191
|
|
|
@@ -12618,8 +12433,6 @@ declare namespace chrome {
|
|
|
12618
12433
|
|
|
12619
12434
|
/**
|
|
12620
12435
|
* 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).
|
|
12621
|
-
*
|
|
12622
|
-
* @since Pending
|
|
12623
12436
|
*/
|
|
12624
12437
|
export namespace extension {
|
|
12625
12438
|
|
|
@@ -12655,7 +12468,6 @@ declare namespace chrome {
|
|
|
12655
12468
|
*
|
|
12656
12469
|
* @deprecated Please use {@link runtime.onMessage}.
|
|
12657
12470
|
* @chrome-max-manifest MV2
|
|
12658
|
-
* @chrome-deprecated-since Pending
|
|
12659
12471
|
*/
|
|
12660
12472
|
export const onRequest: events.Event<(
|
|
12661
12473
|
request: any,
|
|
@@ -12668,7 +12480,6 @@ declare namespace chrome {
|
|
|
12668
12480
|
*
|
|
12669
12481
|
* @deprecated Please use {@link runtime.onMessageExternal}.
|
|
12670
12482
|
* @chrome-max-manifest MV2
|
|
12671
|
-
* @chrome-deprecated-since Pending
|
|
12672
12483
|
*/
|
|
12673
12484
|
export const onRequestExternal: events.Event<(
|
|
12674
12485
|
request: any,
|
|
@@ -12682,7 +12493,6 @@ declare namespace chrome {
|
|
|
12682
12493
|
* @param extensionId The extension ID of the extension you want to connect to. If omitted, default is your own extension.
|
|
12683
12494
|
* @deprecated Please use {@link runtime.sendMessage}.
|
|
12684
12495
|
* @chrome-max-manifest MV2
|
|
12685
|
-
* @chrome-deprecated-since Pending
|
|
12686
12496
|
*/
|
|
12687
12497
|
export function sendRequest(
|
|
12688
12498
|
|
|
@@ -12703,7 +12513,6 @@ declare namespace chrome {
|
|
|
12703
12513
|
*
|
|
12704
12514
|
* @deprecated Please use {@link runtime.sendMessage}.
|
|
12705
12515
|
* @chrome-max-manifest MV2
|
|
12706
|
-
* @chrome-deprecated-since Pending
|
|
12707
12516
|
*/
|
|
12708
12517
|
export function sendRequest(
|
|
12709
12518
|
|
|
@@ -12774,7 +12583,6 @@ declare namespace chrome {
|
|
|
12774
12583
|
* @deprecated Please use {@link extension.getViews} `{type: "tab"}`.
|
|
12775
12584
|
* @chrome-disallow-service-workers
|
|
12776
12585
|
* @chrome-max-manifest MV2
|
|
12777
|
-
* @chrome-deprecated-since Pending
|
|
12778
12586
|
*/
|
|
12779
12587
|
export function getExtensionTabs(
|
|
12780
12588
|
|
|
@@ -12818,8 +12626,6 @@ declare namespace chrome {
|
|
|
12818
12626
|
|
|
12819
12627
|
/**
|
|
12820
12628
|
* Schemas for structured manifest entries
|
|
12821
|
-
*
|
|
12822
|
-
* @since Pending
|
|
12823
12629
|
*/
|
|
12824
12630
|
export namespace extensionsManifestTypes {
|
|
12825
12631
|
|
|
@@ -13051,8 +12857,6 @@ declare namespace chrome {
|
|
|
13051
12857
|
|
|
13052
12858
|
/**
|
|
13053
12859
|
* The `chrome.extensionTypes` API contains type declarations for Chrome extensions.
|
|
13054
|
-
*
|
|
13055
|
-
* @since Pending
|
|
13056
12860
|
*/
|
|
13057
12861
|
export namespace extensionTypes {
|
|
13058
12862
|
|
|
@@ -13183,7 +12987,6 @@ declare namespace chrome {
|
|
|
13183
12987
|
/**
|
|
13184
12988
|
* 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.
|
|
13185
12989
|
*
|
|
13186
|
-
* @since Pending
|
|
13187
12990
|
* @chrome-permission fileBrowserHandler
|
|
13188
12991
|
* @chrome-disallow-service-workers
|
|
13189
12992
|
* @chrome-platform chromeos
|
|
@@ -13291,7 +13094,6 @@ declare namespace chrome {
|
|
|
13291
13094
|
/**
|
|
13292
13095
|
* Use the `chrome.fileSystem` API to create, read, navigate, and write to the user's local file system. With this API, Chrome Apps can read and write to a user-selected location. For example, a text editor app can use the API to read and write local documents. All failures are notified via chrome.runtime.lastError.
|
|
13293
13096
|
*
|
|
13294
|
-
* @since Pending
|
|
13295
13097
|
* @chrome-permission fileSystem
|
|
13296
13098
|
* @chrome-platform-apps
|
|
13297
13099
|
* @chrome-disallow-service-workers
|
|
@@ -13517,7 +13319,6 @@ declare namespace chrome {
|
|
|
13517
13319
|
/**
|
|
13518
13320
|
* Use the `chrome.fileSystemProvider` API to create file systems, that can be accessible from the file manager on Chrome OS.
|
|
13519
13321
|
*
|
|
13520
|
-
* @since Pending
|
|
13521
13322
|
* @chrome-permission fileSystemProvider
|
|
13522
13323
|
* @chrome-disallow-service-workers
|
|
13523
13324
|
* @chrome-platform chromeos
|
|
@@ -14644,7 +14445,6 @@ declare namespace chrome {
|
|
|
14644
14445
|
/**
|
|
14645
14446
|
* Use the `chrome.fontSettings` API to manage Chrome's font settings.
|
|
14646
14447
|
*
|
|
14647
|
-
* @since Pending
|
|
14648
14448
|
* @chrome-permission fontSettings
|
|
14649
14449
|
*/
|
|
14650
14450
|
export namespace fontSettings {
|
|
@@ -15253,7 +15053,6 @@ declare namespace chrome {
|
|
|
15253
15053
|
/**
|
|
15254
15054
|
* 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/).
|
|
15255
15055
|
*
|
|
15256
|
-
* @since Pending
|
|
15257
15056
|
* @chrome-permission gcm
|
|
15258
15057
|
*/
|
|
15259
15058
|
export namespace gcm {
|
|
@@ -15385,7 +15184,6 @@ declare namespace chrome {
|
|
|
15385
15184
|
/**
|
|
15386
15185
|
* Use the `chrome.hid` API to interact with connected HID devices. This API provides access to HID operations from within the context of an app. Using this API, apps can function as drivers for hardware devices. Errors generated by this API are reported by setting {@link runtime.lastError} and executing the function's regular callback. The callback's regular parameters will be undefined in this case.
|
|
15387
15186
|
*
|
|
15388
|
-
* @since Pending
|
|
15389
15187
|
* @chrome-permission hid
|
|
15390
15188
|
* @chrome-platform-apps
|
|
15391
15189
|
*/
|
|
@@ -15697,7 +15495,6 @@ declare namespace chrome {
|
|
|
15697
15495
|
/**
|
|
15698
15496
|
* 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).
|
|
15699
15497
|
*
|
|
15700
|
-
* @since Pending
|
|
15701
15498
|
* @chrome-permission history
|
|
15702
15499
|
*/
|
|
15703
15500
|
export namespace history {
|
|
@@ -15995,8 +15792,6 @@ declare namespace chrome {
|
|
|
15995
15792
|
|
|
15996
15793
|
/**
|
|
15997
15794
|
* Use the `chrome.i18n` infrastructure to implement internationalization across your whole app or extension.
|
|
15998
|
-
*
|
|
15999
|
-
* @since Pending
|
|
16000
15795
|
*/
|
|
16001
15796
|
export namespace i18n {
|
|
16002
15797
|
|
|
@@ -16094,7 +15889,6 @@ declare namespace chrome {
|
|
|
16094
15889
|
/**
|
|
16095
15890
|
* Use the `chrome.identity` API to get OAuth2 access tokens.
|
|
16096
15891
|
*
|
|
16097
|
-
* @since Pending
|
|
16098
15892
|
* @chrome-permission identity
|
|
16099
15893
|
*/
|
|
16100
15894
|
export namespace identity {
|
|
@@ -16336,7 +16130,6 @@ declare namespace chrome {
|
|
|
16336
16130
|
/**
|
|
16337
16131
|
* Use the `chrome.idle` API to detect when the machine's idle state changes.
|
|
16338
16132
|
*
|
|
16339
|
-
* @since Pending
|
|
16340
16133
|
* @chrome-permission idle
|
|
16341
16134
|
*/
|
|
16342
16135
|
export namespace idle {
|
|
@@ -16398,13 +16191,10 @@ declare namespace chrome {
|
|
|
16398
16191
|
/**
|
|
16399
16192
|
* Dummy namepsace for the incognito manifest key.
|
|
16400
16193
|
*
|
|
16401
|
-
* @since
|
|
16194
|
+
* @since Chrome 87
|
|
16402
16195
|
*/
|
|
16403
16196
|
export namespace incognito {
|
|
16404
16197
|
|
|
16405
|
-
/**
|
|
16406
|
-
* @since Chrome 87
|
|
16407
|
-
*/
|
|
16408
16198
|
export type IncognitoMode = "split" | "spanning" | "not_allowed";
|
|
16409
16199
|
}
|
|
16410
16200
|
|
|
@@ -17230,15 +17020,13 @@ declare namespace chrome {
|
|
|
17230
17020
|
/**
|
|
17231
17021
|
* Use `chrome.instanceID` to access the Instance ID service.
|
|
17232
17022
|
*
|
|
17233
|
-
* @since
|
|
17023
|
+
* @since Chrome 44
|
|
17234
17024
|
* @chrome-permission gcm
|
|
17235
17025
|
*/
|
|
17236
17026
|
export namespace instanceID {
|
|
17237
17027
|
|
|
17238
17028
|
/**
|
|
17239
17029
|
* Fired when all the granted tokens need to be refreshed.
|
|
17240
|
-
*
|
|
17241
|
-
* @since Chrome 44
|
|
17242
17030
|
*/
|
|
17243
17031
|
export const onTokenRefresh: events.Event<() => void>;
|
|
17244
17032
|
|
|
@@ -17246,7 +17034,6 @@ declare namespace chrome {
|
|
|
17246
17034
|
* 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.
|
|
17247
17035
|
*
|
|
17248
17036
|
* @chrome-returns-extra since Pending
|
|
17249
|
-
* @since Chrome 44
|
|
17250
17037
|
*/
|
|
17251
17038
|
export function getID(): Promise<string>;
|
|
17252
17039
|
|
|
@@ -17254,7 +17041,6 @@ declare namespace chrome {
|
|
|
17254
17041
|
* 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.
|
|
17255
17042
|
*
|
|
17256
17043
|
* @param callback Function called when the retrieval completes. It should check {@link runtime.lastError} for error when instanceID is empty.
|
|
17257
|
-
* @since Chrome 44
|
|
17258
17044
|
*/
|
|
17259
17045
|
export function getID(
|
|
17260
17046
|
|
|
@@ -17270,7 +17056,6 @@ declare namespace chrome {
|
|
|
17270
17056
|
* Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
|
|
17271
17057
|
*
|
|
17272
17058
|
* @chrome-returns-extra since Pending
|
|
17273
|
-
* @since Chrome 44
|
|
17274
17059
|
*/
|
|
17275
17060
|
export function getCreationTime(): Promise<number>;
|
|
17276
17061
|
|
|
@@ -17278,7 +17063,6 @@ declare namespace chrome {
|
|
|
17278
17063
|
* Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
|
|
17279
17064
|
*
|
|
17280
17065
|
* @param callback Function called when the retrieval completes. It should check {@link runtime.lastError} for error when creationTime is zero.
|
|
17281
|
-
* @since Chrome 44
|
|
17282
17066
|
*/
|
|
17283
17067
|
export function getCreationTime(
|
|
17284
17068
|
|
|
@@ -17295,7 +17079,6 @@ declare namespace chrome {
|
|
|
17295
17079
|
*
|
|
17296
17080
|
* @chrome-returns-extra since Pending
|
|
17297
17081
|
* @param getTokenParams Parameters for getToken.
|
|
17298
|
-
* @since Chrome 44
|
|
17299
17082
|
*/
|
|
17300
17083
|
export function getToken(
|
|
17301
17084
|
|
|
@@ -17331,7 +17114,6 @@ declare namespace chrome {
|
|
|
17331
17114
|
*
|
|
17332
17115
|
* @param getTokenParams Parameters for getToken.
|
|
17333
17116
|
* @param callback Function called when the retrieval completes. It should check {@link runtime.lastError} for error when token is empty.
|
|
17334
|
-
* @since Chrome 44
|
|
17335
17117
|
*/
|
|
17336
17118
|
export function getToken(
|
|
17337
17119
|
|
|
@@ -17374,7 +17156,6 @@ declare namespace chrome {
|
|
|
17374
17156
|
*
|
|
17375
17157
|
* @chrome-returns-extra since Pending
|
|
17376
17158
|
* @param deleteTokenParams Parameters for deleteToken.
|
|
17377
|
-
* @since Chrome 44
|
|
17378
17159
|
*/
|
|
17379
17160
|
export function deleteToken(
|
|
17380
17161
|
|
|
@@ -17401,7 +17182,6 @@ declare namespace chrome {
|
|
|
17401
17182
|
*
|
|
17402
17183
|
* @param deleteTokenParams Parameters for deleteToken.
|
|
17403
17184
|
* @param callback Function called when the token deletion completes. The token was revoked successfully if {@link runtime.lastError} is not set.
|
|
17404
|
-
* @since Chrome 44
|
|
17405
17185
|
*/
|
|
17406
17186
|
export function deleteToken(
|
|
17407
17187
|
|
|
@@ -17429,7 +17209,6 @@ declare namespace chrome {
|
|
|
17429
17209
|
* Resets the app instance identifier and revokes all tokens associated with it.
|
|
17430
17210
|
*
|
|
17431
17211
|
* @chrome-returns-extra since Pending
|
|
17432
|
-
* @since Chrome 44
|
|
17433
17212
|
*/
|
|
17434
17213
|
export function deleteID(): Promise<void>;
|
|
17435
17214
|
|
|
@@ -17437,7 +17216,6 @@ declare namespace chrome {
|
|
|
17437
17216
|
* Resets the app instance identifier and revokes all tokens associated with it.
|
|
17438
17217
|
*
|
|
17439
17218
|
* @param callback Function called when the deletion completes. The instance identifier was revoked successfully if {@link runtime.lastError} is not set.
|
|
17440
|
-
* @since Chrome 44
|
|
17441
17219
|
*/
|
|
17442
17220
|
export function deleteID(
|
|
17443
17221
|
|
|
@@ -17448,7 +17226,7 @@ declare namespace chrome {
|
|
|
17448
17226
|
/**
|
|
17449
17227
|
* Use the `chrome.loginState` API to read and monitor the login state.
|
|
17450
17228
|
*
|
|
17451
|
-
* @since
|
|
17229
|
+
* @since Chrome 78
|
|
17452
17230
|
* @chrome-permission loginState
|
|
17453
17231
|
* @chrome-platform chromeos
|
|
17454
17232
|
* @chrome-platform lacros
|
|
@@ -17458,7 +17236,6 @@ declare namespace chrome {
|
|
|
17458
17236
|
/**
|
|
17459
17237
|
* @chrome-enum "SIGNIN\_PROFILE" The extension is in the signin profile.
|
|
17460
17238
|
* @chrome-enum "USER\_PROFILE" The extension is in the user profile.
|
|
17461
|
-
* @since Chrome 78
|
|
17462
17239
|
*/
|
|
17463
17240
|
export type ProfileType = "SIGNIN_PROFILE" | "USER_PROFILE";
|
|
17464
17241
|
|
|
@@ -17468,14 +17245,11 @@ declare namespace chrome {
|
|
|
17468
17245
|
* @chrome-enum "IN\_LOGIN\_SCREEN" The user is in the login screen.
|
|
17469
17246
|
* @chrome-enum "IN\_SESSION" The user is in the session.
|
|
17470
17247
|
* @chrome-enum "IN\_LOCK\_SCREEN" The user is in the lock screen.
|
|
17471
|
-
* @since Chrome 78
|
|
17472
17248
|
*/
|
|
17473
17249
|
export type SessionState = "UNKNOWN" | "IN_OOBE_SCREEN" | "IN_LOGIN_SCREEN" | "IN_SESSION" | "IN_LOCK_SCREEN";
|
|
17474
17250
|
|
|
17475
17251
|
/**
|
|
17476
17252
|
* Dispatched when the session state changes. `sessionState` is the new session state.
|
|
17477
|
-
*
|
|
17478
|
-
* @since Chrome 78
|
|
17479
17253
|
*/
|
|
17480
17254
|
export const onSessionStateChanged: events.Event<(
|
|
17481
17255
|
sessionState: SessionState,
|
|
@@ -17485,14 +17259,11 @@ declare namespace chrome {
|
|
|
17485
17259
|
* Gets the type of the profile the extension is in.
|
|
17486
17260
|
*
|
|
17487
17261
|
* @chrome-returns-extra since Pending
|
|
17488
|
-
* @since Chrome 78
|
|
17489
17262
|
*/
|
|
17490
17263
|
export function getProfileType(): Promise<ProfileType>;
|
|
17491
17264
|
|
|
17492
17265
|
/**
|
|
17493
17266
|
* Gets the type of the profile the extension is in.
|
|
17494
|
-
*
|
|
17495
|
-
* @since Chrome 78
|
|
17496
17267
|
*/
|
|
17497
17268
|
export function getProfileType(
|
|
17498
17269
|
|
|
@@ -17505,14 +17276,11 @@ declare namespace chrome {
|
|
|
17505
17276
|
* Gets the current session state.
|
|
17506
17277
|
*
|
|
17507
17278
|
* @chrome-returns-extra since Pending
|
|
17508
|
-
* @since Chrome 78
|
|
17509
17279
|
*/
|
|
17510
17280
|
export function getSessionState(): Promise<SessionState>;
|
|
17511
17281
|
|
|
17512
17282
|
/**
|
|
17513
17283
|
* Gets the current session state.
|
|
17514
|
-
*
|
|
17515
|
-
* @since Chrome 78
|
|
17516
17284
|
*/
|
|
17517
17285
|
export function getSessionState(
|
|
17518
17286
|
|
|
@@ -17525,7 +17293,6 @@ declare namespace chrome {
|
|
|
17525
17293
|
/**
|
|
17526
17294
|
* 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.
|
|
17527
17295
|
*
|
|
17528
|
-
* @since Pending
|
|
17529
17296
|
* @chrome-permission management
|
|
17530
17297
|
*/
|
|
17531
17298
|
export namespace management {
|
|
@@ -18107,8 +17874,6 @@ declare namespace chrome {
|
|
|
18107
17874
|
|
|
18108
17875
|
/**
|
|
18109
17876
|
* Schemas for structured manifest entries
|
|
18110
|
-
*
|
|
18111
|
-
* @since Pending
|
|
18112
17877
|
*/
|
|
18113
17878
|
export namespace manifestTypes {
|
|
18114
17879
|
|
|
@@ -18240,15 +18005,12 @@ declare namespace chrome {
|
|
|
18240
18005
|
/**
|
|
18241
18006
|
* Use the `chrome.mdns` API to discover services over mDNS. This comprises a subset of the features of the NSD spec: http://www.w3.org/TR/discovery-api/
|
|
18242
18007
|
*
|
|
18243
|
-
* @since
|
|
18008
|
+
* @since Chrome 43
|
|
18244
18009
|
* @chrome-permission mdns
|
|
18245
18010
|
* @chrome-platform-apps
|
|
18246
18011
|
*/
|
|
18247
18012
|
export namespace mdns {
|
|
18248
18013
|
|
|
18249
|
-
/**
|
|
18250
|
-
* @since Chrome 43
|
|
18251
|
-
*/
|
|
18252
18014
|
export interface MDnsService {
|
|
18253
18015
|
|
|
18254
18016
|
/**
|
|
@@ -18281,8 +18043,6 @@ declare namespace chrome {
|
|
|
18281
18043
|
|
|
18282
18044
|
/**
|
|
18283
18045
|
* Event fired to inform clients of the current complete set of known available services. Clients should only need to store the list from the most recent event. The service type that the extension is interested in discovering should be specified as the event filter with the 'serviceType' key. Not specifying an event filter will not start any discovery listeners.
|
|
18284
|
-
*
|
|
18285
|
-
* @since Chrome 43
|
|
18286
18046
|
*/
|
|
18287
18047
|
export const onServiceList: events.Event<(
|
|
18288
18048
|
services: MDnsService[],
|
|
@@ -18311,7 +18071,6 @@ declare namespace chrome {
|
|
|
18311
18071
|
/**
|
|
18312
18072
|
* Use the `chrome.mediaGalleries` API to access media files (audio, images, video) from the user's local disks (with the user's consent).
|
|
18313
18073
|
*
|
|
18314
|
-
* @since Pending
|
|
18315
18074
|
* @chrome-permission mediaGalleries
|
|
18316
18075
|
* @chrome-platform-apps
|
|
18317
18076
|
*/
|
|
@@ -18577,30 +18336,19 @@ declare namespace chrome {
|
|
|
18577
18336
|
*
|
|
18578
18337
|
* **NOTE**: Most dictionary properties and enum values use UpperCamelCase to match the ONC specification instead of the JavaScript lowerCamelCase convention.
|
|
18579
18338
|
*
|
|
18339
|
+
* @since Chrome 59
|
|
18580
18340
|
* @chrome-permission networking.onc
|
|
18581
18341
|
* @chrome-platform-apps
|
|
18582
18342
|
* @chrome-platform chromeos
|
|
18583
18343
|
*/
|
|
18584
18344
|
export namespace networking.onc {
|
|
18585
18345
|
|
|
18586
|
-
/**
|
|
18587
|
-
* @since Chrome 59
|
|
18588
|
-
*/
|
|
18589
18346
|
export type ActivationStateType = "Activated" | "Activating" | "NotActivated" | "PartiallyActivated";
|
|
18590
18347
|
|
|
18591
|
-
/**
|
|
18592
|
-
* @since Chrome 59
|
|
18593
|
-
*/
|
|
18594
18348
|
export type CaptivePortalStatus = "Unknown" | "Offline" | "Online" | "Portal" | "ProxyAuthRequired";
|
|
18595
18349
|
|
|
18596
|
-
/**
|
|
18597
|
-
* @since Chrome 59
|
|
18598
|
-
*/
|
|
18599
18350
|
export type ClientCertificateType = "Ref" | "Pattern";
|
|
18600
18351
|
|
|
18601
|
-
/**
|
|
18602
|
-
* @since Chrome 59
|
|
18603
|
-
*/
|
|
18604
18352
|
export type ConnectionStateType = "Connected" | "Connecting" | "NotConnected";
|
|
18605
18353
|
|
|
18606
18354
|
/**
|
|
@@ -18609,28 +18357,15 @@ declare namespace chrome {
|
|
|
18609
18357
|
* @chrome-enum "Enabling" Enabled state has been requested but has not completed.
|
|
18610
18358
|
* @chrome-enum "Enabled" Device is enabled.
|
|
18611
18359
|
* @chrome-enum "Prohibited" Device is prohibited.
|
|
18612
|
-
* @since Chrome 59
|
|
18613
18360
|
*/
|
|
18614
18361
|
export type DeviceStateType = "Uninitialized" | "Disabled" | "Enabling" | "Enabled" | "Prohibited";
|
|
18615
18362
|
|
|
18616
|
-
/**
|
|
18617
|
-
* @since Chrome 59
|
|
18618
|
-
*/
|
|
18619
18363
|
export type IPConfigType = "DHCP" | "Static";
|
|
18620
18364
|
|
|
18621
|
-
/**
|
|
18622
|
-
* @since Chrome 59
|
|
18623
|
-
*/
|
|
18624
18365
|
export type NetworkType = "All" | "Cellular" | "Ethernet" | "Tether" | "VPN" | "Wireless" | "WiFi";
|
|
18625
18366
|
|
|
18626
|
-
/**
|
|
18627
|
-
* @since Chrome 59
|
|
18628
|
-
*/
|
|
18629
18367
|
export type ProxySettingsType = "Direct" | "Manual" | "PAC" | "WPAD";
|
|
18630
18368
|
|
|
18631
|
-
/**
|
|
18632
|
-
* @since Chrome 59
|
|
18633
|
-
*/
|
|
18634
18369
|
export interface ManagedBoolean {
|
|
18635
18370
|
|
|
18636
18371
|
/**
|
|
@@ -18674,9 +18409,6 @@ declare namespace chrome {
|
|
|
18674
18409
|
DeviceEditable?: boolean;
|
|
18675
18410
|
}
|
|
18676
18411
|
|
|
18677
|
-
/**
|
|
18678
|
-
* @since Chrome 59
|
|
18679
|
-
*/
|
|
18680
18412
|
export interface ManagedLong {
|
|
18681
18413
|
|
|
18682
18414
|
/**
|
|
@@ -18720,9 +18452,6 @@ declare namespace chrome {
|
|
|
18720
18452
|
DeviceEditable?: boolean;
|
|
18721
18453
|
}
|
|
18722
18454
|
|
|
18723
|
-
/**
|
|
18724
|
-
* @since Chrome 59
|
|
18725
|
-
*/
|
|
18726
18455
|
export interface ManagedDOMString {
|
|
18727
18456
|
|
|
18728
18457
|
/**
|
|
@@ -18766,9 +18495,6 @@ declare namespace chrome {
|
|
|
18766
18495
|
DeviceEditable?: boolean;
|
|
18767
18496
|
}
|
|
18768
18497
|
|
|
18769
|
-
/**
|
|
18770
|
-
* @since Chrome 59
|
|
18771
|
-
*/
|
|
18772
18498
|
export interface ManagedDOMStringList {
|
|
18773
18499
|
|
|
18774
18500
|
/**
|
|
@@ -18812,9 +18538,6 @@ declare namespace chrome {
|
|
|
18812
18538
|
DeviceEditable?: boolean;
|
|
18813
18539
|
}
|
|
18814
18540
|
|
|
18815
|
-
/**
|
|
18816
|
-
* @since Chrome 59
|
|
18817
|
-
*/
|
|
18818
18541
|
export interface ManagedIPConfigType {
|
|
18819
18542
|
|
|
18820
18543
|
/**
|
|
@@ -18858,9 +18581,6 @@ declare namespace chrome {
|
|
|
18858
18581
|
DeviceEditable?: boolean;
|
|
18859
18582
|
}
|
|
18860
18583
|
|
|
18861
|
-
/**
|
|
18862
|
-
* @since Chrome 59
|
|
18863
|
-
*/
|
|
18864
18584
|
export interface ManagedProxySettingsType {
|
|
18865
18585
|
|
|
18866
18586
|
/**
|
|
@@ -18904,9 +18624,6 @@ declare namespace chrome {
|
|
|
18904
18624
|
DeviceEditable?: boolean;
|
|
18905
18625
|
}
|
|
18906
18626
|
|
|
18907
|
-
/**
|
|
18908
|
-
* @since Chrome 59
|
|
18909
|
-
*/
|
|
18910
18627
|
export interface CellularProviderProperties {
|
|
18911
18628
|
|
|
18912
18629
|
/**
|
|
@@ -18925,9 +18642,6 @@ declare namespace chrome {
|
|
|
18925
18642
|
Country?: string;
|
|
18926
18643
|
}
|
|
18927
18644
|
|
|
18928
|
-
/**
|
|
18929
|
-
* @since Chrome 59
|
|
18930
|
-
*/
|
|
18931
18645
|
export interface IssuerSubjectPattern {
|
|
18932
18646
|
|
|
18933
18647
|
/**
|
|
@@ -18951,9 +18665,6 @@ declare namespace chrome {
|
|
|
18951
18665
|
OrganizationalUnit?: string;
|
|
18952
18666
|
}
|
|
18953
18667
|
|
|
18954
|
-
/**
|
|
18955
|
-
* @since Chrome 59
|
|
18956
|
-
*/
|
|
18957
18668
|
export interface CertificatePattern {
|
|
18958
18669
|
|
|
18959
18670
|
/**
|
|
@@ -18977,9 +18688,6 @@ declare namespace chrome {
|
|
|
18977
18688
|
Subject?: IssuerSubjectPattern;
|
|
18978
18689
|
}
|
|
18979
18690
|
|
|
18980
|
-
/**
|
|
18981
|
-
* @since Chrome 59
|
|
18982
|
-
*/
|
|
18983
18691
|
export interface EAPProperties {
|
|
18984
18692
|
|
|
18985
18693
|
AnonymousIdentity?: string;
|
|
@@ -19027,9 +18735,6 @@ declare namespace chrome {
|
|
|
19027
18735
|
UseSystemCAs?: boolean;
|
|
19028
18736
|
}
|
|
19029
18737
|
|
|
19030
|
-
/**
|
|
19031
|
-
* @since Chrome 59
|
|
19032
|
-
*/
|
|
19033
18738
|
export interface FoundNetworkProperties {
|
|
19034
18739
|
|
|
19035
18740
|
/**
|
|
@@ -19058,9 +18763,6 @@ declare namespace chrome {
|
|
|
19058
18763
|
LongName?: string;
|
|
19059
18764
|
}
|
|
19060
18765
|
|
|
19061
|
-
/**
|
|
19062
|
-
* @since Chrome 59
|
|
19063
|
-
*/
|
|
19064
18766
|
export interface IPConfigProperties {
|
|
19065
18767
|
|
|
19066
18768
|
/**
|
|
@@ -19115,9 +18817,6 @@ declare namespace chrome {
|
|
|
19115
18817
|
WebProxyAutoDiscoveryUrl?: string;
|
|
19116
18818
|
}
|
|
19117
18819
|
|
|
19118
|
-
/**
|
|
19119
|
-
* @since Chrome 59
|
|
19120
|
-
*/
|
|
19121
18820
|
export interface ManagedIPConfigProperties {
|
|
19122
18821
|
|
|
19123
18822
|
/**
|
|
@@ -19151,9 +18850,6 @@ declare namespace chrome {
|
|
|
19151
18850
|
WebProxyAutoDiscoveryUrl?: ManagedDOMString;
|
|
19152
18851
|
}
|
|
19153
18852
|
|
|
19154
|
-
/**
|
|
19155
|
-
* @since Chrome 59
|
|
19156
|
-
*/
|
|
19157
18853
|
export interface PaymentPortal {
|
|
19158
18854
|
|
|
19159
18855
|
/**
|
|
@@ -19172,9 +18868,6 @@ declare namespace chrome {
|
|
|
19172
18868
|
Url?: string;
|
|
19173
18869
|
}
|
|
19174
18870
|
|
|
19175
|
-
/**
|
|
19176
|
-
* @since Chrome 59
|
|
19177
|
-
*/
|
|
19178
18871
|
export interface ProxyLocation {
|
|
19179
18872
|
|
|
19180
18873
|
/**
|
|
@@ -19188,9 +18881,6 @@ declare namespace chrome {
|
|
|
19188
18881
|
Port: number;
|
|
19189
18882
|
}
|
|
19190
18883
|
|
|
19191
|
-
/**
|
|
19192
|
-
* @since Chrome 59
|
|
19193
|
-
*/
|
|
19194
18884
|
export interface ManagedProxyLocation {
|
|
19195
18885
|
|
|
19196
18886
|
/**
|
|
@@ -19204,9 +18894,6 @@ declare namespace chrome {
|
|
|
19204
18894
|
Port: ManagedLong;
|
|
19205
18895
|
}
|
|
19206
18896
|
|
|
19207
|
-
/**
|
|
19208
|
-
* @since Chrome 59
|
|
19209
|
-
*/
|
|
19210
18897
|
export interface ManualProxySettings {
|
|
19211
18898
|
|
|
19212
18899
|
/**
|
|
@@ -19230,9 +18917,6 @@ declare namespace chrome {
|
|
|
19230
18917
|
SOCKS?: ProxyLocation;
|
|
19231
18918
|
}
|
|
19232
18919
|
|
|
19233
|
-
/**
|
|
19234
|
-
* @since Chrome 59
|
|
19235
|
-
*/
|
|
19236
18920
|
export interface ManagedManualProxySettings {
|
|
19237
18921
|
|
|
19238
18922
|
/**
|
|
@@ -19256,9 +18940,6 @@ declare namespace chrome {
|
|
|
19256
18940
|
SOCKS?: ManagedProxyLocation;
|
|
19257
18941
|
}
|
|
19258
18942
|
|
|
19259
|
-
/**
|
|
19260
|
-
* @since Chrome 59
|
|
19261
|
-
*/
|
|
19262
18943
|
export interface ProxySettings {
|
|
19263
18944
|
|
|
19264
18945
|
/**
|
|
@@ -19282,9 +18963,6 @@ declare namespace chrome {
|
|
|
19282
18963
|
PAC?: string;
|
|
19283
18964
|
}
|
|
19284
18965
|
|
|
19285
|
-
/**
|
|
19286
|
-
* @since Chrome 59
|
|
19287
|
-
*/
|
|
19288
18966
|
export interface ManagedProxySettings {
|
|
19289
18967
|
|
|
19290
18968
|
/**
|
|
@@ -19308,9 +18986,6 @@ declare namespace chrome {
|
|
|
19308
18986
|
PAC?: ManagedDOMString;
|
|
19309
18987
|
}
|
|
19310
18988
|
|
|
19311
|
-
/**
|
|
19312
|
-
* @since Chrome 59
|
|
19313
|
-
*/
|
|
19314
18989
|
export interface SIMLockStatus {
|
|
19315
18990
|
|
|
19316
18991
|
/**
|
|
@@ -19329,9 +19004,6 @@ declare namespace chrome {
|
|
|
19329
19004
|
RetriesLeft?: number;
|
|
19330
19005
|
}
|
|
19331
19006
|
|
|
19332
|
-
/**
|
|
19333
|
-
* @since Chrome 59
|
|
19334
|
-
*/
|
|
19335
19007
|
export interface ThirdPartyVPNProperties {
|
|
19336
19008
|
|
|
19337
19009
|
/**
|
|
@@ -19345,9 +19017,6 @@ declare namespace chrome {
|
|
|
19345
19017
|
ProviderName?: string;
|
|
19346
19018
|
}
|
|
19347
19019
|
|
|
19348
|
-
/**
|
|
19349
|
-
* @since Chrome 59
|
|
19350
|
-
*/
|
|
19351
19020
|
export interface ManagedThirdPartyVPNProperties {
|
|
19352
19021
|
|
|
19353
19022
|
/**
|
|
@@ -19361,9 +19030,6 @@ declare namespace chrome {
|
|
|
19361
19030
|
ProviderName?: string;
|
|
19362
19031
|
}
|
|
19363
19032
|
|
|
19364
|
-
/**
|
|
19365
|
-
* @since Chrome 59
|
|
19366
|
-
*/
|
|
19367
19033
|
export interface CellularProperties {
|
|
19368
19034
|
|
|
19369
19035
|
/**
|
|
@@ -19469,9 +19135,6 @@ declare namespace chrome {
|
|
|
19469
19135
|
SupportNetworkScan?: boolean;
|
|
19470
19136
|
}
|
|
19471
19137
|
|
|
19472
|
-
/**
|
|
19473
|
-
* @since Chrome 59
|
|
19474
|
-
*/
|
|
19475
19138
|
export interface ManagedCellularProperties {
|
|
19476
19139
|
|
|
19477
19140
|
/**
|
|
@@ -19577,9 +19240,6 @@ declare namespace chrome {
|
|
|
19577
19240
|
SupportNetworkScan?: boolean;
|
|
19578
19241
|
}
|
|
19579
19242
|
|
|
19580
|
-
/**
|
|
19581
|
-
* @since Chrome 59
|
|
19582
|
-
*/
|
|
19583
19243
|
export interface CellularStateProperties {
|
|
19584
19244
|
|
|
19585
19245
|
/**
|
|
@@ -19608,9 +19268,6 @@ declare namespace chrome {
|
|
|
19608
19268
|
SignalStrength?: number;
|
|
19609
19269
|
}
|
|
19610
19270
|
|
|
19611
|
-
/**
|
|
19612
|
-
* @since Chrome 59
|
|
19613
|
-
*/
|
|
19614
19271
|
export interface EthernetProperties {
|
|
19615
19272
|
|
|
19616
19273
|
/**
|
|
@@ -19629,9 +19286,6 @@ declare namespace chrome {
|
|
|
19629
19286
|
EAP?: EAPProperties;
|
|
19630
19287
|
}
|
|
19631
19288
|
|
|
19632
|
-
/**
|
|
19633
|
-
* @since Chrome 59
|
|
19634
|
-
*/
|
|
19635
19289
|
export interface ManagedEthernetProperties {
|
|
19636
19290
|
|
|
19637
19291
|
/**
|
|
@@ -19645,9 +19299,6 @@ declare namespace chrome {
|
|
|
19645
19299
|
Authentication?: ManagedDOMString;
|
|
19646
19300
|
}
|
|
19647
19301
|
|
|
19648
|
-
/**
|
|
19649
|
-
* @since Chrome 59
|
|
19650
|
-
*/
|
|
19651
19302
|
export interface EthernetStateProperties {
|
|
19652
19303
|
|
|
19653
19304
|
/**
|
|
@@ -19656,9 +19307,6 @@ declare namespace chrome {
|
|
|
19656
19307
|
Authentication: string;
|
|
19657
19308
|
}
|
|
19658
19309
|
|
|
19659
|
-
/**
|
|
19660
|
-
* @since Chrome 59
|
|
19661
|
-
*/
|
|
19662
19310
|
export interface VPNProperties {
|
|
19663
19311
|
|
|
19664
19312
|
/**
|
|
@@ -19677,9 +19325,6 @@ declare namespace chrome {
|
|
|
19677
19325
|
Type?: string;
|
|
19678
19326
|
}
|
|
19679
19327
|
|
|
19680
|
-
/**
|
|
19681
|
-
* @since Chrome 59
|
|
19682
|
-
*/
|
|
19683
19328
|
export interface ManagedVPNProperties {
|
|
19684
19329
|
|
|
19685
19330
|
/**
|
|
@@ -19698,9 +19343,6 @@ declare namespace chrome {
|
|
|
19698
19343
|
Type?: ManagedDOMString;
|
|
19699
19344
|
}
|
|
19700
19345
|
|
|
19701
|
-
/**
|
|
19702
|
-
* @since Chrome 59
|
|
19703
|
-
*/
|
|
19704
19346
|
export interface VPNStateProperties {
|
|
19705
19347
|
|
|
19706
19348
|
/**
|
|
@@ -19709,9 +19351,6 @@ declare namespace chrome {
|
|
|
19709
19351
|
Type: string;
|
|
19710
19352
|
}
|
|
19711
19353
|
|
|
19712
|
-
/**
|
|
19713
|
-
* @since Chrome 59
|
|
19714
|
-
*/
|
|
19715
19354
|
export interface WiFiProperties {
|
|
19716
19355
|
|
|
19717
19356
|
/**
|
|
@@ -19782,9 +19421,6 @@ declare namespace chrome {
|
|
|
19782
19421
|
SignalStrength?: number;
|
|
19783
19422
|
}
|
|
19784
19423
|
|
|
19785
|
-
/**
|
|
19786
|
-
* @since Chrome 59
|
|
19787
|
-
*/
|
|
19788
19424
|
export interface ManagedWiFiProperties {
|
|
19789
19425
|
|
|
19790
19426
|
/**
|
|
@@ -19843,9 +19479,6 @@ declare namespace chrome {
|
|
|
19843
19479
|
SignalStrength?: number;
|
|
19844
19480
|
}
|
|
19845
19481
|
|
|
19846
|
-
/**
|
|
19847
|
-
* @since Chrome 59
|
|
19848
|
-
*/
|
|
19849
19482
|
export interface WiFiStateProperties {
|
|
19850
19483
|
|
|
19851
19484
|
/**
|
|
@@ -19883,9 +19516,6 @@ declare namespace chrome {
|
|
|
19883
19516
|
SSID?: string;
|
|
19884
19517
|
}
|
|
19885
19518
|
|
|
19886
|
-
/**
|
|
19887
|
-
* @since Chrome 59
|
|
19888
|
-
*/
|
|
19889
19519
|
export interface WiMAXProperties {
|
|
19890
19520
|
|
|
19891
19521
|
/**
|
|
@@ -19899,9 +19529,6 @@ declare namespace chrome {
|
|
|
19899
19529
|
EAP?: EAPProperties;
|
|
19900
19530
|
}
|
|
19901
19531
|
|
|
19902
|
-
/**
|
|
19903
|
-
* @since Chrome 59
|
|
19904
|
-
*/
|
|
19905
19532
|
export interface NetworkConfigProperties {
|
|
19906
19533
|
|
|
19907
19534
|
/**
|
|
@@ -19960,9 +19587,6 @@ declare namespace chrome {
|
|
|
19960
19587
|
WiMAX?: WiMAXProperties;
|
|
19961
19588
|
}
|
|
19962
19589
|
|
|
19963
|
-
/**
|
|
19964
|
-
* @since Chrome 59
|
|
19965
|
-
*/
|
|
19966
19590
|
export interface NetworkProperties {
|
|
19967
19591
|
|
|
19968
19592
|
/**
|
|
@@ -20081,9 +19705,6 @@ declare namespace chrome {
|
|
|
20081
19705
|
WiFi?: WiFiProperties;
|
|
20082
19706
|
}
|
|
20083
19707
|
|
|
20084
|
-
/**
|
|
20085
|
-
* @since Chrome 59
|
|
20086
|
-
*/
|
|
20087
19708
|
export interface ManagedProperties {
|
|
20088
19709
|
|
|
20089
19710
|
/**
|
|
@@ -20194,9 +19815,6 @@ declare namespace chrome {
|
|
|
20194
19815
|
WiFi?: ManagedWiFiProperties;
|
|
20195
19816
|
}
|
|
20196
19817
|
|
|
20197
|
-
/**
|
|
20198
|
-
* @since Chrome 59
|
|
20199
|
-
*/
|
|
20200
19818
|
export interface NetworkStateProperties {
|
|
20201
19819
|
|
|
20202
19820
|
/**
|
|
@@ -20260,9 +19878,6 @@ declare namespace chrome {
|
|
|
20260
19878
|
WiFi?: WiFiStateProperties;
|
|
20261
19879
|
}
|
|
20262
19880
|
|
|
20263
|
-
/**
|
|
20264
|
-
* @since Chrome 59
|
|
20265
|
-
*/
|
|
20266
19881
|
export interface DeviceStateProperties {
|
|
20267
19882
|
|
|
20268
19883
|
/**
|
|
@@ -20295,9 +19910,6 @@ declare namespace chrome {
|
|
|
20295
19910
|
Type: NetworkType;
|
|
20296
19911
|
}
|
|
20297
19912
|
|
|
20298
|
-
/**
|
|
20299
|
-
* @since Chrome 59
|
|
20300
|
-
*/
|
|
20301
19913
|
export interface NetworkFilter {
|
|
20302
19914
|
|
|
20303
19915
|
/**
|
|
@@ -20321,9 +19933,6 @@ declare namespace chrome {
|
|
|
20321
19933
|
limit?: number;
|
|
20322
19934
|
}
|
|
20323
19935
|
|
|
20324
|
-
/**
|
|
20325
|
-
* @since Chrome 59
|
|
20326
|
-
*/
|
|
20327
19936
|
export interface GlobalPolicy {
|
|
20328
19937
|
|
|
20329
19938
|
/**
|
|
@@ -20353,8 +19962,6 @@ declare namespace chrome {
|
|
|
20353
19962
|
|
|
20354
19963
|
/**
|
|
20355
19964
|
* Fired when the properties change on any of the networks. Sends a list of GUIDs for networks whose properties have changed.
|
|
20356
|
-
*
|
|
20357
|
-
* @since Chrome 59
|
|
20358
19965
|
*/
|
|
20359
19966
|
export const onNetworksChanged: events.Event<(
|
|
20360
19967
|
changes: string[],
|
|
@@ -20362,8 +19969,6 @@ declare namespace chrome {
|
|
|
20362
19969
|
|
|
20363
19970
|
/**
|
|
20364
19971
|
* Fired when the list of networks has changed. Sends a complete list of GUIDs for all the current networks.
|
|
20365
|
-
*
|
|
20366
|
-
* @since Chrome 59
|
|
20367
19972
|
*/
|
|
20368
19973
|
export const onNetworkListChanged: events.Event<(
|
|
20369
19974
|
changes: string[],
|
|
@@ -20371,15 +19976,11 @@ declare namespace chrome {
|
|
|
20371
19976
|
|
|
20372
19977
|
/**
|
|
20373
19978
|
* Fired when the list of devices has changed or any device state properties have changed.
|
|
20374
|
-
*
|
|
20375
|
-
* @since Chrome 59
|
|
20376
19979
|
*/
|
|
20377
19980
|
export const onDeviceStateListChanged: events.Event<() => void>;
|
|
20378
19981
|
|
|
20379
19982
|
/**
|
|
20380
19983
|
* Fired when a portal detection for a network completes. Sends the GUID of the network and the corresponding captive portal status.
|
|
20381
|
-
*
|
|
20382
|
-
* @since Chrome 59
|
|
20383
19984
|
*/
|
|
20384
19985
|
export const onPortalDetectionCompleted: events.Event<(
|
|
20385
19986
|
networkGuid: string,
|
|
@@ -20391,7 +19992,6 @@ declare namespace chrome {
|
|
|
20391
19992
|
*
|
|
20392
19993
|
* @param networkGuid The GUID of the network to get properties for.
|
|
20393
19994
|
* @param callback Called with the network properties when received.
|
|
20394
|
-
* @since Chrome 59
|
|
20395
19995
|
*/
|
|
20396
19996
|
export function getProperties(
|
|
20397
19997
|
|
|
@@ -20407,7 +20007,6 @@ declare namespace chrome {
|
|
|
20407
20007
|
*
|
|
20408
20008
|
* @param networkGuid The GUID of the network to get properties for.
|
|
20409
20009
|
* @param callback Called with the managed network properties when received.
|
|
20410
|
-
* @since Chrome 59
|
|
20411
20010
|
*/
|
|
20412
20011
|
export function getManagedProperties(
|
|
20413
20012
|
|
|
@@ -20423,7 +20022,6 @@ declare namespace chrome {
|
|
|
20423
20022
|
*
|
|
20424
20023
|
* @param networkGuid The GUID of the network to get properties for.
|
|
20425
20024
|
* @param callback Called immediately with the network state properties.
|
|
20426
|
-
* @since Chrome 59
|
|
20427
20025
|
*/
|
|
20428
20026
|
export function getState(
|
|
20429
20027
|
|
|
@@ -20440,7 +20038,6 @@ declare namespace chrome {
|
|
|
20440
20038
|
* @param networkGuid The GUID of the network to set properties for.
|
|
20441
20039
|
* @param properties The properties to set.
|
|
20442
20040
|
* @param callback Called when the operation has completed.
|
|
20443
|
-
* @since Chrome 59
|
|
20444
20041
|
*/
|
|
20445
20042
|
export function setProperties(
|
|
20446
20043
|
|
|
@@ -20461,7 +20058,6 @@ declare namespace chrome {
|
|
|
20461
20058
|
**This option is exposed only to Chrome's Web UI.** When called by apps, `false` is the only allowed value.
|
|
20462
20059
|
* @param properties The properties to configure the new network with.
|
|
20463
20060
|
* @param callback Called with the GUID for the new network configuration once the network has been created.
|
|
20464
|
-
* @since Chrome 59
|
|
20465
20061
|
*/
|
|
20466
20062
|
export function createNetwork(
|
|
20467
20063
|
|
|
@@ -20481,7 +20077,6 @@ declare namespace chrome {
|
|
|
20481
20077
|
*
|
|
20482
20078
|
* @param networkGuid The GUID of the network to forget.
|
|
20483
20079
|
* @param callback Called when the operation has completed.
|
|
20484
|
-
* @since Chrome 59
|
|
20485
20080
|
*/
|
|
20486
20081
|
export function forgetNetwork(
|
|
20487
20082
|
|
|
@@ -20495,7 +20090,6 @@ declare namespace chrome {
|
|
|
20495
20090
|
*
|
|
20496
20091
|
* @param filter Describes which networks to return.
|
|
20497
20092
|
* @param callback Called with a dictionary of networks and their state properties when received.
|
|
20498
|
-
* @since Chrome 59
|
|
20499
20093
|
*/
|
|
20500
20094
|
export function getNetworks(
|
|
20501
20095
|
|
|
@@ -20510,7 +20104,6 @@ declare namespace chrome {
|
|
|
20510
20104
|
* Returns states of available networking devices.
|
|
20511
20105
|
*
|
|
20512
20106
|
* @param callback Called with a list of devices and their state.
|
|
20513
|
-
* @since Chrome 59
|
|
20514
20107
|
*/
|
|
20515
20108
|
export function getDeviceStates(
|
|
20516
20109
|
|
|
@@ -20523,7 +20116,6 @@ declare namespace chrome {
|
|
|
20523
20116
|
* Enables any devices matching the specified network type. Note, the type might represent multiple network types (e.g. 'Wireless').
|
|
20524
20117
|
*
|
|
20525
20118
|
* @param networkType The type of network to enable.
|
|
20526
|
-
* @since Chrome 59
|
|
20527
20119
|
*/
|
|
20528
20120
|
export function enableNetworkType(
|
|
20529
20121
|
|
|
@@ -20534,7 +20126,6 @@ declare namespace chrome {
|
|
|
20534
20126
|
* Disables any devices matching the specified network type. See note for {@link enableNetworkType}.
|
|
20535
20127
|
*
|
|
20536
20128
|
* @param networkType The type of network to disable.
|
|
20537
|
-
* @since Chrome 59
|
|
20538
20129
|
*/
|
|
20539
20130
|
export function disableNetworkType(
|
|
20540
20131
|
|
|
@@ -20545,7 +20136,6 @@ declare namespace chrome {
|
|
|
20545
20136
|
* Requests that the networking subsystem scan for new networks and update the list returned by {@link getVisibleNetworks}. This is only a request: the network subsystem can choose to ignore it. If the list is updated, then the {@link onNetworkListChanged} event will be fired.
|
|
20546
20137
|
*
|
|
20547
20138
|
* @param networkType If provided, requests a scan specific to the type. For Cellular a mobile network scan will be requested if supported.
|
|
20548
|
-
* @since Chrome 59
|
|
20549
20139
|
*/
|
|
20550
20140
|
export function requestNetworkScan(
|
|
20551
20141
|
|
|
@@ -20560,7 +20150,6 @@ declare namespace chrome {
|
|
|
20560
20150
|
*
|
|
20561
20151
|
* @param networkGuid The GUID of the network to connect to.
|
|
20562
20152
|
* @param callback Called when the connect request has been sent. Note: the connection may not have completed. Observe {@link onNetworksChanged} to be notified when a network state changes. If the connect request immediately failed (e.g. the network is unconfigured), {@link runtime.lastError} will be set with a failure reason.
|
|
20563
|
-
* @since Chrome 59
|
|
20564
20153
|
*/
|
|
20565
20154
|
export function startConnect(
|
|
20566
20155
|
|
|
@@ -20574,7 +20163,6 @@ declare namespace chrome {
|
|
|
20574
20163
|
*
|
|
20575
20164
|
* @param networkGuid The GUID of the network to disconnect from.
|
|
20576
20165
|
* @param callback Called when the disconnect request has been sent. See note for {@link startConnect}.
|
|
20577
|
-
* @since Chrome 59
|
|
20578
20166
|
*/
|
|
20579
20167
|
export function startDisconnect(
|
|
20580
20168
|
|
|
@@ -20588,7 +20176,6 @@ declare namespace chrome {
|
|
|
20588
20176
|
*
|
|
20589
20177
|
* @param networkGuid The GUID of the network to get captive portal status for.
|
|
20590
20178
|
* @param callback A callback function that returns the results of the query for network captive portal status.
|
|
20591
|
-
* @since Chrome 59
|
|
20592
20179
|
*/
|
|
20593
20180
|
export function getCaptivePortalStatus(
|
|
20594
20181
|
|
|
@@ -20601,8 +20188,6 @@ declare namespace chrome {
|
|
|
20601
20188
|
|
|
20602
20189
|
/**
|
|
20603
20190
|
* Gets the global policy properties. These properties are not expected to change during a session.
|
|
20604
|
-
*
|
|
20605
|
-
* @since Chrome 59
|
|
20606
20191
|
*/
|
|
20607
20192
|
export function getGlobalPolicy(
|
|
20608
20193
|
|
|
@@ -20615,7 +20200,6 @@ declare namespace chrome {
|
|
|
20615
20200
|
/**
|
|
20616
20201
|
* Use the `chrome.notifications` API to create rich notifications using templates and show these notifications to users in the system tray.
|
|
20617
20202
|
*
|
|
20618
|
-
* @since Pending
|
|
20619
20203
|
* @chrome-permission notifications
|
|
20620
20204
|
*/
|
|
20621
20205
|
export namespace notifications {
|
|
@@ -20906,13 +20490,10 @@ declare namespace chrome {
|
|
|
20906
20490
|
/**
|
|
20907
20491
|
* Stub namespace for the "oauth2" manifest key.
|
|
20908
20492
|
*
|
|
20909
|
-
* @since
|
|
20493
|
+
* @since Chrome 93
|
|
20910
20494
|
*/
|
|
20911
20495
|
export namespace oauth2 {
|
|
20912
20496
|
|
|
20913
|
-
/**
|
|
20914
|
-
* @since Chrome 93
|
|
20915
|
-
*/
|
|
20916
20497
|
export interface OAuth2Info {
|
|
20917
20498
|
|
|
20918
20499
|
/**
|
|
@@ -20930,7 +20511,6 @@ declare namespace chrome {
|
|
|
20930
20511
|
/**
|
|
20931
20512
|
* The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.
|
|
20932
20513
|
*
|
|
20933
|
-
* @since Pending
|
|
20934
20514
|
* @chrome-manifest omnibox
|
|
20935
20515
|
*/
|
|
20936
20516
|
export namespace omnibox {
|
|
@@ -21037,7 +20617,6 @@ declare namespace chrome {
|
|
|
21037
20617
|
/**
|
|
21038
20618
|
* Use the `chrome.pageAction` API to put icons in the main Google Chrome toolbar, to the right of the address bar. Page actions represent actions that can be taken on the current page, but that aren't applicable to all pages. Page actions appear grayed out when inactive.
|
|
21039
20619
|
*
|
|
21040
|
-
* @since Pending
|
|
21041
20620
|
* @chrome-manifest page_action
|
|
21042
20621
|
* @chrome-max-manifest MV2
|
|
21043
20622
|
*/
|
|
@@ -21203,7 +20782,6 @@ declare namespace chrome {
|
|
|
21203
20782
|
/**
|
|
21204
20783
|
* Use the `chrome.pageCapture` API to save a tab as MHTML.
|
|
21205
20784
|
*
|
|
21206
|
-
* @since Pending
|
|
21207
20785
|
* @chrome-permission pageCapture
|
|
21208
20786
|
*/
|
|
21209
20787
|
export namespace pageCapture {
|
|
@@ -21234,8 +20812,6 @@ declare namespace chrome {
|
|
|
21234
20812
|
|
|
21235
20813
|
/**
|
|
21236
20814
|
* 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.
|
|
21237
|
-
*
|
|
21238
|
-
* @since Pending
|
|
21239
20815
|
*/
|
|
21240
20816
|
export namespace permissions {
|
|
21241
20817
|
|
|
@@ -21365,7 +20941,7 @@ declare namespace chrome {
|
|
|
21365
20941
|
/**
|
|
21366
20942
|
* 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}).
|
|
21367
20943
|
*
|
|
21368
|
-
* @since
|
|
20944
|
+
* @since Chrome 45
|
|
21369
20945
|
* @chrome-permission platformKeys
|
|
21370
20946
|
* @chrome-disallow-service-workers
|
|
21371
20947
|
* @chrome-platform chromeos
|
|
@@ -21373,9 +20949,6 @@ declare namespace chrome {
|
|
|
21373
20949
|
*/
|
|
21374
20950
|
export namespace platformKeys {
|
|
21375
20951
|
|
|
21376
|
-
/**
|
|
21377
|
-
* @since Chrome 45
|
|
21378
|
-
*/
|
|
21379
20952
|
export interface Match {
|
|
21380
20953
|
|
|
21381
20954
|
/**
|
|
@@ -21389,14 +20962,8 @@ declare namespace chrome {
|
|
|
21389
20962
|
keyAlgorithm: {[name: string]: any};
|
|
21390
20963
|
}
|
|
21391
20964
|
|
|
21392
|
-
/**
|
|
21393
|
-
* @since Chrome 45
|
|
21394
|
-
*/
|
|
21395
20965
|
export type ClientCertificateType = "rsaSign" | "ecdsaSign";
|
|
21396
20966
|
|
|
21397
|
-
/**
|
|
21398
|
-
* @since Chrome 45
|
|
21399
|
-
*/
|
|
21400
20967
|
export interface ClientCertificateRequest {
|
|
21401
20968
|
|
|
21402
20969
|
/**
|
|
@@ -21410,9 +20977,6 @@ declare namespace chrome {
|
|
|
21410
20977
|
certificateAuthorities: ArrayBuffer[];
|
|
21411
20978
|
}
|
|
21412
20979
|
|
|
21413
|
-
/**
|
|
21414
|
-
* @since Chrome 45
|
|
21415
|
-
*/
|
|
21416
20980
|
export interface SelectDetails {
|
|
21417
20981
|
|
|
21418
20982
|
/**
|
|
@@ -21431,9 +20995,6 @@ declare namespace chrome {
|
|
|
21431
20995
|
interactive: boolean;
|
|
21432
20996
|
}
|
|
21433
20997
|
|
|
21434
|
-
/**
|
|
21435
|
-
* @since Chrome 45
|
|
21436
|
-
*/
|
|
21437
20998
|
export interface VerificationDetails {
|
|
21438
20999
|
|
|
21439
21000
|
/**
|
|
@@ -21447,9 +21008,6 @@ declare namespace chrome {
|
|
|
21447
21008
|
hostname: string;
|
|
21448
21009
|
}
|
|
21449
21010
|
|
|
21450
|
-
/**
|
|
21451
|
-
* @since Chrome 45
|
|
21452
|
-
*/
|
|
21453
21011
|
export interface VerificationResult {
|
|
21454
21012
|
|
|
21455
21013
|
/**
|
|
@@ -21467,8 +21025,6 @@ declare namespace chrome {
|
|
|
21467
21025
|
|
|
21468
21026
|
/**
|
|
21469
21027
|
* 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`.
|
|
21470
|
-
*
|
|
21471
|
-
* @since Chrome 45
|
|
21472
21028
|
*/
|
|
21473
21029
|
export function selectClientCertificates(
|
|
21474
21030
|
|
|
@@ -21490,7 +21046,6 @@ declare namespace chrome {
|
|
|
21490
21046
|
|
|
21491
21047
|
Currently, this method only supports the "RSASSA-PKCS1-v1\_5" and "ECDSA" algorithms.
|
|
21492
21048
|
* @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}.
|
|
21493
|
-
* @since Chrome 45
|
|
21494
21049
|
*/
|
|
21495
21050
|
export function getKeyPair(
|
|
21496
21051
|
|
|
@@ -21534,15 +21089,11 @@ declare namespace chrome {
|
|
|
21534
21089
|
|
|
21535
21090
|
/**
|
|
21536
21091
|
* 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.
|
|
21537
|
-
*
|
|
21538
|
-
* @since Chrome 45
|
|
21539
21092
|
*/
|
|
21540
21093
|
export function subtleCrypto(): {[name: string]: any} | undefined;
|
|
21541
21094
|
|
|
21542
21095
|
/**
|
|
21543
21096
|
* 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.
|
|
21544
|
-
*
|
|
21545
|
-
* @since Chrome 45
|
|
21546
21097
|
*/
|
|
21547
21098
|
export function verifyTLSServerCertificate(
|
|
21548
21099
|
|
|
@@ -21557,7 +21108,6 @@ declare namespace chrome {
|
|
|
21557
21108
|
/**
|
|
21558
21109
|
* Use the `chrome.power` API to override the system's power management features.
|
|
21559
21110
|
*
|
|
21560
|
-
* @since Pending
|
|
21561
21111
|
* @chrome-permission power
|
|
21562
21112
|
*/
|
|
21563
21113
|
export namespace power {
|
|
@@ -21585,7 +21135,7 @@ declare namespace chrome {
|
|
|
21585
21135
|
/**
|
|
21586
21136
|
* 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.
|
|
21587
21137
|
*
|
|
21588
|
-
* @since
|
|
21138
|
+
* @since Chrome 44
|
|
21589
21139
|
* @chrome-permission printerProvider
|
|
21590
21140
|
*/
|
|
21591
21141
|
export namespace printerProvider {
|
|
@@ -21597,13 +21147,9 @@ declare namespace chrome {
|
|
|
21597
21147
|
* @chrome-enum "FAILED" General failure.
|
|
21598
21148
|
* @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.
|
|
21599
21149
|
* @chrome-enum "INVALID\_DATA" Document is invalid. For example, data may be corrupted or the format is incompatible with the extension.
|
|
21600
|
-
* @since Chrome 44
|
|
21601
21150
|
*/
|
|
21602
21151
|
export type PrintError = "OK" | "FAILED" | "INVALID_TICKET" | "INVALID_DATA";
|
|
21603
21152
|
|
|
21604
|
-
/**
|
|
21605
|
-
* @since Chrome 44
|
|
21606
|
-
*/
|
|
21607
21153
|
export interface PrinterInfo {
|
|
21608
21154
|
|
|
21609
21155
|
/**
|
|
@@ -21622,9 +21168,6 @@ declare namespace chrome {
|
|
|
21622
21168
|
description?: string;
|
|
21623
21169
|
}
|
|
21624
21170
|
|
|
21625
|
-
/**
|
|
21626
|
-
* @since Chrome 44
|
|
21627
|
-
*/
|
|
21628
21171
|
export interface PrintJob {
|
|
21629
21172
|
|
|
21630
21173
|
/**
|
|
@@ -21655,8 +21198,6 @@ declare namespace chrome {
|
|
|
21655
21198
|
|
|
21656
21199
|
/**
|
|
21657
21200
|
* Event fired when print manager requests printers provided by extensions.
|
|
21658
|
-
*
|
|
21659
|
-
* @since Chrome 44
|
|
21660
21201
|
*/
|
|
21661
21202
|
export const onGetPrintersRequested: events.Event<(
|
|
21662
21203
|
resultCallback: (
|
|
@@ -21680,8 +21221,6 @@ declare namespace chrome {
|
|
|
21680
21221
|
|
|
21681
21222
|
/**
|
|
21682
21223
|
* Event fired when print manager requests printer capabilities.
|
|
21683
|
-
*
|
|
21684
|
-
* @since Chrome 44
|
|
21685
21224
|
*/
|
|
21686
21225
|
export const onGetCapabilityRequested: events.Event<(
|
|
21687
21226
|
printerId: string,
|
|
@@ -21695,8 +21234,6 @@ declare namespace chrome {
|
|
|
21695
21234
|
|
|
21696
21235
|
/**
|
|
21697
21236
|
* Event fired when print manager requests printing.
|
|
21698
|
-
*
|
|
21699
|
-
* @since Chrome 44
|
|
21700
21237
|
*/
|
|
21701
21238
|
export const onPrintRequested: events.Event<(
|
|
21702
21239
|
printJob: PrintJob,
|
|
@@ -21709,16 +21246,13 @@ declare namespace chrome {
|
|
|
21709
21246
|
/**
|
|
21710
21247
|
* Use the `chrome.printing` API to send print jobs to printers installed on Chromebook.
|
|
21711
21248
|
*
|
|
21712
|
-
* @since
|
|
21249
|
+
* @since Chrome 81
|
|
21713
21250
|
* @chrome-permission printing
|
|
21714
21251
|
* @chrome-platform chromeos
|
|
21715
21252
|
* @chrome-platform lacros
|
|
21716
21253
|
*/
|
|
21717
21254
|
export namespace printing {
|
|
21718
21255
|
|
|
21719
|
-
/**
|
|
21720
|
-
* @since Chrome 81
|
|
21721
|
-
*/
|
|
21722
21256
|
export interface SubmitJobRequest {
|
|
21723
21257
|
|
|
21724
21258
|
/**
|
|
@@ -21732,13 +21266,9 @@ declare namespace chrome {
|
|
|
21732
21266
|
*
|
|
21733
21267
|
* @chrome-enum "OK" Sent print job request is accepted.
|
|
21734
21268
|
* @chrome-enum "USER\_REJECTED" Sent print job request is rejected by the user.
|
|
21735
|
-
* @since Chrome 81
|
|
21736
21269
|
*/
|
|
21737
21270
|
export type SubmitJobStatus = "OK" | "USER_REJECTED";
|
|
21738
21271
|
|
|
21739
|
-
/**
|
|
21740
|
-
* @since Chrome 81
|
|
21741
|
-
*/
|
|
21742
21272
|
export interface SubmitJobResponse {
|
|
21743
21273
|
|
|
21744
21274
|
/**
|
|
@@ -21757,13 +21287,9 @@ declare namespace chrome {
|
|
|
21757
21287
|
*
|
|
21758
21288
|
* @chrome-enum "USER" Printer was added by user.
|
|
21759
21289
|
* @chrome-enum "POLICY" Printer was added via policy.
|
|
21760
|
-
* @since Chrome 81
|
|
21761
21290
|
*/
|
|
21762
21291
|
export type PrinterSource = "USER" | "POLICY";
|
|
21763
21292
|
|
|
21764
|
-
/**
|
|
21765
|
-
* @since Chrome 81
|
|
21766
|
-
*/
|
|
21767
21293
|
export interface Printer {
|
|
21768
21294
|
|
|
21769
21295
|
/**
|
|
@@ -21815,13 +21341,9 @@ declare namespace chrome {
|
|
|
21815
21341
|
* @chrome-enum "STOPPED" The printer is stopped and doesn't print but still accepts print jobs.
|
|
21816
21342
|
* @chrome-enum "UNREACHABLE" The printer is unreachable and doesn't accept print jobs.
|
|
21817
21343
|
* @chrome-enum "AVAILABLE" The printer is available.
|
|
21818
|
-
* @since Chrome 81
|
|
21819
21344
|
*/
|
|
21820
21345
|
export type PrinterStatus = "DOOR_OPEN" | "TRAY_MISSING" | "OUT_OF_INK" | "OUT_OF_PAPER" | "OUTPUT_FULL" | "PAPER_JAM" | "GENERIC_ISSUE" | "STOPPED" | "UNREACHABLE" | "AVAILABLE";
|
|
21821
21346
|
|
|
21822
|
-
/**
|
|
21823
|
-
* @since Chrome 81
|
|
21824
|
-
*/
|
|
21825
21347
|
export interface GetPrinterInfoResponse {
|
|
21826
21348
|
|
|
21827
21349
|
/**
|
|
@@ -21843,28 +21365,21 @@ declare namespace chrome {
|
|
|
21843
21365
|
* @chrome-enum "FAILED" Print job was interrupted due to some error.
|
|
21844
21366
|
* @chrome-enum "CANCELED" Print job was canceled by the user or via API.
|
|
21845
21367
|
* @chrome-enum "PRINTED" Print job was printed without any errors.
|
|
21846
|
-
* @since Chrome 81
|
|
21847
21368
|
*/
|
|
21848
21369
|
export type JobStatus = "PENDING" | "IN_PROGRESS" | "FAILED" | "CANCELED" | "PRINTED";
|
|
21849
21370
|
|
|
21850
21371
|
/**
|
|
21851
21372
|
* The maximum number of times that {@link submitJob} can be called per minute.
|
|
21852
|
-
*
|
|
21853
|
-
* @since Chrome 81
|
|
21854
21373
|
*/
|
|
21855
21374
|
export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE: 20;
|
|
21856
21375
|
|
|
21857
21376
|
/**
|
|
21858
21377
|
* The maximum number of times that {@link getPrinterInfo} can be called per minute.
|
|
21859
|
-
*
|
|
21860
|
-
* @since Chrome 81
|
|
21861
21378
|
*/
|
|
21862
21379
|
export const MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE: 20;
|
|
21863
21380
|
|
|
21864
21381
|
/**
|
|
21865
21382
|
* Event fired when the status of the job is changed. This is only fired for the jobs created by this extension.
|
|
21866
|
-
*
|
|
21867
|
-
* @since Chrome 81
|
|
21868
21383
|
*/
|
|
21869
21384
|
export const onJobStatusChanged: events.Event<(
|
|
21870
21385
|
jobId: string,
|
|
@@ -21873,8 +21388,6 @@ declare namespace chrome {
|
|
|
21873
21388
|
|
|
21874
21389
|
/**
|
|
21875
21390
|
* Submits the job for print. If the extension is not listed in PrintingAPIExtensionsAllowlist policy, the user will be prompted to accept the print job.
|
|
21876
|
-
*
|
|
21877
|
-
* @since Chrome 81
|
|
21878
21391
|
*/
|
|
21879
21392
|
export function submitJob(
|
|
21880
21393
|
|
|
@@ -21889,7 +21402,6 @@ declare namespace chrome {
|
|
|
21889
21402
|
* Cancels previously submitted job.
|
|
21890
21403
|
*
|
|
21891
21404
|
* @param jobId The id of the print job to cancel. This should be the same id received in a {@link SubmitJobResponse}.
|
|
21892
|
-
* @since Chrome 81
|
|
21893
21405
|
*/
|
|
21894
21406
|
export function cancelJob(
|
|
21895
21407
|
|
|
@@ -21900,8 +21412,6 @@ declare namespace chrome {
|
|
|
21900
21412
|
|
|
21901
21413
|
/**
|
|
21902
21414
|
* Returns the list of available printers on the device. This includes manually added, enterprise and discovered printers.
|
|
21903
|
-
*
|
|
21904
|
-
* @since Chrome 81
|
|
21905
21415
|
*/
|
|
21906
21416
|
export function getPrinters(
|
|
21907
21417
|
|
|
@@ -21912,8 +21422,6 @@ declare namespace chrome {
|
|
|
21912
21422
|
|
|
21913
21423
|
/**
|
|
21914
21424
|
* 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.
|
|
21915
|
-
*
|
|
21916
|
-
* @since Chrome 81
|
|
21917
21425
|
*/
|
|
21918
21426
|
export function getPrinterInfo(
|
|
21919
21427
|
|
|
@@ -21928,7 +21436,7 @@ declare namespace chrome {
|
|
|
21928
21436
|
/**
|
|
21929
21437
|
* Use the `chrome.printingMetrics` API to fetch data about printing usage.
|
|
21930
21438
|
*
|
|
21931
|
-
* @since
|
|
21439
|
+
* @since Chrome 79
|
|
21932
21440
|
* @chrome-permission printingMetrics
|
|
21933
21441
|
* @chrome-platform chromeos
|
|
21934
21442
|
*/
|
|
@@ -21940,7 +21448,6 @@ declare namespace chrome {
|
|
|
21940
21448
|
* @chrome-enum "PRINT\_PREVIEW" The job was created from the Print Preview page initiated by the user.
|
|
21941
21449
|
* @chrome-enum "ANDROID\_APP" The job was created from an Android App.
|
|
21942
21450
|
* @chrome-enum "EXTENSION" The job was created by extension via Chrome API.
|
|
21943
|
-
* @since Chrome 79
|
|
21944
21451
|
*/
|
|
21945
21452
|
export type PrintJobSource = "PRINT_PREVIEW" | "ANDROID_APP" | "EXTENSION";
|
|
21946
21453
|
|
|
@@ -21950,7 +21457,6 @@ declare namespace chrome {
|
|
|
21950
21457
|
* @chrome-enum "FAILED" Print job was interrupted due to some error.
|
|
21951
21458
|
* @chrome-enum "CANCELED" Print job was canceled by the user or via API.
|
|
21952
21459
|
* @chrome-enum "PRINTED" Print job was printed without any errors.
|
|
21953
|
-
* @since Chrome 79
|
|
21954
21460
|
*/
|
|
21955
21461
|
export type PrintJobStatus = "FAILED" | "CANCELED" | "PRINTED";
|
|
21956
21462
|
|
|
@@ -21959,14 +21465,12 @@ declare namespace chrome {
|
|
|
21959
21465
|
*
|
|
21960
21466
|
* @chrome-enum "USER" Printer was added by user.
|
|
21961
21467
|
* @chrome-enum "POLICY" Printer was added via policy.
|
|
21962
|
-
* @since Chrome 79
|
|
21963
21468
|
*/
|
|
21964
21469
|
export type PrinterSource = "USER" | "POLICY";
|
|
21965
21470
|
|
|
21966
21471
|
/**
|
|
21967
21472
|
* @chrome-enum "BLACK\_AND\_WHITE" Black and white mode was used.
|
|
21968
21473
|
* @chrome-enum "COLOR" Color mode was used.
|
|
21969
|
-
* @since Chrome 79
|
|
21970
21474
|
*/
|
|
21971
21475
|
export type ColorMode = "BLACK_AND_WHITE" | "COLOR";
|
|
21972
21476
|
|
|
@@ -21974,13 +21478,9 @@ declare namespace chrome {
|
|
|
21974
21478
|
* @chrome-enum "ONE\_SIDED" One-sided printing was used.
|
|
21975
21479
|
* @chrome-enum "TWO\_SIDED\_LONG\_EDGE" Two-sided printing was used, flipping on long edge.
|
|
21976
21480
|
* @chrome-enum "TWO\_SIDED\_SHORT\_EDGE" Two-sided printing was used, flipping on short edge.
|
|
21977
|
-
* @since Chrome 79
|
|
21978
21481
|
*/
|
|
21979
21482
|
export type DuplexMode = "ONE_SIDED" | "TWO_SIDED_LONG_EDGE" | "TWO_SIDED_SHORT_EDGE";
|
|
21980
21483
|
|
|
21981
|
-
/**
|
|
21982
|
-
* @since Chrome 79
|
|
21983
|
-
*/
|
|
21984
21484
|
export interface MediaSize {
|
|
21985
21485
|
|
|
21986
21486
|
/**
|
|
@@ -21999,9 +21499,6 @@ declare namespace chrome {
|
|
|
21999
21499
|
vendorId: string;
|
|
22000
21500
|
}
|
|
22001
21501
|
|
|
22002
|
-
/**
|
|
22003
|
-
* @since Chrome 79
|
|
22004
|
-
*/
|
|
22005
21502
|
export interface PrintSettings {
|
|
22006
21503
|
|
|
22007
21504
|
/**
|
|
@@ -22025,9 +21522,6 @@ declare namespace chrome {
|
|
|
22025
21522
|
copies: number;
|
|
22026
21523
|
}
|
|
22027
21524
|
|
|
22028
|
-
/**
|
|
22029
|
-
* @since Chrome 79
|
|
22030
|
-
*/
|
|
22031
21525
|
export interface Printer {
|
|
22032
21526
|
|
|
22033
21527
|
/**
|
|
@@ -22046,9 +21540,6 @@ declare namespace chrome {
|
|
|
22046
21540
|
source: PrinterSource;
|
|
22047
21541
|
}
|
|
22048
21542
|
|
|
22049
|
-
/**
|
|
22050
|
-
* @since Chrome 79
|
|
22051
|
-
*/
|
|
22052
21543
|
export interface PrintJobInfo {
|
|
22053
21544
|
|
|
22054
21545
|
/**
|
|
@@ -22111,8 +21602,6 @@ declare namespace chrome {
|
|
|
22111
21602
|
|
|
22112
21603
|
/**
|
|
22113
21604
|
* Event fired when the print job is finished. This includes any of termination statuses: FAILED, CANCELED and PRINTED.
|
|
22114
|
-
*
|
|
22115
|
-
* @since Chrome 79
|
|
22116
21605
|
*/
|
|
22117
21606
|
export const onPrintJobFinished: events.Event<(
|
|
22118
21607
|
jobInfo: PrintJobInfo,
|
|
@@ -22122,14 +21611,11 @@ declare namespace chrome {
|
|
|
22122
21611
|
* Returns the list of the finished print jobs.
|
|
22123
21612
|
*
|
|
22124
21613
|
* @chrome-returns-extra since Pending
|
|
22125
|
-
* @since Chrome 79
|
|
22126
21614
|
*/
|
|
22127
21615
|
export function getPrintJobs(): Promise<PrintJobInfo[]>;
|
|
22128
21616
|
|
|
22129
21617
|
/**
|
|
22130
21618
|
* Returns the list of the finished print jobs.
|
|
22131
|
-
*
|
|
22132
|
-
* @since Chrome 79
|
|
22133
21619
|
*/
|
|
22134
21620
|
export function getPrintJobs(
|
|
22135
21621
|
|
|
@@ -22142,7 +21628,6 @@ declare namespace chrome {
|
|
|
22142
21628
|
/**
|
|
22143
21629
|
* 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.
|
|
22144
21630
|
*
|
|
22145
|
-
* @since Pending
|
|
22146
21631
|
* @chrome-permission privacy
|
|
22147
21632
|
*/
|
|
22148
21633
|
export namespace privacy {
|
|
@@ -22525,7 +22010,6 @@ declare namespace chrome {
|
|
|
22525
22010
|
/**
|
|
22526
22011
|
* 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.
|
|
22527
22012
|
*
|
|
22528
|
-
* @since Pending
|
|
22529
22013
|
* @chrome-permission proxy
|
|
22530
22014
|
*/
|
|
22531
22015
|
export namespace proxy {
|
|
@@ -22674,8 +22158,6 @@ declare namespace chrome {
|
|
|
22674
22158
|
|
|
22675
22159
|
/**
|
|
22676
22160
|
* 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.
|
|
22677
|
-
*
|
|
22678
|
-
* @since Pending
|
|
22679
22161
|
*/
|
|
22680
22162
|
export namespace runtime {
|
|
22681
22163
|
|
|
@@ -22908,7 +22390,6 @@ declare namespace chrome {
|
|
|
22908
22390
|
* Fired when a Chrome update is available, but isn't installed immediately because a browser restart is required.
|
|
22909
22391
|
*
|
|
22910
22392
|
* @deprecated Please use {@link runtime.onRestartRequired}.
|
|
22911
|
-
* @chrome-deprecated-since Pending
|
|
22912
22393
|
*/
|
|
22913
22394
|
export const onBrowserUpdateAvailable: events.Event<() => void>;
|
|
22914
22395
|
|
|
@@ -23209,7 +22690,7 @@ declare namespace chrome {
|
|
|
23209
22690
|
/**
|
|
23210
22691
|
* Use the `chrome.scripting` API to execute script in different contexts.
|
|
23211
22692
|
*
|
|
23212
|
-
* @since
|
|
22693
|
+
* @since Chrome 88
|
|
23213
22694
|
* @chrome-permission scripting
|
|
23214
22695
|
* @chrome-min-manifest MV3
|
|
23215
22696
|
*/
|
|
@@ -23217,8 +22698,6 @@ declare namespace chrome {
|
|
|
23217
22698
|
|
|
23218
22699
|
/**
|
|
23219
22700
|
* The origin for a style change. See [style origins](https://developer.mozilla.org/en-US/docs/Glossary/Style_origin) for more info.
|
|
23220
|
-
*
|
|
23221
|
-
* @since Chrome 88
|
|
23222
22701
|
*/
|
|
23223
22702
|
export type StyleOrigin = "AUTHOR" | "USER";
|
|
23224
22703
|
|
|
@@ -23231,9 +22710,6 @@ declare namespace chrome {
|
|
|
23231
22710
|
*/
|
|
23232
22711
|
export type ExecutionWorld = "ISOLATED" | "MAIN";
|
|
23233
22712
|
|
|
23234
|
-
/**
|
|
23235
|
-
* @since Chrome 88
|
|
23236
|
-
*/
|
|
23237
22713
|
export interface InjectionTarget {
|
|
23238
22714
|
|
|
23239
22715
|
/**
|
|
@@ -23252,9 +22728,6 @@ declare namespace chrome {
|
|
|
23252
22728
|
allFrames?: boolean;
|
|
23253
22729
|
}
|
|
23254
22730
|
|
|
23255
|
-
/**
|
|
23256
|
-
* @since Chrome 88
|
|
23257
|
-
*/
|
|
23258
22731
|
export interface ScriptInjection {
|
|
23259
22732
|
|
|
23260
22733
|
/**
|
|
@@ -23272,7 +22745,7 @@ declare namespace chrome {
|
|
|
23272
22745
|
args?: any[];
|
|
23273
22746
|
|
|
23274
22747
|
/**
|
|
23275
|
-
* The path of the JS or CSS files to inject, relative to the extension's root directory.
|
|
22748
|
+
* 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.
|
|
23276
22749
|
*/
|
|
23277
22750
|
files?: string[];
|
|
23278
22751
|
|
|
@@ -23289,9 +22762,6 @@ declare namespace chrome {
|
|
|
23289
22762
|
world?: ExecutionWorld;
|
|
23290
22763
|
}
|
|
23291
22764
|
|
|
23292
|
-
/**
|
|
23293
|
-
* @since Chrome 88
|
|
23294
|
-
*/
|
|
23295
22765
|
export interface CSSInjection {
|
|
23296
22766
|
|
|
23297
22767
|
/**
|
|
@@ -23305,7 +22775,7 @@ declare namespace chrome {
|
|
|
23305
22775
|
css?: string;
|
|
23306
22776
|
|
|
23307
22777
|
/**
|
|
23308
|
-
* The path of the CSS files to inject, relative to the extension's root directory.
|
|
22778
|
+
* The path of the CSS files to inject, relative to the extension's root directory. Exactly one of `files` and `css` must be specified.
|
|
23309
22779
|
*/
|
|
23310
22780
|
files?: string[];
|
|
23311
22781
|
|
|
@@ -23315,9 +22785,6 @@ declare namespace chrome {
|
|
|
23315
22785
|
origin?: StyleOrigin;
|
|
23316
22786
|
}
|
|
23317
22787
|
|
|
23318
|
-
/**
|
|
23319
|
-
* @since Chrome 88
|
|
23320
|
-
*/
|
|
23321
22788
|
export interface InjectionResult {
|
|
23322
22789
|
|
|
23323
22790
|
/**
|
|
@@ -23333,6 +22800,9 @@ declare namespace chrome {
|
|
|
23333
22800
|
frameId: number;
|
|
23334
22801
|
}
|
|
23335
22802
|
|
|
22803
|
+
/**
|
|
22804
|
+
* @since Pending
|
|
22805
|
+
*/
|
|
23336
22806
|
export interface RegisteredContentScript {
|
|
23337
22807
|
|
|
23338
22808
|
/**
|
|
@@ -23376,6 +22846,9 @@ declare namespace chrome {
|
|
|
23376
22846
|
persistAcrossSessions?: boolean;
|
|
23377
22847
|
}
|
|
23378
22848
|
|
|
22849
|
+
/**
|
|
22850
|
+
* @since Pending
|
|
22851
|
+
*/
|
|
23379
22852
|
export interface ContentScriptFilter {
|
|
23380
22853
|
|
|
23381
22854
|
/**
|
|
@@ -23389,7 +22862,6 @@ declare namespace chrome {
|
|
|
23389
22862
|
*
|
|
23390
22863
|
* @chrome-returns-extra since Pending
|
|
23391
22864
|
* @param injection The details of the script which to inject.
|
|
23392
|
-
* @since Chrome 88
|
|
23393
22865
|
*/
|
|
23394
22866
|
export function executeScript(
|
|
23395
22867
|
|
|
@@ -23401,7 +22873,6 @@ declare namespace chrome {
|
|
|
23401
22873
|
*
|
|
23402
22874
|
* @param injection The details of the script which to inject.
|
|
23403
22875
|
* @param callback Invoked upon completion of the injection. The resulting array contains the result of execution for each frame where the injection succeeded.
|
|
23404
|
-
* @since Chrome 88
|
|
23405
22876
|
*/
|
|
23406
22877
|
export function executeScript(
|
|
23407
22878
|
|
|
@@ -23417,7 +22888,6 @@ declare namespace chrome {
|
|
|
23417
22888
|
*
|
|
23418
22889
|
* @chrome-returns-extra since Pending
|
|
23419
22890
|
* @param injection The details of the styles to insert.
|
|
23420
|
-
* @since Chrome 88
|
|
23421
22891
|
*/
|
|
23422
22892
|
export function insertCSS(
|
|
23423
22893
|
|
|
@@ -23429,7 +22899,6 @@ declare namespace chrome {
|
|
|
23429
22899
|
*
|
|
23430
22900
|
* @param injection The details of the styles to insert.
|
|
23431
22901
|
* @param callback Invoked upon completion of the insertion.
|
|
23432
|
-
* @since Chrome 88
|
|
23433
22902
|
*/
|
|
23434
22903
|
export function insertCSS(
|
|
23435
22904
|
|
|
@@ -23468,6 +22937,7 @@ declare namespace chrome {
|
|
|
23468
22937
|
* Registers one or more content scripts for this extension.
|
|
23469
22938
|
*
|
|
23470
22939
|
* @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.
|
|
22940
|
+
* @since Pending
|
|
23471
22941
|
*/
|
|
23472
22942
|
export function registerContentScripts(
|
|
23473
22943
|
|
|
@@ -23479,6 +22949,7 @@ declare namespace chrome {
|
|
|
23479
22949
|
*
|
|
23480
22950
|
* @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.
|
|
23481
22951
|
* @param callback A callback to be invoked once scripts have been fully registered or if an error has occurred.
|
|
22952
|
+
* @since Pending
|
|
23482
22953
|
*/
|
|
23483
22954
|
export function registerContentScripts(
|
|
23484
22955
|
|
|
@@ -23491,6 +22962,7 @@ declare namespace chrome {
|
|
|
23491
22962
|
* Returns all dynamically registered content scripts for this extension that match the given filter.
|
|
23492
22963
|
*
|
|
23493
22964
|
* @param filter An object to filter the extension's dynamically registered scripts.
|
|
22965
|
+
* @since Pending
|
|
23494
22966
|
*/
|
|
23495
22967
|
export function getRegisteredContentScripts(
|
|
23496
22968
|
|
|
@@ -23501,6 +22973,7 @@ declare namespace chrome {
|
|
|
23501
22973
|
* Returns all dynamically registered content scripts for this extension that match the given filter.
|
|
23502
22974
|
*
|
|
23503
22975
|
* @param filter An object to filter the extension's dynamically registered scripts.
|
|
22976
|
+
* @since Pending
|
|
23504
22977
|
*/
|
|
23505
22978
|
export function getRegisteredContentScripts(
|
|
23506
22979
|
|
|
@@ -23515,6 +22988,7 @@ declare namespace chrome {
|
|
|
23515
22988
|
* Unregisters content scripts for this extension.
|
|
23516
22989
|
*
|
|
23517
22990
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
22991
|
+
* @since Pending
|
|
23518
22992
|
*/
|
|
23519
22993
|
export function unregisterContentScripts(
|
|
23520
22994
|
|
|
@@ -23526,6 +23000,7 @@ declare namespace chrome {
|
|
|
23526
23000
|
*
|
|
23527
23001
|
* @param filter If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered.
|
|
23528
23002
|
* @param callback A callback to be invoked once scripts have been unregistered or if an error has occurred.
|
|
23003
|
+
* @since Pending
|
|
23529
23004
|
*/
|
|
23530
23005
|
export function unregisterContentScripts(
|
|
23531
23006
|
|
|
@@ -23538,6 +23013,7 @@ declare namespace chrome {
|
|
|
23538
23013
|
* Updates one or more content scripts for this extension.
|
|
23539
23014
|
*
|
|
23540
23015
|
* @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.
|
|
23016
|
+
* @since Pending
|
|
23541
23017
|
*/
|
|
23542
23018
|
export function updateContentScripts(
|
|
23543
23019
|
|
|
@@ -23549,6 +23025,7 @@ declare namespace chrome {
|
|
|
23549
23025
|
*
|
|
23550
23026
|
* @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.
|
|
23551
23027
|
* @param callback A callback to be invoked once scripts have been updated or if an error has occurred.
|
|
23028
|
+
* @since Pending
|
|
23552
23029
|
*/
|
|
23553
23030
|
export function updateContentScripts(
|
|
23554
23031
|
|
|
@@ -23561,7 +23038,7 @@ declare namespace chrome {
|
|
|
23561
23038
|
/**
|
|
23562
23039
|
* Use the `chrome.search` API to search via the default provider.
|
|
23563
23040
|
*
|
|
23564
|
-
* @since
|
|
23041
|
+
* @since Chrome 87
|
|
23565
23042
|
* @chrome-permission search
|
|
23566
23043
|
*/
|
|
23567
23044
|
export namespace search {
|
|
@@ -23570,13 +23047,9 @@ declare namespace chrome {
|
|
|
23570
23047
|
* @chrome-enum "CURRENT\_TAB" Display results in the calling tab or the tab from the active browser.
|
|
23571
23048
|
* @chrome-enum "NEW\_TAB" Display search results in a new tab.
|
|
23572
23049
|
* @chrome-enum "NEW\_WINDOW" Display search results in a new window.
|
|
23573
|
-
* @since Chrome 87
|
|
23574
23050
|
*/
|
|
23575
23051
|
export type Disposition = "CURRENT_TAB" | "NEW_TAB" | "NEW_WINDOW";
|
|
23576
23052
|
|
|
23577
|
-
/**
|
|
23578
|
-
* @since Chrome 87
|
|
23579
|
-
*/
|
|
23580
23053
|
export interface QueryInfo {
|
|
23581
23054
|
|
|
23582
23055
|
/**
|
|
@@ -23599,7 +23072,6 @@ declare namespace chrome {
|
|
|
23599
23072
|
* Used to query the default search provider. In case of an error, {@link runtime.lastError} will be set.
|
|
23600
23073
|
*
|
|
23601
23074
|
* @chrome-returns-extra since Pending
|
|
23602
|
-
* @since Chrome 87
|
|
23603
23075
|
*/
|
|
23604
23076
|
export function query(
|
|
23605
23077
|
|
|
@@ -23608,8 +23080,6 @@ declare namespace chrome {
|
|
|
23608
23080
|
|
|
23609
23081
|
/**
|
|
23610
23082
|
* Used to query the default search provider. In case of an error, {@link runtime.lastError} will be set.
|
|
23611
|
-
*
|
|
23612
|
-
* @since Chrome 87
|
|
23613
23083
|
*/
|
|
23614
23084
|
export function query(
|
|
23615
23085
|
|
|
@@ -23622,7 +23092,6 @@ declare namespace chrome {
|
|
|
23622
23092
|
/**
|
|
23623
23093
|
* Use the `chrome.serial` API to read from and write to a device connected to a serial port.
|
|
23624
23094
|
*
|
|
23625
|
-
* @since Pending
|
|
23626
23095
|
* @chrome-permission serial
|
|
23627
23096
|
* @chrome-platform-apps
|
|
23628
23097
|
*/
|
|
@@ -24101,7 +23570,6 @@ declare namespace chrome {
|
|
|
24101
23570
|
/**
|
|
24102
23571
|
* Use the `chrome.sessions` API to query and restore tabs and windows from a browsing session.
|
|
24103
23572
|
*
|
|
24104
|
-
* @since Pending
|
|
24105
23573
|
* @chrome-permission sessions
|
|
24106
23574
|
*/
|
|
24107
23575
|
export namespace sessions {
|
|
@@ -24237,13 +23705,10 @@ declare namespace chrome {
|
|
|
24237
23705
|
/**
|
|
24238
23706
|
* Stub namespace for the "import" and "export" manifest keys.
|
|
24239
23707
|
*
|
|
24240
|
-
* @since
|
|
23708
|
+
* @since Chrome 89
|
|
24241
23709
|
*/
|
|
24242
23710
|
export namespace sharedModule {
|
|
24243
23711
|
|
|
24244
|
-
/**
|
|
24245
|
-
* @since Chrome 89
|
|
24246
|
-
*/
|
|
24247
23712
|
export interface Import {
|
|
24248
23713
|
|
|
24249
23714
|
/**
|
|
@@ -24257,9 +23722,6 @@ declare namespace chrome {
|
|
|
24257
23722
|
minimum_version?: string;
|
|
24258
23723
|
}
|
|
24259
23724
|
|
|
24260
|
-
/**
|
|
24261
|
-
* @since Chrome 89
|
|
24262
|
-
*/
|
|
24263
23725
|
export interface Export {
|
|
24264
23726
|
|
|
24265
23727
|
/**
|
|
@@ -24346,7 +23808,6 @@ declare namespace chrome {
|
|
|
24346
23808
|
/**
|
|
24347
23809
|
* Use the `chrome.socket` API to send and receive data over the network using TCP and UDP connections. **Note:** Starting with Chrome 33, this API is deprecated in favor of the {@link sockets.udp}, {@link sockets.tcp} and {@link sockets.tcpServer} APIs.
|
|
24348
23810
|
*
|
|
24349
|
-
* @since Pending
|
|
24350
23811
|
* @chrome-permission socket
|
|
24351
23812
|
* @chrome-platform-apps
|
|
24352
23813
|
*/
|
|
@@ -26088,7 +25549,6 @@ declare namespace chrome {
|
|
|
26088
25549
|
/**
|
|
26089
25550
|
* Use the `chrome.storage` API to store, retrieve, and track changes to user data.
|
|
26090
25551
|
*
|
|
26091
|
-
* @since Pending
|
|
26092
25552
|
* @chrome-permission storage
|
|
26093
25553
|
*/
|
|
26094
25554
|
export namespace storage {
|
|
@@ -26317,7 +25777,6 @@ declare namespace chrome {
|
|
|
26317
25777
|
/**
|
|
26318
25778
|
* Use the `chrome.syncFileSystem` API to save and synchronize data on Google Drive. This API is NOT for accessing arbitrary user docs stored in Google Drive. It provides app-specific syncable storage for offline and caching usage so that the same data can be available across different clients. Read [Manage Data](https://developer.chrome.com/docs/extensions/app_storage) for more on using this API.
|
|
26319
25779
|
*
|
|
26320
|
-
* @since Pending
|
|
26321
25780
|
* @chrome-permission syncFileSystem
|
|
26322
25781
|
* @chrome-platform-apps
|
|
26323
25782
|
*/
|
|
@@ -27523,7 +26982,6 @@ declare namespace chrome {
|
|
|
27523
26982
|
/**
|
|
27524
26983
|
* Use the `chrome.tabCapture` API to interact with tab media streams.
|
|
27525
26984
|
*
|
|
27526
|
-
* @since Pending
|
|
27527
26985
|
* @chrome-permission tabCapture
|
|
27528
26986
|
* @chrome-disallow-service-workers
|
|
27529
26987
|
*/
|
|
@@ -27649,7 +27107,7 @@ declare namespace chrome {
|
|
|
27649
27107
|
/**
|
|
27650
27108
|
* 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.
|
|
27651
27109
|
*
|
|
27652
|
-
* @since
|
|
27110
|
+
* @since Chrome 89
|
|
27653
27111
|
* @chrome-permission tabGroups
|
|
27654
27112
|
* @chrome-min-manifest MV3
|
|
27655
27113
|
*/
|
|
@@ -27657,14 +27115,9 @@ declare namespace chrome {
|
|
|
27657
27115
|
|
|
27658
27116
|
/**
|
|
27659
27117
|
* The group's color.
|
|
27660
|
-
*
|
|
27661
|
-
* @since Chrome 89
|
|
27662
27118
|
*/
|
|
27663
27119
|
export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan";
|
|
27664
27120
|
|
|
27665
|
-
/**
|
|
27666
|
-
* @since Chrome 89
|
|
27667
|
-
*/
|
|
27668
27121
|
export interface TabGroup {
|
|
27669
27122
|
|
|
27670
27123
|
/**
|
|
@@ -27695,15 +27148,11 @@ declare namespace chrome {
|
|
|
27695
27148
|
|
|
27696
27149
|
/**
|
|
27697
27150
|
* An ID that represents the absence of a group.
|
|
27698
|
-
*
|
|
27699
|
-
* @since Chrome 89
|
|
27700
27151
|
*/
|
|
27701
27152
|
export const TAB_GROUP_ID_NONE: -1;
|
|
27702
27153
|
|
|
27703
27154
|
/**
|
|
27704
27155
|
* Fired when a group is created.
|
|
27705
|
-
*
|
|
27706
|
-
* @since Chrome 89
|
|
27707
27156
|
*/
|
|
27708
27157
|
export const onCreated: events.Event<(
|
|
27709
27158
|
group: TabGroup,
|
|
@@ -27711,8 +27160,6 @@ declare namespace chrome {
|
|
|
27711
27160
|
|
|
27712
27161
|
/**
|
|
27713
27162
|
* Fired when a group is updated.
|
|
27714
|
-
*
|
|
27715
|
-
* @since Chrome 89
|
|
27716
27163
|
*/
|
|
27717
27164
|
export const onUpdated: events.Event<(
|
|
27718
27165
|
group: TabGroup,
|
|
@@ -27720,8 +27167,6 @@ declare namespace chrome {
|
|
|
27720
27167
|
|
|
27721
27168
|
/**
|
|
27722
27169
|
* 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.
|
|
27723
|
-
*
|
|
27724
|
-
* @since Chrome 89
|
|
27725
27170
|
*/
|
|
27726
27171
|
export const onMoved: events.Event<(
|
|
27727
27172
|
group: TabGroup,
|
|
@@ -27729,8 +27174,6 @@ declare namespace chrome {
|
|
|
27729
27174
|
|
|
27730
27175
|
/**
|
|
27731
27176
|
* Fired when a group is closed, either directly by the user or automatically because it contained zero tabs.
|
|
27732
|
-
*
|
|
27733
|
-
* @since Chrome 89
|
|
27734
27177
|
*/
|
|
27735
27178
|
export const onRemoved: events.Event<(
|
|
27736
27179
|
group: TabGroup,
|
|
@@ -27740,7 +27183,6 @@ declare namespace chrome {
|
|
|
27740
27183
|
* Retrieves details about the specified group.
|
|
27741
27184
|
*
|
|
27742
27185
|
* @chrome-returns-extra since Pending
|
|
27743
|
-
* @since Chrome 89
|
|
27744
27186
|
*/
|
|
27745
27187
|
export function get(
|
|
27746
27188
|
|
|
@@ -27749,8 +27191,6 @@ declare namespace chrome {
|
|
|
27749
27191
|
|
|
27750
27192
|
/**
|
|
27751
27193
|
* Retrieves details about the specified group.
|
|
27752
|
-
*
|
|
27753
|
-
* @since Chrome 89
|
|
27754
27194
|
*/
|
|
27755
27195
|
export function get(
|
|
27756
27196
|
|
|
@@ -27765,7 +27205,6 @@ declare namespace chrome {
|
|
|
27765
27205
|
* Gets all groups that have the specified properties, or all groups if no properties are specified.
|
|
27766
27206
|
*
|
|
27767
27207
|
* @chrome-returns-extra since Pending
|
|
27768
|
-
* @since Chrome 89
|
|
27769
27208
|
*/
|
|
27770
27209
|
export function query(
|
|
27771
27210
|
|
|
@@ -27795,8 +27234,6 @@ declare namespace chrome {
|
|
|
27795
27234
|
|
|
27796
27235
|
/**
|
|
27797
27236
|
* Gets all groups that have the specified properties, or all groups if no properties are specified.
|
|
27798
|
-
*
|
|
27799
|
-
* @since Chrome 89
|
|
27800
27237
|
*/
|
|
27801
27238
|
export function query(
|
|
27802
27239
|
|
|
@@ -27833,7 +27270,6 @@ declare namespace chrome {
|
|
|
27833
27270
|
*
|
|
27834
27271
|
* @chrome-returns-extra since Pending
|
|
27835
27272
|
* @param groupId The ID of the group to modify.
|
|
27836
|
-
* @since Chrome 89
|
|
27837
27273
|
*/
|
|
27838
27274
|
export function update(
|
|
27839
27275
|
|
|
@@ -27862,7 +27298,6 @@ declare namespace chrome {
|
|
|
27862
27298
|
* Modifies the properties of a group. Properties that are not specified in `updateProperties` are not modified.
|
|
27863
27299
|
*
|
|
27864
27300
|
* @param groupId The ID of the group to modify.
|
|
27865
|
-
* @since Chrome 89
|
|
27866
27301
|
*/
|
|
27867
27302
|
export function update(
|
|
27868
27303
|
|
|
@@ -27899,7 +27334,6 @@ declare namespace chrome {
|
|
|
27899
27334
|
*
|
|
27900
27335
|
* @chrome-returns-extra since Pending
|
|
27901
27336
|
* @param groupId The ID of the group to move.
|
|
27902
|
-
* @since Chrome 89
|
|
27903
27337
|
*/
|
|
27904
27338
|
export function move(
|
|
27905
27339
|
|
|
@@ -27923,7 +27357,6 @@ declare namespace chrome {
|
|
|
27923
27357
|
* Moves the group and all its tabs within its window, or to a new window.
|
|
27924
27358
|
*
|
|
27925
27359
|
* @param groupId The ID of the group to move.
|
|
27926
|
-
* @since Chrome 89
|
|
27927
27360
|
*/
|
|
27928
27361
|
export function move(
|
|
27929
27362
|
|
|
@@ -27953,8 +27386,6 @@ declare namespace chrome {
|
|
|
27953
27386
|
|
|
27954
27387
|
/**
|
|
27955
27388
|
* 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.
|
|
27956
|
-
*
|
|
27957
|
-
* @since Pending
|
|
27958
27389
|
*/
|
|
27959
27390
|
export namespace tabs {
|
|
27960
27391
|
|
|
@@ -28287,7 +27718,6 @@ declare namespace chrome {
|
|
|
28287
27718
|
*
|
|
28288
27719
|
* @deprecated Please use {@link tabs.onActivated}.
|
|
28289
27720
|
* @chrome-max-manifest MV2
|
|
28290
|
-
* @chrome-deprecated-since Pending
|
|
28291
27721
|
*/
|
|
28292
27722
|
export const onSelectionChanged: events.Event<(
|
|
28293
27723
|
tabId: number,
|
|
@@ -28305,7 +27735,6 @@ declare namespace chrome {
|
|
|
28305
27735
|
*
|
|
28306
27736
|
* @deprecated Please use {@link tabs.onActivated}.
|
|
28307
27737
|
* @chrome-max-manifest MV2
|
|
28308
|
-
* @chrome-deprecated-since Pending
|
|
28309
27738
|
*/
|
|
28310
27739
|
export const onActiveChanged: events.Event<(
|
|
28311
27740
|
tabId: number,
|
|
@@ -28341,7 +27770,6 @@ declare namespace chrome {
|
|
|
28341
27770
|
*
|
|
28342
27771
|
* @deprecated Please use {@link tabs.onHighlighted}.
|
|
28343
27772
|
* @chrome-max-manifest MV2
|
|
28344
|
-
* @chrome-deprecated-since Pending
|
|
28345
27773
|
*/
|
|
28346
27774
|
export const onHighlightChanged: events.Event<(
|
|
28347
27775
|
selectInfo: {
|
|
@@ -28512,7 +27940,6 @@ declare namespace chrome {
|
|
|
28512
27940
|
*
|
|
28513
27941
|
* @deprecated Please use {@link runtime.sendMessage}.
|
|
28514
27942
|
* @chrome-max-manifest MV2
|
|
28515
|
-
* @chrome-deprecated-since Pending
|
|
28516
27943
|
*/
|
|
28517
27944
|
export function sendRequest(
|
|
28518
27945
|
|
|
@@ -28562,7 +27989,6 @@ declare namespace chrome {
|
|
|
28562
27989
|
* @param windowId Defaults to the [current window](https://developer.chrome.com/docs/extensions/reference/windows/#current-window).
|
|
28563
27990
|
* @deprecated Please use {@link tabs.query} `{active: true}`.
|
|
28564
27991
|
* @chrome-max-manifest MV2
|
|
28565
|
-
* @chrome-deprecated-since Pending
|
|
28566
27992
|
*/
|
|
28567
27993
|
export function getSelected(
|
|
28568
27994
|
|
|
@@ -28575,7 +28001,6 @@ declare namespace chrome {
|
|
|
28575
28001
|
* @param windowId Defaults to the [current window](https://developer.chrome.com/docs/extensions/reference/windows/#current-window).
|
|
28576
28002
|
* @deprecated Please use {@link tabs.query} `{active: true}`.
|
|
28577
28003
|
* @chrome-max-manifest MV2
|
|
28578
|
-
* @chrome-deprecated-since Pending
|
|
28579
28004
|
*/
|
|
28580
28005
|
export function getSelected(
|
|
28581
28006
|
|
|
@@ -28593,7 +28018,6 @@ declare namespace chrome {
|
|
|
28593
28018
|
* @param windowId Defaults to the [current window](https://developer.chrome.com/docs/extensions/reference/windows/#current-window).
|
|
28594
28019
|
* @deprecated Please use {@link tabs.query} `{windowId: windowId}`.
|
|
28595
28020
|
* @chrome-max-manifest MV2
|
|
28596
|
-
* @chrome-deprecated-since Pending
|
|
28597
28021
|
*/
|
|
28598
28022
|
export function getAllInWindow(
|
|
28599
28023
|
|
|
@@ -28606,7 +28030,6 @@ declare namespace chrome {
|
|
|
28606
28030
|
* @param windowId Defaults to the [current window](https://developer.chrome.com/docs/extensions/reference/windows/#current-window).
|
|
28607
28031
|
* @deprecated Please use {@link tabs.query} `{windowId: windowId}`.
|
|
28608
28032
|
* @chrome-max-manifest MV2
|
|
28609
|
-
* @chrome-deprecated-since Pending
|
|
28610
28033
|
*/
|
|
28611
28034
|
export function getAllInWindow(
|
|
28612
28035
|
|
|
@@ -29978,7 +29401,6 @@ declare namespace chrome {
|
|
|
29978
29401
|
/**
|
|
29979
29402
|
* 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.
|
|
29980
29403
|
*
|
|
29981
|
-
* @since Pending
|
|
29982
29404
|
* @chrome-permission topSites
|
|
29983
29405
|
*/
|
|
29984
29406
|
export namespace topSites {
|
|
@@ -30020,7 +29442,6 @@ declare namespace chrome {
|
|
|
30020
29442
|
/**
|
|
30021
29443
|
* 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.
|
|
30022
29444
|
*
|
|
30023
|
-
* @since Pending
|
|
30024
29445
|
* @chrome-permission tts
|
|
30025
29446
|
*/
|
|
30026
29447
|
export namespace tts {
|
|
@@ -30235,7 +29656,6 @@ declare namespace chrome {
|
|
|
30235
29656
|
/**
|
|
30236
29657
|
* 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.
|
|
30237
29658
|
*
|
|
30238
|
-
* @since Pending
|
|
30239
29659
|
* @chrome-permission ttsEngine
|
|
30240
29660
|
*/
|
|
30241
29661
|
export namespace ttsEngine {
|
|
@@ -30396,8 +29816,6 @@ declare namespace chrome {
|
|
|
30396
29816
|
|
|
30397
29817
|
/**
|
|
30398
29818
|
* The `chrome.types` API contains type declarations for Chrome.
|
|
30399
|
-
*
|
|
30400
|
-
* @since Pending
|
|
30401
29819
|
*/
|
|
30402
29820
|
export namespace types {
|
|
30403
29821
|
|
|
@@ -30617,7 +30035,6 @@ declare namespace chrome {
|
|
|
30617
30035
|
/**
|
|
30618
30036
|
* Use the `chrome.usb` API to interact with connected USB devices. This API provides access to USB operations from within the context of an app. Using this API, apps can function as drivers for hardware devices. Errors generated by this API are reported by setting {@link runtime.lastError} and executing the function's regular callback. The callback's regular parameters will be undefined in this case.
|
|
30619
30037
|
*
|
|
30620
|
-
* @since Pending
|
|
30621
30038
|
* @chrome-permission usb
|
|
30622
30039
|
* @chrome-platform-apps
|
|
30623
30040
|
*/
|
|
@@ -31088,7 +30505,6 @@ declare namespace chrome {
|
|
|
31088
30505
|
* @param device The {@link Device} to request access to.
|
|
31089
30506
|
* @param interfaceId The particular interface requested.
|
|
31090
30507
|
* @deprecated This function was Chrome OS specific and calling it on other platforms would fail. This operation is now implicitly performed as part of {@link openDevice} and this function will return `true` on all platforms.
|
|
31091
|
-
* @chrome-deprecated-since Pending
|
|
31092
30508
|
*/
|
|
31093
30509
|
export function requestAccess(
|
|
31094
30510
|
|
|
@@ -31325,16 +30741,13 @@ declare namespace chrome {
|
|
|
31325
30741
|
/**
|
|
31326
30742
|
* The `chrome.virtualKeyboard` API is a kiosk only API used to configure virtual keyboard layout and behavior in kiosk sessions.
|
|
31327
30743
|
*
|
|
31328
|
-
* @since
|
|
30744
|
+
* @since Chrome 58
|
|
31329
30745
|
* @chrome-permission virtualKeyboard
|
|
31330
30746
|
* @chrome-platform-apps
|
|
31331
30747
|
* @chrome-platform chromeos
|
|
31332
30748
|
*/
|
|
31333
30749
|
export namespace virtualKeyboard {
|
|
31334
30750
|
|
|
31335
|
-
/**
|
|
31336
|
-
* @since Chrome 58
|
|
31337
|
-
*/
|
|
31338
30751
|
export interface FeatureRestrictions {
|
|
31339
30752
|
|
|
31340
30753
|
/**
|
|
@@ -31368,7 +30781,6 @@ declare namespace chrome {
|
|
|
31368
30781
|
*
|
|
31369
30782
|
* @chrome-returns-extra since Pending
|
|
31370
30783
|
* @param restrictions the preferences to enabled/disabled virtual keyboard features.
|
|
31371
|
-
* @since Chrome 58
|
|
31372
30784
|
*/
|
|
31373
30785
|
export function restrictFeatures(
|
|
31374
30786
|
|
|
@@ -31380,7 +30792,6 @@ declare namespace chrome {
|
|
|
31380
30792
|
*
|
|
31381
30793
|
* @param restrictions the preferences to enabled/disabled virtual keyboard features.
|
|
31382
30794
|
* @param callback Invoked with the values which were updated.
|
|
31383
|
-
* @since Chrome 58
|
|
31384
30795
|
*/
|
|
31385
30796
|
export function restrictFeatures(
|
|
31386
30797
|
|
|
@@ -31398,15 +30809,12 @@ declare namespace chrome {
|
|
|
31398
30809
|
/**
|
|
31399
30810
|
* Use the `chrome.vpnProvider` API to implement a VPN client.
|
|
31400
30811
|
*
|
|
31401
|
-
* @since
|
|
30812
|
+
* @since Chrome 43
|
|
31402
30813
|
* @chrome-permission vpnProvider
|
|
31403
30814
|
* @chrome-platform chromeos
|
|
31404
30815
|
*/
|
|
31405
30816
|
export namespace vpnProvider {
|
|
31406
30817
|
|
|
31407
|
-
/**
|
|
31408
|
-
* @since Chrome 43
|
|
31409
|
-
*/
|
|
31410
30818
|
export interface Parameters {
|
|
31411
30819
|
|
|
31412
30820
|
/**
|
|
@@ -31467,7 +30875,6 @@ declare namespace chrome {
|
|
|
31467
30875
|
* @chrome-enum "linkChanged" The default physical network connection changed, e.g. wifi->mobile.
|
|
31468
30876
|
* @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.
|
|
31469
30877
|
* @chrome-enum "resume" The OS has resumed and the user has logged back in, so the VPN should try to reconnect.
|
|
31470
|
-
* @since Chrome 43
|
|
31471
30878
|
*/
|
|
31472
30879
|
export type PlatformMessage = "connected" | "disconnected" | "error" | "linkDown" | "linkUp" | "linkChanged" | "suspend" | "resume";
|
|
31473
30880
|
|
|
@@ -31476,7 +30883,6 @@ declare namespace chrome {
|
|
|
31476
30883
|
*
|
|
31477
30884
|
* @chrome-enum "connected" VPN connection was successful.
|
|
31478
30885
|
* @chrome-enum "failure" VPN connection failed.
|
|
31479
|
-
* @since Chrome 43
|
|
31480
30886
|
*/
|
|
31481
30887
|
export type VpnConnectionState = "connected" | "failure";
|
|
31482
30888
|
|
|
@@ -31485,14 +30891,11 @@ declare namespace chrome {
|
|
|
31485
30891
|
*
|
|
31486
30892
|
* @chrome-enum "showAddDialog" Request the VPN client to show add configuration dialog to the user.
|
|
31487
30893
|
* @chrome-enum "showConfigureDialog" Request the VPN client to show configuration settings dialog to the user.
|
|
31488
|
-
* @since Chrome 43
|
|
31489
30894
|
*/
|
|
31490
30895
|
export type UIEvent = "showAddDialog" | "showConfigureDialog";
|
|
31491
30896
|
|
|
31492
30897
|
/**
|
|
31493
30898
|
* Triggered when a message is received from the platform for a VPN configuration owned by the extension.
|
|
31494
|
-
*
|
|
31495
|
-
* @since Chrome 43
|
|
31496
30899
|
*/
|
|
31497
30900
|
export const onPlatformMessage: events.Event<(
|
|
31498
30901
|
id: string,
|
|
@@ -31502,8 +30905,6 @@ declare namespace chrome {
|
|
|
31502
30905
|
|
|
31503
30906
|
/**
|
|
31504
30907
|
* Triggered when an IP packet is received via the tunnel for the VPN session owned by the extension.
|
|
31505
|
-
*
|
|
31506
|
-
* @since Chrome 43
|
|
31507
30908
|
*/
|
|
31508
30909
|
export const onPacketReceived: events.Event<(
|
|
31509
30910
|
data: ArrayBuffer,
|
|
@@ -31511,8 +30912,6 @@ declare namespace chrome {
|
|
|
31511
30912
|
|
|
31512
30913
|
/**
|
|
31513
30914
|
* Triggered when a configuration created by the extension is removed by the platform.
|
|
31514
|
-
*
|
|
31515
|
-
* @since Chrome 43
|
|
31516
30915
|
*/
|
|
31517
30916
|
export const onConfigRemoved: events.Event<(
|
|
31518
30917
|
id: string,
|
|
@@ -31520,8 +30919,6 @@ declare namespace chrome {
|
|
|
31520
30919
|
|
|
31521
30920
|
/**
|
|
31522
30921
|
* Triggered when a configuration is created by the platform for the extension.
|
|
31523
|
-
*
|
|
31524
|
-
* @since Chrome 43
|
|
31525
30922
|
*/
|
|
31526
30923
|
export const onConfigCreated: events.Event<(
|
|
31527
30924
|
id: string,
|
|
@@ -31531,8 +30928,6 @@ declare namespace chrome {
|
|
|
31531
30928
|
|
|
31532
30929
|
/**
|
|
31533
30930
|
* 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.
|
|
31534
|
-
*
|
|
31535
|
-
* @since Chrome 43
|
|
31536
30931
|
*/
|
|
31537
30932
|
export const onUIEvent: events.Event<(
|
|
31538
30933
|
event: UIEvent,
|
|
@@ -31544,7 +30939,6 @@ declare namespace chrome {
|
|
|
31544
30939
|
*
|
|
31545
30940
|
* @chrome-returns-extra since Pending
|
|
31546
30941
|
* @param name The name of the VPN configuration.
|
|
31547
|
-
* @since Chrome 43
|
|
31548
30942
|
*/
|
|
31549
30943
|
export function createConfig(
|
|
31550
30944
|
|
|
@@ -31556,7 +30950,6 @@ declare namespace chrome {
|
|
|
31556
30950
|
*
|
|
31557
30951
|
* @param name The name of the VPN configuration.
|
|
31558
30952
|
* @param callback Called when the configuration is created or if there is an error.
|
|
31559
|
-
* @since Chrome 43
|
|
31560
30953
|
*/
|
|
31561
30954
|
export function createConfig(
|
|
31562
30955
|
|
|
@@ -31575,7 +30968,6 @@ declare namespace chrome {
|
|
|
31575
30968
|
*
|
|
31576
30969
|
* @chrome-returns-extra since Pending
|
|
31577
30970
|
* @param id ID of the VPN configuration to destroy.
|
|
31578
|
-
* @since Chrome 43
|
|
31579
30971
|
*/
|
|
31580
30972
|
export function destroyConfig(
|
|
31581
30973
|
|
|
@@ -31587,7 +30979,6 @@ declare namespace chrome {
|
|
|
31587
30979
|
*
|
|
31588
30980
|
* @param id ID of the VPN configuration to destroy.
|
|
31589
30981
|
* @param callback Called when the configuration is destroyed or if there is an error.
|
|
31590
|
-
* @since Chrome 43
|
|
31591
30982
|
*/
|
|
31592
30983
|
export function destroyConfig(
|
|
31593
30984
|
|
|
@@ -31601,7 +30992,6 @@ declare namespace chrome {
|
|
|
31601
30992
|
*
|
|
31602
30993
|
* @chrome-returns-extra since Pending
|
|
31603
30994
|
* @param parameters The parameters for the VPN session.
|
|
31604
|
-
* @since Chrome 43
|
|
31605
30995
|
*/
|
|
31606
30996
|
export function setParameters(
|
|
31607
30997
|
|
|
@@ -31613,7 +31003,6 @@ declare namespace chrome {
|
|
|
31613
31003
|
*
|
|
31614
31004
|
* @param parameters The parameters for the VPN session.
|
|
31615
31005
|
* @param callback Called when the parameters are set or if there is an error.
|
|
31616
|
-
* @since Chrome 43
|
|
31617
31006
|
*/
|
|
31618
31007
|
export function setParameters(
|
|
31619
31008
|
|
|
@@ -31627,7 +31016,6 @@ declare namespace chrome {
|
|
|
31627
31016
|
*
|
|
31628
31017
|
* @chrome-returns-extra since Pending
|
|
31629
31018
|
* @param data The IP packet to be sent to the platform.
|
|
31630
|
-
* @since Chrome 43
|
|
31631
31019
|
*/
|
|
31632
31020
|
export function sendPacket(
|
|
31633
31021
|
|
|
@@ -31639,7 +31027,6 @@ declare namespace chrome {
|
|
|
31639
31027
|
*
|
|
31640
31028
|
* @param data The IP packet to be sent to the platform.
|
|
31641
31029
|
* @param callback Called when the packet is sent or if there is an error.
|
|
31642
|
-
* @since Chrome 43
|
|
31643
31030
|
*/
|
|
31644
31031
|
export function sendPacket(
|
|
31645
31032
|
|
|
@@ -31653,7 +31040,6 @@ declare namespace chrome {
|
|
|
31653
31040
|
*
|
|
31654
31041
|
* @chrome-returns-extra since Pending
|
|
31655
31042
|
* @param state The VPN session state of the VPN client.
|
|
31656
|
-
* @since Chrome 43
|
|
31657
31043
|
*/
|
|
31658
31044
|
export function notifyConnectionStateChanged(
|
|
31659
31045
|
|
|
@@ -31665,7 +31051,6 @@ declare namespace chrome {
|
|
|
31665
31051
|
*
|
|
31666
31052
|
* @param state The VPN session state of the VPN client.
|
|
31667
31053
|
* @param callback Called when the notification is complete or if there is an error.
|
|
31668
|
-
* @since Chrome 43
|
|
31669
31054
|
*/
|
|
31670
31055
|
export function notifyConnectionStateChanged(
|
|
31671
31056
|
|
|
@@ -31678,7 +31063,7 @@ declare namespace chrome {
|
|
|
31678
31063
|
/**
|
|
31679
31064
|
* Use the `chrome.wallpaper` API to change the ChromeOS wallpaper.
|
|
31680
31065
|
*
|
|
31681
|
-
* @since
|
|
31066
|
+
* @since Chrome 43
|
|
31682
31067
|
* @chrome-permission wallpaper
|
|
31683
31068
|
* @chrome-platform chromeos
|
|
31684
31069
|
*/
|
|
@@ -31695,7 +31080,6 @@ declare namespace chrome {
|
|
|
31695
31080
|
* Sets wallpaper to the image at _url_ or _wallpaperData_ with the specified _layout_
|
|
31696
31081
|
*
|
|
31697
31082
|
* @chrome-returns-extra since Pending
|
|
31698
|
-
* @since Chrome 43
|
|
31699
31083
|
*/
|
|
31700
31084
|
export function setWallpaper(
|
|
31701
31085
|
|
|
@@ -31730,8 +31114,6 @@ declare namespace chrome {
|
|
|
31730
31114
|
|
|
31731
31115
|
/**
|
|
31732
31116
|
* Sets wallpaper to the image at _url_ or _wallpaperData_ with the specified _layout_
|
|
31733
|
-
*
|
|
31734
|
-
* @since Chrome 43
|
|
31735
31117
|
*/
|
|
31736
31118
|
export function setWallpaper(
|
|
31737
31119
|
|
|
@@ -31775,13 +31157,10 @@ declare namespace chrome {
|
|
|
31775
31157
|
/**
|
|
31776
31158
|
* Stub namepsace for the "web\_accessible\_resources" manifest key.
|
|
31777
31159
|
*
|
|
31778
|
-
* @since
|
|
31160
|
+
* @since Chrome 90
|
|
31779
31161
|
*/
|
|
31780
31162
|
export namespace webAccessibleResources {
|
|
31781
31163
|
|
|
31782
|
-
/**
|
|
31783
|
-
* @since Chrome 90
|
|
31784
|
-
*/
|
|
31785
31164
|
export interface WebAccessibleResource {
|
|
31786
31165
|
|
|
31787
31166
|
/**
|
|
@@ -31855,12 +31234,57 @@ declare namespace chrome {
|
|
|
31855
31234
|
|
|
31856
31235
|
callback?: () => void,
|
|
31857
31236
|
): void;
|
|
31237
|
+
|
|
31238
|
+
/**
|
|
31239
|
+
* Makes this extension the active Web Authentication API request proxy.
|
|
31240
|
+
*
|
|
31241
|
+
* 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.
|
|
31242
|
+
*
|
|
31243
|
+
* 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.
|
|
31244
|
+
*
|
|
31245
|
+
* 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.
|
|
31246
|
+
*/
|
|
31247
|
+
export function attach(): Promise<string | undefined>;
|
|
31248
|
+
|
|
31249
|
+
/**
|
|
31250
|
+
* Makes this extension the active Web Authentication API request proxy.
|
|
31251
|
+
*
|
|
31252
|
+
* 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.
|
|
31253
|
+
*
|
|
31254
|
+
* 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.
|
|
31255
|
+
*
|
|
31256
|
+
* 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.
|
|
31257
|
+
*/
|
|
31258
|
+
export function attach(
|
|
31259
|
+
|
|
31260
|
+
callback?: (
|
|
31261
|
+
error?: string,
|
|
31262
|
+
) => void,
|
|
31263
|
+
): void;
|
|
31264
|
+
|
|
31265
|
+
/**
|
|
31266
|
+
* Removes this extension from being the active Web Authentication API request proxy.
|
|
31267
|
+
*
|
|
31268
|
+
* 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.
|
|
31269
|
+
*/
|
|
31270
|
+
export function detach(): Promise<string | undefined>;
|
|
31271
|
+
|
|
31272
|
+
/**
|
|
31273
|
+
* Removes this extension from being the active Web Authentication API request proxy.
|
|
31274
|
+
*
|
|
31275
|
+
* 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.
|
|
31276
|
+
*/
|
|
31277
|
+
export function detach(
|
|
31278
|
+
|
|
31279
|
+
callback?: (
|
|
31280
|
+
error?: string,
|
|
31281
|
+
) => void,
|
|
31282
|
+
): void;
|
|
31858
31283
|
}
|
|
31859
31284
|
|
|
31860
31285
|
/**
|
|
31861
31286
|
* Use the `chrome.webNavigation` API to receive notifications about the status of navigation requests in-flight.
|
|
31862
31287
|
*
|
|
31863
|
-
* @since Pending
|
|
31864
31288
|
* @chrome-permission webNavigation
|
|
31865
31289
|
*/
|
|
31866
31290
|
export namespace webNavigation {
|
|
@@ -32502,7 +31926,6 @@ declare namespace chrome {
|
|
|
32502
31926
|
/**
|
|
32503
31927
|
* Use the `chrome.webRequest` API to observe and analyze traffic and to intercept, block, or modify requests in-flight.
|
|
32504
31928
|
*
|
|
32505
|
-
* @since Pending
|
|
32506
31929
|
* @chrome-permission webRequest
|
|
32507
31930
|
*/
|
|
32508
31931
|
export namespace webRequest {
|
|
@@ -33410,7 +32833,6 @@ declare namespace chrome {
|
|
|
33410
32833
|
/**
|
|
33411
32834
|
* Use the `webview` tag to actively load live content from the web over the network and embed it in your Chrome App. Your app can control the appearance of the `webview` and interact with the web content, initiate navigations in an embedded web page, react to error events that happen within it, and more (see [Usage](https://developer.chrome.com/docs/extensions/reference/webviewTag/#usage)).
|
|
33412
32835
|
*
|
|
33413
|
-
* @since Pending
|
|
33414
32836
|
* @chrome-permission webview
|
|
33415
32837
|
* @chrome-platform-apps
|
|
33416
32838
|
*/
|
|
@@ -34797,8 +34219,6 @@ declare namespace chrome {
|
|
|
34797
34219
|
|
|
34798
34220
|
/**
|
|
34799
34221
|
* Use the `chrome.windows` API to interact with browser windows. You can use this API to create, modify, and rearrange windows in the browser.
|
|
34800
|
-
*
|
|
34801
|
-
* @since Pending
|
|
34802
34222
|
*/
|
|
34803
34223
|
export namespace windows {
|
|
34804
34224
|
|