chrome-types 0.1.76 → 0.1.77
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 +44 -3
- package/index.d.ts +44 -3
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Dec 29 2021 22:27:56 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at df76446c6f2a16cdb754fe1bc45fa179dc79b7da
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -22509,6 +22509,17 @@ declare namespace chrome {
|
|
|
22509
22509
|
) => void,
|
|
22510
22510
|
): void;
|
|
22511
22511
|
|
|
22512
|
+
/**
|
|
22513
|
+
* Open your Extension's options page, if possible.
|
|
22514
|
+
*
|
|
22515
|
+
* The precise behavior may depend on your manifest's `[options_ui](https://developer.chrome.com/docs/extensions/optionsV2)` or `[options_page](https://developer.chrome.com/docs/extensions/options)` key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
|
|
22516
|
+
*
|
|
22517
|
+
* If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set {@link lastError}.
|
|
22518
|
+
*
|
|
22519
|
+
* @chrome-returns-extra since Pending
|
|
22520
|
+
*/
|
|
22521
|
+
export function openOptionsPage(): Promise<void>;
|
|
22522
|
+
|
|
22512
22523
|
/**
|
|
22513
22524
|
* Open your Extension's options page, if possible.
|
|
22514
22525
|
*
|
|
@@ -22539,6 +22550,17 @@ declare namespace chrome {
|
|
|
22539
22550
|
path: string,
|
|
22540
22551
|
): string;
|
|
22541
22552
|
|
|
22553
|
+
/**
|
|
22554
|
+
* Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 255 characters.
|
|
22555
|
+
*
|
|
22556
|
+
* @chrome-returns-extra since Pending
|
|
22557
|
+
* @param url URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation.
|
|
22558
|
+
*/
|
|
22559
|
+
export function setUninstallURL(
|
|
22560
|
+
|
|
22561
|
+
url: string,
|
|
22562
|
+
): Promise<void>;
|
|
22563
|
+
|
|
22542
22564
|
/**
|
|
22543
22565
|
* Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 255 characters.
|
|
22544
22566
|
*
|
|
@@ -22590,6 +22612,18 @@ declare namespace chrome {
|
|
|
22590
22612
|
*/
|
|
22591
22613
|
export function restart(): void;
|
|
22592
22614
|
|
|
22615
|
+
/**
|
|
22616
|
+
* Restart the ChromeOS device when the app runs in kiosk mode after the given seconds. If called again before the time ends, the reboot will be delayed. If called with a value of -1, the reboot will be cancelled. It's a no-op in non-kiosk mode. It's only allowed to be called repeatedly by the first extension to invoke this API.
|
|
22617
|
+
*
|
|
22618
|
+
* @chrome-returns-extra since Pending
|
|
22619
|
+
* @param seconds Time to wait in seconds before rebooting the device, or -1 to cancel a scheduled reboot.
|
|
22620
|
+
* @since Chrome 53
|
|
22621
|
+
*/
|
|
22622
|
+
export function restartAfterDelay(
|
|
22623
|
+
|
|
22624
|
+
seconds: number,
|
|
22625
|
+
): Promise<void>;
|
|
22626
|
+
|
|
22593
22627
|
/**
|
|
22594
22628
|
* Restart the ChromeOS device when the app runs in kiosk mode after the given seconds. If called again before the time ends, the reboot will be delayed. If called with a value of -1, the reboot will be cancelled. It's a no-op in non-kiosk mode. It's only allowed to be called repeatedly by the first extension to invoke this API.
|
|
22595
22629
|
*
|
|
@@ -22773,6 +22807,13 @@ declare namespace chrome {
|
|
|
22773
22807
|
) => void,
|
|
22774
22808
|
): void;
|
|
22775
22809
|
|
|
22810
|
+
/**
|
|
22811
|
+
* Returns information about the current platform.
|
|
22812
|
+
*
|
|
22813
|
+
* @chrome-returns-extra since Pending
|
|
22814
|
+
*/
|
|
22815
|
+
export function getPlatformInfo(): Promise<PlatformInfo>;
|
|
22816
|
+
|
|
22776
22817
|
/**
|
|
22777
22818
|
* Returns information about the current platform.
|
|
22778
22819
|
*
|
|
@@ -22780,7 +22821,7 @@ declare namespace chrome {
|
|
|
22780
22821
|
*/
|
|
22781
22822
|
export function getPlatformInfo(
|
|
22782
22823
|
|
|
22783
|
-
callback
|
|
22824
|
+
callback?: (
|
|
22784
22825
|
platformInfo: PlatformInfo,
|
|
22785
22826
|
) => void,
|
|
22786
22827
|
): void;
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Dec 29 2021 22:27:51 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at df76446c6f2a16cdb754fe1bc45fa179dc79b7da
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -15391,6 +15391,17 @@ declare namespace chrome {
|
|
|
15391
15391
|
) => void,
|
|
15392
15392
|
): void;
|
|
15393
15393
|
|
|
15394
|
+
/**
|
|
15395
|
+
* Open your Extension's options page, if possible.
|
|
15396
|
+
*
|
|
15397
|
+
* The precise behavior may depend on your manifest's `[options_ui](https://developer.chrome.com/docs/extensions/optionsV2)` or `[options_page](https://developer.chrome.com/docs/extensions/options)` key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
|
|
15398
|
+
*
|
|
15399
|
+
* If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set {@link lastError}.
|
|
15400
|
+
*
|
|
15401
|
+
* @chrome-returns-extra since Pending
|
|
15402
|
+
*/
|
|
15403
|
+
export function openOptionsPage(): Promise<void>;
|
|
15404
|
+
|
|
15394
15405
|
/**
|
|
15395
15406
|
* Open your Extension's options page, if possible.
|
|
15396
15407
|
*
|
|
@@ -15421,6 +15432,17 @@ declare namespace chrome {
|
|
|
15421
15432
|
path: string,
|
|
15422
15433
|
): string;
|
|
15423
15434
|
|
|
15435
|
+
/**
|
|
15436
|
+
* Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 255 characters.
|
|
15437
|
+
*
|
|
15438
|
+
* @chrome-returns-extra since Pending
|
|
15439
|
+
* @param url URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation.
|
|
15440
|
+
*/
|
|
15441
|
+
export function setUninstallURL(
|
|
15442
|
+
|
|
15443
|
+
url: string,
|
|
15444
|
+
): Promise<void>;
|
|
15445
|
+
|
|
15424
15446
|
/**
|
|
15425
15447
|
* Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 255 characters.
|
|
15426
15448
|
*
|
|
@@ -15472,6 +15494,18 @@ declare namespace chrome {
|
|
|
15472
15494
|
*/
|
|
15473
15495
|
export function restart(): void;
|
|
15474
15496
|
|
|
15497
|
+
/**
|
|
15498
|
+
* Restart the ChromeOS device when the app runs in kiosk mode after the given seconds. If called again before the time ends, the reboot will be delayed. If called with a value of -1, the reboot will be cancelled. It's a no-op in non-kiosk mode. It's only allowed to be called repeatedly by the first extension to invoke this API.
|
|
15499
|
+
*
|
|
15500
|
+
* @chrome-returns-extra since Pending
|
|
15501
|
+
* @param seconds Time to wait in seconds before rebooting the device, or -1 to cancel a scheduled reboot.
|
|
15502
|
+
* @since Chrome 53
|
|
15503
|
+
*/
|
|
15504
|
+
export function restartAfterDelay(
|
|
15505
|
+
|
|
15506
|
+
seconds: number,
|
|
15507
|
+
): Promise<void>;
|
|
15508
|
+
|
|
15475
15509
|
/**
|
|
15476
15510
|
* Restart the ChromeOS device when the app runs in kiosk mode after the given seconds. If called again before the time ends, the reboot will be delayed. If called with a value of -1, the reboot will be cancelled. It's a no-op in non-kiosk mode. It's only allowed to be called repeatedly by the first extension to invoke this API.
|
|
15477
15511
|
*
|
|
@@ -15655,6 +15689,13 @@ declare namespace chrome {
|
|
|
15655
15689
|
) => void,
|
|
15656
15690
|
): void;
|
|
15657
15691
|
|
|
15692
|
+
/**
|
|
15693
|
+
* Returns information about the current platform.
|
|
15694
|
+
*
|
|
15695
|
+
* @chrome-returns-extra since Pending
|
|
15696
|
+
*/
|
|
15697
|
+
export function getPlatformInfo(): Promise<PlatformInfo>;
|
|
15698
|
+
|
|
15658
15699
|
/**
|
|
15659
15700
|
* Returns information about the current platform.
|
|
15660
15701
|
*
|
|
@@ -15662,7 +15703,7 @@ declare namespace chrome {
|
|
|
15662
15703
|
*/
|
|
15663
15704
|
export function getPlatformInfo(
|
|
15664
15705
|
|
|
15665
|
-
callback
|
|
15706
|
+
callback?: (
|
|
15666
15707
|
platformInfo: PlatformInfo,
|
|
15667
15708
|
) => void,
|
|
15668
15709
|
): void;
|
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": "d8fa02cc593612ae"
|
|
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.77"
|
|
20
20
|
}
|