@types/chrome 0.0.293 → 0.0.294
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.
- chrome/README.md +1 -1
- chrome/index.d.ts +259 -209
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Tue, 14 Jan 2025 07:02:19 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
|
14
14
|
# Credits
|
chrome/index.d.ts
CHANGED
@@ -14,7 +14,8 @@ declare namespace chrome {
|
|
14
14
|
// Accessibility Features
|
15
15
|
////////////////////
|
16
16
|
/**
|
17
|
-
* Use the chrome.accessibilityFeatures API to manage Chrome's accessibility features. This API relies on the ChromeSetting prototype of the type API 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.
|
17
|
+
* Use the `chrome.accessibilityFeatures` API to manage Chrome's accessibility features. This API relies on the ChromeSetting prototype of the type API 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.
|
18
|
+
*
|
18
19
|
* Permissions: "accessibilityFeatures.read", "accessibilityFeatures.modify"
|
19
20
|
*/
|
20
21
|
export namespace accessibilityFeatures {
|
@@ -139,9 +140,11 @@ declare namespace chrome {
|
|
139
140
|
// Action
|
140
141
|
////////////////////
|
141
142
|
/**
|
142
|
-
* Use the chrome.action API to control the extension's icon in the Google Chrome toolbar.
|
143
|
+
* Use the `chrome.action` API to control the extension's icon in the Google Chrome toolbar.
|
144
|
+
* The action icons are displayed in the browser toolbar next to the omnibox. After installation, these appear in the extensions menu (the puzzle piece icon). Users can pin your extension icon to the toolbar.
|
145
|
+
*
|
146
|
+
* Manifest: "action"
|
143
147
|
* @since Chrome 88, MV3
|
144
|
-
* Manifest: "action": {...}
|
145
148
|
*/
|
146
149
|
export namespace action {
|
147
150
|
/** @deprecated Use BadgeColorDetails instead. */
|
@@ -444,9 +447,9 @@ declare namespace chrome {
|
|
444
447
|
// Alarms
|
445
448
|
////////////////////
|
446
449
|
/**
|
447
|
-
* Use the chrome.alarms API to schedule code to run periodically or at a specified time in the future.
|
448
|
-
*
|
449
|
-
* Permissions:
|
450
|
+
* Use the `chrome.alarms` API to schedule code to run periodically or at a specified time in the future.
|
451
|
+
*
|
452
|
+
* Permissions: "alarms"
|
450
453
|
*/
|
451
454
|
export namespace alarms {
|
452
455
|
export interface AlarmCreateInfo {
|
@@ -570,11 +573,9 @@ declare namespace chrome {
|
|
570
573
|
// Audio
|
571
574
|
////////////////////
|
572
575
|
/**
|
573
|
-
* The chrome.audio API is provided to allow users to get information about and control the audio devices attached to the system.
|
574
|
-
* This API is currently only available in kiosk mode for ChromeOS.
|
576
|
+
* 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.
|
575
577
|
*
|
576
578
|
* Permissions: "audio"
|
577
|
-
*
|
578
579
|
* @platform ChromeOS only
|
579
580
|
* @since Chrome 59
|
580
581
|
*/
|
@@ -758,9 +759,9 @@ declare namespace chrome {
|
|
758
759
|
// Bookmarks
|
759
760
|
////////////////////
|
760
761
|
/**
|
761
|
-
* Use the chrome.bookmarks API to create, organize, and otherwise manipulate bookmarks. Also see Override Pages, which you can use to create a custom Bookmark Manager page.
|
762
|
-
*
|
763
|
-
* Permissions:
|
762
|
+
* Use the `chrome.bookmarks` API to create, organize, and otherwise manipulate bookmarks. Also see Override Pages, which you can use to create a custom Bookmark Manager page.
|
763
|
+
*
|
764
|
+
* Permissions: "bookmarks"
|
764
765
|
*/
|
765
766
|
export namespace bookmarks {
|
766
767
|
/** A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder. */
|
@@ -1030,9 +1031,11 @@ declare namespace chrome {
|
|
1030
1031
|
// Browser Action
|
1031
1032
|
////////////////////
|
1032
1033
|
/**
|
1033
|
-
* Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its icon, a browser action can
|
1034
|
-
*
|
1035
|
-
* Manifest:
|
1034
|
+
* Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its icon, a browser action can have a tooltip, a badge, and a popup.
|
1035
|
+
*
|
1036
|
+
* Manifest: "browser_action"
|
1037
|
+
*
|
1038
|
+
* MV2 only
|
1036
1039
|
*/
|
1037
1040
|
export namespace browserAction {
|
1038
1041
|
export interface BadgeBackgroundColorDetails {
|
@@ -1209,9 +1212,9 @@ declare namespace chrome {
|
|
1209
1212
|
// Browsing Data
|
1210
1213
|
////////////////////
|
1211
1214
|
/**
|
1212
|
-
* Use the chrome.browsingData API to remove browsing data from a user's local profile.
|
1213
|
-
*
|
1214
|
-
* Permissions:
|
1215
|
+
* Use the `chrome.browsingData` API to remove browsing data from a user's local profile.
|
1216
|
+
*
|
1217
|
+
* Permissions: "browsingData"
|
1215
1218
|
*/
|
1216
1219
|
export namespace browsingData {
|
1217
1220
|
export interface OriginTypes {
|
@@ -1484,8 +1487,8 @@ declare namespace chrome {
|
|
1484
1487
|
////////////////////
|
1485
1488
|
/**
|
1486
1489
|
* 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.
|
1487
|
-
*
|
1488
|
-
* Manifest:
|
1490
|
+
*
|
1491
|
+
* Manifest: "commands"
|
1489
1492
|
*/
|
1490
1493
|
export namespace commands {
|
1491
1494
|
export interface Command {
|
@@ -1518,9 +1521,9 @@ declare namespace chrome {
|
|
1518
1521
|
// Content Settings
|
1519
1522
|
////////////////////
|
1520
1523
|
/**
|
1521
|
-
* 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.
|
1522
|
-
*
|
1523
|
-
* Permissions:
|
1524
|
+
* 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.
|
1525
|
+
*
|
1526
|
+
* Permissions: "contentSettings"
|
1524
1527
|
*/
|
1525
1528
|
export namespace contentSettings {
|
1526
1529
|
type ScopeEnum = "regular" | "incognito_session_only";
|
@@ -1843,9 +1846,9 @@ declare namespace chrome {
|
|
1843
1846
|
// Context Menus
|
1844
1847
|
////////////////////
|
1845
1848
|
/**
|
1846
|
-
* 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.
|
1847
|
-
*
|
1848
|
-
* Permissions:
|
1849
|
+
* 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.
|
1850
|
+
*
|
1851
|
+
* Permissions: "contextMenus"
|
1849
1852
|
*/
|
1850
1853
|
export namespace contextMenus {
|
1851
1854
|
export interface OnClickData {
|
@@ -2046,9 +2049,11 @@ declare namespace chrome {
|
|
2046
2049
|
// Cookies
|
2047
2050
|
////////////////////
|
2048
2051
|
/**
|
2049
|
-
* Use the chrome.cookies API to query and modify cookies, and to be notified when they change.
|
2050
|
-
*
|
2051
|
-
* Permissions:
|
2052
|
+
* Use the `chrome.cookies` API to query and modify cookies, and to be notified when they change.
|
2053
|
+
*
|
2054
|
+
* Permissions: "cookies"
|
2055
|
+
*
|
2056
|
+
* Manifest: "host_permissions"
|
2052
2057
|
*/
|
2053
2058
|
export namespace cookies {
|
2054
2059
|
/** A cookie's 'SameSite' state (https://tools.ietf.org/html/draft-west-first-party-cookies). 'no_restriction' corresponds to a cookie set with 'SameSite=None', 'lax' to 'SameSite=Lax', and 'strict' to 'SameSite=Strict'. 'unspecified' corresponds to a cookie set without the SameSite attribute. **/
|
@@ -2255,9 +2260,9 @@ declare namespace chrome {
|
|
2255
2260
|
// Debugger
|
2256
2261
|
////////////////////
|
2257
2262
|
/**
|
2258
|
-
* The chrome.debugger API serves as an alternate transport for Chrome's remote debugging protocol. Use chrome.debugger to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS,
|
2259
|
-
*
|
2260
|
-
* Permissions:
|
2263
|
+
* The `chrome.debugger` API serves as an alternate transport for Chrome's remote debugging protocol. Use `chrome.debugger` to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, and more. Use the {@link Debuggee} `tabId` to target tabs with `sendCommand` and route events by `tabId` from `onEvent` callbacks.
|
2264
|
+
*
|
2265
|
+
* Permissions: "debugger"
|
2261
2266
|
*/
|
2262
2267
|
export namespace _debugger {
|
2263
2268
|
/** Debuggee identifier. Either tabId or extensionId must be specified */
|
@@ -2390,13 +2395,14 @@ declare namespace chrome {
|
|
2390
2395
|
}
|
2391
2396
|
|
2392
2397
|
export { _debugger as debugger };
|
2398
|
+
|
2393
2399
|
////////////////////
|
2394
2400
|
// Declarative Content
|
2395
2401
|
////////////////////
|
2396
2402
|
/**
|
2397
|
-
* Use the chrome.declarativeContent API to take actions depending on the content of a page, without requiring permission to read the page's content.
|
2398
|
-
*
|
2399
|
-
* Permissions:
|
2403
|
+
* Use the `chrome.declarativeContent` API to take actions depending on the content of a page, without requiring permission to read the page's content.
|
2404
|
+
*
|
2405
|
+
* Permissions: "declarativeContent"
|
2400
2406
|
*/
|
2401
2407
|
export namespace declarativeContent {
|
2402
2408
|
export interface PageStateUrlDetails {
|
@@ -2486,6 +2492,14 @@ declare namespace chrome {
|
|
2486
2492
|
////////////////////
|
2487
2493
|
// Declarative Web Request
|
2488
2494
|
////////////////////
|
2495
|
+
/**
|
2496
|
+
* Use the `chrome.declarativeWebRequest` API to intercept, block, or modify requests in-flight. It is significantly faster than the chrome.webRequest API because you can register rules that are evaluated in the browser rather than the JavaScript engine, which reduces roundtrip latencies and allows higher efficiency.
|
2497
|
+
*
|
2498
|
+
* Permissions: "declarativeWebRequest"
|
2499
|
+
*
|
2500
|
+
* MV2 only
|
2501
|
+
* @deprecated Check out the {@link declarativeNetRequest} API instead
|
2502
|
+
*/
|
2489
2503
|
export namespace declarativeWebRequest {
|
2490
2504
|
export interface HeaderFilter {
|
2491
2505
|
nameEquals?: string | undefined;
|
@@ -2596,9 +2610,9 @@ declare namespace chrome {
|
|
2596
2610
|
// DesktopCapture
|
2597
2611
|
////////////////////
|
2598
2612
|
/**
|
2599
|
-
* Desktop Capture API
|
2600
|
-
*
|
2601
|
-
* Permissions:
|
2613
|
+
* The Desktop Capture API captures the content of the screen, individual windows, or individual tabs.
|
2614
|
+
*
|
2615
|
+
* Permissions: "desktopCapture"
|
2602
2616
|
*/
|
2603
2617
|
export namespace desktopCapture {
|
2604
2618
|
/** Contains properties that describe the stream. */
|
@@ -2637,8 +2651,9 @@ declare namespace chrome {
|
|
2637
2651
|
// Dev Tools - Inspected Window
|
2638
2652
|
////////////////////
|
2639
2653
|
/**
|
2640
|
-
* Use the chrome.devtools.inspectedWindow API to interact with the inspected window: obtain the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within the page.
|
2641
|
-
*
|
2654
|
+
* Use the `chrome.devtools.inspectedWindow` API to interact with the inspected window: obtain the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within the page.
|
2655
|
+
*
|
2656
|
+
* Manifest: "devtools_page"
|
2642
2657
|
*/
|
2643
2658
|
export namespace devtools.inspectedWindow {
|
2644
2659
|
/** A resource within the inspected page, such as a document, a script, or an image. */
|
@@ -2765,8 +2780,9 @@ declare namespace chrome {
|
|
2765
2780
|
// Dev Tools - Network
|
2766
2781
|
////////////////////
|
2767
2782
|
/**
|
2768
|
-
* Use the chrome.devtools.network API to retrieve the information about network requests displayed by the Developer Tools in the Network panel.
|
2769
|
-
*
|
2783
|
+
* Use the `chrome.devtools.network` API to retrieve the information about network requests displayed by the Developer Tools in the Network panel.
|
2784
|
+
*
|
2785
|
+
* Manifest: "devtools_page"
|
2770
2786
|
*/
|
2771
2787
|
export namespace devtools.network {
|
2772
2788
|
/** Represents a HAR entry for a specific finished request. */
|
@@ -2810,8 +2826,8 @@ declare namespace chrome {
|
|
2810
2826
|
// Dev Tools - Performance
|
2811
2827
|
////////////////////
|
2812
2828
|
/**
|
2813
|
-
*
|
2814
|
-
* @since Chrome
|
2829
|
+
* Use the `chrome.devtools.performance` API to listen to recording status updates in the Performance panel in DevTools.
|
2830
|
+
* @since Chrome 129
|
2815
2831
|
*/
|
2816
2832
|
export namespace devtools.performance {
|
2817
2833
|
export interface ProfilingStartedEvent extends chrome.events.Event<() => void> {}
|
@@ -2828,8 +2844,9 @@ declare namespace chrome {
|
|
2828
2844
|
// Dev Tools - Panels
|
2829
2845
|
////////////////////
|
2830
2846
|
/**
|
2831
|
-
* Use the chrome.devtools.panels API to integrate your extension into Developer Tools window UI: create your own panels, access existing panels, and add sidebars.
|
2832
|
-
*
|
2847
|
+
* Use the `chrome.devtools.panels` API to integrate your extension into Developer Tools window UI: create your own panels, access existing panels, and add sidebars.
|
2848
|
+
*
|
2849
|
+
* Manifest: "devtools_page"
|
2833
2850
|
*/
|
2834
2851
|
export namespace devtools.panels {
|
2835
2852
|
export interface PanelShownEvent extends chrome.events.Event<(window: Window) => void> {}
|
@@ -3022,10 +3039,12 @@ declare namespace chrome {
|
|
3022
3039
|
// Document Scan
|
3023
3040
|
////////////////////
|
3024
3041
|
/**
|
3025
|
-
* Use the chrome.documentScan API to discover and retrieve images from attached
|
3042
|
+
* Use the `chrome.documentScan` API to discover and retrieve images from attached document scanners.
|
3043
|
+
* The Document Scan API is designed to allow apps and extensions to view the content of paper documents on an attached document scanner.
|
3044
|
+
*
|
3045
|
+
* Permissions: "documentScan"
|
3046
|
+
* @platform ChromeOS only
|
3026
3047
|
* @since Chrome 44
|
3027
|
-
* Permissions: "documentScan"
|
3028
|
-
* Important: This API works only on Chrome OS.
|
3029
3048
|
*/
|
3030
3049
|
export namespace documentScan {
|
3031
3050
|
export interface DocumentScanOptions {
|
@@ -3054,7 +3073,7 @@ declare namespace chrome {
|
|
3054
3073
|
// DOM
|
3055
3074
|
////////////////////
|
3056
3075
|
/**
|
3057
|
-
* Use the chrome.dom API to
|
3076
|
+
* Use the `chrome.dom` API to access special DOM APIs for Extensions
|
3058
3077
|
* @since Chrome 88
|
3059
3078
|
*/
|
3060
3079
|
export namespace dom {
|
@@ -3067,12 +3086,12 @@ declare namespace chrome {
|
|
3067
3086
|
}
|
3068
3087
|
|
3069
3088
|
////////////////////
|
3070
|
-
//
|
3089
|
+
// Downloads
|
3071
3090
|
////////////////////
|
3072
3091
|
/**
|
3073
|
-
* Use the chrome.downloads API to programmatically initiate, monitor, manipulate, and search for downloads.
|
3074
|
-
*
|
3075
|
-
* Permissions:
|
3092
|
+
* Use the `chrome.downloads` API to programmatically initiate, monitor, manipulate, and search for downloads.
|
3093
|
+
*
|
3094
|
+
* Permissions: "downloads"
|
3076
3095
|
*/
|
3077
3096
|
export namespace downloads {
|
3078
3097
|
export interface HeaderNameValuePair {
|
@@ -3472,11 +3491,12 @@ declare namespace chrome {
|
|
3472
3491
|
// Enterprise Platform Keys
|
3473
3492
|
////////////////////
|
3474
3493
|
/**
|
3475
|
-
* Use the chrome.enterprise.platformKeys API to generate
|
3476
|
-
*
|
3477
|
-
* Permissions:
|
3478
|
-
*
|
3479
|
-
* Note:
|
3494
|
+
* Use the `chrome.enterprise.platformKeys` API to generate keys and install certificates for these keys. The certificates will be managed by the platform and can be used for TLS authentication, network access or by other extension through {@link chrome.platformKeys}.
|
3495
|
+
*
|
3496
|
+
* Permissions: "enterprise.platformKeys"
|
3497
|
+
*
|
3498
|
+
* Note: Only available to policy installed extensions.
|
3499
|
+
* @platform ChromeOS only
|
3480
3500
|
*/
|
3481
3501
|
export namespace enterprise.platformKeys {
|
3482
3502
|
export interface Token {
|
@@ -3647,11 +3667,13 @@ declare namespace chrome {
|
|
3647
3667
|
// Enterprise Device Attributes
|
3648
3668
|
////////////////////
|
3649
3669
|
/**
|
3650
|
-
* Use the
|
3651
|
-
*
|
3670
|
+
* Use the `chrome.enterprise.deviceAttributes` API to read device attributes.
|
3671
|
+
*
|
3672
|
+
* Permissions: "enterprise.deviceAttributes"
|
3673
|
+
*
|
3674
|
+
* Note: Only available to policy installed extensions.
|
3675
|
+
* @platform ChromeOS only
|
3652
3676
|
* @since Chrome 46
|
3653
|
-
* Important: This API works only on Chrome OS.
|
3654
|
-
* Note: This API is only for extensions pre-installed by policy.
|
3655
3677
|
*/
|
3656
3678
|
export namespace enterprise.deviceAttributes {
|
3657
3679
|
/**
|
@@ -3700,12 +3722,11 @@ declare namespace chrome {
|
|
3700
3722
|
// Enterprise Hardware Platform
|
3701
3723
|
////////////////////
|
3702
3724
|
/**
|
3703
|
-
* Use the chrome.enterprise.hardwarePlatform API to get the manufacturer and model of the hardware platform where the browser runs.
|
3725
|
+
* Use the `chrome.enterprise.hardwarePlatform` API to get the manufacturer and model of the hardware platform where the browser runs.
|
3704
3726
|
*
|
3705
3727
|
* Permissions: "enterprise.hardwarePlatform"
|
3706
3728
|
*
|
3707
|
-
* Note:
|
3708
|
-
* @platform ChromeOS only
|
3729
|
+
* Note: Only available to policy installed extensions.
|
3709
3730
|
* @since Chrome 71
|
3710
3731
|
*/
|
3711
3732
|
export namespace enterprise.hardwarePlatform {
|
@@ -3726,8 +3747,12 @@ declare namespace chrome {
|
|
3726
3747
|
// Enterprise Networking Attributes
|
3727
3748
|
////////////////////
|
3728
3749
|
/**
|
3729
|
-
* Use the
|
3730
|
-
*
|
3750
|
+
* 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.
|
3751
|
+
*
|
3752
|
+
* Permissions: "enterprise.networkingAttributes"
|
3753
|
+
*
|
3754
|
+
* Note: Only available to policy installed extensions.
|
3755
|
+
* @platform ChromeOS only
|
3731
3756
|
* @since Chrome 85
|
3732
3757
|
*/
|
3733
3758
|
export namespace enterprise.networkingAttributes {
|
@@ -3751,8 +3776,7 @@ declare namespace chrome {
|
|
3751
3776
|
// Events
|
3752
3777
|
////////////////////
|
3753
3778
|
/**
|
3754
|
-
* The chrome.events namespace contains common types used by APIs dispatching events to notify you when something interesting happens.
|
3755
|
-
* @since Chrome 21
|
3779
|
+
* The `chrome.events` namespace contains common types used by APIs dispatching events to notify you when something interesting happens.
|
3756
3780
|
*/
|
3757
3781
|
export namespace events {
|
3758
3782
|
/** Filters URLs for various criteria. See event filtering. All criteria are case sensitive. */
|
@@ -3893,8 +3917,7 @@ declare namespace chrome {
|
|
3893
3917
|
// Extension
|
3894
3918
|
////////////////////
|
3895
3919
|
/**
|
3896
|
-
* 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.
|
3897
|
-
* @since Chrome 5
|
3920
|
+
* 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.
|
3898
3921
|
*/
|
3899
3922
|
export namespace extension {
|
3900
3923
|
export interface FetchProperties {
|
@@ -4014,10 +4037,10 @@ declare namespace chrome {
|
|
4014
4037
|
// File Browser Handler
|
4015
4038
|
////////////////////
|
4016
4039
|
/**
|
4017
|
-
* 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.
|
4018
|
-
*
|
4019
|
-
* Permissions:
|
4020
|
-
*
|
4040
|
+
* 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.
|
4041
|
+
*
|
4042
|
+
* Permissions: "fileBrowserHandler"
|
4043
|
+
* @platform ChromeOS only
|
4021
4044
|
*/
|
4022
4045
|
export namespace fileBrowserHandler {
|
4023
4046
|
export interface SelectionParams {
|
@@ -4067,10 +4090,10 @@ declare namespace chrome {
|
|
4067
4090
|
// File System Provider
|
4068
4091
|
////////////////////
|
4069
4092
|
/**
|
4070
|
-
* Use the chrome.fileSystemProvider API to create file systems, that can be accessible from the file manager on Chrome OS.
|
4071
|
-
*
|
4072
|
-
* Permissions:
|
4073
|
-
*
|
4093
|
+
* Use the `chrome.fileSystemProvider` API to create file systems, that can be accessible from the file manager on Chrome OS.
|
4094
|
+
*
|
4095
|
+
* Permissions: "fileSystemProvider"
|
4096
|
+
* @platform ChromeOS only
|
4074
4097
|
*/
|
4075
4098
|
export namespace fileSystemProvider {
|
4076
4099
|
export interface OpenedFileInfo {
|
@@ -4599,9 +4622,9 @@ declare namespace chrome {
|
|
4599
4622
|
// Font Settings
|
4600
4623
|
////////////////////
|
4601
4624
|
/**
|
4602
|
-
* Use the chrome.fontSettings API to manage Chrome's font settings.
|
4603
|
-
*
|
4604
|
-
* Permissions:
|
4625
|
+
* Use the `chrome.fontSettings` API to manage Chrome's font settings.
|
4626
|
+
*
|
4627
|
+
* Permissions: "fontSettings"
|
4605
4628
|
*/
|
4606
4629
|
export namespace fontSettings {
|
4607
4630
|
/** Represents a font name. */
|
@@ -4824,9 +4847,9 @@ declare namespace chrome {
|
|
4824
4847
|
// Google Cloud Messaging
|
4825
4848
|
////////////////////
|
4826
4849
|
/**
|
4827
|
-
* Use chrome.gcm to enable apps and extensions to send and receive messages through
|
4828
|
-
*
|
4829
|
-
* Permissions:
|
4850
|
+
* Use `chrome.gcm` to enable apps and extensions to send and receive messages through Firebase Cloud Messaging (FCM).
|
4851
|
+
*
|
4852
|
+
* Permissions: "gcm"
|
4830
4853
|
*/
|
4831
4854
|
export namespace gcm {
|
4832
4855
|
export interface OutgoingMessage {
|
@@ -4906,9 +4929,9 @@ declare namespace chrome {
|
|
4906
4929
|
// History
|
4907
4930
|
////////////////////
|
4908
4931
|
/**
|
4909
|
-
* 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.
|
4910
|
-
*
|
4911
|
-
* Permissions:
|
4932
|
+
* 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.
|
4933
|
+
*
|
4934
|
+
* Permissions: "history"
|
4912
4935
|
*/
|
4913
4936
|
export namespace history {
|
4914
4937
|
/** An object encapsulating one visit to a URL. */
|
@@ -5040,8 +5063,9 @@ declare namespace chrome {
|
|
5040
5063
|
// i18n
|
5041
5064
|
////////////////////
|
5042
5065
|
/**
|
5043
|
-
* Use the chrome.i18n infrastructure to implement internationalization across your whole app or extension.
|
5044
|
-
*
|
5066
|
+
* Use the `chrome.i18n` infrastructure to implement internationalization across your whole app or extension.
|
5067
|
+
*
|
5068
|
+
* Manifest: "default_locale"
|
5045
5069
|
*/
|
5046
5070
|
export namespace i18n {
|
5047
5071
|
/** Holds detected ISO language code and its percentage in the input string */
|
@@ -5103,9 +5127,9 @@ declare namespace chrome {
|
|
5103
5127
|
// Identity
|
5104
5128
|
////////////////////
|
5105
5129
|
/**
|
5106
|
-
* Use the chrome.identity API to get OAuth2 access tokens.
|
5107
|
-
*
|
5108
|
-
*
|
5130
|
+
* Use the `chrome.identity` API to get OAuth2 access tokens.
|
5131
|
+
*
|
5132
|
+
* Permissions: "identity"
|
5109
5133
|
*/
|
5110
5134
|
export namespace identity {
|
5111
5135
|
/** @since Chrome 32 */
|
@@ -5278,9 +5302,9 @@ declare namespace chrome {
|
|
5278
5302
|
// Idle
|
5279
5303
|
////////////////////
|
5280
5304
|
/**
|
5281
|
-
* Use the chrome.idle API to detect when the machine's idle state changes.
|
5282
|
-
*
|
5283
|
-
*
|
5305
|
+
* Use the `chrome.idle` API to detect when the machine's idle state changes.
|
5306
|
+
*
|
5307
|
+
* Permissions: "idle"
|
5284
5308
|
*/
|
5285
5309
|
export namespace idle {
|
5286
5310
|
export type IdleState = "active" | "idle" | "locked";
|
@@ -5321,9 +5345,10 @@ declare namespace chrome {
|
|
5321
5345
|
// Input - IME
|
5322
5346
|
////////////////////
|
5323
5347
|
/**
|
5324
|
-
* Use the chrome.input.ime API to implement a custom IME for Chrome OS. This allows your extension to handle keystrokes, set the composition, and manage the candidate window.
|
5325
|
-
*
|
5326
|
-
*
|
5348
|
+
* Use the `chrome.input.ime` API to implement a custom IME for Chrome OS. This allows your extension to handle keystrokes, set the composition, and manage the candidate window.
|
5349
|
+
*
|
5350
|
+
* Permissions: "input"
|
5351
|
+
* @platform ChromeOS only
|
5327
5352
|
*/
|
5328
5353
|
export namespace input.ime {
|
5329
5354
|
/** See http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent */
|
@@ -5801,8 +5826,12 @@ declare namespace chrome {
|
|
5801
5826
|
export var onReset: InputResetEvent;
|
5802
5827
|
}
|
5803
5828
|
|
5829
|
+
////////////////////
|
5830
|
+
// Instance ID
|
5831
|
+
////////////////////
|
5804
5832
|
/**
|
5805
|
-
* Use chrome.instanceID to access the Instance ID service.
|
5833
|
+
* Use `chrome.instanceID` to access the Instance ID service.
|
5834
|
+
*
|
5806
5835
|
* Permissions: "gcm"
|
5807
5836
|
* @since Chrome 44
|
5808
5837
|
*/
|
@@ -5885,10 +5914,11 @@ declare namespace chrome {
|
|
5885
5914
|
// LoginState
|
5886
5915
|
////////////////////
|
5887
5916
|
/**
|
5888
|
-
* Use the chrome.loginState API to read and monitor the login state.
|
5917
|
+
* Use the `chrome.loginState` API to read and monitor the login state.
|
5918
|
+
*
|
5889
5919
|
* Permissions: "loginState"
|
5920
|
+
* @platform ChromeOS only
|
5890
5921
|
* @since Chrome 78
|
5891
|
-
* Important: This API works only on Chrome OS.
|
5892
5922
|
*/
|
5893
5923
|
export namespace loginState {
|
5894
5924
|
export interface SessionStateChangedEvent extends chrome.events.Event<(sessionState: SessionState) => void> {}
|
@@ -5913,9 +5943,9 @@ declare namespace chrome {
|
|
5913
5943
|
// Management
|
5914
5944
|
////////////////////
|
5915
5945
|
/**
|
5916
|
-
* The chrome.management API provides ways to manage
|
5917
|
-
*
|
5918
|
-
*
|
5946
|
+
* The `chrome.management` API provides ways to manage installed apps and extensions.
|
5947
|
+
*
|
5948
|
+
* Permissions: "management"
|
5919
5949
|
*/
|
5920
5950
|
export namespace management {
|
5921
5951
|
/** Information about an installed extension, app, or theme. */
|
@@ -6233,7 +6263,7 @@ declare namespace chrome {
|
|
6233
6263
|
}
|
6234
6264
|
|
6235
6265
|
////////////////////
|
6236
|
-
//
|
6266
|
+
// Networking
|
6237
6267
|
////////////////////
|
6238
6268
|
/**
|
6239
6269
|
* Use the networking.config API to authenticate to captive portals.
|
@@ -6283,12 +6313,11 @@ declare namespace chrome {
|
|
6283
6313
|
|
6284
6314
|
////////////////////
|
6285
6315
|
// Notifications
|
6286
|
-
// https://developer.chrome.com/extensions/notifications
|
6287
6316
|
////////////////////
|
6288
6317
|
/**
|
6289
|
-
* Use the chrome.notifications API to create rich notifications using templates and show these notifications to users in the system tray.
|
6290
|
-
*
|
6291
|
-
*
|
6318
|
+
* Use the `chrome.notifications` API to create rich notifications using templates and show these notifications to users in the system tray.
|
6319
|
+
*
|
6320
|
+
* Permissions: "notifications"
|
6292
6321
|
*/
|
6293
6322
|
export namespace notifications {
|
6294
6323
|
export type TemplateType = "basic" | "image" | "list" | "progress";
|
@@ -6472,9 +6501,10 @@ declare namespace chrome {
|
|
6472
6501
|
// Offscreen
|
6473
6502
|
////////////////////
|
6474
6503
|
/**
|
6475
|
-
* Use the offscreen API to create and manage offscreen documents.
|
6476
|
-
*
|
6504
|
+
* Use the `offscreen` API to create and manage offscreen documents.
|
6505
|
+
*
|
6477
6506
|
* Permissions: "offscreen"
|
6507
|
+
* @since Chrome 109, MV3
|
6478
6508
|
*/
|
6479
6509
|
export namespace offscreen {
|
6480
6510
|
/** The reason(s) the extension is creating the offscreen document. */
|
@@ -6562,8 +6592,8 @@ declare namespace chrome {
|
|
6562
6592
|
////////////////////
|
6563
6593
|
/**
|
6564
6594
|
* The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.
|
6565
|
-
*
|
6566
|
-
*
|
6595
|
+
*
|
6596
|
+
* Manifest: "omnibox"
|
6567
6597
|
*/
|
6568
6598
|
export namespace omnibox {
|
6569
6599
|
/** A suggest result. */
|
@@ -6626,9 +6656,11 @@ declare namespace chrome {
|
|
6626
6656
|
// Page Action
|
6627
6657
|
////////////////////
|
6628
6658
|
/**
|
6629
|
-
* Use the chrome.pageAction API to put icons
|
6630
|
-
*
|
6631
|
-
*
|
6659
|
+
* 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.
|
6660
|
+
*
|
6661
|
+
* Manifest: "page_action"
|
6662
|
+
*
|
6663
|
+
* MV2 only
|
6632
6664
|
*/
|
6633
6665
|
export namespace pageAction {
|
6634
6666
|
export interface PageActionClickedEvent extends chrome.events.Event<(tab: chrome.tabs.Tab) => void> {}
|
@@ -6717,9 +6749,9 @@ declare namespace chrome {
|
|
6717
6749
|
// Page Capture
|
6718
6750
|
////////////////////
|
6719
6751
|
/**
|
6720
|
-
* Use the chrome.pageCapture API to save a tab as MHTML.
|
6721
|
-
*
|
6722
|
-
*
|
6752
|
+
* Use the `chrome.pageCapture` API to save a tab as MHTML.
|
6753
|
+
*
|
6754
|
+
* Permissions: "pageCapture"
|
6723
6755
|
*/
|
6724
6756
|
export namespace pageCapture {
|
6725
6757
|
export interface SaveDetails {
|
@@ -6744,8 +6776,7 @@ declare namespace chrome {
|
|
6744
6776
|
// Permissions
|
6745
6777
|
////////////////////
|
6746
6778
|
/**
|
6747
|
-
* Use the chrome.permissions API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
|
6748
|
-
* @since Chrome 16
|
6779
|
+
* Use the `chrome.permissions` API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
|
6749
6780
|
*/
|
6750
6781
|
export namespace permissions {
|
6751
6782
|
export interface Permissions {
|
@@ -6798,9 +6829,10 @@ declare namespace chrome {
|
|
6798
6829
|
// Platform Keys
|
6799
6830
|
////////////////////
|
6800
6831
|
/**
|
6801
|
-
* 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 chrome.vpnProvider).
|
6802
|
-
*
|
6803
|
-
*
|
6832
|
+
* 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 chrome.vpnProvider).
|
6833
|
+
*
|
6834
|
+
* Permissions: "platformKeys"
|
6835
|
+
* @platform ChromeOS only
|
6804
6836
|
* @since Chrome 45
|
6805
6837
|
*/
|
6806
6838
|
export namespace platformKeys {
|
@@ -6896,9 +6928,9 @@ declare namespace chrome {
|
|
6896
6928
|
// Power
|
6897
6929
|
////////////////////
|
6898
6930
|
/**
|
6899
|
-
* Use the chrome.power API to override the system's power management features.
|
6931
|
+
* Use the `chrome.power` API to override the system's power management features.
|
6932
|
+
*
|
6900
6933
|
* Permissions: "power"
|
6901
|
-
* @since Chrome 27
|
6902
6934
|
*/
|
6903
6935
|
export namespace power {
|
6904
6936
|
export enum Level {
|
@@ -6928,8 +6960,9 @@ declare namespace chrome {
|
|
6928
6960
|
// Printer Provider
|
6929
6961
|
////////////////////
|
6930
6962
|
/**
|
6931
|
-
* 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.
|
6932
|
-
*
|
6963
|
+
* 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.
|
6964
|
+
*
|
6965
|
+
* Permissions: "printerProvider"
|
6933
6966
|
* @since Chrome 44
|
6934
6967
|
*/
|
6935
6968
|
export namespace printerProvider {
|
@@ -6996,12 +7029,12 @@ declare namespace chrome {
|
|
6996
7029
|
// Printing
|
6997
7030
|
////////////////////
|
6998
7031
|
/**
|
6999
|
-
|
7032
|
+
* Use the `chrome.printing` API to send print jobs to printers installed on Chromebook.
|
7000
7033
|
|
7001
|
-
|
7002
|
-
|
7003
|
-
|
7004
|
-
|
7034
|
+
* Permissions: "printing"
|
7035
|
+
* @platform ChromeOS only
|
7036
|
+
* @since Chrome 81
|
7037
|
+
*/
|
7005
7038
|
export namespace printing {
|
7006
7039
|
export interface GetPrinterInfoResponse {
|
7007
7040
|
/** Printer capabilities in [CDD format](https://developers.google.com/cloud-print/docs/cdd#cdd-example). The property may be missing. */
|
@@ -7149,11 +7182,11 @@ declare namespace chrome {
|
|
7149
7182
|
// Printing Metrics
|
7150
7183
|
////////////////////
|
7151
7184
|
/**
|
7152
|
-
* Use the chrome.printingMetrics API to fetch data about printing usage.
|
7185
|
+
* Use the `chrome.printingMetrics` API to fetch data about printing usage.
|
7153
7186
|
*
|
7154
7187
|
* Permissions: "printingMetrics"
|
7155
7188
|
*
|
7156
|
-
* Note:
|
7189
|
+
* Note: Only available to policy installed extensions.
|
7157
7190
|
* @platform ChromeOS only
|
7158
7191
|
* @since Chrome 79
|
7159
7192
|
*/
|
@@ -7279,10 +7312,10 @@ declare namespace chrome {
|
|
7279
7312
|
// Privacy
|
7280
7313
|
////////////////////
|
7281
7314
|
/**
|
7282
|
-
* 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 for getting and setting Chrome's configuration.
|
7283
|
-
*
|
7284
|
-
*
|
7285
|
-
*
|
7315
|
+
* 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 for getting and setting Chrome's configuration.
|
7316
|
+
* Note: The Chrome Privacy Whitepaper gives background detail regarding the features which this API can control.
|
7317
|
+
*
|
7318
|
+
* Permissions: "privacy"
|
7286
7319
|
*/
|
7287
7320
|
export namespace privacy {
|
7288
7321
|
/**
|
@@ -7342,9 +7375,9 @@ declare namespace chrome {
|
|
7342
7375
|
// Proxy
|
7343
7376
|
////////////////////
|
7344
7377
|
/**
|
7345
|
-
* Use the chrome.proxy API to manage Chrome's proxy settings. This API relies on the ChromeSetting prototype of the type API for getting and setting the proxy configuration.
|
7346
|
-
*
|
7347
|
-
*
|
7378
|
+
* Use the `chrome.proxy` API to manage Chrome's proxy settings. This API relies on the ChromeSetting prototype of the type API for getting and setting the proxy configuration.
|
7379
|
+
*
|
7380
|
+
* Permissions: "proxy"
|
7348
7381
|
*/
|
7349
7382
|
export namespace proxy {
|
7350
7383
|
/** An object holding proxy auto-config information. Exactly one of the fields should be non-empty. */
|
@@ -7419,10 +7452,11 @@ declare namespace chrome {
|
|
7419
7452
|
// Search
|
7420
7453
|
////////////////////
|
7421
7454
|
/**
|
7422
|
-
* Use the chrome.search API to search via the default provider.
|
7423
|
-
*
|
7455
|
+
* Use the `chrome.search` API to search via the default provider.
|
7456
|
+
*
|
7457
|
+
* Permissions: "search"
|
7458
|
+
* @since Chrome 87
|
7424
7459
|
*/
|
7425
|
-
|
7426
7460
|
export namespace search {
|
7427
7461
|
export type Disposition = "CURRENT_TAB" | "NEW_TAB" | "NEW_WINDOW";
|
7428
7462
|
|
@@ -7724,8 +7758,7 @@ declare namespace chrome {
|
|
7724
7758
|
// Runtime
|
7725
7759
|
////////////////////
|
7726
7760
|
/**
|
7727
|
-
* Use the chrome.runtime API to retrieve the
|
7728
|
-
* @since Chrome 22
|
7761
|
+
* Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
|
7729
7762
|
*/
|
7730
7763
|
export namespace runtime {
|
7731
7764
|
/** This will be defined during an API method callback if there was an error */
|
@@ -8600,7 +8633,8 @@ declare namespace chrome {
|
|
8600
8633
|
// Scripting
|
8601
8634
|
////////////////////
|
8602
8635
|
/**
|
8603
|
-
* Use the chrome.scripting API to execute script in different contexts.
|
8636
|
+
* Use the `chrome.scripting` API to execute script in different contexts.
|
8637
|
+
*
|
8604
8638
|
* Permissions: "scripting"
|
8605
8639
|
* @since Chrome 88, MV3
|
8606
8640
|
*/
|
@@ -8852,9 +8886,9 @@ declare namespace chrome {
|
|
8852
8886
|
// Sessions
|
8853
8887
|
////////////////////
|
8854
8888
|
/**
|
8855
|
-
* Use the chrome.sessions API to query and restore tabs and windows from a browsing session.
|
8856
|
-
*
|
8857
|
-
*
|
8889
|
+
* Use the `chrome.sessions` API to query and restore tabs and windows from a browsing session.
|
8890
|
+
*
|
8891
|
+
* Permissions: "sessions"
|
8858
8892
|
*/
|
8859
8893
|
export namespace sessions {
|
8860
8894
|
export interface Filter {
|
@@ -8956,9 +8990,9 @@ declare namespace chrome {
|
|
8956
8990
|
// Storage
|
8957
8991
|
////////////////////
|
8958
8992
|
/**
|
8959
|
-
* Use the chrome.storage API to store, retrieve, and track changes to user data.
|
8960
|
-
*
|
8961
|
-
*
|
8993
|
+
* Use the `chrome.storage` API to store, retrieve, and track changes to user data.
|
8994
|
+
*
|
8995
|
+
* Permissions: "storage"
|
8962
8996
|
*/
|
8963
8997
|
export namespace storage {
|
8964
8998
|
/** NoInfer for old TypeScript versions */
|
@@ -9267,9 +9301,9 @@ declare namespace chrome {
|
|
9267
9301
|
// System CPU
|
9268
9302
|
////////////////////
|
9269
9303
|
/**
|
9270
|
-
* Use the system.cpu API to query CPU metadata.
|
9304
|
+
* Use the `system.cpu` API to query CPU metadata.
|
9305
|
+
*
|
9271
9306
|
* Permissions: "system.cpu"
|
9272
|
-
* @since Chrome 32
|
9273
9307
|
*/
|
9274
9308
|
export namespace system.cpu {
|
9275
9309
|
export interface ProcessorUsage {
|
@@ -9318,9 +9352,9 @@ declare namespace chrome {
|
|
9318
9352
|
// System Memory
|
9319
9353
|
////////////////////
|
9320
9354
|
/**
|
9321
|
-
* The chrome.system.memory API.
|
9322
|
-
*
|
9323
|
-
*
|
9355
|
+
* The `chrome.system.memory` API.
|
9356
|
+
*
|
9357
|
+
* Permissions: "system.memory"
|
9324
9358
|
*/
|
9325
9359
|
export namespace system.memory {
|
9326
9360
|
export interface MemoryInfo {
|
@@ -9344,9 +9378,9 @@ declare namespace chrome {
|
|
9344
9378
|
// System Storage
|
9345
9379
|
////////////////////
|
9346
9380
|
/**
|
9347
|
-
* Use the chrome.system.storage API to query storage device information and be notified when a removable storage device is attached and detached.
|
9348
|
-
*
|
9349
|
-
*
|
9381
|
+
* Use the `chrome.system.storage` API to query storage device information and be notified when a removable storage device is attached and detached.
|
9382
|
+
*
|
9383
|
+
* Permissions: "system.storage"
|
9350
9384
|
*/
|
9351
9385
|
export namespace system.storage {
|
9352
9386
|
export interface StorageUnitInfo {
|
@@ -9418,9 +9452,9 @@ declare namespace chrome {
|
|
9418
9452
|
// System Display //
|
9419
9453
|
////////////////////
|
9420
9454
|
/**
|
9421
|
-
* Use the system.display API to query display metadata.
|
9455
|
+
* Use the `system.display` API to query display metadata.
|
9456
|
+
*
|
9422
9457
|
* Permissions: "system.display"
|
9423
|
-
* @since Chrome 30
|
9424
9458
|
*/
|
9425
9459
|
export namespace system.display {
|
9426
9460
|
export enum LayoutPosition {
|
@@ -9896,11 +9930,11 @@ declare namespace chrome {
|
|
9896
9930
|
// SystemLog
|
9897
9931
|
////////////////////
|
9898
9932
|
/**
|
9899
|
-
* Use the chrome.systemLog API to record Chrome system logs from extensions.
|
9933
|
+
* Use the `chrome.systemLog` API to record Chrome system logs from extensions.
|
9900
9934
|
*
|
9901
9935
|
* Permissions: "systemLog"
|
9902
9936
|
*
|
9903
|
-
* Note:
|
9937
|
+
* Note: Only available to policy installed extensions.
|
9904
9938
|
* @platform ChromeOS only
|
9905
9939
|
* @since Chrome 125
|
9906
9940
|
*/
|
@@ -9921,9 +9955,9 @@ declare namespace chrome {
|
|
9921
9955
|
// TabCapture
|
9922
9956
|
////////////////////
|
9923
9957
|
/**
|
9924
|
-
* Use the chrome.tabCapture API to interact with tab media streams.
|
9925
|
-
*
|
9926
|
-
*
|
9958
|
+
* Use the `chrome.tabCapture` API to interact with tab media streams.
|
9959
|
+
*
|
9960
|
+
* Permissions: "tabCapture"
|
9927
9961
|
*/
|
9928
9962
|
export namespace tabCapture {
|
9929
9963
|
export interface CaptureInfo {
|
@@ -9990,9 +10024,9 @@ declare namespace chrome {
|
|
9990
10024
|
// Tabs
|
9991
10025
|
////////////////////
|
9992
10026
|
/**
|
9993
|
-
* 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.
|
10027
|
+
* 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.
|
10028
|
+
*
|
9994
10029
|
* Permissions: The majority of the chrome.tabs API can be used without declaring any permission. However, the "tabs" permission is required in order to populate the url, title, and favIconUrl properties of Tab.
|
9995
|
-
* @since Chrome 5
|
9996
10030
|
*/
|
9997
10031
|
export namespace tabs {
|
9998
10032
|
/**
|
@@ -10124,7 +10158,7 @@ declare namespace chrome {
|
|
10124
10158
|
*/
|
10125
10159
|
groupId: number;
|
10126
10160
|
/**
|
10127
|
-
* The last time the tab
|
10161
|
+
* The last time the tab became active in its window as the number of milliseconds since epoch.
|
10128
10162
|
* @since Chrome 121
|
10129
10163
|
*/
|
10130
10164
|
lastAccessed?: number | undefined;
|
@@ -11224,8 +11258,9 @@ declare namespace chrome {
|
|
11224
11258
|
// Tab Groups
|
11225
11259
|
////////////////////
|
11226
11260
|
/**
|
11227
|
-
* 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.
|
11228
|
-
*
|
11261
|
+
* 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.
|
11262
|
+
*
|
11263
|
+
* Permissions: "tabGroups"
|
11229
11264
|
* @since Chrome 89, MV3
|
11230
11265
|
*/
|
11231
11266
|
export namespace tabGroups {
|
@@ -11361,9 +11396,9 @@ declare namespace chrome {
|
|
11361
11396
|
// Top Sites
|
11362
11397
|
////////////////////
|
11363
11398
|
/**
|
11364
|
-
* Use the chrome.topSites API to access the top sites that are displayed on the new tab page.
|
11365
|
-
*
|
11366
|
-
*
|
11399
|
+
* 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.
|
11400
|
+
*
|
11401
|
+
* Permissions: "topSites"
|
11367
11402
|
*/
|
11368
11403
|
export namespace topSites {
|
11369
11404
|
/** An object encapsulating a most visited URL, such as the URLs on the new tab page. */
|
@@ -11388,9 +11423,9 @@ declare namespace chrome {
|
|
11388
11423
|
// Text to Speech
|
11389
11424
|
////////////////////
|
11390
11425
|
/**
|
11391
|
-
* Use the chrome.tts API to play synthesized text-to-speech (TTS). See also the related ttsEngine API, which allows an extension to implement a speech engine.
|
11392
|
-
*
|
11393
|
-
*
|
11426
|
+
* Use the `chrome.tts` API to play synthesized text-to-speech (TTS). See also the related ttsEngine API, which allows an extension to implement a speech engine.
|
11427
|
+
*
|
11428
|
+
* Permissions: "tts"
|
11394
11429
|
*/
|
11395
11430
|
export namespace tts {
|
11396
11431
|
/** An event from the TTS engine to communicate the status of an utterance. */
|
@@ -11521,9 +11556,9 @@ declare namespace chrome {
|
|
11521
11556
|
// Text to Speech Engine
|
11522
11557
|
////////////////////
|
11523
11558
|
/**
|
11524
|
-
* 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 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.
|
11525
|
-
*
|
11526
|
-
*
|
11559
|
+
* 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.
|
11560
|
+
*
|
11561
|
+
* Permissions: "ttsEngine"
|
11527
11562
|
*/
|
11528
11563
|
export namespace ttsEngine {
|
11529
11564
|
export interface SpeakOptions {
|
@@ -11573,8 +11608,7 @@ declare namespace chrome {
|
|
11573
11608
|
// Types
|
11574
11609
|
////////////////////
|
11575
11610
|
/**
|
11576
|
-
* The chrome.types API contains type declarations for Chrome.
|
11577
|
-
* @since Chrome 13
|
11611
|
+
* The `chrome.types` API contains type declarations for Chrome.
|
11578
11612
|
*/
|
11579
11613
|
export namespace types {
|
11580
11614
|
/**
|
@@ -11685,9 +11719,10 @@ declare namespace chrome {
|
|
11685
11719
|
// VPN Provider
|
11686
11720
|
////////////////////
|
11687
11721
|
/**
|
11688
|
-
* Use the chrome.vpnProvider API to implement a VPN client.
|
11689
|
-
*
|
11690
|
-
*
|
11722
|
+
* Use the `chrome.vpnProvider` API to implement a VPN client.
|
11723
|
+
*
|
11724
|
+
* Permissions: "vpnProvider"
|
11725
|
+
* @platform ChromeOS only
|
11691
11726
|
* @since Chrome 43
|
11692
11727
|
*/
|
11693
11728
|
export namespace vpnProvider {
|
@@ -11776,9 +11811,10 @@ declare namespace chrome {
|
|
11776
11811
|
// Wallpaper
|
11777
11812
|
////////////////////
|
11778
11813
|
/**
|
11779
|
-
* Use the chrome.wallpaper API to change the ChromeOS wallpaper.
|
11780
|
-
*
|
11781
|
-
*
|
11814
|
+
* Use the `chrome.wallpaper` API to change the ChromeOS wallpaper.
|
11815
|
+
*
|
11816
|
+
* Permissions: "wallpaper"
|
11817
|
+
* @platform ChromeOS only
|
11782
11818
|
* @since Chrome 43
|
11783
11819
|
*/
|
11784
11820
|
export namespace wallpaper {
|
@@ -11810,9 +11846,9 @@ declare namespace chrome {
|
|
11810
11846
|
// Web Navigation
|
11811
11847
|
////////////////////
|
11812
11848
|
/**
|
11813
|
-
* Use the chrome.webNavigation API to receive notifications about the status of navigation requests in-flight.
|
11814
|
-
*
|
11815
|
-
*
|
11849
|
+
* Use the `chrome.webNavigation` API to receive notifications about the status of navigation requests in-flight.
|
11850
|
+
*
|
11851
|
+
* Permissions: "webNavigation"
|
11816
11852
|
*/
|
11817
11853
|
export namespace webNavigation {
|
11818
11854
|
export interface GetFrameDetails {
|
@@ -12023,9 +12059,11 @@ declare namespace chrome {
|
|
12023
12059
|
// Web Request
|
12024
12060
|
////////////////////
|
12025
12061
|
/**
|
12026
|
-
* Use the chrome.webRequest API to observe and analyze traffic and to intercept, block, or modify requests in-flight.
|
12027
|
-
*
|
12028
|
-
*
|
12062
|
+
* Use the `chrome.webRequest` API to observe and analyze traffic and to intercept, block, or modify requests in-flight.
|
12063
|
+
*
|
12064
|
+
* Permissions: "webRequest"
|
12065
|
+
*
|
12066
|
+
* Manifest: "host_permissions"
|
12029
12067
|
*/
|
12030
12068
|
export namespace webRequest {
|
12031
12069
|
interface WebRequestEvent<T extends Function, U extends string[]>
|
@@ -12433,9 +12471,9 @@ declare namespace chrome {
|
|
12433
12471
|
// Windows
|
12434
12472
|
////////////////////
|
12435
12473
|
/**
|
12436
|
-
* Use the chrome.windows API to interact with browser windows. You can use this API to create, modify, and rearrange windows in the browser.
|
12474
|
+
* Use the `chrome.windows` API to interact with browser windows. You can use this API to create, modify, and rearrange windows in the browser.
|
12475
|
+
*
|
12437
12476
|
* Permissions: The chrome.windows API can be used without declaring any permission. However, the "tabs" permission is required in order to populate the url, title, and favIconUrl properties of Tab objects.
|
12438
|
-
* @since Chrome 5
|
12439
12477
|
*/
|
12440
12478
|
export namespace windows {
|
12441
12479
|
export interface Window {
|
@@ -12768,6 +12806,17 @@ declare namespace chrome {
|
|
12768
12806
|
export var onBoundsChanged: WindowReferenceEvent;
|
12769
12807
|
}
|
12770
12808
|
|
12809
|
+
////////////////////
|
12810
|
+
// declarativeNetRequest
|
12811
|
+
////////////////////
|
12812
|
+
/**
|
12813
|
+
* 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.
|
12814
|
+
*
|
12815
|
+
* Permissions: "declarativeNetRequest", "declarativeNetRequestWithHostAccess", "declarativeNetRequestFeedback"
|
12816
|
+
*
|
12817
|
+
* Manifest: "host_permissions"
|
12818
|
+
* @since Chrome 84
|
12819
|
+
*/
|
12771
12820
|
export namespace declarativeNetRequest {
|
12772
12821
|
/** Ruleset ID for the dynamic rules added by the extension. */
|
12773
12822
|
export const DYNAMIC_RULESET_ID: "_dynamic";
|
@@ -13596,9 +13645,10 @@ declare namespace chrome {
|
|
13596
13645
|
// SidePanel
|
13597
13646
|
////////////////////
|
13598
13647
|
/**
|
13599
|
-
*
|
13600
|
-
*
|
13648
|
+
* Use the `chrome.sidePanel` API to host content in the browser's side panel alongside the main content of a webpage.
|
13649
|
+
*
|
13601
13650
|
* Permissions: "sidePanel"
|
13651
|
+
* @since Chrome 114, MV3
|
13602
13652
|
*/
|
13603
13653
|
export namespace sidePanel {
|
13604
13654
|
export interface GetPanelOptions {
|
@@ -13739,15 +13789,15 @@ declare namespace chrome {
|
|
13739
13789
|
): Promise<void>;
|
13740
13790
|
}
|
13741
13791
|
|
13742
|
-
|
13743
|
-
|
13792
|
+
////////////////////
|
13793
|
+
// User Scripts
|
13794
|
+
////////////////////
|
13744
13795
|
/**
|
13745
|
-
*
|
13746
|
-
*
|
13796
|
+
* Use the `userScripts` API to execute user scripts in the User Scripts context.
|
13797
|
+
*
|
13747
13798
|
* Permissions: "userScripts"
|
13748
|
-
*
|
13799
|
+
* @since Chrome 120, MV3
|
13749
13800
|
*/
|
13750
|
-
|
13751
13801
|
export namespace userScripts {
|
13752
13802
|
/**
|
13753
13803
|
* Execution environment for a user script.
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.294",
|
4
4
|
"description": "TypeScript definitions for chrome",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -94,6 +94,6 @@
|
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
96
|
"peerDependencies": {},
|
97
|
-
"typesPublisherContentHash": "
|
97
|
+
"typesPublisherContentHash": "ee5173779b32ec36ced6918cfdf3e272c65479c5642f0cfcc39c0a9ac51cdbad",
|
98
98
|
"typeScriptVersion": "5.0"
|
99
99
|
}
|