chrome-types 0.1.44 → 0.1.45
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/index.d.ts +355 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ declare namespace browserAction {
|
|
|
80
80
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
// Generated on
|
|
83
|
+
// Generated on Thu Sep 30 2021 22:23:30 GMT+0000 (Coordinated Universal Time)
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
declare namespace chrome {
|
|
@@ -5385,7 +5385,7 @@ declare namespace chrome {
|
|
|
5385
5385
|
*
|
|
5386
5386
|
* @since Chrome 91
|
|
5387
5387
|
*/
|
|
5388
|
-
export type RequestMethod = "delete" | "get" | "head" | "options" | "patch" | "post" | "put";
|
|
5388
|
+
export type RequestMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put";
|
|
5389
5389
|
|
|
5390
5390
|
/**
|
|
5391
5391
|
* This describes whether the request is first or third party to the frame in which it originated. A request is said to be first party if it has the same domain (eTLD+1) as the frame in which the request originated.
|
|
@@ -6645,6 +6645,15 @@ declare namespace chrome {
|
|
|
6645
6645
|
*/
|
|
6646
6646
|
export namespace downloads {
|
|
6647
6647
|
|
|
6648
|
+
/**
|
|
6649
|
+
* Download a URL. If the URL uses the HTTP\[S\] protocol, then the request will include all cookies currently set for its hostname. If both `filename` and `saveAs` are specified, then the Save As dialog will be displayed, pre-populated with the specified `filename`. If the download started successfully, `callback` will be called with the new {@link DownloadItem}'s `downloadId`. If there was an error starting the download, then `callback` will be called with `downloadId=undefined` and {@link runtime.lastError} will contain a descriptive string. The error strings are not guaranteed to remain backwards compatible between releases. Extensions must not parse it.
|
|
6650
|
+
*
|
|
6651
|
+
* @param options What to download and how.
|
|
6652
|
+
*/
|
|
6653
|
+
export function download(
|
|
6654
|
+
options: DownloadOptions,
|
|
6655
|
+
): Promise<number>;
|
|
6656
|
+
|
|
6648
6657
|
/**
|
|
6649
6658
|
* Download a URL. If the URL uses the HTTP\[S\] protocol, then the request will include all cookies currently set for its hostname. If both `filename` and `saveAs` are specified, then the Save As dialog will be displayed, pre-populated with the specified `filename`. If the download started successfully, `callback` will be called with the new {@link DownloadItem}'s `downloadId`. If there was an error starting the download, then `callback` will be called with `downloadId=undefined` and {@link runtime.lastError} will contain a descriptive string. The error strings are not guaranteed to remain backwards compatible between releases. Extensions must not parse it.
|
|
6650
6659
|
*
|
|
@@ -6658,6 +6667,15 @@ declare namespace chrome {
|
|
|
6658
6667
|
) => void,
|
|
6659
6668
|
): void;
|
|
6660
6669
|
|
|
6670
|
+
/**
|
|
6671
|
+
* Find {@link DownloadItem}. Set `query` to the empty object to get all {@link DownloadItem}. To get a specific {@link DownloadItem}, set only the `id` field. To page through a large number of items, set `orderBy: ['-startTime']`, set `limit` to the number of items per page, and set `startedAfter` to the `startTime` of the last item from the last page.
|
|
6672
|
+
*
|
|
6673
|
+
* @param query
|
|
6674
|
+
*/
|
|
6675
|
+
export function search(
|
|
6676
|
+
query: DownloadQuery,
|
|
6677
|
+
): Promise<DownloadItem[]>;
|
|
6678
|
+
|
|
6661
6679
|
/**
|
|
6662
6680
|
* Find {@link DownloadItem}. Set `query` to the empty object to get all {@link DownloadItem}. To get a specific {@link DownloadItem}, set only the `id` field. To page through a large number of items, set `orderBy: ['-startTime']`, set `limit` to the number of items per page, and set `startedAfter` to the `startTime` of the last item from the last page.
|
|
6663
6681
|
*
|
|
@@ -6671,6 +6689,15 @@ declare namespace chrome {
|
|
|
6671
6689
|
) => void,
|
|
6672
6690
|
): void;
|
|
6673
6691
|
|
|
6692
|
+
/**
|
|
6693
|
+
* Pause the download. If the request was successful the download is in a paused state. Otherwise {@link runtime.lastError} contains an error message. The request will fail if the download is not active.
|
|
6694
|
+
*
|
|
6695
|
+
* @param downloadId The id of the download to pause.
|
|
6696
|
+
*/
|
|
6697
|
+
export function pause(
|
|
6698
|
+
downloadId: number,
|
|
6699
|
+
): Promise<void>;
|
|
6700
|
+
|
|
6674
6701
|
/**
|
|
6675
6702
|
* Pause the download. If the request was successful the download is in a paused state. Otherwise {@link runtime.lastError} contains an error message. The request will fail if the download is not active.
|
|
6676
6703
|
*
|
|
@@ -6682,6 +6709,15 @@ declare namespace chrome {
|
|
|
6682
6709
|
callback?: () => void,
|
|
6683
6710
|
): void;
|
|
6684
6711
|
|
|
6712
|
+
/**
|
|
6713
|
+
* Resume a paused download. If the request was successful the download is in progress and unpaused. Otherwise {@link runtime.lastError} contains an error message. The request will fail if the download is not active.
|
|
6714
|
+
*
|
|
6715
|
+
* @param downloadId The id of the download to resume.
|
|
6716
|
+
*/
|
|
6717
|
+
export function resume(
|
|
6718
|
+
downloadId: number,
|
|
6719
|
+
): Promise<void>;
|
|
6720
|
+
|
|
6685
6721
|
/**
|
|
6686
6722
|
* Resume a paused download. If the request was successful the download is in progress and unpaused. Otherwise {@link runtime.lastError} contains an error message. The request will fail if the download is not active.
|
|
6687
6723
|
*
|
|
@@ -6693,6 +6729,15 @@ declare namespace chrome {
|
|
|
6693
6729
|
callback?: () => void,
|
|
6694
6730
|
): void;
|
|
6695
6731
|
|
|
6732
|
+
/**
|
|
6733
|
+
* Cancel a download. When `callback` is run, the download is cancelled, completed, interrupted or doesn't exist anymore.
|
|
6734
|
+
*
|
|
6735
|
+
* @param downloadId The id of the download to cancel.
|
|
6736
|
+
*/
|
|
6737
|
+
export function cancel(
|
|
6738
|
+
downloadId: number,
|
|
6739
|
+
): Promise<void>;
|
|
6740
|
+
|
|
6696
6741
|
/**
|
|
6697
6742
|
* Cancel a download. When `callback` is run, the download is cancelled, completed, interrupted or doesn't exist anymore.
|
|
6698
6743
|
*
|
|
@@ -6704,6 +6749,17 @@ declare namespace chrome {
|
|
|
6704
6749
|
callback?: () => void,
|
|
6705
6750
|
): void;
|
|
6706
6751
|
|
|
6752
|
+
/**
|
|
6753
|
+
* Retrieve an icon for the specified download. For new downloads, file icons are available after the {@link onCreated} event has been received. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, {@link runtime.lastError} will contain an error message.
|
|
6754
|
+
*
|
|
6755
|
+
* @param downloadId The identifier for the download.
|
|
6756
|
+
* @param options
|
|
6757
|
+
*/
|
|
6758
|
+
export function getFileIcon(
|
|
6759
|
+
downloadId: number,
|
|
6760
|
+
options?: GetFileIconOptions,
|
|
6761
|
+
): Promise<string>;
|
|
6762
|
+
|
|
6707
6763
|
/**
|
|
6708
6764
|
* Retrieve an icon for the specified download. For new downloads, file icons are available after the {@link onCreated} event has been received. The image returned by this function while a download is in progress may be different from the image returned after the download is complete. Icon retrieval is done by querying the underlying operating system or toolkit depending on the platform. The icon that is returned will therefore depend on a number of factors including state of the download, platform, registered file types and visual theme. If a file icon cannot be determined, {@link runtime.lastError} will contain an error message.
|
|
6709
6765
|
*
|
|
@@ -6755,6 +6811,15 @@ declare namespace chrome {
|
|
|
6755
6811
|
*/
|
|
6756
6812
|
export function showDefaultFolder(): void;
|
|
6757
6813
|
|
|
6814
|
+
/**
|
|
6815
|
+
* Erase matching {@link DownloadItem} from history without deleting the downloaded file. An {@link onErased} event will fire for each {@link DownloadItem} that matches `query`, then `callback` will be called.
|
|
6816
|
+
*
|
|
6817
|
+
* @param query
|
|
6818
|
+
*/
|
|
6819
|
+
export function erase(
|
|
6820
|
+
query: DownloadQuery,
|
|
6821
|
+
): Promise<number[]>;
|
|
6822
|
+
|
|
6758
6823
|
/**
|
|
6759
6824
|
* Erase matching {@link DownloadItem} from history without deleting the downloaded file. An {@link onErased} event will fire for each {@link DownloadItem} that matches `query`, then `callback` will be called.
|
|
6760
6825
|
*
|
|
@@ -6768,6 +6833,15 @@ declare namespace chrome {
|
|
|
6768
6833
|
) => void,
|
|
6769
6834
|
): void;
|
|
6770
6835
|
|
|
6836
|
+
/**
|
|
6837
|
+
* Remove the downloaded file if it exists and the {@link DownloadItem} is complete; otherwise return an error through {@link runtime.lastError}.
|
|
6838
|
+
*
|
|
6839
|
+
* @param downloadId
|
|
6840
|
+
*/
|
|
6841
|
+
export function removeFile(
|
|
6842
|
+
downloadId: number,
|
|
6843
|
+
): Promise<void>;
|
|
6844
|
+
|
|
6771
6845
|
/**
|
|
6772
6846
|
* Remove the downloaded file if it exists and the {@link DownloadItem} is complete; otherwise return an error through {@link runtime.lastError}.
|
|
6773
6847
|
*
|
|
@@ -6779,6 +6853,15 @@ declare namespace chrome {
|
|
|
6779
6853
|
callback?: () => void,
|
|
6780
6854
|
): void;
|
|
6781
6855
|
|
|
6856
|
+
/**
|
|
6857
|
+
* Prompt the user to accept a dangerous download. Can only be called from a visible context (tab, window, or page/browser action popup). Does not automatically accept dangerous downloads. If the download is accepted, then an {@link onChanged} event will fire, otherwise nothing will happen. When all the data is fetched into a temporary file and either the download is not dangerous or the danger has been accepted, then the temporary file is renamed to the target filename, the `state` changes to 'complete', and {@link onChanged} fires.
|
|
6858
|
+
*
|
|
6859
|
+
* @param downloadId The identifier for the {@link DownloadItem}.
|
|
6860
|
+
*/
|
|
6861
|
+
export function acceptDanger(
|
|
6862
|
+
downloadId: number,
|
|
6863
|
+
): Promise<void>;
|
|
6864
|
+
|
|
6782
6865
|
/**
|
|
6783
6866
|
* Prompt the user to accept a dangerous download. Can only be called from a visible context (tab, window, or page/browser action popup). Does not automatically accept dangerous downloads. If the download is accepted, then an {@link onChanged} event will fire, otherwise nothing will happen. When all the data is fetched into a temporary file and either the download is not dangerous or the danger has been accepted, then the temporary file is renamed to the target filename, the `state` changes to 'complete', and {@link onChanged} fires.
|
|
6784
6867
|
*
|
|
@@ -7440,6 +7523,11 @@ declare namespace chrome {
|
|
|
7440
7523
|
*/
|
|
7441
7524
|
export namespace enterprise.hardwarePlatform {
|
|
7442
7525
|
|
|
7526
|
+
/**
|
|
7527
|
+
* Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
|
|
7528
|
+
*/
|
|
7529
|
+
export function getHardwarePlatformInfo(): Promise<HardwarePlatformInfo>;
|
|
7530
|
+
|
|
7443
7531
|
/**
|
|
7444
7532
|
* Obtains the manufacturer and model for the hardware platform and, if the extension is authorized, returns it via `callback`.
|
|
7445
7533
|
*
|
|
@@ -7468,6 +7556,11 @@ declare namespace chrome {
|
|
|
7468
7556
|
*/
|
|
7469
7557
|
export namespace enterprise.networkingAttributes {
|
|
7470
7558
|
|
|
7559
|
+
/**
|
|
7560
|
+
* 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.
|
|
7561
|
+
*/
|
|
7562
|
+
export function getNetworkDetails(): Promise<NetworkDetails>;
|
|
7563
|
+
|
|
7471
7564
|
/**
|
|
7472
7565
|
* 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.
|
|
7473
7566
|
*
|
|
@@ -8417,6 +8510,19 @@ declare namespace chrome {
|
|
|
8417
8510
|
*/
|
|
8418
8511
|
export namespace fileSystemProvider {
|
|
8419
8512
|
|
|
8513
|
+
/**
|
|
8514
|
+
* Mounts a file system with the given `fileSystemId` and `displayName`. `displayName` will be shown in the left panel of the Files app. `displayName` can contain any characters including '/', but cannot be an empty string. `displayName` must be descriptive but doesn't have to be unique. The `fileSystemId` must not be an empty string.
|
|
8515
|
+
*
|
|
8516
|
+
* Depending on the type of the file system being mounted, the `source` option must be set appropriately.
|
|
8517
|
+
*
|
|
8518
|
+
* In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
|
|
8519
|
+
*
|
|
8520
|
+
* @param options
|
|
8521
|
+
*/
|
|
8522
|
+
export function mount(
|
|
8523
|
+
options: MountOptions,
|
|
8524
|
+
): Promise<void>;
|
|
8525
|
+
|
|
8420
8526
|
/**
|
|
8421
8527
|
* Mounts a file system with the given `fileSystemId` and `displayName`. `displayName` will be shown in the left panel of the Files app. `displayName` can contain any characters including '/', but cannot be an empty string. `displayName` must be descriptive but doesn't have to be unique. The `fileSystemId` must not be an empty string.
|
|
8422
8528
|
*
|
|
@@ -8432,6 +8538,17 @@ declare namespace chrome {
|
|
|
8432
8538
|
callback?: () => void,
|
|
8433
8539
|
): void;
|
|
8434
8540
|
|
|
8541
|
+
/**
|
|
8542
|
+
* Unmounts a file system with the given `fileSystemId`. It must be called after {@link onUnmountRequested} is invoked. Also, the providing extension can decide to perform unmounting if not requested (eg. in case of lost connection, or a file error).
|
|
8543
|
+
*
|
|
8544
|
+
* In case of an error, {@link runtime.lastError} will be set with a corresponding error code.
|
|
8545
|
+
*
|
|
8546
|
+
* @param options
|
|
8547
|
+
*/
|
|
8548
|
+
export function unmount(
|
|
8549
|
+
options: UnmountOptions,
|
|
8550
|
+
): Promise<void>;
|
|
8551
|
+
|
|
8435
8552
|
/**
|
|
8436
8553
|
* Unmounts a file system with the given `fileSystemId`. It must be called after {@link onUnmountRequested} is invoked. Also, the providing extension can decide to perform unmounting if not requested (eg. in case of lost connection, or a file error).
|
|
8437
8554
|
*
|
|
@@ -8445,6 +8562,11 @@ declare namespace chrome {
|
|
|
8445
8562
|
callback?: () => void,
|
|
8446
8563
|
): void;
|
|
8447
8564
|
|
|
8565
|
+
/**
|
|
8566
|
+
* Returns all file systems mounted by the extension.
|
|
8567
|
+
*/
|
|
8568
|
+
export function getAll(): Promise<FileSystemInfo[]>;
|
|
8569
|
+
|
|
8448
8570
|
/**
|
|
8449
8571
|
* Returns all file systems mounted by the extension.
|
|
8450
8572
|
*
|
|
@@ -8456,6 +8578,15 @@ declare namespace chrome {
|
|
|
8456
8578
|
) => void,
|
|
8457
8579
|
): void;
|
|
8458
8580
|
|
|
8581
|
+
/**
|
|
8582
|
+
* Returns information about a file system with the passed `fileSystemId`.
|
|
8583
|
+
*
|
|
8584
|
+
* @param fileSystemId
|
|
8585
|
+
*/
|
|
8586
|
+
export function get(
|
|
8587
|
+
fileSystemId: string,
|
|
8588
|
+
): Promise<FileSystemInfo>;
|
|
8589
|
+
|
|
8459
8590
|
/**
|
|
8460
8591
|
* Returns information about a file system with the passed `fileSystemId`.
|
|
8461
8592
|
*
|
|
@@ -8469,6 +8600,25 @@ declare namespace chrome {
|
|
|
8469
8600
|
) => void,
|
|
8470
8601
|
): void;
|
|
8471
8602
|
|
|
8603
|
+
/**
|
|
8604
|
+
* Notifies about changes in the watched directory at `observedPath` in `recursive` mode. If the file system is mounted with `supportsNofityTag`, then `tag` must be provided, and all changes since the last notification always reported, even if the system was shutdown. The last tag can be obtained with {@link getAll}.
|
|
8605
|
+
*
|
|
8606
|
+
* To use, the `file_system_provider.notify` manifest option must be set to true.
|
|
8607
|
+
*
|
|
8608
|
+
* Value of `tag` can be any string which is unique per call, so it's possible to identify the last registered notification. Eg. if the providing extension starts after a reboot, and the last registered notification's tag is equal to "123", then it should call {@link notify} for all changes which happened since the change tagged as "123". It cannot be an empty string.
|
|
8609
|
+
*
|
|
8610
|
+
* Not all providers are able to provide a tag, but if the file system has a changelog, then the tag can be eg. a change number, or a revision number.
|
|
8611
|
+
*
|
|
8612
|
+
* Note that if a parent directory is removed, then all descendant entries are also removed, and if they are watched, then the API must be notified about the fact. Also, if a directory is renamed, then all descendant entries are in fact removed, as there is no entry under their original paths anymore.
|
|
8613
|
+
*
|
|
8614
|
+
* In case of an error, {@link runtime.lastError} will be set will a corresponding error code.
|
|
8615
|
+
*
|
|
8616
|
+
* @param options
|
|
8617
|
+
*/
|
|
8618
|
+
export function notify(
|
|
8619
|
+
options: NotifyOptions,
|
|
8620
|
+
): Promise<void>;
|
|
8621
|
+
|
|
8472
8622
|
/**
|
|
8473
8623
|
* Notifies about changes in the watched directory at `observedPath` in `recursive` mode. If the file system is mounted with `supportsNofityTag`, then `tag` must be provided, and all changes since the last notification always reported, even if the system was shutdown. The last tag can be obtained with {@link getAll}.
|
|
8474
8624
|
*
|
|
@@ -9603,6 +9753,25 @@ declare namespace chrome {
|
|
|
9603
9753
|
*/
|
|
9604
9754
|
export namespace fontSettings {
|
|
9605
9755
|
|
|
9756
|
+
/**
|
|
9757
|
+
* Clears the font set by this extension, if any.
|
|
9758
|
+
*
|
|
9759
|
+
* @param details
|
|
9760
|
+
*/
|
|
9761
|
+
export function clearFont(
|
|
9762
|
+
details: {
|
|
9763
|
+
/**
|
|
9764
|
+
* The script for which the font should be cleared. If omitted, the global script font setting is cleared.
|
|
9765
|
+
*/
|
|
9766
|
+
script?: ScriptCode,
|
|
9767
|
+
|
|
9768
|
+
/**
|
|
9769
|
+
* The generic font family for which the font should be cleared.
|
|
9770
|
+
*/
|
|
9771
|
+
genericFamily: GenericFamily,
|
|
9772
|
+
},
|
|
9773
|
+
): Promise<void>;
|
|
9774
|
+
|
|
9606
9775
|
/**
|
|
9607
9776
|
* Clears the font set by this extension, if any.
|
|
9608
9777
|
*
|
|
@@ -9624,6 +9793,35 @@ declare namespace chrome {
|
|
|
9624
9793
|
callback?: () => void,
|
|
9625
9794
|
): void;
|
|
9626
9795
|
|
|
9796
|
+
/**
|
|
9797
|
+
* Gets the font for a given script and generic font family.
|
|
9798
|
+
*
|
|
9799
|
+
* @param details
|
|
9800
|
+
*/
|
|
9801
|
+
export function getFont(
|
|
9802
|
+
details: {
|
|
9803
|
+
/**
|
|
9804
|
+
* The script for which the font should be retrieved. If omitted, the font setting for the global script (script code "Zyyy") is retrieved.
|
|
9805
|
+
*/
|
|
9806
|
+
script?: ScriptCode,
|
|
9807
|
+
|
|
9808
|
+
/**
|
|
9809
|
+
* The generic font family for which the font should be retrieved.
|
|
9810
|
+
*/
|
|
9811
|
+
genericFamily: GenericFamily,
|
|
9812
|
+
},
|
|
9813
|
+
): Promise<{
|
|
9814
|
+
/**
|
|
9815
|
+
* The font ID. Rather than the literal font ID preference value, this may be the ID of the font that the system resolves the preference value to. So, fontId can differ from the font passed to `setFont`, if, for example, the font is not available on the system. The empty string signifies fallback to the global script font setting.
|
|
9816
|
+
*/
|
|
9817
|
+
fontId: string,
|
|
9818
|
+
|
|
9819
|
+
/**
|
|
9820
|
+
* The level of control this extension has over the setting.
|
|
9821
|
+
*/
|
|
9822
|
+
levelOfControl: LevelOfControl,
|
|
9823
|
+
}>;
|
|
9824
|
+
|
|
9627
9825
|
/**
|
|
9628
9826
|
* Gets the font for a given script and generic font family.
|
|
9629
9827
|
*
|
|
@@ -9657,6 +9855,30 @@ declare namespace chrome {
|
|
|
9657
9855
|
) => void,
|
|
9658
9856
|
): void;
|
|
9659
9857
|
|
|
9858
|
+
/**
|
|
9859
|
+
* Sets the font for a given script and generic font family.
|
|
9860
|
+
*
|
|
9861
|
+
* @param details
|
|
9862
|
+
*/
|
|
9863
|
+
export function setFont(
|
|
9864
|
+
details: {
|
|
9865
|
+
/**
|
|
9866
|
+
* The script code which the font should be set. If omitted, the font setting for the global script (script code "Zyyy") is set.
|
|
9867
|
+
*/
|
|
9868
|
+
script?: ScriptCode,
|
|
9869
|
+
|
|
9870
|
+
/**
|
|
9871
|
+
* The generic font family for which the font should be set.
|
|
9872
|
+
*/
|
|
9873
|
+
genericFamily: GenericFamily,
|
|
9874
|
+
|
|
9875
|
+
/**
|
|
9876
|
+
* The font ID. The empty string means to fallback to the global script font setting.
|
|
9877
|
+
*/
|
|
9878
|
+
fontId: string,
|
|
9879
|
+
},
|
|
9880
|
+
): Promise<void>;
|
|
9881
|
+
|
|
9660
9882
|
/**
|
|
9661
9883
|
* Sets the font for a given script and generic font family.
|
|
9662
9884
|
*
|
|
@@ -9683,6 +9905,11 @@ declare namespace chrome {
|
|
|
9683
9905
|
callback?: () => void,
|
|
9684
9906
|
): void;
|
|
9685
9907
|
|
|
9908
|
+
/**
|
|
9909
|
+
* Gets a list of fonts on the system.
|
|
9910
|
+
*/
|
|
9911
|
+
export function getFontList(): Promise<FontName[]>;
|
|
9912
|
+
|
|
9686
9913
|
/**
|
|
9687
9914
|
* Gets a list of fonts on the system.
|
|
9688
9915
|
*
|
|
@@ -9694,6 +9921,15 @@ declare namespace chrome {
|
|
|
9694
9921
|
) => void,
|
|
9695
9922
|
): void;
|
|
9696
9923
|
|
|
9924
|
+
/**
|
|
9925
|
+
* Clears the default font size set by this extension, if any.
|
|
9926
|
+
*
|
|
9927
|
+
* @param details This parameter is currently unused.
|
|
9928
|
+
*/
|
|
9929
|
+
export function clearDefaultFontSize(
|
|
9930
|
+
details?: {},
|
|
9931
|
+
): Promise<void>;
|
|
9932
|
+
|
|
9697
9933
|
/**
|
|
9698
9934
|
* Clears the default font size set by this extension, if any.
|
|
9699
9935
|
*
|
|
@@ -9705,6 +9941,25 @@ declare namespace chrome {
|
|
|
9705
9941
|
callback?: () => void,
|
|
9706
9942
|
): void;
|
|
9707
9943
|
|
|
9944
|
+
/**
|
|
9945
|
+
* Gets the default font size.
|
|
9946
|
+
*
|
|
9947
|
+
* @param details This parameter is currently unused.
|
|
9948
|
+
*/
|
|
9949
|
+
export function getDefaultFontSize(
|
|
9950
|
+
details?: {},
|
|
9951
|
+
): Promise<{
|
|
9952
|
+
/**
|
|
9953
|
+
* The font size in pixels.
|
|
9954
|
+
*/
|
|
9955
|
+
pixelSize: number,
|
|
9956
|
+
|
|
9957
|
+
/**
|
|
9958
|
+
* The level of control this extension has over the setting.
|
|
9959
|
+
*/
|
|
9960
|
+
levelOfControl: LevelOfControl,
|
|
9961
|
+
}>;
|
|
9962
|
+
|
|
9708
9963
|
/**
|
|
9709
9964
|
* Gets the default font size.
|
|
9710
9965
|
*
|
|
@@ -9728,6 +9983,20 @@ declare namespace chrome {
|
|
|
9728
9983
|
) => void,
|
|
9729
9984
|
): void;
|
|
9730
9985
|
|
|
9986
|
+
/**
|
|
9987
|
+
* Sets the default font size.
|
|
9988
|
+
*
|
|
9989
|
+
* @param details
|
|
9990
|
+
*/
|
|
9991
|
+
export function setDefaultFontSize(
|
|
9992
|
+
details: {
|
|
9993
|
+
/**
|
|
9994
|
+
* The font size in pixels.
|
|
9995
|
+
*/
|
|
9996
|
+
pixelSize: number,
|
|
9997
|
+
},
|
|
9998
|
+
): Promise<void>;
|
|
9999
|
+
|
|
9731
10000
|
/**
|
|
9732
10001
|
* Sets the default font size.
|
|
9733
10002
|
*
|
|
@@ -9744,6 +10013,15 @@ declare namespace chrome {
|
|
|
9744
10013
|
callback?: () => void,
|
|
9745
10014
|
): void;
|
|
9746
10015
|
|
|
10016
|
+
/**
|
|
10017
|
+
* Clears the default fixed font size set by this extension, if any.
|
|
10018
|
+
*
|
|
10019
|
+
* @param details This parameter is currently unused.
|
|
10020
|
+
*/
|
|
10021
|
+
export function clearDefaultFixedFontSize(
|
|
10022
|
+
details?: {},
|
|
10023
|
+
): Promise<void>;
|
|
10024
|
+
|
|
9747
10025
|
/**
|
|
9748
10026
|
* Clears the default fixed font size set by this extension, if any.
|
|
9749
10027
|
*
|
|
@@ -9755,6 +10033,25 @@ declare namespace chrome {
|
|
|
9755
10033
|
callback?: () => void,
|
|
9756
10034
|
): void;
|
|
9757
10035
|
|
|
10036
|
+
/**
|
|
10037
|
+
* Gets the default size for fixed width fonts.
|
|
10038
|
+
*
|
|
10039
|
+
* @param details This parameter is currently unused.
|
|
10040
|
+
*/
|
|
10041
|
+
export function getDefaultFixedFontSize(
|
|
10042
|
+
details?: {},
|
|
10043
|
+
): Promise<{
|
|
10044
|
+
/**
|
|
10045
|
+
* The font size in pixels.
|
|
10046
|
+
*/
|
|
10047
|
+
pixelSize: number,
|
|
10048
|
+
|
|
10049
|
+
/**
|
|
10050
|
+
* The level of control this extension has over the setting.
|
|
10051
|
+
*/
|
|
10052
|
+
levelOfControl: LevelOfControl,
|
|
10053
|
+
}>;
|
|
10054
|
+
|
|
9758
10055
|
/**
|
|
9759
10056
|
* Gets the default size for fixed width fonts.
|
|
9760
10057
|
*
|
|
@@ -9778,6 +10075,20 @@ declare namespace chrome {
|
|
|
9778
10075
|
) => void,
|
|
9779
10076
|
): void;
|
|
9780
10077
|
|
|
10078
|
+
/**
|
|
10079
|
+
* Sets the default size for fixed width fonts.
|
|
10080
|
+
*
|
|
10081
|
+
* @param details
|
|
10082
|
+
*/
|
|
10083
|
+
export function setDefaultFixedFontSize(
|
|
10084
|
+
details: {
|
|
10085
|
+
/**
|
|
10086
|
+
* The font size in pixels.
|
|
10087
|
+
*/
|
|
10088
|
+
pixelSize: number,
|
|
10089
|
+
},
|
|
10090
|
+
): Promise<void>;
|
|
10091
|
+
|
|
9781
10092
|
/**
|
|
9782
10093
|
* Sets the default size for fixed width fonts.
|
|
9783
10094
|
*
|
|
@@ -9794,6 +10105,15 @@ declare namespace chrome {
|
|
|
9794
10105
|
callback?: () => void,
|
|
9795
10106
|
): void;
|
|
9796
10107
|
|
|
10108
|
+
/**
|
|
10109
|
+
* Clears the minimum font size set by this extension, if any.
|
|
10110
|
+
*
|
|
10111
|
+
* @param details This parameter is currently unused.
|
|
10112
|
+
*/
|
|
10113
|
+
export function clearMinimumFontSize(
|
|
10114
|
+
details?: {},
|
|
10115
|
+
): Promise<void>;
|
|
10116
|
+
|
|
9797
10117
|
/**
|
|
9798
10118
|
* Clears the minimum font size set by this extension, if any.
|
|
9799
10119
|
*
|
|
@@ -9805,6 +10125,25 @@ declare namespace chrome {
|
|
|
9805
10125
|
callback?: () => void,
|
|
9806
10126
|
): void;
|
|
9807
10127
|
|
|
10128
|
+
/**
|
|
10129
|
+
* Gets the minimum font size.
|
|
10130
|
+
*
|
|
10131
|
+
* @param details This parameter is currently unused.
|
|
10132
|
+
*/
|
|
10133
|
+
export function getMinimumFontSize(
|
|
10134
|
+
details?: {},
|
|
10135
|
+
): Promise<{
|
|
10136
|
+
/**
|
|
10137
|
+
* The font size in pixels.
|
|
10138
|
+
*/
|
|
10139
|
+
pixelSize: number,
|
|
10140
|
+
|
|
10141
|
+
/**
|
|
10142
|
+
* The level of control this extension has over the setting.
|
|
10143
|
+
*/
|
|
10144
|
+
levelOfControl: LevelOfControl,
|
|
10145
|
+
}>;
|
|
10146
|
+
|
|
9808
10147
|
/**
|
|
9809
10148
|
* Gets the minimum font size.
|
|
9810
10149
|
*
|
|
@@ -9828,6 +10167,20 @@ declare namespace chrome {
|
|
|
9828
10167
|
) => void,
|
|
9829
10168
|
): void;
|
|
9830
10169
|
|
|
10170
|
+
/**
|
|
10171
|
+
* Sets the minimum font size.
|
|
10172
|
+
*
|
|
10173
|
+
* @param details
|
|
10174
|
+
*/
|
|
10175
|
+
export function setMinimumFontSize(
|
|
10176
|
+
details: {
|
|
10177
|
+
/**
|
|
10178
|
+
* The font size in pixels.
|
|
10179
|
+
*/
|
|
10180
|
+
pixelSize: number,
|
|
10181
|
+
},
|
|
10182
|
+
): Promise<void>;
|
|
10183
|
+
|
|
9831
10184
|
/**
|
|
9832
10185
|
* Sets the minimum font size.
|
|
9833
10186
|
*
|