chrome-types 0.1.120 → 0.1.123

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.
Files changed (3) hide show
  1. package/_all.d.ts +74 -2
  2. package/index.d.ts +74 -2
  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 Sat Jul 02 2022 22:28:07 GMT+0000 (Coordinated Universal Time)
18
- // Built at 99f60fa2c2d54a4a8402eda3adba7518afa480c0
17
+ // Generated on Sat Jul 09 2022 22:30:22 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 967737d07670a0afabd6dcc4bf98d725a443ea1b
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -20811,6 +20811,78 @@ declare namespace chrome {
20811
20811
  }
20812
20812
  }
20813
20813
 
20814
+ /**
20815
+ * Use the `offscreen` API to create and manage offscreen documents.
20816
+ *
20817
+ * @alpha
20818
+ * @chrome-permission offscreen
20819
+ * @chrome-channel canary
20820
+ * @chrome-min-manifest MV3
20821
+ */
20822
+ export namespace offscreen {
20823
+
20824
+ /**
20825
+ * @chrome-enum "TESTING" A reason used for testing purposes only.
20826
+ */
20827
+ export type Reason = "TESTING";
20828
+
20829
+ export interface CreateParameters {
20830
+
20831
+ /**
20832
+ * The reason(s) the extension is creating the offscreen document.
20833
+ */
20834
+ reasons: Reason[];
20835
+
20836
+ /**
20837
+ * The (relative) URL to load in the document.
20838
+ */
20839
+ url: string;
20840
+
20841
+ /**
20842
+ * A developer-provided string that explains, in more detail, the need for the background context. The user agent \_may\_ use this in display to the user.
20843
+ */
20844
+ justification: string;
20845
+ }
20846
+
20847
+ /**
20848
+ * Creates a new offscreen document for the extension.
20849
+ *
20850
+ * @param parameters The parameters describing the offscreen document to create.
20851
+ */
20852
+ export function createDocument(
20853
+
20854
+ parameters: CreateParameters,
20855
+ ): Promise<void>;
20856
+
20857
+ /**
20858
+ * Creates a new offscreen document for the extension.
20859
+ *
20860
+ * @param parameters The parameters describing the offscreen document to create.
20861
+ * @param callback Invoked when the offscreen document is created and has completed its initial page load.
20862
+ */
20863
+ export function createDocument(
20864
+
20865
+ parameters: CreateParameters,
20866
+
20867
+ callback?: () => void,
20868
+ ): void;
20869
+
20870
+ /**
20871
+ * Closes the currently-open offscreen document for the extension.
20872
+ */
20873
+ export function closeDocument(): Promise<void>;
20874
+
20875
+ /**
20876
+ * Closes the currently-open offscreen document for the extension.
20877
+ *
20878
+ * @param callback Invoked when the offscreen document has been closed.
20879
+ */
20880
+ export function closeDocument(
20881
+
20882
+ callback?: () => void,
20883
+ ): void;
20884
+ }
20885
+
20814
20886
  /**
20815
20887
  * The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.
20816
20888
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sat Jul 02 2022 22:28:02 GMT+0000 (Coordinated Universal Time)
18
- // Built at 99f60fa2c2d54a4a8402eda3adba7518afa480c0
17
+ // Generated on Sat Jul 09 2022 22:30:17 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 967737d07670a0afabd6dcc4bf98d725a443ea1b
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -15993,6 +15993,78 @@ declare namespace chrome {
15993
15993
  }
15994
15994
  }
15995
15995
 
15996
+ /**
15997
+ * Use the `offscreen` API to create and manage offscreen documents.
15998
+ *
15999
+ * @alpha
16000
+ * @chrome-permission offscreen
16001
+ * @chrome-channel canary
16002
+ * @chrome-min-manifest MV3
16003
+ */
16004
+ export namespace offscreen {
16005
+
16006
+ /**
16007
+ * @chrome-enum "TESTING" A reason used for testing purposes only.
16008
+ */
16009
+ export type Reason = "TESTING";
16010
+
16011
+ export interface CreateParameters {
16012
+
16013
+ /**
16014
+ * The reason(s) the extension is creating the offscreen document.
16015
+ */
16016
+ reasons: Reason[];
16017
+
16018
+ /**
16019
+ * The (relative) URL to load in the document.
16020
+ */
16021
+ url: string;
16022
+
16023
+ /**
16024
+ * A developer-provided string that explains, in more detail, the need for the background context. The user agent \_may\_ use this in display to the user.
16025
+ */
16026
+ justification: string;
16027
+ }
16028
+
16029
+ /**
16030
+ * Creates a new offscreen document for the extension.
16031
+ *
16032
+ * @param parameters The parameters describing the offscreen document to create.
16033
+ */
16034
+ export function createDocument(
16035
+
16036
+ parameters: CreateParameters,
16037
+ ): Promise<void>;
16038
+
16039
+ /**
16040
+ * Creates a new offscreen document for the extension.
16041
+ *
16042
+ * @param parameters The parameters describing the offscreen document to create.
16043
+ * @param callback Invoked when the offscreen document is created and has completed its initial page load.
16044
+ */
16045
+ export function createDocument(
16046
+
16047
+ parameters: CreateParameters,
16048
+
16049
+ callback?: () => void,
16050
+ ): void;
16051
+
16052
+ /**
16053
+ * Closes the currently-open offscreen document for the extension.
16054
+ */
16055
+ export function closeDocument(): Promise<void>;
16056
+
16057
+ /**
16058
+ * Closes the currently-open offscreen document for the extension.
16059
+ *
16060
+ * @param callback Invoked when the offscreen document has been closed.
16061
+ */
16062
+ export function closeDocument(
16063
+
16064
+ callback?: () => void,
16065
+ ): void;
16066
+ }
16067
+
15996
16068
  /**
15997
16069
  * The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.
15998
16070
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "e02dc2441cbb7b88"
8
+ "build-hash": "c8d4ed2ac62bba99"
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.120"
19
+ "version": "0.1.123"
20
20
  }