electron 44.1.1 → 44.3.0
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 +66 -66
- package/electron.d.ts +69 -15
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v44.
|
|
3
|
-
"chromedriver-v44.
|
|
4
|
-
"chromedriver-v44.
|
|
5
|
-
"chromedriver-v44.
|
|
6
|
-
"chromedriver-v44.
|
|
7
|
-
"chromedriver-v44.
|
|
8
|
-
"chromedriver-v44.
|
|
9
|
-
"chromedriver-v44.
|
|
10
|
-
"electron-api.json": "
|
|
11
|
-
"electron-v44.
|
|
12
|
-
"electron-v44.
|
|
13
|
-
"electron-v44.
|
|
14
|
-
"electron-v44.
|
|
15
|
-
"electron-v44.
|
|
16
|
-
"electron-v44.
|
|
17
|
-
"electron-v44.
|
|
18
|
-
"electron-v44.
|
|
19
|
-
"electron-v44.
|
|
20
|
-
"electron-v44.
|
|
21
|
-
"electron-v44.
|
|
22
|
-
"electron-v44.
|
|
23
|
-
"electron-v44.
|
|
24
|
-
"electron-v44.
|
|
25
|
-
"electron-v44.
|
|
26
|
-
"electron-v44.
|
|
27
|
-
"electron-v44.
|
|
28
|
-
"electron-v44.
|
|
29
|
-
"electron-v44.
|
|
30
|
-
"electron-v44.
|
|
31
|
-
"electron-v44.
|
|
32
|
-
"electron-v44.
|
|
33
|
-
"electron-v44.
|
|
34
|
-
"electron-v44.
|
|
35
|
-
"electron-v44.
|
|
36
|
-
"electron-v44.
|
|
37
|
-
"electron-v44.
|
|
38
|
-
"electron-v44.
|
|
39
|
-
"electron-v44.
|
|
40
|
-
"electron-v44.
|
|
41
|
-
"electron.d.ts": "
|
|
42
|
-
"ffmpeg-v44.
|
|
43
|
-
"ffmpeg-v44.
|
|
44
|
-
"ffmpeg-v44.
|
|
45
|
-
"ffmpeg-v44.
|
|
46
|
-
"ffmpeg-v44.
|
|
47
|
-
"ffmpeg-v44.
|
|
48
|
-
"ffmpeg-v44.
|
|
49
|
-
"ffmpeg-v44.
|
|
50
|
-
"hunspell_dictionaries.zip": "
|
|
51
|
-
"libcxx-objects-v44.
|
|
52
|
-
"libcxx-objects-v44.
|
|
53
|
-
"libcxx_headers.zip": "
|
|
2
|
+
"chromedriver-v44.3.0-darwin-arm64.zip": "4ddb6a5f9c5f5c2bd3897aa36a63a161ef350e4f38bd118acfa924ad6e98f75f",
|
|
3
|
+
"chromedriver-v44.3.0-darwin-x64.zip": "b549a5916a630f879b6837a6d52947d679598b5b90b2317013f7cb1dc6f3cf8a",
|
|
4
|
+
"chromedriver-v44.3.0-linux-arm64.zip": "cecf416116f2273461e10b0f14eaa2318e6b66e44b6bbe7439866ce1bf6bc4e7",
|
|
5
|
+
"chromedriver-v44.3.0-linux-x64.zip": "53167b1bdf4c7887b29b228c0b5f3f43704d9c8917859c42fe98da97cf03e444",
|
|
6
|
+
"chromedriver-v44.3.0-mas-arm64.zip": "d481718dec349441bf9765a2d19f169bd6ca7995fad9417aa53ff51fb4c4abd6",
|
|
7
|
+
"chromedriver-v44.3.0-mas-x64.zip": "0b8ccb22927be293a10e073001a39cc33a537474efd5c90b206b88dcd0cd875d",
|
|
8
|
+
"chromedriver-v44.3.0-win32-arm64.zip": "4b6c35e4ee19a5d705dd52594742ecf01cf798fa6d9671867fdc39cfa9e959f5",
|
|
9
|
+
"chromedriver-v44.3.0-win32-x64.zip": "c4e08f3960732efd234ff748e3095dbb2810b12914d68ed0ef0a7b7c44a621d0",
|
|
10
|
+
"electron-api.json": "b454d95df2b770002e10a646c437bac10df81770f04466b74bf94345b0dd2f78",
|
|
11
|
+
"electron-v44.3.0-darwin-arm64-dsym-snapshot.zip": "520c98fa6eee56cabce7c83a59312784b0806b50699795e603bcd324c3dc3762",
|
|
12
|
+
"electron-v44.3.0-darwin-arm64-dsym.tar.xz": "071b490d6649ba04985a9c2d7b7f25bb533ed580af179a97a61b9657a0817111",
|
|
13
|
+
"electron-v44.3.0-darwin-arm64-symbols.zip": "920404b0e7b3122a331f5a82ea1a443e546be7fe40077599b4b25ffe5562517c",
|
|
14
|
+
"electron-v44.3.0-darwin-arm64.zip": "49b91ef265c603c8888500f807484b63816069c30f87ba2b403e7c87f0f45035",
|
|
15
|
+
"electron-v44.3.0-darwin-x64-dsym-snapshot.zip": "520c98fa6eee56cabce7c83a59312784b0806b50699795e603bcd324c3dc3762",
|
|
16
|
+
"electron-v44.3.0-darwin-x64-dsym.tar.xz": "c2eedc734ecb6209c73d540274a490e9f1f1ef594328694e101bfca1110484be",
|
|
17
|
+
"electron-v44.3.0-darwin-x64-symbols.zip": "50bc11c1d221d3138441cb46e467536a107302c9d8c23d72fdcf1b9609ccc27e",
|
|
18
|
+
"electron-v44.3.0-darwin-x64.zip": "6e3278d96377085af532380e2b23a38cdcf4c58b4efb3f6ada2f251db95c9560",
|
|
19
|
+
"electron-v44.3.0-linux-arm64-debug.zip": "157ee60c1fd8e28c4b47bdb24ad7fde40dbdc7d113c60e48794505ca92c35393",
|
|
20
|
+
"electron-v44.3.0-linux-arm64-symbols.zip": "c77ea528ab51f0f315091eb8c46df972ff27aad44ed50b7ae094f70c4984ac2b",
|
|
21
|
+
"electron-v44.3.0-linux-arm64.zip": "c11fde221c08e9bffdb3336579f09bd934a009862f509af5033616876741be24",
|
|
22
|
+
"electron-v44.3.0-linux-x64-debug.zip": "1f8cb550cd846f4c4e9205418f4f78d8b971379352206f472403579d4d05ec10",
|
|
23
|
+
"electron-v44.3.0-linux-x64-symbols.zip": "ef7bba0aa6f46ecb35a153201a278dab75a254da41d5a3987192be53a8708a91",
|
|
24
|
+
"electron-v44.3.0-linux-x64.zip": "8b49b9efdd73c0f467edc3c1cd5678392c384ccf224f34ff54179f736e2f384b",
|
|
25
|
+
"electron-v44.3.0-mas-arm64-dsym-snapshot.zip": "520c98fa6eee56cabce7c83a59312784b0806b50699795e603bcd324c3dc3762",
|
|
26
|
+
"electron-v44.3.0-mas-arm64-dsym.tar.xz": "bfd57dff9b8ae29a1a952f84091ff1bab04748f98af44e20a59f9cb73653e8b7",
|
|
27
|
+
"electron-v44.3.0-mas-arm64-symbols.zip": "f2eb7df32cf17480af20989c4428433e9c7072249a6f8f0f6e45293cfa7d5fc2",
|
|
28
|
+
"electron-v44.3.0-mas-arm64.zip": "55922b604e8b0359f55b73e2555862ac4d229abae6155dd1e4a4d9486ce4d015",
|
|
29
|
+
"electron-v44.3.0-mas-x64-dsym-snapshot.zip": "520c98fa6eee56cabce7c83a59312784b0806b50699795e603bcd324c3dc3762",
|
|
30
|
+
"electron-v44.3.0-mas-x64-dsym.tar.xz": "c91a58bb9ccd5b89ec50ea4d403b3b020737f80c9c2db69091c837c0d9de3d5b",
|
|
31
|
+
"electron-v44.3.0-mas-x64-symbols.zip": "6305ed881b11e990b605329a1b5ec64b31d3b7618fbb8bfbf5a7b01964ade2ff",
|
|
32
|
+
"electron-v44.3.0-mas-x64.zip": "c9aeeefab9b89fc2dc2ddff51f11edecfe89f783ab0c98abefa1e4e88474c616",
|
|
33
|
+
"electron-v44.3.0-win32-arm64-pdb.zip": "194519fba73bf619385a337c20c934b71efda4e74a4a23aa64e2571e5da8ff7e",
|
|
34
|
+
"electron-v44.3.0-win32-arm64-symbols.zip": "0bc27696c88086eae64eecd8b6c72059b07fc9f2a6561eb392c53b21cc69c8ba",
|
|
35
|
+
"electron-v44.3.0-win32-arm64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
36
|
+
"electron-v44.3.0-win32-arm64.zip": "e5b5ae25d9fc9fbeff13d6ab4bfd25fc3e32bc2286380ab1d0557555d0918f48",
|
|
37
|
+
"electron-v44.3.0-win32-x64-pdb.zip": "b3b309f91227c75c49ac916dabb414e3eeceb30f54a3a7ebd446a60508daea96",
|
|
38
|
+
"electron-v44.3.0-win32-x64-symbols.zip": "fcf0d35d195788cb3bf46c02d6782222b1ad40633bd206a4df419d295fce774e",
|
|
39
|
+
"electron-v44.3.0-win32-x64-toolchain-profile.zip": "90386280bc7e4ac5d451e43e26a7c76ed1c8bcdc0206ec50762c7e4f09c59c28",
|
|
40
|
+
"electron-v44.3.0-win32-x64.zip": "26bf9a617d58d81772b3d68305d59ee48272969c15083c06db634a77358a8d9d",
|
|
41
|
+
"electron.d.ts": "e1f529df2f2b09213ea9d02696b09f9917ce09723992dcf8b7415d435a073224",
|
|
42
|
+
"ffmpeg-v44.3.0-darwin-arm64.zip": "e9bc20b57f8f48a685fc165a90367b4356a778668c05eb54a446938a79416e66",
|
|
43
|
+
"ffmpeg-v44.3.0-darwin-x64.zip": "7b95ae676f5adf7f70ad4d8a515fa60fda3b2cabc038f81182735dbb9aab6735",
|
|
44
|
+
"ffmpeg-v44.3.0-linux-arm64.zip": "a39c58bd5a4c5c9506d0691d969d23ac393e937b4e896e1547f7d6089f422d0d",
|
|
45
|
+
"ffmpeg-v44.3.0-linux-x64.zip": "6f0cb141bdde5cecfdafe744474f5b89997ed7b3771cb60ddcf635bfbe1f7fca",
|
|
46
|
+
"ffmpeg-v44.3.0-mas-arm64.zip": "c20c8a8ecdf1b5c43fba1c384c69e73aaa1bb8e1c03d7c91e9849275d5b73b11",
|
|
47
|
+
"ffmpeg-v44.3.0-mas-x64.zip": "3455a92c5d97e0d0898d95af2d15bb95b9d505e776b21d9adbae809028d30090",
|
|
48
|
+
"ffmpeg-v44.3.0-win32-arm64.zip": "49700b7358f43dd0ee7086c09ef2d71c879d254bf9d4c3dd7a64dde103d27e5a",
|
|
49
|
+
"ffmpeg-v44.3.0-win32-x64.zip": "173b24749368afceca3db620669387ec717a6e125b7d864921d167c9eadfc66e",
|
|
50
|
+
"hunspell_dictionaries.zip": "6fdbe1fca7878141982f0cfadd65165c50fde38e0be7d90bdebc74a1afd728e6",
|
|
51
|
+
"libcxx-objects-v44.3.0-linux-arm64.zip": "bf33c65a2ca919b9f1beee23ee7b6a4e44b03cc8c8bc71f70742b73e3d17405e",
|
|
52
|
+
"libcxx-objects-v44.3.0-linux-x64.zip": "eb33a6f09ceb0e7b2e05734aadbb0fbc348ee3750a3d054e69e7ac9faefe1623",
|
|
53
|
+
"libcxx_headers.zip": "88c684b487ab06dae57338e73110f1123a13431ee5752632ca460ca9d4972894",
|
|
54
54
|
"libcxxabi_headers.zip": "c623bfe37d755eb9020fc080d4ef0df799acf3439b7b588f9a62d9b6e3908b75",
|
|
55
|
-
"mksnapshot-v44.
|
|
56
|
-
"mksnapshot-v44.
|
|
57
|
-
"mksnapshot-v44.
|
|
58
|
-
"mksnapshot-v44.
|
|
59
|
-
"mksnapshot-v44.
|
|
60
|
-
"mksnapshot-v44.
|
|
61
|
-
"mksnapshot-v44.
|
|
62
|
-
"mksnapshot-v44.
|
|
63
|
-
"xcache-v44.
|
|
64
|
-
"xcache-v44.
|
|
65
|
-
"xcache-v44.
|
|
66
|
-
"xcache-v44.
|
|
67
|
-
"xcache-v44.
|
|
68
|
-
"xcache-v44.
|
|
55
|
+
"mksnapshot-v44.3.0-darwin-arm64.zip": "5938644de81bccd86e76f8f1394207e945cc116ff8afa791fb0a26d88959416a",
|
|
56
|
+
"mksnapshot-v44.3.0-darwin-x64.zip": "afac93dc874b064a06d119a1c579662a4c92d9244ce130553db99adbd137d606",
|
|
57
|
+
"mksnapshot-v44.3.0-linux-arm64-x64.zip": "f40bf55d48b56486cf9f33e8795532b55102524155be3385f1f598b99bde4f92",
|
|
58
|
+
"mksnapshot-v44.3.0-linux-x64.zip": "6e4dfbf2dd3104fdd2ad7dfaf0c1ede91818b5f415db7dfd75d88cacef42dafa",
|
|
59
|
+
"mksnapshot-v44.3.0-mas-arm64.zip": "217db90ab32cdc9ff3da484ba561db37334ec6531c7980f2b961cd65519f968c",
|
|
60
|
+
"mksnapshot-v44.3.0-mas-x64.zip": "a3a0ab63338533e9fd693dc7fdf9f645000e6e1152e39371259c7dc73eaf828b",
|
|
61
|
+
"mksnapshot-v44.3.0-win32-arm64-x64.zip": "6c805003957e0d99a59d344c4f9a3ae1ac1a8abbd16cf7e3980b4fb4e3121438",
|
|
62
|
+
"mksnapshot-v44.3.0-win32-x64.zip": "48f220050d334f7154d47922b26f14112f39d277aa7ad6bd71050ab0a1ca79be",
|
|
63
|
+
"xcache-v44.3.0-darwin-arm64.zip": "12ed54adfca8f24c50a30d3f06f3637f4924ca2673dbeef3c88b96203e2c1baa",
|
|
64
|
+
"xcache-v44.3.0-darwin-x64.zip": "040b2efa3e7e975327ca471ff10b2f5edcfd0d9eea9a1cc58f3e7115185d3e7b",
|
|
65
|
+
"xcache-v44.3.0-linux-arm64.zip": "1a4d9264221d461a2296df606810d97c94fe05147474995d2b515013ef775eba",
|
|
66
|
+
"xcache-v44.3.0-linux-x64.zip": "70fb59d330d307550c208ebf7b79899eca3076bc98a53bc0bc895ae4fa45a0b5",
|
|
67
|
+
"xcache-v44.3.0-win32-arm64.zip": "b7bfcd22b6c7081ac4f4c7e8e34c9a83230be9496ac707071626ef99528c132c",
|
|
68
|
+
"xcache-v44.3.0-win32-x64.zip": "167901e75e48bbc002eb93b3a693ccc460b9ccaa3944edabdeed905d3cf5e81b"
|
|
69
69
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 44.
|
|
1
|
+
// Type definitions for Electron 44.3.0
|
|
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
|
|
@@ -1156,6 +1156,12 @@ declare namespace Electron {
|
|
|
1156
1156
|
/**
|
|
1157
1157
|
* Array of `ProcessMetric` objects that correspond to memory and CPU usage
|
|
1158
1158
|
* statistics of all the processes associated with the app.
|
|
1159
|
+
*
|
|
1160
|
+
* > [!NOTE] `cpu.percentCPUUsage` and `cpu.idleWakeupsPerSecond` are averages over
|
|
1161
|
+
* the time since the last call to `app.getAppMetrics()`, and each call starts a
|
|
1162
|
+
* new measurement interval for every process at once. Other code in the main
|
|
1163
|
+
* process, including dependencies, shares those intervals. See `CPUUsage` for more
|
|
1164
|
+
* details.
|
|
1159
1165
|
*/
|
|
1160
1166
|
getAppMetrics(): ProcessMetric[];
|
|
1161
1167
|
/**
|
|
@@ -7396,12 +7402,14 @@ declare namespace Electron {
|
|
|
7396
7402
|
*/
|
|
7397
7403
|
cumulativeCPUUsage?: number;
|
|
7398
7404
|
/**
|
|
7399
|
-
* The number of average idle CPU wakeups per second since the last call to
|
|
7400
|
-
*
|
|
7405
|
+
* The number of average idle CPU wakeups per second since the last call to the API
|
|
7406
|
+
* that returned this object. First call returns 0. Will always return 0 on
|
|
7407
|
+
* Windows.
|
|
7401
7408
|
*/
|
|
7402
7409
|
idleWakeupsPerSecond: number;
|
|
7403
7410
|
/**
|
|
7404
|
-
* Percentage of CPU used since the last call to
|
|
7411
|
+
* Percentage of CPU used since the last call to the API that returned this object.
|
|
7412
|
+
* First call returns 0.
|
|
7405
7413
|
*/
|
|
7406
7414
|
percentCPUUsage: number;
|
|
7407
7415
|
}
|
|
@@ -7643,6 +7651,14 @@ declare namespace Electron {
|
|
|
7643
7651
|
* indicating the failure of the command.
|
|
7644
7652
|
*
|
|
7645
7653
|
* Send given command to the debugging target.
|
|
7654
|
+
*
|
|
7655
|
+
* > [!NOTE]
|
|
7656
|
+
*
|
|
7657
|
+
* * If `sendCommand` is called before the target has navigated (e.g. immediately
|
|
7658
|
+
* after `attach()`), the returned promise may not resolve until navigation occurs.
|
|
7659
|
+
* * If the command's response has no `result` data, as defined by that command's
|
|
7660
|
+
* entry in the remote debugging protocol, the promise resolves with an empty
|
|
7661
|
+
* object (`{}`), not `null` or `undefined`.
|
|
7646
7662
|
*/
|
|
7647
7663
|
sendCommand(method: string, commandParams?: any, sessionId?: string): Promise<any>;
|
|
7648
7664
|
}
|
|
@@ -9624,6 +9640,9 @@ declare namespace Electron {
|
|
|
9624
9640
|
* This property can be dynamically changed; setting it to `undefined` removes the
|
|
9625
9641
|
* badge. Only available on macOS 14 and up.
|
|
9626
9642
|
*
|
|
9643
|
+
* Badges are not displayed in Dock menus, though the same item shows its badge in
|
|
9644
|
+
* an application menu.
|
|
9645
|
+
*
|
|
9627
9646
|
* @platform darwin
|
|
9628
9647
|
*/
|
|
9629
9648
|
badge?: MenuItemBadge;
|
|
@@ -11378,7 +11397,8 @@ declare namespace Electron {
|
|
|
11378
11397
|
// Docs: https://electronjs.org/docs/api/structures/process-metric
|
|
11379
11398
|
|
|
11380
11399
|
/**
|
|
11381
|
-
* CPU usage of the process.
|
|
11400
|
+
* CPU usage of the process. Its `percentCPUUsage` and `idleWakeupsPerSecond` are
|
|
11401
|
+
* averages over the time since the previous call to the API returning this object.
|
|
11382
11402
|
*/
|
|
11383
11403
|
cpu: CPUUsage;
|
|
11384
11404
|
/**
|
|
@@ -13383,8 +13403,12 @@ declare namespace Electron {
|
|
|
13383
13403
|
* is available and `useSystemPicker` is set to `true`, the handler will not be
|
|
13384
13404
|
* invoked.
|
|
13385
13405
|
*
|
|
13386
|
-
* Passing a WebFrameMain object as a video or audio stream
|
|
13387
|
-
*
|
|
13406
|
+
* Passing a WebFrameMain object as a video or audio stream captures the whole
|
|
13407
|
+
* `webContents` that contains that frame (the tab), not just the frame:
|
|
13408
|
+
* `request.frame` from an `<iframe>` therefore grants that iframe a capture of the
|
|
13409
|
+
* page that embeds it. Check `request.frame` before using it this way, and note
|
|
13410
|
+
* that the callback throws if the frame has been destroyed by the time it is
|
|
13411
|
+
* called.
|
|
13388
13412
|
*
|
|
13389
13413
|
* Passing `null` instead of a function resets the handler to its default state.
|
|
13390
13414
|
*/
|
|
@@ -18159,7 +18183,9 @@ declare namespace Electron {
|
|
|
18159
18183
|
* The identifier of a WebContents stream. This identifier can be used with
|
|
18160
18184
|
* `navigator.mediaDevices.getUserMedia` using a `chromeMediaSource` of `tab`. The
|
|
18161
18185
|
* identifier is restricted to the web contents that it is registered to and is
|
|
18162
|
-
* only valid for 10 seconds.
|
|
18186
|
+
* only valid for 10 seconds. The `desktop` source only accepts screen and window
|
|
18187
|
+
* identifiers from `desktopCapturer.getSources`; to capture a WebContents use this
|
|
18188
|
+
* identifier with the `tab` source, or `ses.setDisplayMediaRequestHandler`.
|
|
18163
18189
|
*/
|
|
18164
18190
|
getMediaSourceId(requestWebContents: WebContents): string;
|
|
18165
18191
|
/**
|
|
@@ -19457,8 +19483,10 @@ declare namespace Electron {
|
|
|
19457
19483
|
*/
|
|
19458
19484
|
nodeIntegrationInSubFrames?: boolean;
|
|
19459
19485
|
/**
|
|
19460
|
-
* Whether node integration is enabled in web workers. Default is `false`.
|
|
19461
|
-
*
|
|
19486
|
+
* Whether node integration is enabled in web workers. Default is `false`. Only
|
|
19487
|
+
* workers created by a frame that itself has access to Node.js (the main frame, or
|
|
19488
|
+
* any frame when `nodeIntegrationInSubFrames` is enabled) get it. More about this
|
|
19489
|
+
* can be found in Multithreading.
|
|
19462
19490
|
*/
|
|
19463
19491
|
nodeIntegrationInWorker?: boolean;
|
|
19464
19492
|
/**
|
|
@@ -20028,6 +20056,10 @@ declare namespace Electron {
|
|
|
20028
20056
|
removeEventListener(event: 'close', listener: (event: DOMEvent) => void): this;
|
|
20029
20057
|
/**
|
|
20030
20058
|
* Fired when the guest page has sent an asynchronous message to embedder page.
|
|
20059
|
+
* `frameId` does not tell the embedder which document sent the message; when that
|
|
20060
|
+
* matters, have the guest use `ipcRenderer.send()` and handle the guest
|
|
20061
|
+
* `webContents`' `ipc-message` event in the main process, where
|
|
20062
|
+
* `event.senderFrame` identifies the sender.
|
|
20031
20063
|
*
|
|
20032
20064
|
* With `sendToHost` method and `ipc-message` event you can communicate between
|
|
20033
20065
|
* guest page and embedder page:
|
|
@@ -20410,7 +20442,9 @@ declare namespace Electron {
|
|
|
20410
20442
|
unselect(): void;
|
|
20411
20443
|
/**
|
|
20412
20444
|
* A `boolean`. When this attribute is present the guest page will be allowed to
|
|
20413
|
-
* open new windows.
|
|
20445
|
+
* open new windows, whether through `window.open()` or a link opened into a new
|
|
20446
|
+
* window (for example a modifier-clicked or `target="_blank"` link). Popups are
|
|
20447
|
+
* disabled by default.
|
|
20414
20448
|
*/
|
|
20415
20449
|
allowpopups: boolean;
|
|
20416
20450
|
/**
|
|
@@ -21853,6 +21887,15 @@ declare namespace Electron {
|
|
|
21853
21887
|
* The blocked path attempting to be accessed.
|
|
21854
21888
|
*/
|
|
21855
21889
|
path: string;
|
|
21890
|
+
/**
|
|
21891
|
+
* The frame that initiated access. May be `null` if the frame has since been
|
|
21892
|
+
* destroyed.
|
|
21893
|
+
*/
|
|
21894
|
+
frame: (WebFrameMain) | (null);
|
|
21895
|
+
/**
|
|
21896
|
+
* The WebContents that contains `frame`.
|
|
21897
|
+
*/
|
|
21898
|
+
webContents: (WebContents) | (null);
|
|
21856
21899
|
}
|
|
21857
21900
|
|
|
21858
21901
|
interface FindInPageOptions {
|
|
@@ -22438,6 +22481,7 @@ declare namespace Electron {
|
|
|
22438
22481
|
/**
|
|
22439
22482
|
* A badge shown alongside the label, either a system-styled count (`alerts`,
|
|
22440
22483
|
* `updates`, `new-items`) or a custom string. Only available on macOS 14 and up.
|
|
22484
|
+
* Not displayed in Dock menus.
|
|
22441
22485
|
*
|
|
22442
22486
|
* @platform darwin
|
|
22443
22487
|
*/
|
|
@@ -23223,7 +23267,8 @@ declare namespace Electron {
|
|
|
23223
23267
|
*/
|
|
23224
23268
|
embeddingOrigin?: string;
|
|
23225
23269
|
/**
|
|
23226
|
-
* The
|
|
23270
|
+
* The origin of the requesting frame, for `media`, `hid`, `usb` and `serial`
|
|
23271
|
+
* checks.
|
|
23227
23272
|
*/
|
|
23228
23273
|
securityOrigin?: string;
|
|
23229
23274
|
/**
|
|
@@ -23231,8 +23276,8 @@ declare namespace Electron {
|
|
|
23231
23276
|
*/
|
|
23232
23277
|
mediaType?: ('video' | 'audio' | 'unknown');
|
|
23233
23278
|
/**
|
|
23234
|
-
* The last URL the requesting frame loaded.
|
|
23235
|
-
*
|
|
23279
|
+
* The last URL the requesting frame loaded. Not provided when the check is not
|
|
23280
|
+
* made on behalf of a document (for example for a service worker).
|
|
23236
23281
|
*/
|
|
23237
23282
|
requestingUrl?: string;
|
|
23238
23283
|
/**
|
|
@@ -23826,7 +23871,8 @@ declare namespace Electron {
|
|
|
23826
23871
|
/**
|
|
23827
23872
|
* If a string is specified, can be `loopback` or `loopbackWithMute`. Specifying a
|
|
23828
23873
|
* loopback device will capture system audio, and is currently only supported on
|
|
23829
|
-
* Windows. If a WebFrameMain is specified, will capture audio from
|
|
23874
|
+
* Windows. If a WebFrameMain is specified, will capture audio from the
|
|
23875
|
+
* `webContents` that contains that frame.
|
|
23830
23876
|
*/
|
|
23831
23877
|
audio?: (('loopback' | 'loopbackWithMute')) | (WebFrameMain);
|
|
23832
23878
|
/**
|
|
@@ -27082,6 +27128,14 @@ declare namespace NodeJS {
|
|
|
27082
27128
|
* Kilobytes.
|
|
27083
27129
|
*/
|
|
27084
27130
|
getBlinkMemoryInfo(): Electron.BlinkMemoryInfo;
|
|
27131
|
+
/**
|
|
27132
|
+
* CPU usage of the process this is called in.
|
|
27133
|
+
*
|
|
27134
|
+
* > [!NOTE] `percentCPUUsage` and `idleWakeupsPerSecond` are averages over the
|
|
27135
|
+
* time since the previous call to `process.getCPUUsage()` in this process, and
|
|
27136
|
+
* each call starts a new measurement interval. Every caller in the process shares
|
|
27137
|
+
* that interval. See `CPUUsage` for details.
|
|
27138
|
+
*/
|
|
27085
27139
|
getCPUUsage(): Electron.CPUUsage;
|
|
27086
27140
|
/**
|
|
27087
27141
|
* The number of milliseconds since epoch, or `null` if the information is
|