electron 33.0.1 → 34.0.0-alpha.2
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/checksums.json +75 -75
- package/electron.d.ts +298 -45
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-
|
|
3
|
-
"chromedriver-
|
|
4
|
-
"chromedriver-
|
|
5
|
-
"chromedriver-
|
|
6
|
-
"chromedriver-
|
|
7
|
-
"chromedriver-
|
|
8
|
-
"chromedriver-
|
|
9
|
-
"chromedriver-
|
|
10
|
-
"chromedriver-
|
|
11
|
-
"chromedriver-
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-
|
|
14
|
-
"electron-
|
|
15
|
-
"electron-
|
|
16
|
-
"electron-
|
|
17
|
-
"electron-
|
|
18
|
-
"electron-
|
|
19
|
-
"electron-
|
|
20
|
-
"electron-
|
|
21
|
-
"electron-
|
|
22
|
-
"electron-
|
|
23
|
-
"electron-
|
|
24
|
-
"electron-
|
|
25
|
-
"electron-
|
|
26
|
-
"electron-
|
|
27
|
-
"electron-
|
|
28
|
-
"electron-
|
|
29
|
-
"electron-
|
|
30
|
-
"electron-
|
|
31
|
-
"electron-
|
|
32
|
-
"electron-
|
|
33
|
-
"electron-
|
|
34
|
-
"electron-
|
|
35
|
-
"electron-
|
|
36
|
-
"electron-
|
|
37
|
-
"electron-
|
|
38
|
-
"electron-
|
|
39
|
-
"electron-
|
|
40
|
-
"electron-
|
|
41
|
-
"electron-
|
|
42
|
-
"electron-
|
|
43
|
-
"electron-
|
|
44
|
-
"electron-
|
|
45
|
-
"electron-
|
|
46
|
-
"electron-
|
|
47
|
-
"electron-
|
|
48
|
-
"electron-
|
|
49
|
-
"electron-
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-
|
|
52
|
-
"ffmpeg-
|
|
53
|
-
"ffmpeg-
|
|
54
|
-
"ffmpeg-
|
|
55
|
-
"ffmpeg-
|
|
56
|
-
"ffmpeg-
|
|
57
|
-
"ffmpeg-
|
|
58
|
-
"ffmpeg-
|
|
59
|
-
"ffmpeg-
|
|
60
|
-
"ffmpeg-
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-
|
|
63
|
-
"libcxx-objects-
|
|
64
|
-
"libcxx-objects-
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-
|
|
68
|
-
"mksnapshot-
|
|
69
|
-
"mksnapshot-
|
|
70
|
-
"mksnapshot-
|
|
71
|
-
"mksnapshot-
|
|
72
|
-
"mksnapshot-
|
|
73
|
-
"mksnapshot-
|
|
74
|
-
"mksnapshot-
|
|
75
|
-
"mksnapshot-
|
|
76
|
-
"mksnapshot-
|
|
2
|
+
"chromedriver-v34.0.0-alpha.2-darwin-arm64.zip": "19a6d916ba2c0fa6c7ec4a16d027cb4fc0455f23aabcfe9814a7fc6e65a0d207",
|
|
3
|
+
"chromedriver-v34.0.0-alpha.2-darwin-x64.zip": "de483b977acb0ff5035ce827ac6adf3069c9f70ee0e1bf364527623fff340c42",
|
|
4
|
+
"chromedriver-v34.0.0-alpha.2-linux-arm64.zip": "3d40109bf82d4db9386732dd6e33ab3091ebdf7e20adbcc7ec5999e83238aa4d",
|
|
5
|
+
"chromedriver-v34.0.0-alpha.2-linux-armv7l.zip": "c603fe3fe44583512ed78163965c9f01bb2f5bdd3894b9aeb65cc87c81cc4646",
|
|
6
|
+
"chromedriver-v34.0.0-alpha.2-linux-x64.zip": "75fa6ab58a75a0a85829abdc0110199fd189ac21f43d1bc59635ba84cff2e9b4",
|
|
7
|
+
"chromedriver-v34.0.0-alpha.2-mas-arm64.zip": "de6e469f041d9f0eb5bd6525a627f7184b642d1000148bb1442348725a7d1f2c",
|
|
8
|
+
"chromedriver-v34.0.0-alpha.2-mas-x64.zip": "5f796c9d3d31f41cfc30651eafcc947d09dddb0b59150e3222629f66340f4124",
|
|
9
|
+
"chromedriver-v34.0.0-alpha.2-win32-arm64.zip": "9302fd0fe2dad7087c4913b6af947cc814d066be8612c17c3be5e0eb40df1143",
|
|
10
|
+
"chromedriver-v34.0.0-alpha.2-win32-ia32.zip": "ecb9769acc5d0f5bb63c5dd4e4ccc66506a0fd5d44b7e67115e623071e927c85",
|
|
11
|
+
"chromedriver-v34.0.0-alpha.2-win32-x64.zip": "9797725a54886a521979affe3d0fbddb2298fadb3a17de8e3936d1fe50baeaf7",
|
|
12
|
+
"electron-api.json": "e66d1729ad295f1d0755165dbffd74900cc7749a55800e102dffd1ce2f47ae20",
|
|
13
|
+
"electron-v34.0.0-alpha.2-darwin-arm64-dsym-snapshot.zip": "9e64672962a555929a3a91fc82a58a0976a74bbd248ce9fc5d9ad47ac1fbe0df",
|
|
14
|
+
"electron-v34.0.0-alpha.2-darwin-arm64-dsym.zip": "2d3a060ca9f32bbac865b201f6ec2bdf72653c9d1051e1f712a92668434dd2a7",
|
|
15
|
+
"electron-v34.0.0-alpha.2-darwin-arm64-symbols.zip": "72f6bb4c27461f2d3acf57a45b17fda72deec65131a1aefd47c49017ec4c9520",
|
|
16
|
+
"electron-v34.0.0-alpha.2-darwin-arm64.zip": "9d269c54ba9e6fc53d55c8020827e1a1b5c5c28c9e6fe87cab1c01187f606f08",
|
|
17
|
+
"electron-v34.0.0-alpha.2-darwin-x64-dsym-snapshot.zip": "a8d10971e7fb8ec1ec0518aeafb66ad4141c9b4a00571906eb42670c30ab66e3",
|
|
18
|
+
"electron-v34.0.0-alpha.2-darwin-x64-dsym.zip": "1342e9a1a7cfb82f64a5842079c18f572cad0ca21b19a3a3a0e9725fed2d4037",
|
|
19
|
+
"electron-v34.0.0-alpha.2-darwin-x64-symbols.zip": "075de01af8a690fa5379ee2342a88c3fc15e04497b74643eb53680ab3a33345c",
|
|
20
|
+
"electron-v34.0.0-alpha.2-darwin-x64.zip": "0fea176c0e026ed1a6510826aa80800e55d8c2e71e1823652f64435a242dbff7",
|
|
21
|
+
"electron-v34.0.0-alpha.2-linux-arm64-debug.zip": "973ffae6e645cfcd4a8e7b9b01b07e6d79ba6cacc74ed5bd3f41fdc1292834ea",
|
|
22
|
+
"electron-v34.0.0-alpha.2-linux-arm64-symbols.zip": "4b052bbd7f4f263d9a980d9df084e36b0bdcbeb999c84cceee3c095deba9da84",
|
|
23
|
+
"electron-v34.0.0-alpha.2-linux-arm64.zip": "f87093709d703e55f72662f1f4c44495301e6b423bb6ff74804f641713c9d42c",
|
|
24
|
+
"electron-v34.0.0-alpha.2-linux-armv7l-debug.zip": "973ffae6e645cfcd4a8e7b9b01b07e6d79ba6cacc74ed5bd3f41fdc1292834ea",
|
|
25
|
+
"electron-v34.0.0-alpha.2-linux-armv7l-symbols.zip": "b3489b2b6fed443abd6859a8c30060dcbeac5f038b9ce937bda4a82cb62ef1e6",
|
|
26
|
+
"electron-v34.0.0-alpha.2-linux-armv7l.zip": "0ec872892f78da30ce4ee1c43844ffe83dbda76768309780474f70de15179b17",
|
|
27
|
+
"electron-v34.0.0-alpha.2-linux-x64-debug.zip": "a973636f4c52da55d2c6a4ddad372ea5a91552be9202c9bbc0fb5352a8c2b885",
|
|
28
|
+
"electron-v34.0.0-alpha.2-linux-x64-symbols.zip": "c380ef750507ff74a76e3c285c3981d718ab3ca0e0594886839e0951fd4e80de",
|
|
29
|
+
"electron-v34.0.0-alpha.2-linux-x64.zip": "f76a88e0ad82670e5d0b9f969d6995269c5a6f51ac9bbdf5a3180130e3179c22",
|
|
30
|
+
"electron-v34.0.0-alpha.2-mas-arm64-dsym-snapshot.zip": "ae2d6639d587a92751bee1d3cb76f27eb40a3f8ed1894d91dab4bc0d9e42b07f",
|
|
31
|
+
"electron-v34.0.0-alpha.2-mas-arm64-dsym.zip": "10e075a063c446894d49fb18f0a508294e7cb1e6906f179bb85280cb7a14ad20",
|
|
32
|
+
"electron-v34.0.0-alpha.2-mas-arm64-symbols.zip": "007dc5743d5f96a0b1d7e9b3e14657e0cd66a7151d78dccb9c860ad418d146fe",
|
|
33
|
+
"electron-v34.0.0-alpha.2-mas-arm64.zip": "6cbe50399c80b35e382e1d3f88a02d3b2d544c9a1ac56568d0cbeb86f615c854",
|
|
34
|
+
"electron-v34.0.0-alpha.2-mas-x64-dsym-snapshot.zip": "1b68ebc17c9535ad2116916a97e54be5401a161a5b9deee30b85b07b326a16ab",
|
|
35
|
+
"electron-v34.0.0-alpha.2-mas-x64-dsym.zip": "c742dcbd402ecfa83547cdd4ccf77e0f40a5637becd2c97bd43e3b98b4bf5812",
|
|
36
|
+
"electron-v34.0.0-alpha.2-mas-x64-symbols.zip": "12a1c901d649804ace40659879aef3927a3e9da7605b6da96190b5a8123eac43",
|
|
37
|
+
"electron-v34.0.0-alpha.2-mas-x64.zip": "e99cf4b6016abe5a674f9538f5ed5c3a999a6c1a2860389bff39d05f48db217c",
|
|
38
|
+
"electron-v34.0.0-alpha.2-win32-arm64-pdb.zip": "f7d7b3af6668403d255029acfe9b428b5907cf7421f200974160e4a2b3b730cd",
|
|
39
|
+
"electron-v34.0.0-alpha.2-win32-arm64-symbols.zip": "d79148ca27aa7872a9c889ceb143bbcfb2901f127af94d4af9f56a3739d92687",
|
|
40
|
+
"electron-v34.0.0-alpha.2-win32-arm64-toolchain-profile.zip": "0805942ff7953b1fa8a041b88f67c57eb4d48075ac1be5375caec2233e1a9f0c",
|
|
41
|
+
"electron-v34.0.0-alpha.2-win32-arm64.zip": "15d42dc5e42bc1150b46679501eda4d7e58067cbd842056c525a60b1f975ac14",
|
|
42
|
+
"electron-v34.0.0-alpha.2-win32-ia32-pdb.zip": "36edb4b9534fc4d973e1a032c4e5792a1a10d1c18f409e3fcdbeebce4b77eebb",
|
|
43
|
+
"electron-v34.0.0-alpha.2-win32-ia32-symbols.zip": "8aa9cb919b53e5a9f1bf82bb099b397cd771a3030345194f44d34f079bc183aa",
|
|
44
|
+
"electron-v34.0.0-alpha.2-win32-ia32-toolchain-profile.zip": "0805942ff7953b1fa8a041b88f67c57eb4d48075ac1be5375caec2233e1a9f0c",
|
|
45
|
+
"electron-v34.0.0-alpha.2-win32-ia32.zip": "85f41082f51e3d6da8c713a9ea1f261c7576c75a2cd7bd119595652ff5b6ca21",
|
|
46
|
+
"electron-v34.0.0-alpha.2-win32-x64-pdb.zip": "e356cf26dd020c7ada4430ec8d5c754e7ddb104a806adaae205c306af8eb2c32",
|
|
47
|
+
"electron-v34.0.0-alpha.2-win32-x64-symbols.zip": "bca0e1493a4a1deaf371691cc61922bc684799410414d2d3e4eeeb031100ffe5",
|
|
48
|
+
"electron-v34.0.0-alpha.2-win32-x64-toolchain-profile.zip": "0805942ff7953b1fa8a041b88f67c57eb4d48075ac1be5375caec2233e1a9f0c",
|
|
49
|
+
"electron-v34.0.0-alpha.2-win32-x64.zip": "e73630ec88dd97a7a4a2762057022b35607906443d5ecab6a68546c01bb2be4f",
|
|
50
|
+
"electron.d.ts": "a828f860c83d143774d2b22d5710ed02e922cf20ba850b7cad3377ed2a40db6f",
|
|
51
|
+
"ffmpeg-v34.0.0-alpha.2-darwin-arm64.zip": "f816bfe0d1ab6ebd1e6809341a6ef516215fe48448536e70503d66c96e2e4792",
|
|
52
|
+
"ffmpeg-v34.0.0-alpha.2-darwin-x64.zip": "5e4525c73c472201a1d840fd442c24f600694184efb27cd4069c6499adb765c6",
|
|
53
|
+
"ffmpeg-v34.0.0-alpha.2-linux-arm64.zip": "a363924e2b1dfe27ca75c2bade8c9bea19969e1ebc0f2f271093a9ac5320d535",
|
|
54
|
+
"ffmpeg-v34.0.0-alpha.2-linux-armv7l.zip": "2c8387b50f38ea70012a2d13070293a6a56593c2fbda5ec803ff20c8a7aae552",
|
|
55
|
+
"ffmpeg-v34.0.0-alpha.2-linux-x64.zip": "4ce9824a4e389a0cf501c6e7eaf17f6a80f177b6076848168721b4ae773671cb",
|
|
56
|
+
"ffmpeg-v34.0.0-alpha.2-mas-arm64.zip": "9741da1e0be652d065a06e89374fce9c5f24c31cbcb9811fce7d44ecde268568",
|
|
57
|
+
"ffmpeg-v34.0.0-alpha.2-mas-x64.zip": "27e31c0f5d9541fc0823a805fa4a7355ccbd2353f0613629b67920a5136a7a6d",
|
|
58
|
+
"ffmpeg-v34.0.0-alpha.2-win32-arm64.zip": "1f12580b2fed51ae2629d98cd552e6d6318380712de530e805d2169d6fac48f7",
|
|
59
|
+
"ffmpeg-v34.0.0-alpha.2-win32-ia32.zip": "712edcfde766d65f9eb1399e76b0649d24b3682d5059de66762a6591d8308e4d",
|
|
60
|
+
"ffmpeg-v34.0.0-alpha.2-win32-x64.zip": "f60379663e2e8c6897e86aaf65067e0b43e0459f8b08223de5a4f85d3ec3f79e",
|
|
61
|
+
"hunspell_dictionaries.zip": "44eef4cec81e95f9fe5fa092cfd15316674510aee8ae823f66c5afa0c6b241de",
|
|
62
|
+
"libcxx-objects-v34.0.0-alpha.2-linux-arm64.zip": "4981a512c3ecb6ef3b47675e360018123f7353cd6932d6af1f58df915616645d",
|
|
63
|
+
"libcxx-objects-v34.0.0-alpha.2-linux-armv7l.zip": "7bea11c95023de4962745b1101760f82ade24c8b3bd36318674468ef1ddfb736",
|
|
64
|
+
"libcxx-objects-v34.0.0-alpha.2-linux-x64.zip": "890269730ea40643ba5c921ebf0a8fcfcd9ebca86d3f30b1f6f9626702e2575e",
|
|
65
|
+
"libcxx_headers.zip": "590f33580b9c122003b4f80571525ab04ee71896586243f88d8332decc30d020",
|
|
66
|
+
"libcxxabi_headers.zip": "34e4b44f9c5e08b557a2caed55456ce7690abab910196a783a2a47b58d2b9ac9",
|
|
67
|
+
"mksnapshot-v34.0.0-alpha.2-darwin-arm64.zip": "689fed80d3ddd32301cbf2b2c368856901e031d1a98de89814245deba77d922b",
|
|
68
|
+
"mksnapshot-v34.0.0-alpha.2-darwin-x64.zip": "33af1e59e4753c545540ff676d0ec0ba958ada292037f0a47d3b3ba315ef898e",
|
|
69
|
+
"mksnapshot-v34.0.0-alpha.2-linux-arm64-x64.zip": "6af4af5188d59d4f42340075bdeb86dfb5959a24099fd1759b54559c6bd4e69f",
|
|
70
|
+
"mksnapshot-v34.0.0-alpha.2-linux-armv7l-x64.zip": "4ae606d8bf9437fbcffb3527146abf4d0b94e15e3ccdd304b723a54ee9521c86",
|
|
71
|
+
"mksnapshot-v34.0.0-alpha.2-linux-x64.zip": "8e1a9149e1a0bebe5f583b0b28d3f36f37e7a39b7246440e9ec2f42a27249938",
|
|
72
|
+
"mksnapshot-v34.0.0-alpha.2-mas-arm64.zip": "468e8995320e4bac6b017da5e28bdc179d064d399add4a50e57926e6da834fea",
|
|
73
|
+
"mksnapshot-v34.0.0-alpha.2-mas-x64.zip": "b736e9f2b17e67b76fc6f96bfd74c0138acb158f614f78264dba3e13cb845eb7",
|
|
74
|
+
"mksnapshot-v34.0.0-alpha.2-win32-arm64-x64.zip": "cb0a4a84b152280d1cbef02e2a4a433f6b6cc16011e3cb15e4644fc620e393d7",
|
|
75
|
+
"mksnapshot-v34.0.0-alpha.2-win32-ia32.zip": "8f1ee9d587e11390968f2224966f4866e7437e1e9fad6218e6b9851a96cdee99",
|
|
76
|
+
"mksnapshot-v34.0.0-alpha.2-win32-x64.zip": "65414266fa7d2b2c8703cb14d0b9e36ba7d71c958ddef84ec6b4cd263e5ac7ec"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron
|
|
1
|
+
// Type definitions for Electron 34.0.0-alpha.2
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -8260,10 +8260,11 @@ declare namespace Electron {
|
|
|
8260
8260
|
*/
|
|
8261
8261
|
sender: WebContents;
|
|
8262
8262
|
/**
|
|
8263
|
-
* The frame that sent this message
|
|
8263
|
+
* The frame that sent this message. May be `null` if accessed after the frame has
|
|
8264
|
+
* either navigated or been destroyed.
|
|
8264
8265
|
*
|
|
8265
8266
|
*/
|
|
8266
|
-
readonly senderFrame: WebFrameMain;
|
|
8267
|
+
readonly senderFrame: (WebFrameMain) | (null);
|
|
8267
8268
|
}
|
|
8268
8269
|
|
|
8269
8270
|
interface IpcMainInvokeEvent extends Event {
|
|
@@ -8283,10 +8284,11 @@ declare namespace Electron {
|
|
|
8283
8284
|
*/
|
|
8284
8285
|
sender: WebContents;
|
|
8285
8286
|
/**
|
|
8286
|
-
* The frame that sent this message
|
|
8287
|
+
* The frame that sent this message. May be `null` if accessed after the frame has
|
|
8288
|
+
* either navigated or been destroyed.
|
|
8287
8289
|
*
|
|
8288
8290
|
*/
|
|
8289
|
-
readonly senderFrame: WebFrameMain;
|
|
8291
|
+
readonly senderFrame: (WebFrameMain) | (null);
|
|
8290
8292
|
}
|
|
8291
8293
|
|
|
8292
8294
|
interface IpcRenderer extends NodeJS.EventEmitter {
|
|
@@ -9637,6 +9639,24 @@ declare namespace Electron {
|
|
|
9637
9639
|
userText?: string;
|
|
9638
9640
|
}
|
|
9639
9641
|
|
|
9642
|
+
interface OffscreenSharedTexture {
|
|
9643
|
+
|
|
9644
|
+
// Docs: https://electronjs.org/docs/api/structures/offscreen-shared-texture
|
|
9645
|
+
|
|
9646
|
+
/**
|
|
9647
|
+
* Release the resources. The `texture` cannot be directly passed to another
|
|
9648
|
+
* process, users need to maintain texture lifecycles in main process, but it is
|
|
9649
|
+
* safe to pass the `textureInfo` to another process. Only a limited number of
|
|
9650
|
+
* textures can exist at the same time, so it's important that you call
|
|
9651
|
+
* `texture.release()` as soon as you're done with the texture.
|
|
9652
|
+
*/
|
|
9653
|
+
release: () => void;
|
|
9654
|
+
/**
|
|
9655
|
+
* The shared texture info.
|
|
9656
|
+
*/
|
|
9657
|
+
textureInfo: TextureInfo;
|
|
9658
|
+
}
|
|
9659
|
+
|
|
9640
9660
|
interface OpenExternalPermissionRequest extends PermissionRequest {
|
|
9641
9661
|
|
|
9642
9662
|
// Docs: https://electronjs.org/docs/api/structures/open-external-permission-request
|
|
@@ -15373,32 +15393,43 @@ declare namespace Electron {
|
|
|
15373
15393
|
/**
|
|
15374
15394
|
* Emitted when a new frame is generated. Only the dirty area is passed in the
|
|
15375
15395
|
* buffer.
|
|
15396
|
+
*
|
|
15397
|
+
* When using shared texture (set `webPreferences.offscreen.useSharedTexture` to
|
|
15398
|
+
* `true`) feature, you can pass the texture handle to external rendering pipeline
|
|
15399
|
+
* without the overhead of copying data between CPU and GPU memory, with Chromium's
|
|
15400
|
+
* hardware acceleration support. This feature is helpful for high-performance
|
|
15401
|
+
* rendering scenarios.
|
|
15402
|
+
*
|
|
15403
|
+
* Only a limited number of textures can exist at the same time, so it's important
|
|
15404
|
+
* that you call `texture.release()` as soon as you're done with the texture. By
|
|
15405
|
+
* managing the texture lifecycle by yourself, you can safely pass the
|
|
15406
|
+
* `texture.textureInfo` to other processes through IPC.
|
|
15376
15407
|
*/
|
|
15377
|
-
on(event: 'paint', listener: (
|
|
15408
|
+
on(event: 'paint', listener: (details: Event<WebContentsPaintEventParams>,
|
|
15378
15409
|
dirtyRect: Rectangle,
|
|
15379
15410
|
/**
|
|
15380
15411
|
* The image data of the whole frame.
|
|
15381
15412
|
*/
|
|
15382
15413
|
image: NativeImage) => void): this;
|
|
15383
|
-
off(event: 'paint', listener: (
|
|
15414
|
+
off(event: 'paint', listener: (details: Event<WebContentsPaintEventParams>,
|
|
15384
15415
|
dirtyRect: Rectangle,
|
|
15385
15416
|
/**
|
|
15386
15417
|
* The image data of the whole frame.
|
|
15387
15418
|
*/
|
|
15388
15419
|
image: NativeImage) => void): this;
|
|
15389
|
-
once(event: 'paint', listener: (
|
|
15420
|
+
once(event: 'paint', listener: (details: Event<WebContentsPaintEventParams>,
|
|
15390
15421
|
dirtyRect: Rectangle,
|
|
15391
15422
|
/**
|
|
15392
15423
|
* The image data of the whole frame.
|
|
15393
15424
|
*/
|
|
15394
15425
|
image: NativeImage) => void): this;
|
|
15395
|
-
addListener(event: 'paint', listener: (
|
|
15426
|
+
addListener(event: 'paint', listener: (details: Event<WebContentsPaintEventParams>,
|
|
15396
15427
|
dirtyRect: Rectangle,
|
|
15397
15428
|
/**
|
|
15398
15429
|
* The image data of the whole frame.
|
|
15399
15430
|
*/
|
|
15400
15431
|
image: NativeImage) => void): this;
|
|
15401
|
-
removeListener(event: 'paint', listener: (
|
|
15432
|
+
removeListener(event: 'paint', listener: (details: Event<WebContentsPaintEventParams>,
|
|
15402
15433
|
dirtyRect: Rectangle,
|
|
15403
15434
|
/**
|
|
15404
15435
|
* The image data of the whole frame.
|
|
@@ -16995,6 +17026,10 @@ declare namespace Electron {
|
|
|
16995
17026
|
* this limitation.
|
|
16996
17027
|
*/
|
|
16997
17028
|
executeJavaScript(code: string, userGesture?: boolean): Promise<unknown>;
|
|
17029
|
+
/**
|
|
17030
|
+
* Whether the frame is destroyed.
|
|
17031
|
+
*/
|
|
17032
|
+
isDestroyed(): boolean;
|
|
16998
17033
|
/**
|
|
16999
17034
|
* Send a message to the renderer process, optionally transferring ownership of
|
|
17000
17035
|
* zero or more `MessagePortMain` objects.
|
|
@@ -17021,6 +17056,14 @@ declare namespace Electron {
|
|
|
17021
17056
|
* `ipcRenderer` module.
|
|
17022
17057
|
*/
|
|
17023
17058
|
send(channel: string, ...args: any[]): void;
|
|
17059
|
+
/**
|
|
17060
|
+
* A `Boolean` representing whether the frame is detached from the frame tree. If a
|
|
17061
|
+
* frame is accessed while the corresponding page is running any unload listeners,
|
|
17062
|
+
* it may become detached as the newly navigated page replaced it in the frame
|
|
17063
|
+
* tree.
|
|
17064
|
+
*
|
|
17065
|
+
*/
|
|
17066
|
+
readonly detached: boolean;
|
|
17024
17067
|
/**
|
|
17025
17068
|
* A `WebFrameMain[]` collection containing the direct descendents of `frame`.
|
|
17026
17069
|
*
|
|
@@ -17275,7 +17318,7 @@ declare namespace Electron {
|
|
|
17275
17318
|
* Whether to enable offscreen rendering for the browser window. Defaults to
|
|
17276
17319
|
* `false`. See the offscreen rendering tutorial for more details.
|
|
17277
17320
|
*/
|
|
17278
|
-
offscreen?: boolean;
|
|
17321
|
+
offscreen?: (Offscreen) | (boolean);
|
|
17279
17322
|
/**
|
|
17280
17323
|
* Sets the session used by the page according to the session's partition string.
|
|
17281
17324
|
* If `partition` starts with `persist:`, the page will use a persistent session
|
|
@@ -18407,7 +18450,11 @@ declare namespace Electron {
|
|
|
18407
18450
|
* The type of pairing prompt being requested. One of the following values:
|
|
18408
18451
|
*/
|
|
18409
18452
|
pairingKind: ('confirm' | 'confirmPin' | 'providePin');
|
|
18410
|
-
|
|
18453
|
+
/**
|
|
18454
|
+
* The frame initiating this handler. May be `null` if accessed after the frame has
|
|
18455
|
+
* either navigated or been destroyed.
|
|
18456
|
+
*/
|
|
18457
|
+
frame: (WebFrameMain) | (null);
|
|
18411
18458
|
/**
|
|
18412
18459
|
* The pin value to verify if `pairingKind` is `confirmPin`.
|
|
18413
18460
|
*/
|
|
@@ -18690,9 +18737,10 @@ declare namespace Electron {
|
|
|
18690
18737
|
*/
|
|
18691
18738
|
y: number;
|
|
18692
18739
|
/**
|
|
18693
|
-
* Frame from which the context menu was invoked.
|
|
18740
|
+
* Frame from which the context menu was invoked. May be `null` if accessed after
|
|
18741
|
+
* the frame has either navigated or been destroyed.
|
|
18694
18742
|
*/
|
|
18695
|
-
frame: WebFrameMain;
|
|
18743
|
+
frame: (WebFrameMain) | (null);
|
|
18696
18744
|
/**
|
|
18697
18745
|
* URL of the link that encloses the node the context menu was invoked on.
|
|
18698
18746
|
*/
|
|
@@ -19216,9 +19264,10 @@ declare namespace Electron {
|
|
|
19216
19264
|
|
|
19217
19265
|
interface DisplayMediaRequestHandlerHandlerRequest {
|
|
19218
19266
|
/**
|
|
19219
|
-
* Frame that is requesting access to media.
|
|
19267
|
+
* Frame that is requesting access to media. May be `null` if accessed after the
|
|
19268
|
+
* frame has either navigated or been destroyed.
|
|
19220
19269
|
*/
|
|
19221
|
-
frame: WebFrameMain;
|
|
19270
|
+
frame: (WebFrameMain) | (null);
|
|
19222
19271
|
/**
|
|
19223
19272
|
* Origin of the page making the request.
|
|
19224
19273
|
*/
|
|
@@ -19384,7 +19433,11 @@ declare namespace Electron {
|
|
|
19384
19433
|
}
|
|
19385
19434
|
|
|
19386
19435
|
interface FrameCreatedDetails {
|
|
19387
|
-
|
|
19436
|
+
/**
|
|
19437
|
+
* The created frame. May be `null` if accessed after the frame has either
|
|
19438
|
+
* navigated or been destroyed.
|
|
19439
|
+
*/
|
|
19440
|
+
frame: (WebFrameMain) | (null);
|
|
19388
19441
|
}
|
|
19389
19442
|
|
|
19390
19443
|
interface FromPartitionOptions {
|
|
@@ -19461,12 +19514,20 @@ declare namespace Electron {
|
|
|
19461
19514
|
|
|
19462
19515
|
interface HidDeviceAddedDetails {
|
|
19463
19516
|
device: HIDDevice;
|
|
19464
|
-
|
|
19517
|
+
/**
|
|
19518
|
+
* The frame initiating this event. May be `null` if accessed after the frame has
|
|
19519
|
+
* either navigated or been destroyed.
|
|
19520
|
+
*/
|
|
19521
|
+
frame: (WebFrameMain) | (null);
|
|
19465
19522
|
}
|
|
19466
19523
|
|
|
19467
19524
|
interface HidDeviceRemovedDetails {
|
|
19468
19525
|
device: HIDDevice;
|
|
19469
|
-
|
|
19526
|
+
/**
|
|
19527
|
+
* The frame initiating this event. May be `null` if accessed after the frame has
|
|
19528
|
+
* either navigated or been destroyed.
|
|
19529
|
+
*/
|
|
19530
|
+
frame: (WebFrameMain) | (null);
|
|
19470
19531
|
}
|
|
19471
19532
|
|
|
19472
19533
|
interface HidDeviceRevokedDetails {
|
|
@@ -20122,13 +20183,27 @@ declare namespace Electron {
|
|
|
20122
20183
|
toastXml?: string;
|
|
20123
20184
|
}
|
|
20124
20185
|
|
|
20186
|
+
interface Offscreen {
|
|
20187
|
+
/**
|
|
20188
|
+
* Whether to use GPU shared texture for accelerated paint event. Defaults to
|
|
20189
|
+
* `false`. See the offscreen rendering tutorial for more details.
|
|
20190
|
+
*
|
|
20191
|
+
* @experimental
|
|
20192
|
+
*/
|
|
20193
|
+
useSharedTexture?: boolean;
|
|
20194
|
+
}
|
|
20195
|
+
|
|
20125
20196
|
interface OnBeforeRedirectListenerDetails {
|
|
20126
20197
|
id: number;
|
|
20127
20198
|
url: string;
|
|
20128
20199
|
method: string;
|
|
20129
20200
|
webContentsId?: number;
|
|
20130
20201
|
webContents?: WebContents;
|
|
20131
|
-
|
|
20202
|
+
/**
|
|
20203
|
+
* Requesting frame. May be `null` if accessed after the frame has either navigated
|
|
20204
|
+
* or been destroyed.
|
|
20205
|
+
*/
|
|
20206
|
+
frame?: (WebFrameMain) | (null);
|
|
20132
20207
|
/**
|
|
20133
20208
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
20134
20209
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -20153,7 +20228,11 @@ declare namespace Electron {
|
|
|
20153
20228
|
method: string;
|
|
20154
20229
|
webContentsId?: number;
|
|
20155
20230
|
webContents?: WebContents;
|
|
20156
|
-
|
|
20231
|
+
/**
|
|
20232
|
+
* Requesting frame. May be `null` if accessed after the frame has either navigated
|
|
20233
|
+
* or been destroyed.
|
|
20234
|
+
*/
|
|
20235
|
+
frame?: (WebFrameMain) | (null);
|
|
20157
20236
|
/**
|
|
20158
20237
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
20159
20238
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -20170,7 +20249,11 @@ declare namespace Electron {
|
|
|
20170
20249
|
method: string;
|
|
20171
20250
|
webContentsId?: number;
|
|
20172
20251
|
webContents?: WebContents;
|
|
20173
|
-
|
|
20252
|
+
/**
|
|
20253
|
+
* Requesting frame. May be `null` if accessed after the frame has either navigated
|
|
20254
|
+
* or been destroyed.
|
|
20255
|
+
*/
|
|
20256
|
+
frame?: (WebFrameMain) | (null);
|
|
20174
20257
|
/**
|
|
20175
20258
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
20176
20259
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -20188,7 +20271,11 @@ declare namespace Electron {
|
|
|
20188
20271
|
method: string;
|
|
20189
20272
|
webContentsId?: number;
|
|
20190
20273
|
webContents?: WebContents;
|
|
20191
|
-
|
|
20274
|
+
/**
|
|
20275
|
+
* Requesting frame. May be `null` if accessed after the frame has either navigated
|
|
20276
|
+
* or been destroyed.
|
|
20277
|
+
*/
|
|
20278
|
+
frame?: (WebFrameMain) | (null);
|
|
20192
20279
|
/**
|
|
20193
20280
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
20194
20281
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -20209,7 +20296,11 @@ declare namespace Electron {
|
|
|
20209
20296
|
method: string;
|
|
20210
20297
|
webContentsId?: number;
|
|
20211
20298
|
webContents?: WebContents;
|
|
20212
|
-
|
|
20299
|
+
/**
|
|
20300
|
+
* Requesting frame. May be `null` if accessed after the frame has either navigated
|
|
20301
|
+
* or been destroyed.
|
|
20302
|
+
*/
|
|
20303
|
+
frame?: (WebFrameMain) | (null);
|
|
20213
20304
|
/**
|
|
20214
20305
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
20215
20306
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -20230,7 +20321,11 @@ declare namespace Electron {
|
|
|
20230
20321
|
method: string;
|
|
20231
20322
|
webContentsId?: number;
|
|
20232
20323
|
webContents?: WebContents;
|
|
20233
|
-
|
|
20324
|
+
/**
|
|
20325
|
+
* Requesting frame. May be `null` if accessed after the frame has either navigated
|
|
20326
|
+
* or been destroyed.
|
|
20327
|
+
*/
|
|
20328
|
+
frame?: (WebFrameMain) | (null);
|
|
20234
20329
|
/**
|
|
20235
20330
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
20236
20331
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -20249,7 +20344,11 @@ declare namespace Electron {
|
|
|
20249
20344
|
method: string;
|
|
20250
20345
|
webContentsId?: number;
|
|
20251
20346
|
webContents?: WebContents;
|
|
20252
|
-
|
|
20347
|
+
/**
|
|
20348
|
+
* Requesting frame. May be `null` if accessed after the frame has either navigated
|
|
20349
|
+
* or been destroyed.
|
|
20350
|
+
*/
|
|
20351
|
+
frame?: (WebFrameMain) | (null);
|
|
20253
20352
|
/**
|
|
20254
20353
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
20255
20354
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -20272,7 +20371,11 @@ declare namespace Electron {
|
|
|
20272
20371
|
method: string;
|
|
20273
20372
|
webContentsId?: number;
|
|
20274
20373
|
webContents?: WebContents;
|
|
20275
|
-
|
|
20374
|
+
/**
|
|
20375
|
+
* Requesting frame. May be `null` if accessed after the frame has either navigated
|
|
20376
|
+
* or been destroyed.
|
|
20377
|
+
*/
|
|
20378
|
+
frame?: (WebFrameMain) | (null);
|
|
20276
20379
|
/**
|
|
20277
20380
|
* Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`,
|
|
20278
20381
|
* `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
@@ -20917,17 +21020,29 @@ declare namespace Electron {
|
|
|
20917
21020
|
|
|
20918
21021
|
interface SelectHidDeviceDetails {
|
|
20919
21022
|
deviceList: HIDDevice[];
|
|
20920
|
-
|
|
21023
|
+
/**
|
|
21024
|
+
* The frame initiating this event. May be `null` if accessed after the frame has
|
|
21025
|
+
* either navigated or been destroyed.
|
|
21026
|
+
*/
|
|
21027
|
+
frame: (WebFrameMain) | (null);
|
|
20921
21028
|
}
|
|
20922
21029
|
|
|
20923
21030
|
interface SelectUsbDeviceDetails {
|
|
20924
21031
|
deviceList: USBDevice[];
|
|
20925
|
-
|
|
21032
|
+
/**
|
|
21033
|
+
* The frame initiating this event. May be `null` if accessed after the frame has
|
|
21034
|
+
* either navigated or been destroyed.
|
|
21035
|
+
*/
|
|
21036
|
+
frame: (WebFrameMain) | (null);
|
|
20926
21037
|
}
|
|
20927
21038
|
|
|
20928
21039
|
interface SerialPortRevokedDetails {
|
|
20929
21040
|
port: SerialPort;
|
|
20930
|
-
|
|
21041
|
+
/**
|
|
21042
|
+
* The frame initiating this event. May be `null` if accessed after the frame has
|
|
21043
|
+
* either navigated or been destroyed.
|
|
21044
|
+
*/
|
|
21045
|
+
frame: (WebFrameMain) | (null);
|
|
20931
21046
|
/**
|
|
20932
21047
|
* The origin that the device has been revoked from.
|
|
20933
21048
|
*/
|
|
@@ -21069,6 +21184,58 @@ declare namespace Electron {
|
|
|
21069
21184
|
swapFree: number;
|
|
21070
21185
|
}
|
|
21071
21186
|
|
|
21187
|
+
interface TextureInfo {
|
|
21188
|
+
/**
|
|
21189
|
+
* The widget type of the texture. Can be `popup` or `frame`.
|
|
21190
|
+
*/
|
|
21191
|
+
widgetType: ('popup' | 'frame');
|
|
21192
|
+
/**
|
|
21193
|
+
* The pixel format of the texture. Can be `rgba` or `bgra`.
|
|
21194
|
+
*/
|
|
21195
|
+
pixelFormat: ('rgba' | 'bgra');
|
|
21196
|
+
/**
|
|
21197
|
+
* The full dimensions of the video frame.
|
|
21198
|
+
*/
|
|
21199
|
+
codedSize: Size;
|
|
21200
|
+
/**
|
|
21201
|
+
* A subsection of [0, 0, codedSize.width(), codedSize.height()]. In OSR case, it
|
|
21202
|
+
* is expected to have the full section area.
|
|
21203
|
+
*/
|
|
21204
|
+
visibleRect: Rectangle;
|
|
21205
|
+
/**
|
|
21206
|
+
* The region of the video frame that capturer would like to populate. In OSR case,
|
|
21207
|
+
* it is the same with `dirtyRect` that needs to be painted.
|
|
21208
|
+
*/
|
|
21209
|
+
contentRect: Rectangle;
|
|
21210
|
+
/**
|
|
21211
|
+
* The time in microseconds since the capture start.
|
|
21212
|
+
*/
|
|
21213
|
+
timestamp: number;
|
|
21214
|
+
/**
|
|
21215
|
+
* Extra metadata. See comments in src\media\base\video_frame_metadata.h for
|
|
21216
|
+
* accurate details.
|
|
21217
|
+
*/
|
|
21218
|
+
metadata: Metadata;
|
|
21219
|
+
/**
|
|
21220
|
+
* The handle to the shared texture.
|
|
21221
|
+
*
|
|
21222
|
+
* @platform win32,darwin
|
|
21223
|
+
*/
|
|
21224
|
+
sharedTextureHandle: Buffer;
|
|
21225
|
+
/**
|
|
21226
|
+
* Each plane's info of the shared texture.
|
|
21227
|
+
*
|
|
21228
|
+
* @platform linux
|
|
21229
|
+
*/
|
|
21230
|
+
planes: Planes[];
|
|
21231
|
+
/**
|
|
21232
|
+
* The modifier is retrieved from GBM library and passed to EGL driver.
|
|
21233
|
+
*
|
|
21234
|
+
* @platform linux
|
|
21235
|
+
*/
|
|
21236
|
+
modifier: string;
|
|
21237
|
+
}
|
|
21238
|
+
|
|
21072
21239
|
interface TitleBarOverlay {
|
|
21073
21240
|
/**
|
|
21074
21241
|
* The CSS color of the Window Controls Overlay when enabled. Default is the system
|
|
@@ -21419,16 +21586,17 @@ declare namespace Electron {
|
|
|
21419
21586
|
*/
|
|
21420
21587
|
isMainFrame: boolean;
|
|
21421
21588
|
/**
|
|
21422
|
-
* The frame to be navigated.
|
|
21589
|
+
* The frame to be navigated. May be `null` if accessed after the frame has either
|
|
21590
|
+
* navigated or been destroyed.
|
|
21423
21591
|
*/
|
|
21424
|
-
frame: WebFrameMain;
|
|
21592
|
+
frame: (WebFrameMain) | (null);
|
|
21425
21593
|
/**
|
|
21426
21594
|
* The frame which initiated the navigation, which can be a parent frame (e.g. via
|
|
21427
21595
|
* `window.open` with a frame's name), or null if the navigation was not initiated
|
|
21428
21596
|
* by a frame. This can also be null if the initiating frame was deleted before the
|
|
21429
21597
|
* event was emitted.
|
|
21430
21598
|
*/
|
|
21431
|
-
initiator?: WebFrameMain;
|
|
21599
|
+
initiator?: (WebFrameMain) | (null);
|
|
21432
21600
|
}
|
|
21433
21601
|
|
|
21434
21602
|
interface WebContentsDidStartNavigationEventParams {
|
|
@@ -21447,16 +21615,27 @@ declare namespace Electron {
|
|
|
21447
21615
|
*/
|
|
21448
21616
|
isMainFrame: boolean;
|
|
21449
21617
|
/**
|
|
21450
|
-
* The frame to be navigated.
|
|
21618
|
+
* The frame to be navigated. May be `null` if accessed after the frame has either
|
|
21619
|
+
* navigated or been destroyed.
|
|
21451
21620
|
*/
|
|
21452
|
-
frame: WebFrameMain;
|
|
21621
|
+
frame: (WebFrameMain) | (null);
|
|
21453
21622
|
/**
|
|
21454
21623
|
* The frame which initiated the navigation, which can be a parent frame (e.g. via
|
|
21455
21624
|
* `window.open` with a frame's name), or null if the navigation was not initiated
|
|
21456
21625
|
* by a frame. This can also be null if the initiating frame was deleted before the
|
|
21457
21626
|
* event was emitted.
|
|
21458
21627
|
*/
|
|
21459
|
-
initiator?: WebFrameMain;
|
|
21628
|
+
initiator?: (WebFrameMain) | (null);
|
|
21629
|
+
}
|
|
21630
|
+
|
|
21631
|
+
interface WebContentsPaintEventParams {
|
|
21632
|
+
/**
|
|
21633
|
+
* The GPU shared texture of the frame, when
|
|
21634
|
+
* `webPreferences.offscreen.useSharedTexture` is `true`.
|
|
21635
|
+
*
|
|
21636
|
+
* @experimental
|
|
21637
|
+
*/
|
|
21638
|
+
texture?: OffscreenSharedTexture;
|
|
21460
21639
|
}
|
|
21461
21640
|
|
|
21462
21641
|
interface WebContentsPrintOptions {
|
|
@@ -21553,16 +21732,17 @@ declare namespace Electron {
|
|
|
21553
21732
|
*/
|
|
21554
21733
|
isMainFrame: boolean;
|
|
21555
21734
|
/**
|
|
21556
|
-
* The frame to be navigated.
|
|
21735
|
+
* The frame to be navigated. May be `null` if accessed after the frame has either
|
|
21736
|
+
* navigated or been destroyed.
|
|
21557
21737
|
*/
|
|
21558
|
-
frame: WebFrameMain;
|
|
21738
|
+
frame: (WebFrameMain) | (null);
|
|
21559
21739
|
/**
|
|
21560
21740
|
* The frame which initiated the navigation, which can be a parent frame (e.g. via
|
|
21561
21741
|
* `window.open` with a frame's name), or null if the navigation was not initiated
|
|
21562
21742
|
* by a frame. This can also be null if the initiating frame was deleted before the
|
|
21563
21743
|
* event was emitted.
|
|
21564
21744
|
*/
|
|
21565
|
-
initiator?: WebFrameMain;
|
|
21745
|
+
initiator?: (WebFrameMain) | (null);
|
|
21566
21746
|
}
|
|
21567
21747
|
|
|
21568
21748
|
interface WebContentsWillNavigateEventParams {
|
|
@@ -21581,16 +21761,17 @@ declare namespace Electron {
|
|
|
21581
21761
|
*/
|
|
21582
21762
|
isMainFrame: boolean;
|
|
21583
21763
|
/**
|
|
21584
|
-
* The frame to be navigated.
|
|
21764
|
+
* The frame to be navigated. May be `null` if accessed after the frame has either
|
|
21765
|
+
* navigated or been destroyed.
|
|
21585
21766
|
*/
|
|
21586
|
-
frame: WebFrameMain;
|
|
21767
|
+
frame: (WebFrameMain) | (null);
|
|
21587
21768
|
/**
|
|
21588
21769
|
* The frame which initiated the navigation, which can be a parent frame (e.g. via
|
|
21589
21770
|
* `window.open` with a frame's name), or null if the navigation was not initiated
|
|
21590
21771
|
* by a frame. This can also be null if the initiating frame was deleted before the
|
|
21591
21772
|
* event was emitted.
|
|
21592
21773
|
*/
|
|
21593
|
-
initiator?: WebFrameMain;
|
|
21774
|
+
initiator?: (WebFrameMain) | (null);
|
|
21594
21775
|
}
|
|
21595
21776
|
|
|
21596
21777
|
interface WebContentsWillRedirectEventParams {
|
|
@@ -21609,16 +21790,17 @@ declare namespace Electron {
|
|
|
21609
21790
|
*/
|
|
21610
21791
|
isMainFrame: boolean;
|
|
21611
21792
|
/**
|
|
21612
|
-
* The frame to be navigated.
|
|
21793
|
+
* The frame to be navigated. May be `null` if accessed after the frame has either
|
|
21794
|
+
* navigated or been destroyed.
|
|
21613
21795
|
*/
|
|
21614
|
-
frame: WebFrameMain;
|
|
21796
|
+
frame: (WebFrameMain) | (null);
|
|
21615
21797
|
/**
|
|
21616
21798
|
* The frame which initiated the navigation, which can be a parent frame (e.g. via
|
|
21617
21799
|
* `window.open` with a frame's name), or null if the navigation was not initiated
|
|
21618
21800
|
* by a frame. This can also be null if the initiating frame was deleted before the
|
|
21619
21801
|
* event was emitted.
|
|
21620
21802
|
*/
|
|
21621
|
-
initiator?: WebFrameMain;
|
|
21803
|
+
initiator?: (WebFrameMain) | (null);
|
|
21622
21804
|
}
|
|
21623
21805
|
|
|
21624
21806
|
interface WebRTCUDPPortRange {
|
|
@@ -21885,6 +22067,26 @@ declare namespace Electron {
|
|
|
21885
22067
|
canLoop: boolean;
|
|
21886
22068
|
}
|
|
21887
22069
|
|
|
22070
|
+
interface Metadata {
|
|
22071
|
+
/**
|
|
22072
|
+
* Updated area of frame, can be considered as the `dirty` area.
|
|
22073
|
+
*/
|
|
22074
|
+
captureUpdateRect?: Rectangle;
|
|
22075
|
+
/**
|
|
22076
|
+
* May reflect the frame's contents origin if region capture is used internally.
|
|
22077
|
+
*/
|
|
22078
|
+
regionCaptureRect?: Rectangle;
|
|
22079
|
+
/**
|
|
22080
|
+
* Full size of the source frame.
|
|
22081
|
+
*/
|
|
22082
|
+
sourceSize?: Rectangle;
|
|
22083
|
+
/**
|
|
22084
|
+
* The increasing count of captured frame. May contain gaps if frames are dropped
|
|
22085
|
+
* between two consecutively received frames.
|
|
22086
|
+
*/
|
|
22087
|
+
frameCount?: number;
|
|
22088
|
+
}
|
|
22089
|
+
|
|
21888
22090
|
interface PageRanges {
|
|
21889
22091
|
/**
|
|
21890
22092
|
* Index of the first page to print (0-based).
|
|
@@ -22014,6 +22216,27 @@ declare namespace Electron {
|
|
|
22014
22216
|
editFlags: EditFlags;
|
|
22015
22217
|
}
|
|
22016
22218
|
|
|
22219
|
+
interface Planes {
|
|
22220
|
+
/**
|
|
22221
|
+
* The strides and offsets in bytes to be used when accessing the buffers via a
|
|
22222
|
+
* memory mapping. One per plane per entry.
|
|
22223
|
+
*/
|
|
22224
|
+
stride: number;
|
|
22225
|
+
/**
|
|
22226
|
+
* The strides and offsets in bytes to be used when accessing the buffers via a
|
|
22227
|
+
* memory mapping. One per plane per entry.
|
|
22228
|
+
*/
|
|
22229
|
+
offset: number;
|
|
22230
|
+
/**
|
|
22231
|
+
* Size in bytes of the plane. This is necessary to map the buffers.
|
|
22232
|
+
*/
|
|
22233
|
+
size: number;
|
|
22234
|
+
/**
|
|
22235
|
+
* File descriptor for the underlying memory object (usually dmabuf).
|
|
22236
|
+
*/
|
|
22237
|
+
fd: number;
|
|
22238
|
+
}
|
|
22239
|
+
|
|
22017
22240
|
interface Video {
|
|
22018
22241
|
/**
|
|
22019
22242
|
* The id of the stream being granted. This will usually come from a
|
|
@@ -22132,6 +22355,7 @@ declare namespace Electron {
|
|
|
22132
22355
|
type MessageEvent = Electron.MessageEvent;
|
|
22133
22356
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
22134
22357
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
22358
|
+
type Offscreen = Electron.Offscreen;
|
|
22135
22359
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
22136
22360
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
22137
22361
|
type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
|
|
@@ -22181,6 +22405,7 @@ declare namespace Electron {
|
|
|
22181
22405
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
22182
22406
|
type Streams = Electron.Streams;
|
|
22183
22407
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
22408
|
+
type TextureInfo = Electron.TextureInfo;
|
|
22184
22409
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
22185
22410
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
22186
22411
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -22207,6 +22432,7 @@ declare namespace Electron {
|
|
|
22207
22432
|
type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
|
|
22208
22433
|
type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
|
|
22209
22434
|
type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
|
|
22435
|
+
type WebContentsPaintEventParams = Electron.WebContentsPaintEventParams;
|
|
22210
22436
|
type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
|
|
22211
22437
|
type WebContentsViewConstructorOptions = Electron.WebContentsViewConstructorOptions;
|
|
22212
22438
|
type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
|
|
@@ -22223,8 +22449,10 @@ declare namespace Electron {
|
|
|
22223
22449
|
type LaunchItems = Electron.LaunchItems;
|
|
22224
22450
|
type Margins = Electron.Margins;
|
|
22225
22451
|
type MediaFlags = Electron.MediaFlags;
|
|
22452
|
+
type Metadata = Electron.Metadata;
|
|
22226
22453
|
type PageRanges = Electron.PageRanges;
|
|
22227
22454
|
type Params = Electron.Params;
|
|
22455
|
+
type Planes = Electron.Planes;
|
|
22228
22456
|
type Video = Electron.Video;
|
|
22229
22457
|
type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
|
|
22230
22458
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
@@ -22261,6 +22489,7 @@ declare namespace Electron {
|
|
|
22261
22489
|
type NavigationEntry = Electron.NavigationEntry;
|
|
22262
22490
|
type NotificationAction = Electron.NotificationAction;
|
|
22263
22491
|
type NotificationResponse = Electron.NotificationResponse;
|
|
22492
|
+
type OffscreenSharedTexture = Electron.OffscreenSharedTexture;
|
|
22264
22493
|
type OpenExternalPermissionRequest = Electron.OpenExternalPermissionRequest;
|
|
22265
22494
|
type PaymentDiscount = Electron.PaymentDiscount;
|
|
22266
22495
|
type PermissionRequest = Electron.PermissionRequest;
|
|
@@ -22477,6 +22706,7 @@ declare namespace Electron {
|
|
|
22477
22706
|
type MessageEvent = Electron.MessageEvent;
|
|
22478
22707
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
22479
22708
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
22709
|
+
type Offscreen = Electron.Offscreen;
|
|
22480
22710
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
22481
22711
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
22482
22712
|
type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
|
|
@@ -22526,6 +22756,7 @@ declare namespace Electron {
|
|
|
22526
22756
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
22527
22757
|
type Streams = Electron.Streams;
|
|
22528
22758
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
22759
|
+
type TextureInfo = Electron.TextureInfo;
|
|
22529
22760
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
22530
22761
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
22531
22762
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -22552,6 +22783,7 @@ declare namespace Electron {
|
|
|
22552
22783
|
type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
|
|
22553
22784
|
type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
|
|
22554
22785
|
type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
|
|
22786
|
+
type WebContentsPaintEventParams = Electron.WebContentsPaintEventParams;
|
|
22555
22787
|
type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
|
|
22556
22788
|
type WebContentsViewConstructorOptions = Electron.WebContentsViewConstructorOptions;
|
|
22557
22789
|
type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
|
|
@@ -22568,8 +22800,10 @@ declare namespace Electron {
|
|
|
22568
22800
|
type LaunchItems = Electron.LaunchItems;
|
|
22569
22801
|
type Margins = Electron.Margins;
|
|
22570
22802
|
type MediaFlags = Electron.MediaFlags;
|
|
22803
|
+
type Metadata = Electron.Metadata;
|
|
22571
22804
|
type PageRanges = Electron.PageRanges;
|
|
22572
22805
|
type Params = Electron.Params;
|
|
22806
|
+
type Planes = Electron.Planes;
|
|
22573
22807
|
type Video = Electron.Video;
|
|
22574
22808
|
type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
|
|
22575
22809
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
@@ -22606,6 +22840,7 @@ declare namespace Electron {
|
|
|
22606
22840
|
type NavigationEntry = Electron.NavigationEntry;
|
|
22607
22841
|
type NotificationAction = Electron.NotificationAction;
|
|
22608
22842
|
type NotificationResponse = Electron.NotificationResponse;
|
|
22843
|
+
type OffscreenSharedTexture = Electron.OffscreenSharedTexture;
|
|
22609
22844
|
type OpenExternalPermissionRequest = Electron.OpenExternalPermissionRequest;
|
|
22610
22845
|
type PaymentDiscount = Electron.PaymentDiscount;
|
|
22611
22846
|
type PermissionRequest = Electron.PermissionRequest;
|
|
@@ -22754,6 +22989,7 @@ declare namespace Electron {
|
|
|
22754
22989
|
type MessageEvent = Electron.MessageEvent;
|
|
22755
22990
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
22756
22991
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
22992
|
+
type Offscreen = Electron.Offscreen;
|
|
22757
22993
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
22758
22994
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
22759
22995
|
type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
|
|
@@ -22803,6 +23039,7 @@ declare namespace Electron {
|
|
|
22803
23039
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
22804
23040
|
type Streams = Electron.Streams;
|
|
22805
23041
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
23042
|
+
type TextureInfo = Electron.TextureInfo;
|
|
22806
23043
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
22807
23044
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
22808
23045
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -22829,6 +23066,7 @@ declare namespace Electron {
|
|
|
22829
23066
|
type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
|
|
22830
23067
|
type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
|
|
22831
23068
|
type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
|
|
23069
|
+
type WebContentsPaintEventParams = Electron.WebContentsPaintEventParams;
|
|
22832
23070
|
type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
|
|
22833
23071
|
type WebContentsViewConstructorOptions = Electron.WebContentsViewConstructorOptions;
|
|
22834
23072
|
type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
|
|
@@ -22845,8 +23083,10 @@ declare namespace Electron {
|
|
|
22845
23083
|
type LaunchItems = Electron.LaunchItems;
|
|
22846
23084
|
type Margins = Electron.Margins;
|
|
22847
23085
|
type MediaFlags = Electron.MediaFlags;
|
|
23086
|
+
type Metadata = Electron.Metadata;
|
|
22848
23087
|
type PageRanges = Electron.PageRanges;
|
|
22849
23088
|
type Params = Electron.Params;
|
|
23089
|
+
type Planes = Electron.Planes;
|
|
22850
23090
|
type Video = Electron.Video;
|
|
22851
23091
|
type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
|
|
22852
23092
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
@@ -22883,6 +23123,7 @@ declare namespace Electron {
|
|
|
22883
23123
|
type NavigationEntry = Electron.NavigationEntry;
|
|
22884
23124
|
type NotificationAction = Electron.NotificationAction;
|
|
22885
23125
|
type NotificationResponse = Electron.NotificationResponse;
|
|
23126
|
+
type OffscreenSharedTexture = Electron.OffscreenSharedTexture;
|
|
22886
23127
|
type OpenExternalPermissionRequest = Electron.OpenExternalPermissionRequest;
|
|
22887
23128
|
type PaymentDiscount = Electron.PaymentDiscount;
|
|
22888
23129
|
type PermissionRequest = Electron.PermissionRequest;
|
|
@@ -23028,6 +23269,7 @@ declare namespace Electron {
|
|
|
23028
23269
|
type MessageEvent = Electron.MessageEvent;
|
|
23029
23270
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
23030
23271
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
23272
|
+
type Offscreen = Electron.Offscreen;
|
|
23031
23273
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
23032
23274
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
23033
23275
|
type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
|
|
@@ -23077,6 +23319,7 @@ declare namespace Electron {
|
|
|
23077
23319
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
23078
23320
|
type Streams = Electron.Streams;
|
|
23079
23321
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
23322
|
+
type TextureInfo = Electron.TextureInfo;
|
|
23080
23323
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
23081
23324
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
23082
23325
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -23103,6 +23346,7 @@ declare namespace Electron {
|
|
|
23103
23346
|
type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
|
|
23104
23347
|
type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
|
|
23105
23348
|
type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
|
|
23349
|
+
type WebContentsPaintEventParams = Electron.WebContentsPaintEventParams;
|
|
23106
23350
|
type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
|
|
23107
23351
|
type WebContentsViewConstructorOptions = Electron.WebContentsViewConstructorOptions;
|
|
23108
23352
|
type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
|
|
@@ -23119,8 +23363,10 @@ declare namespace Electron {
|
|
|
23119
23363
|
type LaunchItems = Electron.LaunchItems;
|
|
23120
23364
|
type Margins = Electron.Margins;
|
|
23121
23365
|
type MediaFlags = Electron.MediaFlags;
|
|
23366
|
+
type Metadata = Electron.Metadata;
|
|
23122
23367
|
type PageRanges = Electron.PageRanges;
|
|
23123
23368
|
type Params = Electron.Params;
|
|
23369
|
+
type Planes = Electron.Planes;
|
|
23124
23370
|
type Video = Electron.Video;
|
|
23125
23371
|
type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
|
|
23126
23372
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
@@ -23157,6 +23403,7 @@ declare namespace Electron {
|
|
|
23157
23403
|
type NavigationEntry = Electron.NavigationEntry;
|
|
23158
23404
|
type NotificationAction = Electron.NotificationAction;
|
|
23159
23405
|
type NotificationResponse = Electron.NotificationResponse;
|
|
23406
|
+
type OffscreenSharedTexture = Electron.OffscreenSharedTexture;
|
|
23160
23407
|
type OpenExternalPermissionRequest = Electron.OpenExternalPermissionRequest;
|
|
23161
23408
|
type PaymentDiscount = Electron.PaymentDiscount;
|
|
23162
23409
|
type PermissionRequest = Electron.PermissionRequest;
|
|
@@ -23390,6 +23637,7 @@ declare namespace Electron {
|
|
|
23390
23637
|
type MessageEvent = Electron.MessageEvent;
|
|
23391
23638
|
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
23392
23639
|
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
23640
|
+
type Offscreen = Electron.Offscreen;
|
|
23393
23641
|
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
23394
23642
|
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
23395
23643
|
type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
|
|
@@ -23439,6 +23687,7 @@ declare namespace Electron {
|
|
|
23439
23687
|
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
23440
23688
|
type Streams = Electron.Streams;
|
|
23441
23689
|
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
23690
|
+
type TextureInfo = Electron.TextureInfo;
|
|
23442
23691
|
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
23443
23692
|
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
23444
23693
|
type TitleOptions = Electron.TitleOptions;
|
|
@@ -23465,6 +23714,7 @@ declare namespace Electron {
|
|
|
23465
23714
|
type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
|
|
23466
23715
|
type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
|
|
23467
23716
|
type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
|
|
23717
|
+
type WebContentsPaintEventParams = Electron.WebContentsPaintEventParams;
|
|
23468
23718
|
type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
|
|
23469
23719
|
type WebContentsViewConstructorOptions = Electron.WebContentsViewConstructorOptions;
|
|
23470
23720
|
type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
|
|
@@ -23481,8 +23731,10 @@ declare namespace Electron {
|
|
|
23481
23731
|
type LaunchItems = Electron.LaunchItems;
|
|
23482
23732
|
type Margins = Electron.Margins;
|
|
23483
23733
|
type MediaFlags = Electron.MediaFlags;
|
|
23734
|
+
type Metadata = Electron.Metadata;
|
|
23484
23735
|
type PageRanges = Electron.PageRanges;
|
|
23485
23736
|
type Params = Electron.Params;
|
|
23737
|
+
type Planes = Electron.Planes;
|
|
23486
23738
|
type Video = Electron.Video;
|
|
23487
23739
|
type BaseWindowConstructorOptions = Electron.BaseWindowConstructorOptions;
|
|
23488
23740
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
@@ -23519,6 +23771,7 @@ declare namespace Electron {
|
|
|
23519
23771
|
type NavigationEntry = Electron.NavigationEntry;
|
|
23520
23772
|
type NotificationAction = Electron.NotificationAction;
|
|
23521
23773
|
type NotificationResponse = Electron.NotificationResponse;
|
|
23774
|
+
type OffscreenSharedTexture = Electron.OffscreenSharedTexture;
|
|
23522
23775
|
type OpenExternalPermissionRequest = Electron.OpenExternalPermissionRequest;
|
|
23523
23776
|
type PaymentDiscount = Electron.PaymentDiscount;
|
|
23524
23777
|
type PermissionRequest = Electron.PermissionRequest;
|
package/package.json
CHANGED