chrome-types 0.1.91 → 0.1.92
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 +151 -8
- package/index.d.ts +34 -6
- 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 Fri Mar 04 2022 22:28:25 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at c6cc7dcbef1fabbd413a688e661edfa570780914
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -20793,6 +20793,17 @@ declare namespace chrome {
|
|
|
20793
20793
|
tab: tabs.Tab,
|
|
20794
20794
|
) => void>;
|
|
20795
20795
|
|
|
20796
|
+
/**
|
|
20797
|
+
* Shows the page action. The page action is shown whenever the tab is selected.
|
|
20798
|
+
*
|
|
20799
|
+
* @chrome-returns-extra since Pending
|
|
20800
|
+
* @param tabId The id of the tab for which you want to modify the page action.
|
|
20801
|
+
*/
|
|
20802
|
+
export function show(
|
|
20803
|
+
|
|
20804
|
+
tabId: number,
|
|
20805
|
+
): Promise<void>;
|
|
20806
|
+
|
|
20796
20807
|
/**
|
|
20797
20808
|
* Shows the page action. The page action is shown whenever the tab is selected.
|
|
20798
20809
|
*
|
|
@@ -20808,6 +20819,17 @@ declare namespace chrome {
|
|
|
20808
20819
|
callback?: () => void,
|
|
20809
20820
|
): void;
|
|
20810
20821
|
|
|
20822
|
+
/**
|
|
20823
|
+
* Hides the page action. Hidden page actions still appear in the Chrome toolbar, but are grayed out.
|
|
20824
|
+
*
|
|
20825
|
+
* @chrome-returns-extra since Pending
|
|
20826
|
+
* @param tabId The id of the tab for which you want to modify the page action.
|
|
20827
|
+
*/
|
|
20828
|
+
export function hide(
|
|
20829
|
+
|
|
20830
|
+
tabId: number,
|
|
20831
|
+
): Promise<void>;
|
|
20832
|
+
|
|
20811
20833
|
/**
|
|
20812
20834
|
* Hides the page action. Hidden page actions still appear in the Chrome toolbar, but are grayed out.
|
|
20813
20835
|
*
|
|
@@ -20823,6 +20845,27 @@ declare namespace chrome {
|
|
|
20823
20845
|
callback?: () => void,
|
|
20824
20846
|
): void;
|
|
20825
20847
|
|
|
20848
|
+
/**
|
|
20849
|
+
* Sets the title of the page action. This is displayed in a tooltip over the page action.
|
|
20850
|
+
*
|
|
20851
|
+
* @chrome-returns-extra since Pending
|
|
20852
|
+
*/
|
|
20853
|
+
export function setTitle(
|
|
20854
|
+
|
|
20855
|
+
details: {
|
|
20856
|
+
|
|
20857
|
+
/**
|
|
20858
|
+
* The id of the tab for which you want to modify the page action.
|
|
20859
|
+
*/
|
|
20860
|
+
tabId: number,
|
|
20861
|
+
|
|
20862
|
+
/**
|
|
20863
|
+
* The tooltip string.
|
|
20864
|
+
*/
|
|
20865
|
+
title: string,
|
|
20866
|
+
},
|
|
20867
|
+
): Promise<void>;
|
|
20868
|
+
|
|
20826
20869
|
/**
|
|
20827
20870
|
* Sets the title of the page action. This is displayed in a tooltip over the page action.
|
|
20828
20871
|
*/
|
|
@@ -20849,16 +20892,57 @@ declare namespace chrome {
|
|
|
20849
20892
|
|
|
20850
20893
|
/**
|
|
20851
20894
|
* Gets the title of the page action.
|
|
20895
|
+
*
|
|
20896
|
+
* @chrome-returns-extra since Pending
|
|
20852
20897
|
*/
|
|
20853
20898
|
export function getTitle(
|
|
20854
20899
|
|
|
20855
20900
|
details: TabDetails,
|
|
20901
|
+
): Promise<string>;
|
|
20856
20902
|
|
|
20857
|
-
|
|
20903
|
+
/**
|
|
20904
|
+
* Gets the title of the page action.
|
|
20905
|
+
*/
|
|
20906
|
+
export function getTitle(
|
|
20907
|
+
|
|
20908
|
+
details: TabDetails,
|
|
20909
|
+
|
|
20910
|
+
callback?: (
|
|
20858
20911
|
result: string,
|
|
20859
20912
|
) => void,
|
|
20860
20913
|
): void;
|
|
20861
20914
|
|
|
20915
|
+
/**
|
|
20916
|
+
* Sets the icon for the page 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.
|
|
20917
|
+
*
|
|
20918
|
+
* @chrome-returns-extra since Pending
|
|
20919
|
+
*/
|
|
20920
|
+
export function setIcon(
|
|
20921
|
+
|
|
20922
|
+
details: {
|
|
20923
|
+
|
|
20924
|
+
/**
|
|
20925
|
+
* The id of the tab for which you want to modify the page action.
|
|
20926
|
+
*/
|
|
20927
|
+
tabId: number,
|
|
20928
|
+
|
|
20929
|
+
/**
|
|
20930
|
+
* Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'
|
|
20931
|
+
*/
|
|
20932
|
+
imageData?: ImageDataType | {[name: string]: any},
|
|
20933
|
+
|
|
20934
|
+
/**
|
|
20935
|
+
* Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals `scale`, then image with size `scale` \* n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.path = {'16': foo}'
|
|
20936
|
+
*/
|
|
20937
|
+
path?: string | {[name: string]: any},
|
|
20938
|
+
|
|
20939
|
+
/**
|
|
20940
|
+
* **Deprecated.** This argument is ignored.
|
|
20941
|
+
*/
|
|
20942
|
+
iconIndex?: number,
|
|
20943
|
+
},
|
|
20944
|
+
): Promise<void>;
|
|
20945
|
+
|
|
20862
20946
|
/**
|
|
20863
20947
|
* Sets the icon for the page 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.
|
|
20864
20948
|
*/
|
|
@@ -20890,6 +20974,27 @@ declare namespace chrome {
|
|
|
20890
20974
|
callback?: () => void,
|
|
20891
20975
|
): void;
|
|
20892
20976
|
|
|
20977
|
+
/**
|
|
20978
|
+
* Sets the HTML document to be opened as a popup when the user clicks on the page action's icon.
|
|
20979
|
+
*
|
|
20980
|
+
* @chrome-returns-extra since Pending
|
|
20981
|
+
*/
|
|
20982
|
+
export function setPopup(
|
|
20983
|
+
|
|
20984
|
+
details: {
|
|
20985
|
+
|
|
20986
|
+
/**
|
|
20987
|
+
* The id of the tab for which you want to modify the page action.
|
|
20988
|
+
*/
|
|
20989
|
+
tabId: number,
|
|
20990
|
+
|
|
20991
|
+
/**
|
|
20992
|
+
* The relative path to the HTML file to show in a popup. If set to the empty string (`''`), no popup is shown.
|
|
20993
|
+
*/
|
|
20994
|
+
popup: string,
|
|
20995
|
+
},
|
|
20996
|
+
): Promise<void>;
|
|
20997
|
+
|
|
20893
20998
|
/**
|
|
20894
20999
|
* Sets the HTML document to be opened as a popup when the user clicks on the page action's icon.
|
|
20895
21000
|
*/
|
|
@@ -20916,12 +21021,22 @@ declare namespace chrome {
|
|
|
20916
21021
|
|
|
20917
21022
|
/**
|
|
20918
21023
|
* Gets the html document set as the popup for this page action.
|
|
21024
|
+
*
|
|
21025
|
+
* @chrome-returns-extra since Pending
|
|
20919
21026
|
*/
|
|
20920
21027
|
export function getPopup(
|
|
20921
21028
|
|
|
20922
21029
|
details: TabDetails,
|
|
21030
|
+
): Promise<string>;
|
|
20923
21031
|
|
|
20924
|
-
|
|
21032
|
+
/**
|
|
21033
|
+
* Gets the html document set as the popup for this page action.
|
|
21034
|
+
*/
|
|
21035
|
+
export function getPopup(
|
|
21036
|
+
|
|
21037
|
+
details: TabDetails,
|
|
21038
|
+
|
|
21039
|
+
callback?: (
|
|
20925
21040
|
result: string,
|
|
20926
21041
|
) => void,
|
|
20927
21042
|
): void;
|
|
@@ -29930,6 +30045,20 @@ declare namespace chrome {
|
|
|
29930
30045
|
eventTypes?: EventType[];
|
|
29931
30046
|
}
|
|
29932
30047
|
|
|
30048
|
+
/**
|
|
30049
|
+
* Speaks text using a text-to-speech engine.
|
|
30050
|
+
*
|
|
30051
|
+
* @chrome-returns-extra since Pending
|
|
30052
|
+
* @param utterance The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters.
|
|
30053
|
+
* @param options The speech options.
|
|
30054
|
+
*/
|
|
30055
|
+
export function speak(
|
|
30056
|
+
|
|
30057
|
+
utterance: string,
|
|
30058
|
+
|
|
30059
|
+
options?: TtsOptions,
|
|
30060
|
+
): Promise<void>;
|
|
30061
|
+
|
|
29933
30062
|
/**
|
|
29934
30063
|
* Speaks text using a text-to-speech engine.
|
|
29935
30064
|
*
|
|
@@ -29961,6 +30090,13 @@ declare namespace chrome {
|
|
|
29961
30090
|
*/
|
|
29962
30091
|
export function resume(): void;
|
|
29963
30092
|
|
|
30093
|
+
/**
|
|
30094
|
+
* Checks whether the engine is currently speaking. On Mac OS X, the result is true whenever the system speech engine is speaking, even if the speech wasn't initiated by Chrome.
|
|
30095
|
+
*
|
|
30096
|
+
* @chrome-returns-extra since Pending
|
|
30097
|
+
*/
|
|
30098
|
+
export function isSpeaking(): Promise<boolean>;
|
|
30099
|
+
|
|
29964
30100
|
/**
|
|
29965
30101
|
* Checks whether the engine is currently speaking. On Mac OS X, the result is true whenever the system speech engine is speaking, even if the speech wasn't initiated by Chrome.
|
|
29966
30102
|
*/
|
|
@@ -29974,6 +30110,13 @@ declare namespace chrome {
|
|
|
29974
30110
|
) => void,
|
|
29975
30111
|
): void;
|
|
29976
30112
|
|
|
30113
|
+
/**
|
|
30114
|
+
* Gets an array of all available voices.
|
|
30115
|
+
*
|
|
30116
|
+
* @chrome-returns-extra since Pending
|
|
30117
|
+
*/
|
|
30118
|
+
export function getVoices(): Promise<TtsVoice[]>;
|
|
30119
|
+
|
|
29977
30120
|
/**
|
|
29978
30121
|
* Gets an array of all available voices.
|
|
29979
30122
|
*/
|
|
@@ -32214,7 +32357,7 @@ declare namespace chrome {
|
|
|
32214
32357
|
/**
|
|
32215
32358
|
* The ID of the tab in which the frame is.
|
|
32216
32359
|
*/
|
|
32217
|
-
tabId
|
|
32360
|
+
tabId?: number,
|
|
32218
32361
|
|
|
32219
32362
|
/**
|
|
32220
32363
|
* The ID of the process that runs the renderer for this tab.
|
|
@@ -32227,7 +32370,7 @@ declare namespace chrome {
|
|
|
32227
32370
|
/**
|
|
32228
32371
|
* The ID of the frame in the given tab.
|
|
32229
32372
|
*/
|
|
32230
|
-
frameId
|
|
32373
|
+
frameId?: number,
|
|
32231
32374
|
},
|
|
32232
32375
|
): Promise<{
|
|
32233
32376
|
|
|
@@ -32259,7 +32402,7 @@ declare namespace chrome {
|
|
|
32259
32402
|
/**
|
|
32260
32403
|
* The ID of the tab in which the frame is.
|
|
32261
32404
|
*/
|
|
32262
|
-
tabId
|
|
32405
|
+
tabId?: number,
|
|
32263
32406
|
|
|
32264
32407
|
/**
|
|
32265
32408
|
* The ID of the process that runs the renderer for this tab.
|
|
@@ -32272,7 +32415,7 @@ declare namespace chrome {
|
|
|
32272
32415
|
/**
|
|
32273
32416
|
* The ID of the frame in the given tab.
|
|
32274
32417
|
*/
|
|
32275
|
-
frameId
|
|
32418
|
+
frameId?: number,
|
|
32276
32419
|
},
|
|
32277
32420
|
|
|
32278
32421
|
/**
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Fri Mar 04 2022 22:28:21 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at c6cc7dcbef1fabbd413a688e661edfa570780914
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -19985,6 +19985,20 @@ declare namespace chrome {
|
|
|
19985
19985
|
eventTypes?: EventType[];
|
|
19986
19986
|
}
|
|
19987
19987
|
|
|
19988
|
+
/**
|
|
19989
|
+
* Speaks text using a text-to-speech engine.
|
|
19990
|
+
*
|
|
19991
|
+
* @chrome-returns-extra since Pending
|
|
19992
|
+
* @param utterance The text to speak, either plain text or a complete, well-formed SSML document. Speech engines that do not support SSML will strip away the tags and speak the text. The maximum length of the text is 32,768 characters.
|
|
19993
|
+
* @param options The speech options.
|
|
19994
|
+
*/
|
|
19995
|
+
export function speak(
|
|
19996
|
+
|
|
19997
|
+
utterance: string,
|
|
19998
|
+
|
|
19999
|
+
options?: TtsOptions,
|
|
20000
|
+
): Promise<void>;
|
|
20001
|
+
|
|
19988
20002
|
/**
|
|
19989
20003
|
* Speaks text using a text-to-speech engine.
|
|
19990
20004
|
*
|
|
@@ -20016,6 +20030,13 @@ declare namespace chrome {
|
|
|
20016
20030
|
*/
|
|
20017
20031
|
export function resume(): void;
|
|
20018
20032
|
|
|
20033
|
+
/**
|
|
20034
|
+
* Checks whether the engine is currently speaking. On Mac OS X, the result is true whenever the system speech engine is speaking, even if the speech wasn't initiated by Chrome.
|
|
20035
|
+
*
|
|
20036
|
+
* @chrome-returns-extra since Pending
|
|
20037
|
+
*/
|
|
20038
|
+
export function isSpeaking(): Promise<boolean>;
|
|
20039
|
+
|
|
20019
20040
|
/**
|
|
20020
20041
|
* Checks whether the engine is currently speaking. On Mac OS X, the result is true whenever the system speech engine is speaking, even if the speech wasn't initiated by Chrome.
|
|
20021
20042
|
*/
|
|
@@ -20029,6 +20050,13 @@ declare namespace chrome {
|
|
|
20029
20050
|
) => void,
|
|
20030
20051
|
): void;
|
|
20031
20052
|
|
|
20053
|
+
/**
|
|
20054
|
+
* Gets an array of all available voices.
|
|
20055
|
+
*
|
|
20056
|
+
* @chrome-returns-extra since Pending
|
|
20057
|
+
*/
|
|
20058
|
+
export function getVoices(): Promise<TtsVoice[]>;
|
|
20059
|
+
|
|
20032
20060
|
/**
|
|
20033
20061
|
* Gets an array of all available voices.
|
|
20034
20062
|
*/
|
|
@@ -21495,7 +21523,7 @@ declare namespace chrome {
|
|
|
21495
21523
|
/**
|
|
21496
21524
|
* The ID of the tab in which the frame is.
|
|
21497
21525
|
*/
|
|
21498
|
-
tabId
|
|
21526
|
+
tabId?: number,
|
|
21499
21527
|
|
|
21500
21528
|
/**
|
|
21501
21529
|
* The ID of the process that runs the renderer for this tab.
|
|
@@ -21508,7 +21536,7 @@ declare namespace chrome {
|
|
|
21508
21536
|
/**
|
|
21509
21537
|
* The ID of the frame in the given tab.
|
|
21510
21538
|
*/
|
|
21511
|
-
frameId
|
|
21539
|
+
frameId?: number,
|
|
21512
21540
|
},
|
|
21513
21541
|
): Promise<{
|
|
21514
21542
|
|
|
@@ -21540,7 +21568,7 @@ declare namespace chrome {
|
|
|
21540
21568
|
/**
|
|
21541
21569
|
* The ID of the tab in which the frame is.
|
|
21542
21570
|
*/
|
|
21543
|
-
tabId
|
|
21571
|
+
tabId?: number,
|
|
21544
21572
|
|
|
21545
21573
|
/**
|
|
21546
21574
|
* The ID of the process that runs the renderer for this tab.
|
|
@@ -21553,7 +21581,7 @@ declare namespace chrome {
|
|
|
21553
21581
|
/**
|
|
21554
21582
|
* The ID of the frame in the given tab.
|
|
21555
21583
|
*/
|
|
21556
|
-
frameId
|
|
21584
|
+
frameId?: number,
|
|
21557
21585
|
},
|
|
21558
21586
|
|
|
21559
21587
|
/**
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "79efa02505957528"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"url": "https://github.com/GoogleChrome/chrome-types/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/GoogleChrome/chrome-types",
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.92"
|
|
20
20
|
}
|