electron 27.2.4 → 27.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 +75 -75
- package/electron.d.ts +1788 -66
- package/package.json +1 -1
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 27.
|
|
1
|
+
// Type definitions for Electron 27.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
|
|
@@ -35,16 +35,33 @@ declare namespace Electron {
|
|
|
35
35
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
36
36
|
*/
|
|
37
37
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
38
|
+
/**
|
|
39
|
+
* @platform darwin,win32
|
|
40
|
+
*/
|
|
41
|
+
off(event: 'accessibility-support-changed', listener: (event: Event,
|
|
42
|
+
/**
|
|
43
|
+
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
44
|
+
*/
|
|
45
|
+
accessibilitySupportEnabled: boolean) => void): this;
|
|
46
|
+
/**
|
|
47
|
+
* @platform darwin,win32
|
|
48
|
+
*/
|
|
38
49
|
once(event: 'accessibility-support-changed', listener: (event: Event,
|
|
39
50
|
/**
|
|
40
51
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
41
52
|
*/
|
|
42
53
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
54
|
+
/**
|
|
55
|
+
* @platform darwin,win32
|
|
56
|
+
*/
|
|
43
57
|
addListener(event: 'accessibility-support-changed', listener: (event: Event,
|
|
44
58
|
/**
|
|
45
59
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
46
60
|
*/
|
|
47
61
|
accessibilitySupportEnabled: boolean) => void): this;
|
|
62
|
+
/**
|
|
63
|
+
* @platform darwin,win32
|
|
64
|
+
*/
|
|
48
65
|
removeListener(event: 'accessibility-support-changed', listener: (event: Event,
|
|
49
66
|
/**
|
|
50
67
|
* `true` when Chrome's accessibility support is enabled, `false` otherwise.
|
|
@@ -60,10 +77,24 @@ declare namespace Electron {
|
|
|
60
77
|
*/
|
|
61
78
|
on(event: 'activate', listener: (event: Event,
|
|
62
79
|
hasVisibleWindows: boolean) => void): this;
|
|
80
|
+
/**
|
|
81
|
+
* @platform darwin
|
|
82
|
+
*/
|
|
83
|
+
off(event: 'activate', listener: (event: Event,
|
|
84
|
+
hasVisibleWindows: boolean) => void): this;
|
|
85
|
+
/**
|
|
86
|
+
* @platform darwin
|
|
87
|
+
*/
|
|
63
88
|
once(event: 'activate', listener: (event: Event,
|
|
64
89
|
hasVisibleWindows: boolean) => void): this;
|
|
90
|
+
/**
|
|
91
|
+
* @platform darwin
|
|
92
|
+
*/
|
|
65
93
|
addListener(event: 'activate', listener: (event: Event,
|
|
66
94
|
hasVisibleWindows: boolean) => void): this;
|
|
95
|
+
/**
|
|
96
|
+
* @platform darwin
|
|
97
|
+
*/
|
|
67
98
|
removeListener(event: 'activate', listener: (event: Event,
|
|
68
99
|
hasVisibleWindows: boolean) => void): this;
|
|
69
100
|
/**
|
|
@@ -81,6 +112,21 @@ declare namespace Electron {
|
|
|
81
112
|
* Contains app-specific state stored by the activity.
|
|
82
113
|
*/
|
|
83
114
|
userInfo: unknown) => void): this;
|
|
115
|
+
/**
|
|
116
|
+
* @platform darwin
|
|
117
|
+
*/
|
|
118
|
+
off(event: 'activity-was-continued', listener: (event: Event,
|
|
119
|
+
/**
|
|
120
|
+
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
121
|
+
*/
|
|
122
|
+
type: string,
|
|
123
|
+
/**
|
|
124
|
+
* Contains app-specific state stored by the activity.
|
|
125
|
+
*/
|
|
126
|
+
userInfo: unknown) => void): this;
|
|
127
|
+
/**
|
|
128
|
+
* @platform darwin
|
|
129
|
+
*/
|
|
84
130
|
once(event: 'activity-was-continued', listener: (event: Event,
|
|
85
131
|
/**
|
|
86
132
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -90,6 +136,9 @@ declare namespace Electron {
|
|
|
90
136
|
* Contains app-specific state stored by the activity.
|
|
91
137
|
*/
|
|
92
138
|
userInfo: unknown) => void): this;
|
|
139
|
+
/**
|
|
140
|
+
* @platform darwin
|
|
141
|
+
*/
|
|
93
142
|
addListener(event: 'activity-was-continued', listener: (event: Event,
|
|
94
143
|
/**
|
|
95
144
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -99,6 +148,9 @@ declare namespace Electron {
|
|
|
99
148
|
* Contains app-specific state stored by the activity.
|
|
100
149
|
*/
|
|
101
150
|
userInfo: unknown) => void): this;
|
|
151
|
+
/**
|
|
152
|
+
* @platform darwin
|
|
153
|
+
*/
|
|
102
154
|
removeListener(event: 'activity-was-continued', listener: (event: Event,
|
|
103
155
|
/**
|
|
104
156
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -121,6 +173,7 @@ declare namespace Electron {
|
|
|
121
173
|
* a shutdown/restart of the system or a user logout.
|
|
122
174
|
*/
|
|
123
175
|
on(event: 'before-quit', listener: (event: Event) => void): this;
|
|
176
|
+
off(event: 'before-quit', listener: (event: Event) => void): this;
|
|
124
177
|
once(event: 'before-quit', listener: (event: Event) => void): this;
|
|
125
178
|
addListener(event: 'before-quit', listener: (event: Event) => void): this;
|
|
126
179
|
removeListener(event: 'before-quit', listener: (event: Event) => void): this;
|
|
@@ -129,6 +182,8 @@ declare namespace Electron {
|
|
|
129
182
|
*/
|
|
130
183
|
on(event: 'browser-window-blur', listener: (event: Event,
|
|
131
184
|
window: BrowserWindow) => void): this;
|
|
185
|
+
off(event: 'browser-window-blur', listener: (event: Event,
|
|
186
|
+
window: BrowserWindow) => void): this;
|
|
132
187
|
once(event: 'browser-window-blur', listener: (event: Event,
|
|
133
188
|
window: BrowserWindow) => void): this;
|
|
134
189
|
addListener(event: 'browser-window-blur', listener: (event: Event,
|
|
@@ -140,6 +195,8 @@ declare namespace Electron {
|
|
|
140
195
|
*/
|
|
141
196
|
on(event: 'browser-window-created', listener: (event: Event,
|
|
142
197
|
window: BrowserWindow) => void): this;
|
|
198
|
+
off(event: 'browser-window-created', listener: (event: Event,
|
|
199
|
+
window: BrowserWindow) => void): this;
|
|
143
200
|
once(event: 'browser-window-created', listener: (event: Event,
|
|
144
201
|
window: BrowserWindow) => void): this;
|
|
145
202
|
addListener(event: 'browser-window-created', listener: (event: Event,
|
|
@@ -151,6 +208,8 @@ declare namespace Electron {
|
|
|
151
208
|
*/
|
|
152
209
|
on(event: 'browser-window-focus', listener: (event: Event,
|
|
153
210
|
window: BrowserWindow) => void): this;
|
|
211
|
+
off(event: 'browser-window-focus', listener: (event: Event,
|
|
212
|
+
window: BrowserWindow) => void): this;
|
|
154
213
|
once(event: 'browser-window-focus', listener: (event: Event,
|
|
155
214
|
window: BrowserWindow) => void): this;
|
|
156
215
|
addListener(event: 'browser-window-focus', listener: (event: Event,
|
|
@@ -172,6 +231,16 @@ declare namespace Electron {
|
|
|
172
231
|
certificate: Certificate,
|
|
173
232
|
callback: (isTrusted: boolean) => void,
|
|
174
233
|
isMainFrame: boolean) => void): this;
|
|
234
|
+
off(event: 'certificate-error', listener: (event: Event,
|
|
235
|
+
webContents: WebContents,
|
|
236
|
+
url: string,
|
|
237
|
+
/**
|
|
238
|
+
* The error code
|
|
239
|
+
*/
|
|
240
|
+
error: string,
|
|
241
|
+
certificate: Certificate,
|
|
242
|
+
callback: (isTrusted: boolean) => void,
|
|
243
|
+
isMainFrame: boolean) => void): this;
|
|
175
244
|
once(event: 'certificate-error', listener: (event: Event,
|
|
176
245
|
webContents: WebContents,
|
|
177
246
|
url: string,
|
|
@@ -208,6 +277,8 @@ declare namespace Electron {
|
|
|
208
277
|
*/
|
|
209
278
|
on(event: 'child-process-gone', listener: (event: Event,
|
|
210
279
|
details: Details) => void): this;
|
|
280
|
+
off(event: 'child-process-gone', listener: (event: Event,
|
|
281
|
+
details: Details) => void): this;
|
|
211
282
|
once(event: 'child-process-gone', listener: (event: Event,
|
|
212
283
|
details: Details) => void): this;
|
|
213
284
|
addListener(event: 'child-process-gone', listener: (event: Event,
|
|
@@ -236,6 +307,22 @@ declare namespace Electron {
|
|
|
236
307
|
*/
|
|
237
308
|
userInfo: unknown,
|
|
238
309
|
details: ContinueActivityDetails) => void): this;
|
|
310
|
+
/**
|
|
311
|
+
* @platform darwin
|
|
312
|
+
*/
|
|
313
|
+
off(event: 'continue-activity', listener: (event: Event,
|
|
314
|
+
/**
|
|
315
|
+
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
316
|
+
*/
|
|
317
|
+
type: string,
|
|
318
|
+
/**
|
|
319
|
+
* Contains app-specific state stored by the activity on another device.
|
|
320
|
+
*/
|
|
321
|
+
userInfo: unknown,
|
|
322
|
+
details: ContinueActivityDetails) => void): this;
|
|
323
|
+
/**
|
|
324
|
+
* @platform darwin
|
|
325
|
+
*/
|
|
239
326
|
once(event: 'continue-activity', listener: (event: Event,
|
|
240
327
|
/**
|
|
241
328
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -246,6 +333,9 @@ declare namespace Electron {
|
|
|
246
333
|
*/
|
|
247
334
|
userInfo: unknown,
|
|
248
335
|
details: ContinueActivityDetails) => void): this;
|
|
336
|
+
/**
|
|
337
|
+
* @platform darwin
|
|
338
|
+
*/
|
|
249
339
|
addListener(event: 'continue-activity', listener: (event: Event,
|
|
250
340
|
/**
|
|
251
341
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -256,6 +346,9 @@ declare namespace Electron {
|
|
|
256
346
|
*/
|
|
257
347
|
userInfo: unknown,
|
|
258
348
|
details: ContinueActivityDetails) => void): this;
|
|
349
|
+
/**
|
|
350
|
+
* @platform darwin
|
|
351
|
+
*/
|
|
259
352
|
removeListener(event: 'continue-activity', listener: (event: Event,
|
|
260
353
|
/**
|
|
261
354
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -281,6 +374,21 @@ declare namespace Electron {
|
|
|
281
374
|
* A string with the error's localized description.
|
|
282
375
|
*/
|
|
283
376
|
error: string) => void): this;
|
|
377
|
+
/**
|
|
378
|
+
* @platform darwin
|
|
379
|
+
*/
|
|
380
|
+
off(event: 'continue-activity-error', listener: (event: Event,
|
|
381
|
+
/**
|
|
382
|
+
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
383
|
+
*/
|
|
384
|
+
type: string,
|
|
385
|
+
/**
|
|
386
|
+
* A string with the error's localized description.
|
|
387
|
+
*/
|
|
388
|
+
error: string) => void): this;
|
|
389
|
+
/**
|
|
390
|
+
* @platform darwin
|
|
391
|
+
*/
|
|
284
392
|
once(event: 'continue-activity-error', listener: (event: Event,
|
|
285
393
|
/**
|
|
286
394
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -290,6 +398,9 @@ declare namespace Electron {
|
|
|
290
398
|
* A string with the error's localized description.
|
|
291
399
|
*/
|
|
292
400
|
error: string) => void): this;
|
|
401
|
+
/**
|
|
402
|
+
* @platform darwin
|
|
403
|
+
*/
|
|
293
404
|
addListener(event: 'continue-activity-error', listener: (event: Event,
|
|
294
405
|
/**
|
|
295
406
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -299,6 +410,9 @@ declare namespace Electron {
|
|
|
299
410
|
* A string with the error's localized description.
|
|
300
411
|
*/
|
|
301
412
|
error: string) => void): this;
|
|
413
|
+
/**
|
|
414
|
+
* @platform darwin
|
|
415
|
+
*/
|
|
302
416
|
removeListener(event: 'continue-activity-error', listener: (event: Event,
|
|
303
417
|
/**
|
|
304
418
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -317,8 +431,21 @@ declare namespace Electron {
|
|
|
317
431
|
* @platform darwin
|
|
318
432
|
*/
|
|
319
433
|
on(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
434
|
+
/**
|
|
435
|
+
* @platform darwin
|
|
436
|
+
*/
|
|
437
|
+
off(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
438
|
+
/**
|
|
439
|
+
* @platform darwin
|
|
440
|
+
*/
|
|
320
441
|
once(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
442
|
+
/**
|
|
443
|
+
* @platform darwin
|
|
444
|
+
*/
|
|
321
445
|
addListener(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
446
|
+
/**
|
|
447
|
+
* @platform darwin
|
|
448
|
+
*/
|
|
322
449
|
removeListener(event: 'did-become-active', listener: (event: Event) => void): this;
|
|
323
450
|
/**
|
|
324
451
|
* Emitted when the app is no longer active and doesn’t have focus. This can be
|
|
@@ -328,13 +455,27 @@ declare namespace Electron {
|
|
|
328
455
|
* @platform darwin
|
|
329
456
|
*/
|
|
330
457
|
on(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
458
|
+
/**
|
|
459
|
+
* @platform darwin
|
|
460
|
+
*/
|
|
461
|
+
off(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
462
|
+
/**
|
|
463
|
+
* @platform darwin
|
|
464
|
+
*/
|
|
331
465
|
once(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
466
|
+
/**
|
|
467
|
+
* @platform darwin
|
|
468
|
+
*/
|
|
332
469
|
addListener(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
470
|
+
/**
|
|
471
|
+
* @platform darwin
|
|
472
|
+
*/
|
|
333
473
|
removeListener(event: 'did-resign-active', listener: (event: Event) => void): this;
|
|
334
474
|
/**
|
|
335
475
|
* Emitted whenever there is a GPU info update.
|
|
336
476
|
*/
|
|
337
477
|
on(event: 'gpu-info-update', listener: Function): this;
|
|
478
|
+
off(event: 'gpu-info-update', listener: Function): this;
|
|
338
479
|
once(event: 'gpu-info-update', listener: Function): this;
|
|
339
480
|
addListener(event: 'gpu-info-update', listener: Function): this;
|
|
340
481
|
removeListener(event: 'gpu-info-update', listener: Function): this;
|
|
@@ -350,10 +491,24 @@ declare namespace Electron {
|
|
|
350
491
|
*/
|
|
351
492
|
on(event: 'gpu-process-crashed', listener: (event: Event,
|
|
352
493
|
killed: boolean) => void): this;
|
|
494
|
+
/**
|
|
495
|
+
* @deprecated
|
|
496
|
+
*/
|
|
497
|
+
off(event: 'gpu-process-crashed', listener: (event: Event,
|
|
498
|
+
killed: boolean) => void): this;
|
|
499
|
+
/**
|
|
500
|
+
* @deprecated
|
|
501
|
+
*/
|
|
353
502
|
once(event: 'gpu-process-crashed', listener: (event: Event,
|
|
354
503
|
killed: boolean) => void): this;
|
|
504
|
+
/**
|
|
505
|
+
* @deprecated
|
|
506
|
+
*/
|
|
355
507
|
addListener(event: 'gpu-process-crashed', listener: (event: Event,
|
|
356
508
|
killed: boolean) => void): this;
|
|
509
|
+
/**
|
|
510
|
+
* @deprecated
|
|
511
|
+
*/
|
|
357
512
|
removeListener(event: 'gpu-process-crashed', listener: (event: Event,
|
|
358
513
|
killed: boolean) => void): this;
|
|
359
514
|
/**
|
|
@@ -372,6 +527,11 @@ declare namespace Electron {
|
|
|
372
527
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
373
528
|
authInfo: AuthInfo,
|
|
374
529
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
530
|
+
off(event: 'login', listener: (event: Event,
|
|
531
|
+
webContents: WebContents,
|
|
532
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
533
|
+
authInfo: AuthInfo,
|
|
534
|
+
callback: (username?: string, password?: string) => void) => void): this;
|
|
375
535
|
once(event: 'login', listener: (event: Event,
|
|
376
536
|
webContents: WebContents,
|
|
377
537
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
@@ -394,8 +554,21 @@ declare namespace Electron {
|
|
|
394
554
|
* @platform darwin
|
|
395
555
|
*/
|
|
396
556
|
on(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
557
|
+
/**
|
|
558
|
+
* @platform darwin
|
|
559
|
+
*/
|
|
560
|
+
off(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
561
|
+
/**
|
|
562
|
+
* @platform darwin
|
|
563
|
+
*/
|
|
397
564
|
once(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
565
|
+
/**
|
|
566
|
+
* @platform darwin
|
|
567
|
+
*/
|
|
398
568
|
addListener(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
569
|
+
/**
|
|
570
|
+
* @platform darwin
|
|
571
|
+
*/
|
|
399
572
|
removeListener(event: 'new-window-for-tab', listener: (event: Event) => void): this;
|
|
400
573
|
/**
|
|
401
574
|
* Emitted when the user wants to open a file with the application. The `open-file`
|
|
@@ -414,10 +587,24 @@ declare namespace Electron {
|
|
|
414
587
|
*/
|
|
415
588
|
on(event: 'open-file', listener: (event: Event,
|
|
416
589
|
path: string) => void): this;
|
|
590
|
+
/**
|
|
591
|
+
* @platform darwin
|
|
592
|
+
*/
|
|
593
|
+
off(event: 'open-file', listener: (event: Event,
|
|
594
|
+
path: string) => void): this;
|
|
595
|
+
/**
|
|
596
|
+
* @platform darwin
|
|
597
|
+
*/
|
|
417
598
|
once(event: 'open-file', listener: (event: Event,
|
|
418
599
|
path: string) => void): this;
|
|
600
|
+
/**
|
|
601
|
+
* @platform darwin
|
|
602
|
+
*/
|
|
419
603
|
addListener(event: 'open-file', listener: (event: Event,
|
|
420
604
|
path: string) => void): this;
|
|
605
|
+
/**
|
|
606
|
+
* @platform darwin
|
|
607
|
+
*/
|
|
421
608
|
removeListener(event: 'open-file', listener: (event: Event,
|
|
422
609
|
path: string) => void): this;
|
|
423
610
|
/**
|
|
@@ -434,10 +621,24 @@ declare namespace Electron {
|
|
|
434
621
|
*/
|
|
435
622
|
on(event: 'open-url', listener: (event: Event,
|
|
436
623
|
url: string) => void): this;
|
|
624
|
+
/**
|
|
625
|
+
* @platform darwin
|
|
626
|
+
*/
|
|
627
|
+
off(event: 'open-url', listener: (event: Event,
|
|
628
|
+
url: string) => void): this;
|
|
629
|
+
/**
|
|
630
|
+
* @platform darwin
|
|
631
|
+
*/
|
|
437
632
|
once(event: 'open-url', listener: (event: Event,
|
|
438
633
|
url: string) => void): this;
|
|
634
|
+
/**
|
|
635
|
+
* @platform darwin
|
|
636
|
+
*/
|
|
439
637
|
addListener(event: 'open-url', listener: (event: Event,
|
|
440
638
|
url: string) => void): this;
|
|
639
|
+
/**
|
|
640
|
+
* @platform darwin
|
|
641
|
+
*/
|
|
441
642
|
removeListener(event: 'open-url', listener: (event: Event,
|
|
442
643
|
url: string) => void): this;
|
|
443
644
|
/**
|
|
@@ -448,6 +649,8 @@ declare namespace Electron {
|
|
|
448
649
|
*/
|
|
449
650
|
on(event: 'quit', listener: (event: Event,
|
|
450
651
|
exitCode: number) => void): this;
|
|
652
|
+
off(event: 'quit', listener: (event: Event,
|
|
653
|
+
exitCode: number) => void): this;
|
|
451
654
|
once(event: 'quit', listener: (event: Event,
|
|
452
655
|
exitCode: number) => void): this;
|
|
453
656
|
addListener(event: 'quit', listener: (event: Event,
|
|
@@ -467,6 +670,11 @@ declare namespace Electron {
|
|
|
467
670
|
* @platform darwin
|
|
468
671
|
*/
|
|
469
672
|
launchInfo: (Record<string, any>) | (NotificationResponse)) => void): this;
|
|
673
|
+
off(event: 'ready', listener: (event: Event,
|
|
674
|
+
/**
|
|
675
|
+
* @platform darwin
|
|
676
|
+
*/
|
|
677
|
+
launchInfo: (Record<string, any>) | (NotificationResponse)) => void): this;
|
|
470
678
|
once(event: 'ready', listener: (event: Event,
|
|
471
679
|
/**
|
|
472
680
|
* @platform darwin
|
|
@@ -489,6 +697,9 @@ declare namespace Electron {
|
|
|
489
697
|
on(event: 'render-process-gone', listener: (event: Event,
|
|
490
698
|
webContents: WebContents,
|
|
491
699
|
details: RenderProcessGoneDetails) => void): this;
|
|
700
|
+
off(event: 'render-process-gone', listener: (event: Event,
|
|
701
|
+
webContents: WebContents,
|
|
702
|
+
details: RenderProcessGoneDetails) => void): this;
|
|
492
703
|
once(event: 'render-process-gone', listener: (event: Event,
|
|
493
704
|
webContents: WebContents,
|
|
494
705
|
details: RenderProcessGoneDetails) => void): this;
|
|
@@ -511,12 +722,27 @@ declare namespace Electron {
|
|
|
511
722
|
on(event: 'renderer-process-crashed', listener: (event: Event,
|
|
512
723
|
webContents: WebContents,
|
|
513
724
|
killed: boolean) => void): this;
|
|
725
|
+
/**
|
|
726
|
+
* @deprecated
|
|
727
|
+
*/
|
|
728
|
+
off(event: 'renderer-process-crashed', listener: (event: Event,
|
|
729
|
+
webContents: WebContents,
|
|
730
|
+
killed: boolean) => void): this;
|
|
731
|
+
/**
|
|
732
|
+
* @deprecated
|
|
733
|
+
*/
|
|
514
734
|
once(event: 'renderer-process-crashed', listener: (event: Event,
|
|
515
735
|
webContents: WebContents,
|
|
516
736
|
killed: boolean) => void): this;
|
|
737
|
+
/**
|
|
738
|
+
* @deprecated
|
|
739
|
+
*/
|
|
517
740
|
addListener(event: 'renderer-process-crashed', listener: (event: Event,
|
|
518
741
|
webContents: WebContents,
|
|
519
742
|
killed: boolean) => void): this;
|
|
743
|
+
/**
|
|
744
|
+
* @deprecated
|
|
745
|
+
*/
|
|
520
746
|
removeListener(event: 'renderer-process-crashed', listener: (event: Event,
|
|
521
747
|
webContents: WebContents,
|
|
522
748
|
killed: boolean) => void): this;
|
|
@@ -555,6 +781,19 @@ declare namespace Electron {
|
|
|
555
781
|
* A JSON object of additional data passed from the second instance
|
|
556
782
|
*/
|
|
557
783
|
additionalData: unknown) => void): this;
|
|
784
|
+
off(event: 'second-instance', listener: (event: Event,
|
|
785
|
+
/**
|
|
786
|
+
* An array of the second instance's command line arguments
|
|
787
|
+
*/
|
|
788
|
+
argv: string[],
|
|
789
|
+
/**
|
|
790
|
+
* The second instance's working directory
|
|
791
|
+
*/
|
|
792
|
+
workingDirectory: string,
|
|
793
|
+
/**
|
|
794
|
+
* A JSON object of additional data passed from the second instance
|
|
795
|
+
*/
|
|
796
|
+
additionalData: unknown) => void): this;
|
|
558
797
|
once(event: 'second-instance', listener: (event: Event,
|
|
559
798
|
/**
|
|
560
799
|
* An array of the second instance's command line arguments
|
|
@@ -607,6 +846,11 @@ declare namespace Electron {
|
|
|
607
846
|
url: string,
|
|
608
847
|
certificateList: Certificate[],
|
|
609
848
|
callback: (certificate?: Certificate) => void) => void): this;
|
|
849
|
+
off(event: 'select-client-certificate', listener: (event: Event,
|
|
850
|
+
webContents: WebContents,
|
|
851
|
+
url: string,
|
|
852
|
+
certificateList: Certificate[],
|
|
853
|
+
callback: (certificate?: Certificate) => void) => void): this;
|
|
610
854
|
once(event: 'select-client-certificate', listener: (event: Event,
|
|
611
855
|
webContents: WebContents,
|
|
612
856
|
url: string,
|
|
@@ -626,6 +870,7 @@ declare namespace Electron {
|
|
|
626
870
|
* Emitted when Electron has created a new `session`.
|
|
627
871
|
*/
|
|
628
872
|
on(event: 'session-created', listener: (session: Session) => void): this;
|
|
873
|
+
off(event: 'session-created', listener: (session: Session) => void): this;
|
|
629
874
|
once(event: 'session-created', listener: (session: Session) => void): this;
|
|
630
875
|
addListener(event: 'session-created', listener: (session: Session) => void): this;
|
|
631
876
|
removeListener(event: 'session-created', listener: (session: Session) => void): this;
|
|
@@ -647,6 +892,21 @@ declare namespace Electron {
|
|
|
647
892
|
* Contains app-specific state stored by the activity.
|
|
648
893
|
*/
|
|
649
894
|
userInfo: unknown) => void): this;
|
|
895
|
+
/**
|
|
896
|
+
* @platform darwin
|
|
897
|
+
*/
|
|
898
|
+
off(event: 'update-activity-state', listener: (event: Event,
|
|
899
|
+
/**
|
|
900
|
+
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
901
|
+
*/
|
|
902
|
+
type: string,
|
|
903
|
+
/**
|
|
904
|
+
* Contains app-specific state stored by the activity.
|
|
905
|
+
*/
|
|
906
|
+
userInfo: unknown) => void): this;
|
|
907
|
+
/**
|
|
908
|
+
* @platform darwin
|
|
909
|
+
*/
|
|
650
910
|
once(event: 'update-activity-state', listener: (event: Event,
|
|
651
911
|
/**
|
|
652
912
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -656,6 +916,9 @@ declare namespace Electron {
|
|
|
656
916
|
* Contains app-specific state stored by the activity.
|
|
657
917
|
*/
|
|
658
918
|
userInfo: unknown) => void): this;
|
|
919
|
+
/**
|
|
920
|
+
* @platform darwin
|
|
921
|
+
*/
|
|
659
922
|
addListener(event: 'update-activity-state', listener: (event: Event,
|
|
660
923
|
/**
|
|
661
924
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -665,6 +928,9 @@ declare namespace Electron {
|
|
|
665
928
|
* Contains app-specific state stored by the activity.
|
|
666
929
|
*/
|
|
667
930
|
userInfo: unknown) => void): this;
|
|
931
|
+
/**
|
|
932
|
+
* @platform darwin
|
|
933
|
+
*/
|
|
668
934
|
removeListener(event: 'update-activity-state', listener: (event: Event,
|
|
669
935
|
/**
|
|
670
936
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -679,6 +945,8 @@ declare namespace Electron {
|
|
|
679
945
|
*/
|
|
680
946
|
on(event: 'web-contents-created', listener: (event: Event,
|
|
681
947
|
webContents: WebContents) => void): this;
|
|
948
|
+
off(event: 'web-contents-created', listener: (event: Event,
|
|
949
|
+
webContents: WebContents) => void): this;
|
|
682
950
|
once(event: 'web-contents-created', listener: (event: Event,
|
|
683
951
|
webContents: WebContents) => void): this;
|
|
684
952
|
addListener(event: 'web-contents-created', listener: (event: Event,
|
|
@@ -697,16 +965,33 @@ declare namespace Electron {
|
|
|
697
965
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
698
966
|
*/
|
|
699
967
|
type: string) => void): this;
|
|
968
|
+
/**
|
|
969
|
+
* @platform darwin
|
|
970
|
+
*/
|
|
971
|
+
off(event: 'will-continue-activity', listener: (event: Event,
|
|
972
|
+
/**
|
|
973
|
+
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
974
|
+
*/
|
|
975
|
+
type: string) => void): this;
|
|
976
|
+
/**
|
|
977
|
+
* @platform darwin
|
|
978
|
+
*/
|
|
700
979
|
once(event: 'will-continue-activity', listener: (event: Event,
|
|
701
980
|
/**
|
|
702
981
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
703
982
|
*/
|
|
704
983
|
type: string) => void): this;
|
|
984
|
+
/**
|
|
985
|
+
* @platform darwin
|
|
986
|
+
*/
|
|
705
987
|
addListener(event: 'will-continue-activity', listener: (event: Event,
|
|
706
988
|
/**
|
|
707
989
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
708
990
|
*/
|
|
709
991
|
type: string) => void): this;
|
|
992
|
+
/**
|
|
993
|
+
* @platform darwin
|
|
994
|
+
*/
|
|
710
995
|
removeListener(event: 'will-continue-activity', listener: (event: Event,
|
|
711
996
|
/**
|
|
712
997
|
* A string identifying the activity. Maps to `NSUserActivity.activityType`.
|
|
@@ -721,6 +1006,7 @@ declare namespace Electron {
|
|
|
721
1006
|
* In most cases, you should do everything in the `ready` event handler.
|
|
722
1007
|
*/
|
|
723
1008
|
on(event: 'will-finish-launching', listener: Function): this;
|
|
1009
|
+
off(event: 'will-finish-launching', listener: Function): this;
|
|
724
1010
|
once(event: 'will-finish-launching', listener: Function): this;
|
|
725
1011
|
addListener(event: 'will-finish-launching', listener: Function): this;
|
|
726
1012
|
removeListener(event: 'will-finish-launching', listener: Function): this;
|
|
@@ -736,6 +1022,7 @@ declare namespace Electron {
|
|
|
736
1022
|
* a shutdown/restart of the system or a user logout.
|
|
737
1023
|
*/
|
|
738
1024
|
on(event: 'will-quit', listener: (event: Event) => void): this;
|
|
1025
|
+
off(event: 'will-quit', listener: (event: Event) => void): this;
|
|
739
1026
|
once(event: 'will-quit', listener: (event: Event) => void): this;
|
|
740
1027
|
addListener(event: 'will-quit', listener: (event: Event) => void): this;
|
|
741
1028
|
removeListener(event: 'will-quit', listener: (event: Event) => void): this;
|
|
@@ -750,6 +1037,7 @@ declare namespace Electron {
|
|
|
750
1037
|
* emitted.
|
|
751
1038
|
*/
|
|
752
1039
|
on(event: 'window-all-closed', listener: Function): this;
|
|
1040
|
+
off(event: 'window-all-closed', listener: Function): this;
|
|
753
1041
|
once(event: 'window-all-closed', listener: Function): this;
|
|
754
1042
|
addListener(event: 'window-all-closed', listener: Function): this;
|
|
755
1043
|
removeListener(event: 'window-all-closed', listener: Function): this;
|
|
@@ -1609,6 +1897,7 @@ declare namespace Electron {
|
|
|
1609
1897
|
* well as listening to `before-quit`.
|
|
1610
1898
|
*/
|
|
1611
1899
|
on(event: 'before-quit-for-update', listener: Function): this;
|
|
1900
|
+
off(event: 'before-quit-for-update', listener: Function): this;
|
|
1612
1901
|
once(event: 'before-quit-for-update', listener: Function): this;
|
|
1613
1902
|
addListener(event: 'before-quit-for-update', listener: Function): this;
|
|
1614
1903
|
removeListener(event: 'before-quit-for-update', listener: Function): this;
|
|
@@ -1616,6 +1905,7 @@ declare namespace Electron {
|
|
|
1616
1905
|
* Emitted when checking if an update has started.
|
|
1617
1906
|
*/
|
|
1618
1907
|
on(event: 'checking-for-update', listener: Function): this;
|
|
1908
|
+
off(event: 'checking-for-update', listener: Function): this;
|
|
1619
1909
|
once(event: 'checking-for-update', listener: Function): this;
|
|
1620
1910
|
addListener(event: 'checking-for-update', listener: Function): this;
|
|
1621
1911
|
removeListener(event: 'checking-for-update', listener: Function): this;
|
|
@@ -1623,6 +1913,7 @@ declare namespace Electron {
|
|
|
1623
1913
|
* Emitted when there is an error while updating.
|
|
1624
1914
|
*/
|
|
1625
1915
|
on(event: 'error', listener: (error: Error) => void): this;
|
|
1916
|
+
off(event: 'error', listener: (error: Error) => void): this;
|
|
1626
1917
|
once(event: 'error', listener: (error: Error) => void): this;
|
|
1627
1918
|
addListener(event: 'error', listener: (error: Error) => void): this;
|
|
1628
1919
|
removeListener(event: 'error', listener: (error: Error) => void): this;
|
|
@@ -1631,6 +1922,7 @@ declare namespace Electron {
|
|
|
1631
1922
|
* automatically.
|
|
1632
1923
|
*/
|
|
1633
1924
|
on(event: 'update-available', listener: Function): this;
|
|
1925
|
+
off(event: 'update-available', listener: Function): this;
|
|
1634
1926
|
once(event: 'update-available', listener: Function): this;
|
|
1635
1927
|
addListener(event: 'update-available', listener: Function): this;
|
|
1636
1928
|
removeListener(event: 'update-available', listener: Function): this;
|
|
@@ -1647,6 +1939,11 @@ declare namespace Electron {
|
|
|
1647
1939
|
releaseName: string,
|
|
1648
1940
|
releaseDate: Date,
|
|
1649
1941
|
updateURL: string) => void): this;
|
|
1942
|
+
off(event: 'update-downloaded', listener: (event: Event,
|
|
1943
|
+
releaseNotes: string,
|
|
1944
|
+
releaseName: string,
|
|
1945
|
+
releaseDate: Date,
|
|
1946
|
+
updateURL: string) => void): this;
|
|
1650
1947
|
once(event: 'update-downloaded', listener: (event: Event,
|
|
1651
1948
|
releaseNotes: string,
|
|
1652
1949
|
releaseName: string,
|
|
@@ -1666,6 +1963,7 @@ declare namespace Electron {
|
|
|
1666
1963
|
* Emitted when there is no available update.
|
|
1667
1964
|
*/
|
|
1668
1965
|
on(event: 'update-not-available', listener: Function): this;
|
|
1966
|
+
off(event: 'update-not-available', listener: Function): this;
|
|
1669
1967
|
once(event: 'update-not-available', listener: Function): this;
|
|
1670
1968
|
addListener(event: 'update-not-available', listener: Function): this;
|
|
1671
1969
|
removeListener(event: 'update-not-available', listener: Function): this;
|
|
@@ -1780,6 +2078,8 @@ declare namespace Electron {
|
|
|
1780
2078
|
*/
|
|
1781
2079
|
on(event: 'always-on-top-changed', listener: (event: Event,
|
|
1782
2080
|
isAlwaysOnTop: boolean) => void): this;
|
|
2081
|
+
off(event: 'always-on-top-changed', listener: (event: Event,
|
|
2082
|
+
isAlwaysOnTop: boolean) => void): this;
|
|
1783
2083
|
once(event: 'always-on-top-changed', listener: (event: Event,
|
|
1784
2084
|
isAlwaysOnTop: boolean) => void): this;
|
|
1785
2085
|
addListener(event: 'always-on-top-changed', listener: (event: Event,
|
|
@@ -1804,16 +2104,31 @@ declare namespace Electron {
|
|
|
1804
2104
|
*/
|
|
1805
2105
|
on(event: 'app-command', listener: (event: Event,
|
|
1806
2106
|
command: string) => void): this;
|
|
2107
|
+
/**
|
|
2108
|
+
* @platform win32,linux
|
|
2109
|
+
*/
|
|
2110
|
+
off(event: 'app-command', listener: (event: Event,
|
|
2111
|
+
command: string) => void): this;
|
|
2112
|
+
/**
|
|
2113
|
+
* @platform win32,linux
|
|
2114
|
+
*/
|
|
1807
2115
|
once(event: 'app-command', listener: (event: Event,
|
|
1808
2116
|
command: string) => void): this;
|
|
2117
|
+
/**
|
|
2118
|
+
* @platform win32,linux
|
|
2119
|
+
*/
|
|
1809
2120
|
addListener(event: 'app-command', listener: (event: Event,
|
|
1810
2121
|
command: string) => void): this;
|
|
2122
|
+
/**
|
|
2123
|
+
* @platform win32,linux
|
|
2124
|
+
*/
|
|
1811
2125
|
removeListener(event: 'app-command', listener: (event: Event,
|
|
1812
2126
|
command: string) => void): this;
|
|
1813
2127
|
/**
|
|
1814
2128
|
* Emitted when the window loses focus.
|
|
1815
2129
|
*/
|
|
1816
2130
|
on(event: 'blur', listener: Function): this;
|
|
2131
|
+
off(event: 'blur', listener: Function): this;
|
|
1817
2132
|
once(event: 'blur', listener: Function): this;
|
|
1818
2133
|
addListener(event: 'blur', listener: Function): this;
|
|
1819
2134
|
removeListener(event: 'blur', listener: Function): this;
|
|
@@ -1834,6 +2149,7 @@ declare namespace Electron {
|
|
|
1834
2149
|
* Electron._
|
|
1835
2150
|
*/
|
|
1836
2151
|
on(event: 'close', listener: (event: Event) => void): this;
|
|
2152
|
+
off(event: 'close', listener: (event: Event) => void): this;
|
|
1837
2153
|
once(event: 'close', listener: (event: Event) => void): this;
|
|
1838
2154
|
addListener(event: 'close', listener: (event: Event) => void): this;
|
|
1839
2155
|
removeListener(event: 'close', listener: (event: Event) => void): this;
|
|
@@ -1842,6 +2158,7 @@ declare namespace Electron {
|
|
|
1842
2158
|
* remove the reference to the window and avoid using it any more.
|
|
1843
2159
|
*/
|
|
1844
2160
|
on(event: 'closed', listener: Function): this;
|
|
2161
|
+
off(event: 'closed', listener: Function): this;
|
|
1845
2162
|
once(event: 'closed', listener: Function): this;
|
|
1846
2163
|
addListener(event: 'closed', listener: Function): this;
|
|
1847
2164
|
removeListener(event: 'closed', listener: Function): this;
|
|
@@ -1849,6 +2166,7 @@ declare namespace Electron {
|
|
|
1849
2166
|
* Emitted when the window enters a full-screen state.
|
|
1850
2167
|
*/
|
|
1851
2168
|
on(event: 'enter-full-screen', listener: Function): this;
|
|
2169
|
+
off(event: 'enter-full-screen', listener: Function): this;
|
|
1852
2170
|
once(event: 'enter-full-screen', listener: Function): this;
|
|
1853
2171
|
addListener(event: 'enter-full-screen', listener: Function): this;
|
|
1854
2172
|
removeListener(event: 'enter-full-screen', listener: Function): this;
|
|
@@ -1856,6 +2174,7 @@ declare namespace Electron {
|
|
|
1856
2174
|
* Emitted when the window enters a full-screen state triggered by HTML API.
|
|
1857
2175
|
*/
|
|
1858
2176
|
on(event: 'enter-html-full-screen', listener: Function): this;
|
|
2177
|
+
off(event: 'enter-html-full-screen', listener: Function): this;
|
|
1859
2178
|
once(event: 'enter-html-full-screen', listener: Function): this;
|
|
1860
2179
|
addListener(event: 'enter-html-full-screen', listener: Function): this;
|
|
1861
2180
|
removeListener(event: 'enter-html-full-screen', listener: Function): this;
|
|
@@ -1863,6 +2182,7 @@ declare namespace Electron {
|
|
|
1863
2182
|
* Emitted when the window gains focus.
|
|
1864
2183
|
*/
|
|
1865
2184
|
on(event: 'focus', listener: Function): this;
|
|
2185
|
+
off(event: 'focus', listener: Function): this;
|
|
1866
2186
|
once(event: 'focus', listener: Function): this;
|
|
1867
2187
|
addListener(event: 'focus', listener: Function): this;
|
|
1868
2188
|
removeListener(event: 'focus', listener: Function): this;
|
|
@@ -1870,6 +2190,7 @@ declare namespace Electron {
|
|
|
1870
2190
|
* Emitted when the window is hidden.
|
|
1871
2191
|
*/
|
|
1872
2192
|
on(event: 'hide', listener: Function): this;
|
|
2193
|
+
off(event: 'hide', listener: Function): this;
|
|
1873
2194
|
once(event: 'hide', listener: Function): this;
|
|
1874
2195
|
addListener(event: 'hide', listener: Function): this;
|
|
1875
2196
|
removeListener(event: 'hide', listener: Function): this;
|
|
@@ -1877,6 +2198,7 @@ declare namespace Electron {
|
|
|
1877
2198
|
* Emitted when the window leaves a full-screen state.
|
|
1878
2199
|
*/
|
|
1879
2200
|
on(event: 'leave-full-screen', listener: Function): this;
|
|
2201
|
+
off(event: 'leave-full-screen', listener: Function): this;
|
|
1880
2202
|
once(event: 'leave-full-screen', listener: Function): this;
|
|
1881
2203
|
addListener(event: 'leave-full-screen', listener: Function): this;
|
|
1882
2204
|
removeListener(event: 'leave-full-screen', listener: Function): this;
|
|
@@ -1884,6 +2206,7 @@ declare namespace Electron {
|
|
|
1884
2206
|
* Emitted when the window leaves a full-screen state triggered by HTML API.
|
|
1885
2207
|
*/
|
|
1886
2208
|
on(event: 'leave-html-full-screen', listener: Function): this;
|
|
2209
|
+
off(event: 'leave-html-full-screen', listener: Function): this;
|
|
1887
2210
|
once(event: 'leave-html-full-screen', listener: Function): this;
|
|
1888
2211
|
addListener(event: 'leave-html-full-screen', listener: Function): this;
|
|
1889
2212
|
removeListener(event: 'leave-html-full-screen', listener: Function): this;
|
|
@@ -1891,6 +2214,7 @@ declare namespace Electron {
|
|
|
1891
2214
|
* Emitted when window is maximized.
|
|
1892
2215
|
*/
|
|
1893
2216
|
on(event: 'maximize', listener: Function): this;
|
|
2217
|
+
off(event: 'maximize', listener: Function): this;
|
|
1894
2218
|
once(event: 'maximize', listener: Function): this;
|
|
1895
2219
|
addListener(event: 'maximize', listener: Function): this;
|
|
1896
2220
|
removeListener(event: 'maximize', listener: Function): this;
|
|
@@ -1898,6 +2222,7 @@ declare namespace Electron {
|
|
|
1898
2222
|
* Emitted when the window is minimized.
|
|
1899
2223
|
*/
|
|
1900
2224
|
on(event: 'minimize', listener: Function): this;
|
|
2225
|
+
off(event: 'minimize', listener: Function): this;
|
|
1901
2226
|
once(event: 'minimize', listener: Function): this;
|
|
1902
2227
|
addListener(event: 'minimize', listener: Function): this;
|
|
1903
2228
|
removeListener(event: 'minimize', listener: Function): this;
|
|
@@ -1905,6 +2230,7 @@ declare namespace Electron {
|
|
|
1905
2230
|
* Emitted when the window is being moved to a new position.
|
|
1906
2231
|
*/
|
|
1907
2232
|
on(event: 'move', listener: Function): this;
|
|
2233
|
+
off(event: 'move', listener: Function): this;
|
|
1908
2234
|
once(event: 'move', listener: Function): this;
|
|
1909
2235
|
addListener(event: 'move', listener: Function): this;
|
|
1910
2236
|
removeListener(event: 'move', listener: Function): this;
|
|
@@ -1916,8 +2242,21 @@ declare namespace Electron {
|
|
|
1916
2242
|
* @platform darwin,win32
|
|
1917
2243
|
*/
|
|
1918
2244
|
on(event: 'moved', listener: Function): this;
|
|
2245
|
+
/**
|
|
2246
|
+
* @platform darwin,win32
|
|
2247
|
+
*/
|
|
2248
|
+
off(event: 'moved', listener: Function): this;
|
|
2249
|
+
/**
|
|
2250
|
+
* @platform darwin,win32
|
|
2251
|
+
*/
|
|
1919
2252
|
once(event: 'moved', listener: Function): this;
|
|
2253
|
+
/**
|
|
2254
|
+
* @platform darwin,win32
|
|
2255
|
+
*/
|
|
1920
2256
|
addListener(event: 'moved', listener: Function): this;
|
|
2257
|
+
/**
|
|
2258
|
+
* @platform darwin,win32
|
|
2259
|
+
*/
|
|
1921
2260
|
removeListener(event: 'moved', listener: Function): this;
|
|
1922
2261
|
/**
|
|
1923
2262
|
* Emitted when the native new tab button is clicked.
|
|
@@ -1925,8 +2264,21 @@ declare namespace Electron {
|
|
|
1925
2264
|
* @platform darwin
|
|
1926
2265
|
*/
|
|
1927
2266
|
on(event: 'new-window-for-tab', listener: Function): this;
|
|
2267
|
+
/**
|
|
2268
|
+
* @platform darwin
|
|
2269
|
+
*/
|
|
2270
|
+
off(event: 'new-window-for-tab', listener: Function): this;
|
|
2271
|
+
/**
|
|
2272
|
+
* @platform darwin
|
|
2273
|
+
*/
|
|
1928
2274
|
once(event: 'new-window-for-tab', listener: Function): this;
|
|
2275
|
+
/**
|
|
2276
|
+
* @platform darwin
|
|
2277
|
+
*/
|
|
1929
2278
|
addListener(event: 'new-window-for-tab', listener: Function): this;
|
|
2279
|
+
/**
|
|
2280
|
+
* @platform darwin
|
|
2281
|
+
*/
|
|
1930
2282
|
removeListener(event: 'new-window-for-tab', listener: Function): this;
|
|
1931
2283
|
/**
|
|
1932
2284
|
* Emitted when the document changed its title, calling `event.preventDefault()`
|
|
@@ -1936,6 +2288,9 @@ declare namespace Electron {
|
|
|
1936
2288
|
on(event: 'page-title-updated', listener: (event: Event,
|
|
1937
2289
|
title: string,
|
|
1938
2290
|
explicitSet: boolean) => void): this;
|
|
2291
|
+
off(event: 'page-title-updated', listener: (event: Event,
|
|
2292
|
+
title: string,
|
|
2293
|
+
explicitSet: boolean) => void): this;
|
|
1939
2294
|
once(event: 'page-title-updated', listener: (event: Event,
|
|
1940
2295
|
title: string,
|
|
1941
2296
|
explicitSet: boolean) => void): this;
|
|
@@ -1954,6 +2309,7 @@ declare namespace Electron {
|
|
|
1954
2309
|
* you use `paintWhenInitiallyHidden: false`
|
|
1955
2310
|
*/
|
|
1956
2311
|
on(event: 'ready-to-show', listener: Function): this;
|
|
2312
|
+
off(event: 'ready-to-show', listener: Function): this;
|
|
1957
2313
|
once(event: 'ready-to-show', listener: Function): this;
|
|
1958
2314
|
addListener(event: 'ready-to-show', listener: Function): this;
|
|
1959
2315
|
removeListener(event: 'ready-to-show', listener: Function): this;
|
|
@@ -1961,6 +2317,7 @@ declare namespace Electron {
|
|
|
1961
2317
|
* Emitted after the window has been resized.
|
|
1962
2318
|
*/
|
|
1963
2319
|
on(event: 'resize', listener: Function): this;
|
|
2320
|
+
off(event: 'resize', listener: Function): this;
|
|
1964
2321
|
once(event: 'resize', listener: Function): this;
|
|
1965
2322
|
addListener(event: 'resize', listener: Function): this;
|
|
1966
2323
|
removeListener(event: 'resize', listener: Function): this;
|
|
@@ -1974,13 +2331,27 @@ declare namespace Electron {
|
|
|
1974
2331
|
* @platform darwin,win32
|
|
1975
2332
|
*/
|
|
1976
2333
|
on(event: 'resized', listener: Function): this;
|
|
2334
|
+
/**
|
|
2335
|
+
* @platform darwin,win32
|
|
2336
|
+
*/
|
|
2337
|
+
off(event: 'resized', listener: Function): this;
|
|
2338
|
+
/**
|
|
2339
|
+
* @platform darwin,win32
|
|
2340
|
+
*/
|
|
1977
2341
|
once(event: 'resized', listener: Function): this;
|
|
2342
|
+
/**
|
|
2343
|
+
* @platform darwin,win32
|
|
2344
|
+
*/
|
|
1978
2345
|
addListener(event: 'resized', listener: Function): this;
|
|
2346
|
+
/**
|
|
2347
|
+
* @platform darwin,win32
|
|
2348
|
+
*/
|
|
1979
2349
|
removeListener(event: 'resized', listener: Function): this;
|
|
1980
2350
|
/**
|
|
1981
2351
|
* Emitted when the unresponsive web page becomes responsive again.
|
|
1982
2352
|
*/
|
|
1983
2353
|
on(event: 'responsive', listener: Function): this;
|
|
2354
|
+
off(event: 'responsive', listener: Function): this;
|
|
1984
2355
|
once(event: 'responsive', listener: Function): this;
|
|
1985
2356
|
addListener(event: 'responsive', listener: Function): this;
|
|
1986
2357
|
removeListener(event: 'responsive', listener: Function): this;
|
|
@@ -1988,6 +2359,7 @@ declare namespace Electron {
|
|
|
1988
2359
|
* Emitted when the window is restored from a minimized state.
|
|
1989
2360
|
*/
|
|
1990
2361
|
on(event: 'restore', listener: Function): this;
|
|
2362
|
+
off(event: 'restore', listener: Function): this;
|
|
1991
2363
|
once(event: 'restore', listener: Function): this;
|
|
1992
2364
|
addListener(event: 'restore', listener: Function): this;
|
|
1993
2365
|
removeListener(event: 'restore', listener: Function): this;
|
|
@@ -2002,10 +2374,24 @@ declare namespace Electron {
|
|
|
2002
2374
|
*/
|
|
2003
2375
|
on(event: 'rotate-gesture', listener: (event: Event,
|
|
2004
2376
|
rotation: number) => void): this;
|
|
2377
|
+
/**
|
|
2378
|
+
* @platform darwin
|
|
2379
|
+
*/
|
|
2380
|
+
off(event: 'rotate-gesture', listener: (event: Event,
|
|
2381
|
+
rotation: number) => void): this;
|
|
2382
|
+
/**
|
|
2383
|
+
* @platform darwin
|
|
2384
|
+
*/
|
|
2005
2385
|
once(event: 'rotate-gesture', listener: (event: Event,
|
|
2006
2386
|
rotation: number) => void): this;
|
|
2387
|
+
/**
|
|
2388
|
+
* @platform darwin
|
|
2389
|
+
*/
|
|
2007
2390
|
addListener(event: 'rotate-gesture', listener: (event: Event,
|
|
2008
2391
|
rotation: number) => void): this;
|
|
2392
|
+
/**
|
|
2393
|
+
* @platform darwin
|
|
2394
|
+
*/
|
|
2009
2395
|
removeListener(event: 'rotate-gesture', listener: (event: Event,
|
|
2010
2396
|
rotation: number) => void): this;
|
|
2011
2397
|
/**
|
|
@@ -2019,8 +2405,25 @@ declare namespace Electron {
|
|
|
2019
2405
|
* @platform darwin
|
|
2020
2406
|
*/
|
|
2021
2407
|
on(event: 'scroll-touch-begin', listener: Function): this;
|
|
2408
|
+
/**
|
|
2409
|
+
* @deprecated
|
|
2410
|
+
* @platform darwin
|
|
2411
|
+
*/
|
|
2412
|
+
off(event: 'scroll-touch-begin', listener: Function): this;
|
|
2413
|
+
/**
|
|
2414
|
+
* @deprecated
|
|
2415
|
+
* @platform darwin
|
|
2416
|
+
*/
|
|
2022
2417
|
once(event: 'scroll-touch-begin', listener: Function): this;
|
|
2418
|
+
/**
|
|
2419
|
+
* @deprecated
|
|
2420
|
+
* @platform darwin
|
|
2421
|
+
*/
|
|
2023
2422
|
addListener(event: 'scroll-touch-begin', listener: Function): this;
|
|
2423
|
+
/**
|
|
2424
|
+
* @deprecated
|
|
2425
|
+
* @platform darwin
|
|
2426
|
+
*/
|
|
2024
2427
|
removeListener(event: 'scroll-touch-begin', listener: Function): this;
|
|
2025
2428
|
/**
|
|
2026
2429
|
* Emitted when scroll wheel event phase filed upon reaching the edge of element.
|
|
@@ -2033,8 +2436,25 @@ declare namespace Electron {
|
|
|
2033
2436
|
* @platform darwin
|
|
2034
2437
|
*/
|
|
2035
2438
|
on(event: 'scroll-touch-edge', listener: Function): this;
|
|
2439
|
+
/**
|
|
2440
|
+
* @deprecated
|
|
2441
|
+
* @platform darwin
|
|
2442
|
+
*/
|
|
2443
|
+
off(event: 'scroll-touch-edge', listener: Function): this;
|
|
2444
|
+
/**
|
|
2445
|
+
* @deprecated
|
|
2446
|
+
* @platform darwin
|
|
2447
|
+
*/
|
|
2036
2448
|
once(event: 'scroll-touch-edge', listener: Function): this;
|
|
2449
|
+
/**
|
|
2450
|
+
* @deprecated
|
|
2451
|
+
* @platform darwin
|
|
2452
|
+
*/
|
|
2037
2453
|
addListener(event: 'scroll-touch-edge', listener: Function): this;
|
|
2454
|
+
/**
|
|
2455
|
+
* @deprecated
|
|
2456
|
+
* @platform darwin
|
|
2457
|
+
*/
|
|
2038
2458
|
removeListener(event: 'scroll-touch-edge', listener: Function): this;
|
|
2039
2459
|
/**
|
|
2040
2460
|
* Emitted when scroll wheel event phase has ended.
|
|
@@ -2047,8 +2467,25 @@ declare namespace Electron {
|
|
|
2047
2467
|
* @platform darwin
|
|
2048
2468
|
*/
|
|
2049
2469
|
on(event: 'scroll-touch-end', listener: Function): this;
|
|
2470
|
+
/**
|
|
2471
|
+
* @deprecated
|
|
2472
|
+
* @platform darwin
|
|
2473
|
+
*/
|
|
2474
|
+
off(event: 'scroll-touch-end', listener: Function): this;
|
|
2475
|
+
/**
|
|
2476
|
+
* @deprecated
|
|
2477
|
+
* @platform darwin
|
|
2478
|
+
*/
|
|
2050
2479
|
once(event: 'scroll-touch-end', listener: Function): this;
|
|
2480
|
+
/**
|
|
2481
|
+
* @deprecated
|
|
2482
|
+
* @platform darwin
|
|
2483
|
+
*/
|
|
2051
2484
|
addListener(event: 'scroll-touch-end', listener: Function): this;
|
|
2485
|
+
/**
|
|
2486
|
+
* @deprecated
|
|
2487
|
+
* @platform darwin
|
|
2488
|
+
*/
|
|
2052
2489
|
removeListener(event: 'scroll-touch-end', listener: Function): this;
|
|
2053
2490
|
/**
|
|
2054
2491
|
* Emitted when window session is going to end due to force shutdown or machine
|
|
@@ -2057,8 +2494,21 @@ declare namespace Electron {
|
|
|
2057
2494
|
* @platform win32
|
|
2058
2495
|
*/
|
|
2059
2496
|
on(event: 'session-end', listener: Function): this;
|
|
2497
|
+
/**
|
|
2498
|
+
* @platform win32
|
|
2499
|
+
*/
|
|
2500
|
+
off(event: 'session-end', listener: Function): this;
|
|
2501
|
+
/**
|
|
2502
|
+
* @platform win32
|
|
2503
|
+
*/
|
|
2060
2504
|
once(event: 'session-end', listener: Function): this;
|
|
2505
|
+
/**
|
|
2506
|
+
* @platform win32
|
|
2507
|
+
*/
|
|
2061
2508
|
addListener(event: 'session-end', listener: Function): this;
|
|
2509
|
+
/**
|
|
2510
|
+
* @platform win32
|
|
2511
|
+
*/
|
|
2062
2512
|
removeListener(event: 'session-end', listener: Function): this;
|
|
2063
2513
|
/**
|
|
2064
2514
|
* Emitted when the window opens a sheet.
|
|
@@ -2066,8 +2516,21 @@ declare namespace Electron {
|
|
|
2066
2516
|
* @platform darwin
|
|
2067
2517
|
*/
|
|
2068
2518
|
on(event: 'sheet-begin', listener: Function): this;
|
|
2519
|
+
/**
|
|
2520
|
+
* @platform darwin
|
|
2521
|
+
*/
|
|
2522
|
+
off(event: 'sheet-begin', listener: Function): this;
|
|
2523
|
+
/**
|
|
2524
|
+
* @platform darwin
|
|
2525
|
+
*/
|
|
2069
2526
|
once(event: 'sheet-begin', listener: Function): this;
|
|
2527
|
+
/**
|
|
2528
|
+
* @platform darwin
|
|
2529
|
+
*/
|
|
2070
2530
|
addListener(event: 'sheet-begin', listener: Function): this;
|
|
2531
|
+
/**
|
|
2532
|
+
* @platform darwin
|
|
2533
|
+
*/
|
|
2071
2534
|
removeListener(event: 'sheet-begin', listener: Function): this;
|
|
2072
2535
|
/**
|
|
2073
2536
|
* Emitted when the window has closed a sheet.
|
|
@@ -2075,13 +2538,27 @@ declare namespace Electron {
|
|
|
2075
2538
|
* @platform darwin
|
|
2076
2539
|
*/
|
|
2077
2540
|
on(event: 'sheet-end', listener: Function): this;
|
|
2541
|
+
/**
|
|
2542
|
+
* @platform darwin
|
|
2543
|
+
*/
|
|
2544
|
+
off(event: 'sheet-end', listener: Function): this;
|
|
2545
|
+
/**
|
|
2546
|
+
* @platform darwin
|
|
2547
|
+
*/
|
|
2078
2548
|
once(event: 'sheet-end', listener: Function): this;
|
|
2549
|
+
/**
|
|
2550
|
+
* @platform darwin
|
|
2551
|
+
*/
|
|
2079
2552
|
addListener(event: 'sheet-end', listener: Function): this;
|
|
2553
|
+
/**
|
|
2554
|
+
* @platform darwin
|
|
2555
|
+
*/
|
|
2080
2556
|
removeListener(event: 'sheet-end', listener: Function): this;
|
|
2081
2557
|
/**
|
|
2082
2558
|
* Emitted when the window is shown.
|
|
2083
2559
|
*/
|
|
2084
2560
|
on(event: 'show', listener: Function): this;
|
|
2561
|
+
off(event: 'show', listener: Function): this;
|
|
2085
2562
|
once(event: 'show', listener: Function): this;
|
|
2086
2563
|
addListener(event: 'show', listener: Function): this;
|
|
2087
2564
|
removeListener(event: 'show', listener: Function): this;
|
|
@@ -2100,10 +2577,24 @@ declare namespace Electron {
|
|
|
2100
2577
|
*/
|
|
2101
2578
|
on(event: 'swipe', listener: (event: Event,
|
|
2102
2579
|
direction: string) => void): this;
|
|
2580
|
+
/**
|
|
2581
|
+
* @platform darwin
|
|
2582
|
+
*/
|
|
2583
|
+
off(event: 'swipe', listener: (event: Event,
|
|
2584
|
+
direction: string) => void): this;
|
|
2585
|
+
/**
|
|
2586
|
+
* @platform darwin
|
|
2587
|
+
*/
|
|
2103
2588
|
once(event: 'swipe', listener: (event: Event,
|
|
2104
2589
|
direction: string) => void): this;
|
|
2590
|
+
/**
|
|
2591
|
+
* @platform darwin
|
|
2592
|
+
*/
|
|
2105
2593
|
addListener(event: 'swipe', listener: (event: Event,
|
|
2106
2594
|
direction: string) => void): this;
|
|
2595
|
+
/**
|
|
2596
|
+
* @platform darwin
|
|
2597
|
+
*/
|
|
2107
2598
|
removeListener(event: 'swipe', listener: (event: Event,
|
|
2108
2599
|
direction: string) => void): this;
|
|
2109
2600
|
/**
|
|
@@ -2121,16 +2612,33 @@ declare namespace Electron {
|
|
|
2121
2612
|
* The screen coordinates the context menu was triggered at
|
|
2122
2613
|
*/
|
|
2123
2614
|
point: Point) => void): this;
|
|
2615
|
+
/**
|
|
2616
|
+
* @platform win32
|
|
2617
|
+
*/
|
|
2618
|
+
off(event: 'system-context-menu', listener: (event: Event,
|
|
2619
|
+
/**
|
|
2620
|
+
* The screen coordinates the context menu was triggered at
|
|
2621
|
+
*/
|
|
2622
|
+
point: Point) => void): this;
|
|
2623
|
+
/**
|
|
2624
|
+
* @platform win32
|
|
2625
|
+
*/
|
|
2124
2626
|
once(event: 'system-context-menu', listener: (event: Event,
|
|
2125
2627
|
/**
|
|
2126
2628
|
* The screen coordinates the context menu was triggered at
|
|
2127
2629
|
*/
|
|
2128
2630
|
point: Point) => void): this;
|
|
2631
|
+
/**
|
|
2632
|
+
* @platform win32
|
|
2633
|
+
*/
|
|
2129
2634
|
addListener(event: 'system-context-menu', listener: (event: Event,
|
|
2130
2635
|
/**
|
|
2131
2636
|
* The screen coordinates the context menu was triggered at
|
|
2132
2637
|
*/
|
|
2133
2638
|
point: Point) => void): this;
|
|
2639
|
+
/**
|
|
2640
|
+
* @platform win32
|
|
2641
|
+
*/
|
|
2134
2642
|
removeListener(event: 'system-context-menu', listener: (event: Event,
|
|
2135
2643
|
/**
|
|
2136
2644
|
* The screen coordinates the context menu was triggered at
|
|
@@ -2140,6 +2648,7 @@ declare namespace Electron {
|
|
|
2140
2648
|
* Emitted when the window exits from a maximized state.
|
|
2141
2649
|
*/
|
|
2142
2650
|
on(event: 'unmaximize', listener: Function): this;
|
|
2651
|
+
off(event: 'unmaximize', listener: Function): this;
|
|
2143
2652
|
once(event: 'unmaximize', listener: Function): this;
|
|
2144
2653
|
addListener(event: 'unmaximize', listener: Function): this;
|
|
2145
2654
|
removeListener(event: 'unmaximize', listener: Function): this;
|
|
@@ -2147,6 +2656,7 @@ declare namespace Electron {
|
|
|
2147
2656
|
* Emitted when the web page becomes unresponsive.
|
|
2148
2657
|
*/
|
|
2149
2658
|
on(event: 'unresponsive', listener: Function): this;
|
|
2659
|
+
off(event: 'unresponsive', listener: Function): this;
|
|
2150
2660
|
once(event: 'unresponsive', listener: Function): this;
|
|
2151
2661
|
addListener(event: 'unresponsive', listener: Function): this;
|
|
2152
2662
|
removeListener(event: 'unresponsive', listener: Function): this;
|
|
@@ -2164,16 +2674,33 @@ declare namespace Electron {
|
|
|
2164
2674
|
* Location the window is being moved to.
|
|
2165
2675
|
*/
|
|
2166
2676
|
newBounds: Rectangle) => void): this;
|
|
2677
|
+
/**
|
|
2678
|
+
* @platform darwin,win32
|
|
2679
|
+
*/
|
|
2680
|
+
off(event: 'will-move', listener: (event: Event,
|
|
2681
|
+
/**
|
|
2682
|
+
* Location the window is being moved to.
|
|
2683
|
+
*/
|
|
2684
|
+
newBounds: Rectangle) => void): this;
|
|
2685
|
+
/**
|
|
2686
|
+
* @platform darwin,win32
|
|
2687
|
+
*/
|
|
2167
2688
|
once(event: 'will-move', listener: (event: Event,
|
|
2168
2689
|
/**
|
|
2169
2690
|
* Location the window is being moved to.
|
|
2170
2691
|
*/
|
|
2171
2692
|
newBounds: Rectangle) => void): this;
|
|
2693
|
+
/**
|
|
2694
|
+
* @platform darwin,win32
|
|
2695
|
+
*/
|
|
2172
2696
|
addListener(event: 'will-move', listener: (event: Event,
|
|
2173
2697
|
/**
|
|
2174
2698
|
* Location the window is being moved to.
|
|
2175
2699
|
*/
|
|
2176
2700
|
newBounds: Rectangle) => void): this;
|
|
2701
|
+
/**
|
|
2702
|
+
* @platform darwin,win32
|
|
2703
|
+
*/
|
|
2177
2704
|
removeListener(event: 'will-move', listener: (event: Event,
|
|
2178
2705
|
/**
|
|
2179
2706
|
* Location the window is being moved to.
|
|
@@ -2203,18 +2730,36 @@ declare namespace Electron {
|
|
|
2203
2730
|
*/
|
|
2204
2731
|
newBounds: Rectangle,
|
|
2205
2732
|
details: WillResizeDetails) => void): this;
|
|
2733
|
+
/**
|
|
2734
|
+
* @platform darwin,win32
|
|
2735
|
+
*/
|
|
2736
|
+
off(event: 'will-resize', listener: (event: Event,
|
|
2737
|
+
/**
|
|
2738
|
+
* Size the window is being resized to.
|
|
2739
|
+
*/
|
|
2740
|
+
newBounds: Rectangle,
|
|
2741
|
+
details: WillResizeDetails) => void): this;
|
|
2742
|
+
/**
|
|
2743
|
+
* @platform darwin,win32
|
|
2744
|
+
*/
|
|
2206
2745
|
once(event: 'will-resize', listener: (event: Event,
|
|
2207
2746
|
/**
|
|
2208
2747
|
* Size the window is being resized to.
|
|
2209
2748
|
*/
|
|
2210
2749
|
newBounds: Rectangle,
|
|
2211
2750
|
details: WillResizeDetails) => void): this;
|
|
2751
|
+
/**
|
|
2752
|
+
* @platform darwin,win32
|
|
2753
|
+
*/
|
|
2212
2754
|
addListener(event: 'will-resize', listener: (event: Event,
|
|
2213
2755
|
/**
|
|
2214
2756
|
* Size the window is being resized to.
|
|
2215
2757
|
*/
|
|
2216
2758
|
newBounds: Rectangle,
|
|
2217
2759
|
details: WillResizeDetails) => void): this;
|
|
2760
|
+
/**
|
|
2761
|
+
* @platform darwin,win32
|
|
2762
|
+
*/
|
|
2218
2763
|
removeListener(event: 'will-resize', listener: (event: Event,
|
|
2219
2764
|
/**
|
|
2220
2765
|
* Size the window is being resized to.
|
|
@@ -3733,6 +4278,7 @@ declare namespace Electron {
|
|
|
3733
4278
|
* the `request` is already closed.
|
|
3734
4279
|
*/
|
|
3735
4280
|
on(event: 'abort', listener: Function): this;
|
|
4281
|
+
off(event: 'abort', listener: Function): this;
|
|
3736
4282
|
once(event: 'abort', listener: Function): this;
|
|
3737
4283
|
addListener(event: 'abort', listener: Function): this;
|
|
3738
4284
|
removeListener(event: 'abort', listener: Function): this;
|
|
@@ -3742,6 +4288,7 @@ declare namespace Electron {
|
|
|
3742
4288
|
* `response` objects.
|
|
3743
4289
|
*/
|
|
3744
4290
|
on(event: 'close', listener: Function): this;
|
|
4291
|
+
off(event: 'close', listener: Function): this;
|
|
3745
4292
|
once(event: 'close', listener: Function): this;
|
|
3746
4293
|
addListener(event: 'close', listener: Function): this;
|
|
3747
4294
|
removeListener(event: 'close', listener: Function): this;
|
|
@@ -3755,6 +4302,11 @@ declare namespace Electron {
|
|
|
3755
4302
|
* an error object providing some information about the failure.
|
|
3756
4303
|
*/
|
|
3757
4304
|
error: Error) => void): this;
|
|
4305
|
+
off(event: 'error', listener: (
|
|
4306
|
+
/**
|
|
4307
|
+
* an error object providing some information about the failure.
|
|
4308
|
+
*/
|
|
4309
|
+
error: Error) => void): this;
|
|
3758
4310
|
once(event: 'error', listener: (
|
|
3759
4311
|
/**
|
|
3760
4312
|
* an error object providing some information about the failure.
|
|
@@ -3775,6 +4327,7 @@ declare namespace Electron {
|
|
|
3775
4327
|
* the `request` object.
|
|
3776
4328
|
*/
|
|
3777
4329
|
on(event: 'finish', listener: Function): this;
|
|
4330
|
+
off(event: 'finish', listener: Function): this;
|
|
3778
4331
|
once(event: 'finish', listener: Function): this;
|
|
3779
4332
|
addListener(event: 'finish', listener: Function): this;
|
|
3780
4333
|
removeListener(event: 'finish', listener: Function): this;
|
|
@@ -3791,6 +4344,8 @@ declare namespace Electron {
|
|
|
3791
4344
|
*/
|
|
3792
4345
|
on(event: 'login', listener: (authInfo: AuthInfo,
|
|
3793
4346
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
4347
|
+
off(event: 'login', listener: (authInfo: AuthInfo,
|
|
4348
|
+
callback: (username?: string, password?: string) => void) => void): this;
|
|
3794
4349
|
once(event: 'login', listener: (authInfo: AuthInfo,
|
|
3795
4350
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
3796
4351
|
addListener(event: 'login', listener: (authInfo: AuthInfo,
|
|
@@ -3807,6 +4362,10 @@ declare namespace Electron {
|
|
|
3807
4362
|
method: string,
|
|
3808
4363
|
redirectUrl: string,
|
|
3809
4364
|
responseHeaders: Record<string, string[]>) => void): this;
|
|
4365
|
+
off(event: 'redirect', listener: (statusCode: number,
|
|
4366
|
+
method: string,
|
|
4367
|
+
redirectUrl: string,
|
|
4368
|
+
responseHeaders: Record<string, string[]>) => void): this;
|
|
3810
4369
|
once(event: 'redirect', listener: (statusCode: number,
|
|
3811
4370
|
method: string,
|
|
3812
4371
|
redirectUrl: string,
|
|
@@ -3824,6 +4383,11 @@ declare namespace Electron {
|
|
|
3824
4383
|
* An object representing the HTTP response message.
|
|
3825
4384
|
*/
|
|
3826
4385
|
response: IncomingMessage) => void): this;
|
|
4386
|
+
off(event: 'response', listener: (
|
|
4387
|
+
/**
|
|
4388
|
+
* An object representing the HTTP response message.
|
|
4389
|
+
*/
|
|
4390
|
+
response: IncomingMessage) => void): this;
|
|
3827
4391
|
once(event: 'response', listener: (
|
|
3828
4392
|
/**
|
|
3829
4393
|
* An object representing the HTTP response message.
|
|
@@ -4227,6 +4791,19 @@ declare namespace Electron {
|
|
|
4227
4791
|
* `true` if the cookie was removed, `false` otherwise.
|
|
4228
4792
|
*/
|
|
4229
4793
|
removed: boolean) => void): this;
|
|
4794
|
+
off(event: 'changed', listener: (event: Event,
|
|
4795
|
+
/**
|
|
4796
|
+
* The cookie that was changed.
|
|
4797
|
+
*/
|
|
4798
|
+
cookie: Cookie,
|
|
4799
|
+
/**
|
|
4800
|
+
* The cause of the change with one of the following values:
|
|
4801
|
+
*/
|
|
4802
|
+
cause: ('explicit' | 'overwrite' | 'expired' | 'evicted' | 'expired-overwrite'),
|
|
4803
|
+
/**
|
|
4804
|
+
* `true` if the cookie was removed, `false` otherwise.
|
|
4805
|
+
*/
|
|
4806
|
+
removed: boolean) => void): this;
|
|
4230
4807
|
once(event: 'changed', listener: (event: Event,
|
|
4231
4808
|
/**
|
|
4232
4809
|
* The cookie that was changed.
|
|
@@ -4434,6 +5011,11 @@ declare namespace Electron {
|
|
|
4434
5011
|
* Reason for detaching debugger.
|
|
4435
5012
|
*/
|
|
4436
5013
|
reason: string) => void): this;
|
|
5014
|
+
off(event: 'detach', listener: (event: Event,
|
|
5015
|
+
/**
|
|
5016
|
+
* Reason for detaching debugger.
|
|
5017
|
+
*/
|
|
5018
|
+
reason: string) => void): this;
|
|
4437
5019
|
once(event: 'detach', listener: (event: Event,
|
|
4438
5020
|
/**
|
|
4439
5021
|
* Reason for detaching debugger.
|
|
@@ -4467,7 +5049,7 @@ declare namespace Electron {
|
|
|
4467
5049
|
* `debugger.sendCommand`.
|
|
4468
5050
|
*/
|
|
4469
5051
|
sessionId: string) => void): this;
|
|
4470
|
-
|
|
5052
|
+
off(event: 'message', listener: (event: Event,
|
|
4471
5053
|
/**
|
|
4472
5054
|
* Method name.
|
|
4473
5055
|
*/
|
|
@@ -4482,7 +5064,7 @@ declare namespace Electron {
|
|
|
4482
5064
|
* `debugger.sendCommand`.
|
|
4483
5065
|
*/
|
|
4484
5066
|
sessionId: string) => void): this;
|
|
4485
|
-
|
|
5067
|
+
once(event: 'message', listener: (event: Event,
|
|
4486
5068
|
/**
|
|
4487
5069
|
* Method name.
|
|
4488
5070
|
*/
|
|
@@ -4497,7 +5079,7 @@ declare namespace Electron {
|
|
|
4497
5079
|
* `debugger.sendCommand`.
|
|
4498
5080
|
*/
|
|
4499
5081
|
sessionId: string) => void): this;
|
|
4500
|
-
|
|
5082
|
+
addListener(event: 'message', listener: (event: Event,
|
|
4501
5083
|
/**
|
|
4502
5084
|
* Method name.
|
|
4503
5085
|
*/
|
|
@@ -4512,14 +5094,29 @@ declare namespace Electron {
|
|
|
4512
5094
|
* `debugger.sendCommand`.
|
|
4513
5095
|
*/
|
|
4514
5096
|
sessionId: string) => void): this;
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
5097
|
+
removeListener(event: 'message', listener: (event: Event,
|
|
5098
|
+
/**
|
|
5099
|
+
* Method name.
|
|
5100
|
+
*/
|
|
5101
|
+
method: string,
|
|
5102
|
+
/**
|
|
5103
|
+
* Event parameters defined by the 'parameters' attribute in the remote debugging
|
|
5104
|
+
* protocol.
|
|
5105
|
+
*/
|
|
5106
|
+
params: any,
|
|
5107
|
+
/**
|
|
5108
|
+
* Unique identifier of attached debugging session, will match the value sent from
|
|
5109
|
+
* `debugger.sendCommand`.
|
|
5110
|
+
*/
|
|
5111
|
+
sessionId: string) => void): this;
|
|
5112
|
+
/**
|
|
5113
|
+
* Attaches the debugger to the `webContents`.
|
|
5114
|
+
*/
|
|
5115
|
+
attach(protocolVersion?: string): void;
|
|
5116
|
+
/**
|
|
5117
|
+
* Detaches the debugger from the `webContents`.
|
|
5118
|
+
*/
|
|
5119
|
+
detach(): void;
|
|
4523
5120
|
/**
|
|
4524
5121
|
* Whether a debugger is attached to the `webContents`.
|
|
4525
5122
|
*/
|
|
@@ -5009,6 +5606,11 @@ declare namespace Electron {
|
|
|
5009
5606
|
* Can be `completed`, `cancelled` or `interrupted`.
|
|
5010
5607
|
*/
|
|
5011
5608
|
state: ('completed' | 'cancelled' | 'interrupted')) => void): this;
|
|
5609
|
+
off(event: 'done', listener: (event: Event,
|
|
5610
|
+
/**
|
|
5611
|
+
* Can be `completed`, `cancelled` or `interrupted`.
|
|
5612
|
+
*/
|
|
5613
|
+
state: ('completed' | 'cancelled' | 'interrupted')) => void): this;
|
|
5012
5614
|
once(event: 'done', listener: (event: Event,
|
|
5013
5615
|
/**
|
|
5014
5616
|
* Can be `completed`, `cancelled` or `interrupted`.
|
|
@@ -5037,6 +5639,11 @@ declare namespace Electron {
|
|
|
5037
5639
|
* Can be `progressing` or `interrupted`.
|
|
5038
5640
|
*/
|
|
5039
5641
|
state: ('progressing' | 'interrupted')) => void): this;
|
|
5642
|
+
off(event: 'updated', listener: (event: Event,
|
|
5643
|
+
/**
|
|
5644
|
+
* Can be `progressing` or `interrupted`.
|
|
5645
|
+
*/
|
|
5646
|
+
state: ('progressing' | 'interrupted')) => void): this;
|
|
5040
5647
|
once(event: 'updated', listener: (event: Event,
|
|
5041
5648
|
/**
|
|
5042
5649
|
* Can be `progressing` or `interrupted`.
|
|
@@ -5373,6 +5980,7 @@ declare namespace Electron {
|
|
|
5373
5980
|
// Docs: https://electronjs.org/docs/api/in-app-purchase
|
|
5374
5981
|
|
|
5375
5982
|
on(event: 'transactions-updated', listener: Function): this;
|
|
5983
|
+
off(event: 'transactions-updated', listener: Function): this;
|
|
5376
5984
|
once(event: 'transactions-updated', listener: Function): this;
|
|
5377
5985
|
addListener(event: 'transactions-updated', listener: Function): this;
|
|
5378
5986
|
removeListener(event: 'transactions-updated', listener: Function): this;
|
|
@@ -5425,6 +6033,7 @@ declare namespace Electron {
|
|
|
5425
6033
|
* Emitted when a request has been canceled during an ongoing HTTP transaction.
|
|
5426
6034
|
*/
|
|
5427
6035
|
on(event: 'aborted', listener: Function): this;
|
|
6036
|
+
off(event: 'aborted', listener: Function): this;
|
|
5428
6037
|
once(event: 'aborted', listener: Function): this;
|
|
5429
6038
|
addListener(event: 'aborted', listener: Function): this;
|
|
5430
6039
|
removeListener(event: 'aborted', listener: Function): this;
|
|
@@ -5437,6 +6046,11 @@ declare namespace Electron {
|
|
|
5437
6046
|
* A chunk of response body's data.
|
|
5438
6047
|
*/
|
|
5439
6048
|
chunk: Buffer) => void): this;
|
|
6049
|
+
off(event: 'data', listener: (
|
|
6050
|
+
/**
|
|
6051
|
+
* A chunk of response body's data.
|
|
6052
|
+
*/
|
|
6053
|
+
chunk: Buffer) => void): this;
|
|
5440
6054
|
once(event: 'data', listener: (
|
|
5441
6055
|
/**
|
|
5442
6056
|
* A chunk of response body's data.
|
|
@@ -5456,6 +6070,7 @@ declare namespace Electron {
|
|
|
5456
6070
|
* Indicates that response body has ended. Must be placed before 'data' event.
|
|
5457
6071
|
*/
|
|
5458
6072
|
on(event: 'end', listener: Function): this;
|
|
6073
|
+
off(event: 'end', listener: Function): this;
|
|
5459
6074
|
once(event: 'end', listener: Function): this;
|
|
5460
6075
|
addListener(event: 'end', listener: Function): this;
|
|
5461
6076
|
removeListener(event: 'end', listener: Function): this;
|
|
@@ -5470,6 +6085,7 @@ declare namespace Electron {
|
|
|
5470
6085
|
* event will subsequently follow on the request object.
|
|
5471
6086
|
*/
|
|
5472
6087
|
on(event: 'error', listener: Function): this;
|
|
6088
|
+
off(event: 'error', listener: Function): this;
|
|
5473
6089
|
once(event: 'error', listener: Function): this;
|
|
5474
6090
|
addListener(event: 'error', listener: Function): this;
|
|
5475
6091
|
removeListener(event: 'error', listener: Function): this;
|
|
@@ -6000,6 +6616,7 @@ declare namespace Electron {
|
|
|
6000
6616
|
* Emitted when a popup is closed either manually or with `menu.closePopup()`.
|
|
6001
6617
|
*/
|
|
6002
6618
|
on(event: 'menu-will-close', listener: (event: Event) => void): this;
|
|
6619
|
+
off(event: 'menu-will-close', listener: (event: Event) => void): this;
|
|
6003
6620
|
once(event: 'menu-will-close', listener: (event: Event) => void): this;
|
|
6004
6621
|
addListener(event: 'menu-will-close', listener: (event: Event) => void): this;
|
|
6005
6622
|
removeListener(event: 'menu-will-close', listener: (event: Event) => void): this;
|
|
@@ -6007,6 +6624,7 @@ declare namespace Electron {
|
|
|
6007
6624
|
* Emitted when `menu.popup()` is called.
|
|
6008
6625
|
*/
|
|
6009
6626
|
on(event: 'menu-will-show', listener: (event: Event) => void): this;
|
|
6627
|
+
off(event: 'menu-will-show', listener: (event: Event) => void): this;
|
|
6010
6628
|
once(event: 'menu-will-show', listener: (event: Event) => void): this;
|
|
6011
6629
|
addListener(event: 'menu-will-show', listener: (event: Event) => void): this;
|
|
6012
6630
|
removeListener(event: 'menu-will-show', listener: (event: Event) => void): this;
|
|
@@ -6215,7 +6833,7 @@ declare namespace Electron {
|
|
|
6215
6833
|
visible: boolean;
|
|
6216
6834
|
}
|
|
6217
6835
|
|
|
6218
|
-
class MessageChannelMain
|
|
6836
|
+
class MessageChannelMain {
|
|
6219
6837
|
|
|
6220
6838
|
// Docs: https://electronjs.org/docs/api/message-channel-main
|
|
6221
6839
|
|
|
@@ -6237,6 +6855,7 @@ declare namespace Electron {
|
|
|
6237
6855
|
* Emitted when the remote end of a MessagePortMain object becomes disconnected.
|
|
6238
6856
|
*/
|
|
6239
6857
|
on(event: 'close', listener: Function): this;
|
|
6858
|
+
off(event: 'close', listener: Function): this;
|
|
6240
6859
|
once(event: 'close', listener: Function): this;
|
|
6241
6860
|
addListener(event: 'close', listener: Function): this;
|
|
6242
6861
|
removeListener(event: 'close', listener: Function): this;
|
|
@@ -6244,6 +6863,7 @@ declare namespace Electron {
|
|
|
6244
6863
|
* Emitted when a MessagePortMain object receives a message.
|
|
6245
6864
|
*/
|
|
6246
6865
|
on(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6866
|
+
off(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6247
6867
|
once(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6248
6868
|
addListener(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6249
6869
|
removeListener(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
@@ -6493,6 +7113,7 @@ declare namespace Electron {
|
|
|
6493
7113
|
* will have to check them to determine which one has changed.
|
|
6494
7114
|
*/
|
|
6495
7115
|
on(event: 'updated', listener: Function): this;
|
|
7116
|
+
off(event: 'updated', listener: Function): this;
|
|
6496
7117
|
once(event: 'updated', listener: Function): this;
|
|
6497
7118
|
addListener(event: 'updated', listener: Function): this;
|
|
6498
7119
|
removeListener(event: 'updated', listener: Function): this;
|
|
@@ -6595,6 +7216,8 @@ declare namespace Electron {
|
|
|
6595
7216
|
* protocol handlers will not be called for this request. This allows forwarding an
|
|
6596
7217
|
* intercepted request to the built-in handler. webRequest handlers will still be
|
|
6597
7218
|
* triggered when bypassing custom protocols.
|
|
7219
|
+
*
|
|
7220
|
+
* Note: in the utility process custom protocols are not supported.
|
|
6598
7221
|
*/
|
|
6599
7222
|
fetch(input: (string) | (GlobalRequest), init?: RequestInit & { bypassCustomProtocolHandlers?: boolean }): Promise<GlobalResponse>;
|
|
6600
7223
|
/**
|
|
@@ -6669,16 +7292,33 @@ declare namespace Electron {
|
|
|
6669
7292
|
* The index of the action that was activated.
|
|
6670
7293
|
*/
|
|
6671
7294
|
index: number) => void): this;
|
|
7295
|
+
/**
|
|
7296
|
+
* @platform darwin
|
|
7297
|
+
*/
|
|
7298
|
+
off(event: 'action', listener: (event: Event,
|
|
7299
|
+
/**
|
|
7300
|
+
* The index of the action that was activated.
|
|
7301
|
+
*/
|
|
7302
|
+
index: number) => void): this;
|
|
7303
|
+
/**
|
|
7304
|
+
* @platform darwin
|
|
7305
|
+
*/
|
|
6672
7306
|
once(event: 'action', listener: (event: Event,
|
|
6673
7307
|
/**
|
|
6674
7308
|
* The index of the action that was activated.
|
|
6675
7309
|
*/
|
|
6676
7310
|
index: number) => void): this;
|
|
7311
|
+
/**
|
|
7312
|
+
* @platform darwin
|
|
7313
|
+
*/
|
|
6677
7314
|
addListener(event: 'action', listener: (event: Event,
|
|
6678
7315
|
/**
|
|
6679
7316
|
* The index of the action that was activated.
|
|
6680
7317
|
*/
|
|
6681
7318
|
index: number) => void): this;
|
|
7319
|
+
/**
|
|
7320
|
+
* @platform darwin
|
|
7321
|
+
*/
|
|
6682
7322
|
removeListener(event: 'action', listener: (event: Event,
|
|
6683
7323
|
/**
|
|
6684
7324
|
* The index of the action that was activated.
|
|
@@ -6688,6 +7328,7 @@ declare namespace Electron {
|
|
|
6688
7328
|
* Emitted when the notification is clicked by the user.
|
|
6689
7329
|
*/
|
|
6690
7330
|
on(event: 'click', listener: (event: Event) => void): this;
|
|
7331
|
+
off(event: 'click', listener: (event: Event) => void): this;
|
|
6691
7332
|
once(event: 'click', listener: (event: Event) => void): this;
|
|
6692
7333
|
addListener(event: 'click', listener: (event: Event) => void): this;
|
|
6693
7334
|
removeListener(event: 'click', listener: (event: Event) => void): this;
|
|
@@ -6705,6 +7346,7 @@ declare namespace Electron {
|
|
|
6705
7346
|
* again.
|
|
6706
7347
|
*/
|
|
6707
7348
|
on(event: 'close', listener: (event: Event) => void): this;
|
|
7349
|
+
off(event: 'close', listener: (event: Event) => void): this;
|
|
6708
7350
|
once(event: 'close', listener: (event: Event) => void): this;
|
|
6709
7351
|
addListener(event: 'close', listener: (event: Event) => void): this;
|
|
6710
7352
|
removeListener(event: 'close', listener: (event: Event) => void): this;
|
|
@@ -6719,16 +7361,33 @@ declare namespace Electron {
|
|
|
6719
7361
|
* The error encountered during execution of the `show()` method.
|
|
6720
7362
|
*/
|
|
6721
7363
|
error: string) => void): this;
|
|
7364
|
+
/**
|
|
7365
|
+
* @platform win32
|
|
7366
|
+
*/
|
|
7367
|
+
off(event: 'failed', listener: (event: Event,
|
|
7368
|
+
/**
|
|
7369
|
+
* The error encountered during execution of the `show()` method.
|
|
7370
|
+
*/
|
|
7371
|
+
error: string) => void): this;
|
|
7372
|
+
/**
|
|
7373
|
+
* @platform win32
|
|
7374
|
+
*/
|
|
6722
7375
|
once(event: 'failed', listener: (event: Event,
|
|
6723
7376
|
/**
|
|
6724
7377
|
* The error encountered during execution of the `show()` method.
|
|
6725
7378
|
*/
|
|
6726
7379
|
error: string) => void): this;
|
|
7380
|
+
/**
|
|
7381
|
+
* @platform win32
|
|
7382
|
+
*/
|
|
6727
7383
|
addListener(event: 'failed', listener: (event: Event,
|
|
6728
7384
|
/**
|
|
6729
7385
|
* The error encountered during execution of the `show()` method.
|
|
6730
7386
|
*/
|
|
6731
7387
|
error: string) => void): this;
|
|
7388
|
+
/**
|
|
7389
|
+
* @platform win32
|
|
7390
|
+
*/
|
|
6732
7391
|
removeListener(event: 'failed', listener: (event: Event,
|
|
6733
7392
|
/**
|
|
6734
7393
|
* The error encountered during execution of the `show()` method.
|
|
@@ -6745,16 +7404,33 @@ declare namespace Electron {
|
|
|
6745
7404
|
* The string the user entered into the inline reply field.
|
|
6746
7405
|
*/
|
|
6747
7406
|
reply: string) => void): this;
|
|
7407
|
+
/**
|
|
7408
|
+
* @platform darwin
|
|
7409
|
+
*/
|
|
7410
|
+
off(event: 'reply', listener: (event: Event,
|
|
7411
|
+
/**
|
|
7412
|
+
* The string the user entered into the inline reply field.
|
|
7413
|
+
*/
|
|
7414
|
+
reply: string) => void): this;
|
|
7415
|
+
/**
|
|
7416
|
+
* @platform darwin
|
|
7417
|
+
*/
|
|
6748
7418
|
once(event: 'reply', listener: (event: Event,
|
|
6749
7419
|
/**
|
|
6750
7420
|
* The string the user entered into the inline reply field.
|
|
6751
7421
|
*/
|
|
6752
7422
|
reply: string) => void): this;
|
|
7423
|
+
/**
|
|
7424
|
+
* @platform darwin
|
|
7425
|
+
*/
|
|
6753
7426
|
addListener(event: 'reply', listener: (event: Event,
|
|
6754
7427
|
/**
|
|
6755
7428
|
* The string the user entered into the inline reply field.
|
|
6756
7429
|
*/
|
|
6757
7430
|
reply: string) => void): this;
|
|
7431
|
+
/**
|
|
7432
|
+
* @platform darwin
|
|
7433
|
+
*/
|
|
6758
7434
|
removeListener(event: 'reply', listener: (event: Event,
|
|
6759
7435
|
/**
|
|
6760
7436
|
* The string the user entered into the inline reply field.
|
|
@@ -6766,6 +7442,7 @@ declare namespace Electron {
|
|
|
6766
7442
|
* `show()` method.
|
|
6767
7443
|
*/
|
|
6768
7444
|
on(event: 'show', listener: (event: Event) => void): this;
|
|
7445
|
+
off(event: 'show', listener: (event: Event) => void): this;
|
|
6769
7446
|
once(event: 'show', listener: (event: Event) => void): this;
|
|
6770
7447
|
addListener(event: 'show', listener: (event: Event) => void): this;
|
|
6771
7448
|
removeListener(event: 'show', listener: (event: Event) => void): this;
|
|
@@ -6908,6 +7585,7 @@ declare namespace Electron {
|
|
|
6908
7585
|
* be queued up until a handler is registered for this event.
|
|
6909
7586
|
*/
|
|
6910
7587
|
on(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
7588
|
+
off(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6911
7589
|
once(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6912
7590
|
addListener(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
6913
7591
|
removeListener(event: 'message', listener: (messageEvent: MessageEvent) => void): this;
|
|
@@ -6984,8 +7662,21 @@ declare namespace Electron {
|
|
|
6984
7662
|
* @platform darwin,win32
|
|
6985
7663
|
*/
|
|
6986
7664
|
on(event: 'lock-screen', listener: Function): this;
|
|
7665
|
+
/**
|
|
7666
|
+
* @platform darwin,win32
|
|
7667
|
+
*/
|
|
7668
|
+
off(event: 'lock-screen', listener: Function): this;
|
|
7669
|
+
/**
|
|
7670
|
+
* @platform darwin,win32
|
|
7671
|
+
*/
|
|
6987
7672
|
once(event: 'lock-screen', listener: Function): this;
|
|
7673
|
+
/**
|
|
7674
|
+
* @platform darwin,win32
|
|
7675
|
+
*/
|
|
6988
7676
|
addListener(event: 'lock-screen', listener: Function): this;
|
|
7677
|
+
/**
|
|
7678
|
+
* @platform darwin,win32
|
|
7679
|
+
*/
|
|
6989
7680
|
removeListener(event: 'lock-screen', listener: Function): this;
|
|
6990
7681
|
/**
|
|
6991
7682
|
* Emitted when the system changes to AC power.
|
|
@@ -6993,8 +7684,21 @@ declare namespace Electron {
|
|
|
6993
7684
|
* @platform darwin,win32
|
|
6994
7685
|
*/
|
|
6995
7686
|
on(event: 'on-ac', listener: Function): this;
|
|
7687
|
+
/**
|
|
7688
|
+
* @platform darwin,win32
|
|
7689
|
+
*/
|
|
7690
|
+
off(event: 'on-ac', listener: Function): this;
|
|
7691
|
+
/**
|
|
7692
|
+
* @platform darwin,win32
|
|
7693
|
+
*/
|
|
6996
7694
|
once(event: 'on-ac', listener: Function): this;
|
|
7695
|
+
/**
|
|
7696
|
+
* @platform darwin,win32
|
|
7697
|
+
*/
|
|
6997
7698
|
addListener(event: 'on-ac', listener: Function): this;
|
|
7699
|
+
/**
|
|
7700
|
+
* @platform darwin,win32
|
|
7701
|
+
*/
|
|
6998
7702
|
removeListener(event: 'on-ac', listener: Function): this;
|
|
6999
7703
|
/**
|
|
7000
7704
|
* Emitted when system changes to battery power.
|
|
@@ -7002,13 +7706,27 @@ declare namespace Electron {
|
|
|
7002
7706
|
* @platform darwin
|
|
7003
7707
|
*/
|
|
7004
7708
|
on(event: 'on-battery', listener: Function): this;
|
|
7709
|
+
/**
|
|
7710
|
+
* @platform darwin
|
|
7711
|
+
*/
|
|
7712
|
+
off(event: 'on-battery', listener: Function): this;
|
|
7713
|
+
/**
|
|
7714
|
+
* @platform darwin
|
|
7715
|
+
*/
|
|
7005
7716
|
once(event: 'on-battery', listener: Function): this;
|
|
7717
|
+
/**
|
|
7718
|
+
* @platform darwin
|
|
7719
|
+
*/
|
|
7006
7720
|
addListener(event: 'on-battery', listener: Function): this;
|
|
7721
|
+
/**
|
|
7722
|
+
* @platform darwin
|
|
7723
|
+
*/
|
|
7007
7724
|
removeListener(event: 'on-battery', listener: Function): this;
|
|
7008
7725
|
/**
|
|
7009
7726
|
* Emitted when system is resuming.
|
|
7010
7727
|
*/
|
|
7011
7728
|
on(event: 'resume', listener: Function): this;
|
|
7729
|
+
off(event: 'resume', listener: Function): this;
|
|
7012
7730
|
once(event: 'resume', listener: Function): this;
|
|
7013
7731
|
addListener(event: 'resume', listener: Function): this;
|
|
7014
7732
|
removeListener(event: 'resume', listener: Function): this;
|
|
@@ -7021,8 +7739,21 @@ declare namespace Electron {
|
|
|
7021
7739
|
* @platform linux,darwin
|
|
7022
7740
|
*/
|
|
7023
7741
|
on(event: 'shutdown', listener: Function): this;
|
|
7742
|
+
/**
|
|
7743
|
+
* @platform linux,darwin
|
|
7744
|
+
*/
|
|
7745
|
+
off(event: 'shutdown', listener: Function): this;
|
|
7746
|
+
/**
|
|
7747
|
+
* @platform linux,darwin
|
|
7748
|
+
*/
|
|
7024
7749
|
once(event: 'shutdown', listener: Function): this;
|
|
7750
|
+
/**
|
|
7751
|
+
* @platform linux,darwin
|
|
7752
|
+
*/
|
|
7025
7753
|
addListener(event: 'shutdown', listener: Function): this;
|
|
7754
|
+
/**
|
|
7755
|
+
* @platform linux,darwin
|
|
7756
|
+
*/
|
|
7026
7757
|
removeListener(event: 'shutdown', listener: Function): this;
|
|
7027
7758
|
/**
|
|
7028
7759
|
* Notification of a change in the operating system's advertised speed limit for
|
|
@@ -7032,13 +7763,27 @@ declare namespace Electron {
|
|
|
7032
7763
|
* @platform darwin,win32
|
|
7033
7764
|
*/
|
|
7034
7765
|
on(event: 'speed-limit-change', listener: Function): this;
|
|
7766
|
+
/**
|
|
7767
|
+
* @platform darwin,win32
|
|
7768
|
+
*/
|
|
7769
|
+
off(event: 'speed-limit-change', listener: Function): this;
|
|
7770
|
+
/**
|
|
7771
|
+
* @platform darwin,win32
|
|
7772
|
+
*/
|
|
7035
7773
|
once(event: 'speed-limit-change', listener: Function): this;
|
|
7774
|
+
/**
|
|
7775
|
+
* @platform darwin,win32
|
|
7776
|
+
*/
|
|
7036
7777
|
addListener(event: 'speed-limit-change', listener: Function): this;
|
|
7778
|
+
/**
|
|
7779
|
+
* @platform darwin,win32
|
|
7780
|
+
*/
|
|
7037
7781
|
removeListener(event: 'speed-limit-change', listener: Function): this;
|
|
7038
7782
|
/**
|
|
7039
7783
|
* Emitted when the system is suspending.
|
|
7040
7784
|
*/
|
|
7041
7785
|
on(event: 'suspend', listener: Function): this;
|
|
7786
|
+
off(event: 'suspend', listener: Function): this;
|
|
7042
7787
|
once(event: 'suspend', listener: Function): this;
|
|
7043
7788
|
addListener(event: 'suspend', listener: Function): this;
|
|
7044
7789
|
removeListener(event: 'suspend', listener: Function): this;
|
|
@@ -7059,8 +7804,21 @@ declare namespace Electron {
|
|
|
7059
7804
|
* @platform darwin
|
|
7060
7805
|
*/
|
|
7061
7806
|
on(event: 'thermal-state-change', listener: Function): this;
|
|
7807
|
+
/**
|
|
7808
|
+
* @platform darwin
|
|
7809
|
+
*/
|
|
7810
|
+
off(event: 'thermal-state-change', listener: Function): this;
|
|
7811
|
+
/**
|
|
7812
|
+
* @platform darwin
|
|
7813
|
+
*/
|
|
7062
7814
|
once(event: 'thermal-state-change', listener: Function): this;
|
|
7815
|
+
/**
|
|
7816
|
+
* @platform darwin
|
|
7817
|
+
*/
|
|
7063
7818
|
addListener(event: 'thermal-state-change', listener: Function): this;
|
|
7819
|
+
/**
|
|
7820
|
+
* @platform darwin
|
|
7821
|
+
*/
|
|
7064
7822
|
removeListener(event: 'thermal-state-change', listener: Function): this;
|
|
7065
7823
|
/**
|
|
7066
7824
|
* Emitted as soon as the systems screen is unlocked.
|
|
@@ -7068,8 +7826,21 @@ declare namespace Electron {
|
|
|
7068
7826
|
* @platform darwin,win32
|
|
7069
7827
|
*/
|
|
7070
7828
|
on(event: 'unlock-screen', listener: Function): this;
|
|
7829
|
+
/**
|
|
7830
|
+
* @platform darwin,win32
|
|
7831
|
+
*/
|
|
7832
|
+
off(event: 'unlock-screen', listener: Function): this;
|
|
7833
|
+
/**
|
|
7834
|
+
* @platform darwin,win32
|
|
7835
|
+
*/
|
|
7071
7836
|
once(event: 'unlock-screen', listener: Function): this;
|
|
7837
|
+
/**
|
|
7838
|
+
* @platform darwin,win32
|
|
7839
|
+
*/
|
|
7072
7840
|
addListener(event: 'unlock-screen', listener: Function): this;
|
|
7841
|
+
/**
|
|
7842
|
+
* @platform darwin,win32
|
|
7843
|
+
*/
|
|
7073
7844
|
removeListener(event: 'unlock-screen', listener: Function): this;
|
|
7074
7845
|
/**
|
|
7075
7846
|
* Emitted when a login session is activated. See documentation for more
|
|
@@ -7078,8 +7849,21 @@ declare namespace Electron {
|
|
|
7078
7849
|
* @platform darwin
|
|
7079
7850
|
*/
|
|
7080
7851
|
on(event: 'user-did-become-active', listener: Function): this;
|
|
7852
|
+
/**
|
|
7853
|
+
* @platform darwin
|
|
7854
|
+
*/
|
|
7855
|
+
off(event: 'user-did-become-active', listener: Function): this;
|
|
7856
|
+
/**
|
|
7857
|
+
* @platform darwin
|
|
7858
|
+
*/
|
|
7081
7859
|
once(event: 'user-did-become-active', listener: Function): this;
|
|
7860
|
+
/**
|
|
7861
|
+
* @platform darwin
|
|
7862
|
+
*/
|
|
7082
7863
|
addListener(event: 'user-did-become-active', listener: Function): this;
|
|
7864
|
+
/**
|
|
7865
|
+
* @platform darwin
|
|
7866
|
+
*/
|
|
7083
7867
|
removeListener(event: 'user-did-become-active', listener: Function): this;
|
|
7084
7868
|
/**
|
|
7085
7869
|
* Emitted when a login session is deactivated. See documentation for more
|
|
@@ -7088,8 +7872,21 @@ declare namespace Electron {
|
|
|
7088
7872
|
* @platform darwin
|
|
7089
7873
|
*/
|
|
7090
7874
|
on(event: 'user-did-resign-active', listener: Function): this;
|
|
7875
|
+
/**
|
|
7876
|
+
* @platform darwin
|
|
7877
|
+
*/
|
|
7878
|
+
off(event: 'user-did-resign-active', listener: Function): this;
|
|
7879
|
+
/**
|
|
7880
|
+
* @platform darwin
|
|
7881
|
+
*/
|
|
7091
7882
|
once(event: 'user-did-resign-active', listener: Function): this;
|
|
7883
|
+
/**
|
|
7884
|
+
* @platform darwin
|
|
7885
|
+
*/
|
|
7092
7886
|
addListener(event: 'user-did-resign-active', listener: Function): this;
|
|
7887
|
+
/**
|
|
7888
|
+
* @platform darwin
|
|
7889
|
+
*/
|
|
7093
7890
|
removeListener(event: 'user-did-resign-active', listener: Function): this;
|
|
7094
7891
|
/**
|
|
7095
7892
|
* The system's current thermal state. Can be `unknown`, `nominal`, `fair`,
|
|
@@ -7683,10 +8480,24 @@ declare namespace Electron {
|
|
|
7683
8480
|
*/
|
|
7684
8481
|
on(event: 'received-apns-notification', listener: (event: Event,
|
|
7685
8482
|
userInfo: Record<string, any>) => void): this;
|
|
8483
|
+
/**
|
|
8484
|
+
* @platform darwin
|
|
8485
|
+
*/
|
|
8486
|
+
off(event: 'received-apns-notification', listener: (event: Event,
|
|
8487
|
+
userInfo: Record<string, any>) => void): this;
|
|
8488
|
+
/**
|
|
8489
|
+
* @platform darwin
|
|
8490
|
+
*/
|
|
7686
8491
|
once(event: 'received-apns-notification', listener: (event: Event,
|
|
7687
8492
|
userInfo: Record<string, any>) => void): this;
|
|
8493
|
+
/**
|
|
8494
|
+
* @platform darwin
|
|
8495
|
+
*/
|
|
7688
8496
|
addListener(event: 'received-apns-notification', listener: (event: Event,
|
|
7689
8497
|
userInfo: Record<string, any>) => void): this;
|
|
8498
|
+
/**
|
|
8499
|
+
* @platform darwin
|
|
8500
|
+
*/
|
|
7690
8501
|
removeListener(event: 'received-apns-notification', listener: (event: Event,
|
|
7691
8502
|
userInfo: Record<string, any>) => void): this;
|
|
7692
8503
|
/**
|
|
@@ -7846,6 +8657,8 @@ declare namespace Electron {
|
|
|
7846
8657
|
*/
|
|
7847
8658
|
on(event: 'display-added', listener: (event: Event,
|
|
7848
8659
|
newDisplay: Display) => void): this;
|
|
8660
|
+
off(event: 'display-added', listener: (event: Event,
|
|
8661
|
+
newDisplay: Display) => void): this;
|
|
7849
8662
|
once(event: 'display-added', listener: (event: Event,
|
|
7850
8663
|
newDisplay: Display) => void): this;
|
|
7851
8664
|
addListener(event: 'display-added', listener: (event: Event,
|
|
@@ -7860,6 +8673,9 @@ declare namespace Electron {
|
|
|
7860
8673
|
on(event: 'display-metrics-changed', listener: (event: Event,
|
|
7861
8674
|
display: Display,
|
|
7862
8675
|
changedMetrics: string[]) => void): this;
|
|
8676
|
+
off(event: 'display-metrics-changed', listener: (event: Event,
|
|
8677
|
+
display: Display,
|
|
8678
|
+
changedMetrics: string[]) => void): this;
|
|
7863
8679
|
once(event: 'display-metrics-changed', listener: (event: Event,
|
|
7864
8680
|
display: Display,
|
|
7865
8681
|
changedMetrics: string[]) => void): this;
|
|
@@ -7874,6 +8690,8 @@ declare namespace Electron {
|
|
|
7874
8690
|
*/
|
|
7875
8691
|
on(event: 'display-removed', listener: (event: Event,
|
|
7876
8692
|
oldDisplay: Display) => void): this;
|
|
8693
|
+
off(event: 'display-removed', listener: (event: Event,
|
|
8694
|
+
oldDisplay: Display) => void): this;
|
|
7877
8695
|
once(event: 'display-removed', listener: (event: Event,
|
|
7878
8696
|
oldDisplay: Display) => void): this;
|
|
7879
8697
|
addListener(event: 'display-removed', listener: (event: Event,
|
|
@@ -8040,6 +8858,11 @@ declare namespace Electron {
|
|
|
8040
8858
|
* Information about the console message
|
|
8041
8859
|
*/
|
|
8042
8860
|
messageDetails: MessageDetails) => void): this;
|
|
8861
|
+
off(event: 'console-message', listener: (event: Event,
|
|
8862
|
+
/**
|
|
8863
|
+
* Information about the console message
|
|
8864
|
+
*/
|
|
8865
|
+
messageDetails: MessageDetails) => void): this;
|
|
8043
8866
|
once(event: 'console-message', listener: (event: Event,
|
|
8044
8867
|
/**
|
|
8045
8868
|
* Information about the console message
|
|
@@ -8065,6 +8888,11 @@ declare namespace Electron {
|
|
|
8065
8888
|
* Information about the registered service worker
|
|
8066
8889
|
*/
|
|
8067
8890
|
details: RegistrationCompletedDetails) => void): this;
|
|
8891
|
+
off(event: 'registration-completed', listener: (event: Event,
|
|
8892
|
+
/**
|
|
8893
|
+
* Information about the registered service worker
|
|
8894
|
+
*/
|
|
8895
|
+
details: RegistrationCompletedDetails) => void): this;
|
|
8068
8896
|
once(event: 'registration-completed', listener: (event: Event,
|
|
8069
8897
|
/**
|
|
8070
8898
|
* Information about the registered service worker
|
|
@@ -8140,6 +8968,8 @@ declare namespace Electron {
|
|
|
8140
8968
|
*/
|
|
8141
8969
|
on(event: 'extension-loaded', listener: (event: Event,
|
|
8142
8970
|
extension: Extension) => void): this;
|
|
8971
|
+
off(event: 'extension-loaded', listener: (event: Event,
|
|
8972
|
+
extension: Extension) => void): this;
|
|
8143
8973
|
once(event: 'extension-loaded', listener: (event: Event,
|
|
8144
8974
|
extension: Extension) => void): this;
|
|
8145
8975
|
addListener(event: 'extension-loaded', listener: (event: Event,
|
|
@@ -8152,6 +8982,8 @@ declare namespace Electron {
|
|
|
8152
8982
|
*/
|
|
8153
8983
|
on(event: 'extension-ready', listener: (event: Event,
|
|
8154
8984
|
extension: Extension) => void): this;
|
|
8985
|
+
off(event: 'extension-ready', listener: (event: Event,
|
|
8986
|
+
extension: Extension) => void): this;
|
|
8155
8987
|
once(event: 'extension-ready', listener: (event: Event,
|
|
8156
8988
|
extension: Extension) => void): this;
|
|
8157
8989
|
addListener(event: 'extension-ready', listener: (event: Event,
|
|
@@ -8164,6 +8996,8 @@ declare namespace Electron {
|
|
|
8164
8996
|
*/
|
|
8165
8997
|
on(event: 'extension-unloaded', listener: (event: Event,
|
|
8166
8998
|
extension: Extension) => void): this;
|
|
8999
|
+
off(event: 'extension-unloaded', listener: (event: Event,
|
|
9000
|
+
extension: Extension) => void): this;
|
|
8167
9001
|
once(event: 'extension-unloaded', listener: (event: Event,
|
|
8168
9002
|
extension: Extension) => void): this;
|
|
8169
9003
|
addListener(event: 'extension-unloaded', listener: (event: Event,
|
|
@@ -8179,6 +9013,8 @@ declare namespace Electron {
|
|
|
8179
9013
|
*/
|
|
8180
9014
|
on(event: 'hid-device-added', listener: (event: Event,
|
|
8181
9015
|
details: HidDeviceAddedDetails) => void): this;
|
|
9016
|
+
off(event: 'hid-device-added', listener: (event: Event,
|
|
9017
|
+
details: HidDeviceAddedDetails) => void): this;
|
|
8182
9018
|
once(event: 'hid-device-added', listener: (event: Event,
|
|
8183
9019
|
details: HidDeviceAddedDetails) => void): this;
|
|
8184
9020
|
addListener(event: 'hid-device-added', listener: (event: Event,
|
|
@@ -8194,6 +9030,8 @@ declare namespace Electron {
|
|
|
8194
9030
|
*/
|
|
8195
9031
|
on(event: 'hid-device-removed', listener: (event: Event,
|
|
8196
9032
|
details: HidDeviceRemovedDetails) => void): this;
|
|
9033
|
+
off(event: 'hid-device-removed', listener: (event: Event,
|
|
9034
|
+
details: HidDeviceRemovedDetails) => void): this;
|
|
8197
9035
|
once(event: 'hid-device-removed', listener: (event: Event,
|
|
8198
9036
|
details: HidDeviceRemovedDetails) => void): this;
|
|
8199
9037
|
addListener(event: 'hid-device-removed', listener: (event: Event,
|
|
@@ -8207,6 +9045,8 @@ declare namespace Electron {
|
|
|
8207
9045
|
*/
|
|
8208
9046
|
on(event: 'hid-device-revoked', listener: (event: Event,
|
|
8209
9047
|
details: HidDeviceRevokedDetails) => void): this;
|
|
9048
|
+
off(event: 'hid-device-revoked', listener: (event: Event,
|
|
9049
|
+
details: HidDeviceRevokedDetails) => void): this;
|
|
8210
9050
|
once(event: 'hid-device-revoked', listener: (event: Event,
|
|
8211
9051
|
details: HidDeviceRevokedDetails) => void): this;
|
|
8212
9052
|
addListener(event: 'hid-device-revoked', listener: (event: Event,
|
|
@@ -8227,6 +9067,16 @@ declare namespace Electron {
|
|
|
8227
9067
|
* the spec for more details.)
|
|
8228
9068
|
*/
|
|
8229
9069
|
allowCredentials: boolean) => void): this;
|
|
9070
|
+
off(event: 'preconnect', listener: (event: Event,
|
|
9071
|
+
/**
|
|
9072
|
+
* The URL being requested for preconnection by the renderer.
|
|
9073
|
+
*/
|
|
9074
|
+
preconnectUrl: string,
|
|
9075
|
+
/**
|
|
9076
|
+
* True if the renderer is requesting that the connection include credentials (see
|
|
9077
|
+
* the spec for more details.)
|
|
9078
|
+
*/
|
|
9079
|
+
allowCredentials: boolean) => void): this;
|
|
8230
9080
|
once(event: 'preconnect', listener: (event: Event,
|
|
8231
9081
|
/**
|
|
8232
9082
|
* The URL being requested for preconnection by the renderer.
|
|
@@ -8268,6 +9118,9 @@ declare namespace Electron {
|
|
|
8268
9118
|
on(event: 'select-hid-device', listener: (event: Event,
|
|
8269
9119
|
details: SelectHidDeviceDetails,
|
|
8270
9120
|
callback: (deviceId?: (string) | (null)) => void) => void): this;
|
|
9121
|
+
off(event: 'select-hid-device', listener: (event: Event,
|
|
9122
|
+
details: SelectHidDeviceDetails,
|
|
9123
|
+
callback: (deviceId?: (string) | (null)) => void) => void): this;
|
|
8271
9124
|
once(event: 'select-hid-device', listener: (event: Event,
|
|
8272
9125
|
details: SelectHidDeviceDetails,
|
|
8273
9126
|
callback: (deviceId?: (string) | (null)) => void) => void): this;
|
|
@@ -8288,6 +9141,10 @@ declare namespace Electron {
|
|
|
8288
9141
|
portList: SerialPort[],
|
|
8289
9142
|
webContents: WebContents,
|
|
8290
9143
|
callback: (portId: string) => void) => void): this;
|
|
9144
|
+
off(event: 'select-serial-port', listener: (event: Event,
|
|
9145
|
+
portList: SerialPort[],
|
|
9146
|
+
webContents: WebContents,
|
|
9147
|
+
callback: (portId: string) => void) => void): this;
|
|
8291
9148
|
once(event: 'select-serial-port', listener: (event: Event,
|
|
8292
9149
|
portList: SerialPort[],
|
|
8293
9150
|
webContents: WebContents,
|
|
@@ -8311,6 +9168,9 @@ declare namespace Electron {
|
|
|
8311
9168
|
on(event: 'select-usb-device', listener: (event: Event,
|
|
8312
9169
|
details: SelectUsbDeviceDetails,
|
|
8313
9170
|
callback: (deviceId?: string) => void) => void): this;
|
|
9171
|
+
off(event: 'select-usb-device', listener: (event: Event,
|
|
9172
|
+
details: SelectUsbDeviceDetails,
|
|
9173
|
+
callback: (deviceId?: string) => void) => void): this;
|
|
8314
9174
|
once(event: 'select-usb-device', listener: (event: Event,
|
|
8315
9175
|
details: SelectUsbDeviceDetails,
|
|
8316
9176
|
callback: (deviceId?: string) => void) => void): this;
|
|
@@ -8330,6 +9190,9 @@ declare namespace Electron {
|
|
|
8330
9190
|
on(event: 'serial-port-added', listener: (event: Event,
|
|
8331
9191
|
port: SerialPort,
|
|
8332
9192
|
webContents: WebContents) => void): this;
|
|
9193
|
+
off(event: 'serial-port-added', listener: (event: Event,
|
|
9194
|
+
port: SerialPort,
|
|
9195
|
+
webContents: WebContents) => void): this;
|
|
8333
9196
|
once(event: 'serial-port-added', listener: (event: Event,
|
|
8334
9197
|
port: SerialPort,
|
|
8335
9198
|
webContents: WebContents) => void): this;
|
|
@@ -8349,6 +9212,9 @@ declare namespace Electron {
|
|
|
8349
9212
|
on(event: 'serial-port-removed', listener: (event: Event,
|
|
8350
9213
|
port: SerialPort,
|
|
8351
9214
|
webContents: WebContents) => void): this;
|
|
9215
|
+
off(event: 'serial-port-removed', listener: (event: Event,
|
|
9216
|
+
port: SerialPort,
|
|
9217
|
+
webContents: WebContents) => void): this;
|
|
8352
9218
|
once(event: 'serial-port-removed', listener: (event: Event,
|
|
8353
9219
|
port: SerialPort,
|
|
8354
9220
|
webContents: WebContents) => void): this;
|
|
@@ -8365,6 +9231,8 @@ declare namespace Electron {
|
|
|
8365
9231
|
*/
|
|
8366
9232
|
on(event: 'serial-port-revoked', listener: (event: Event,
|
|
8367
9233
|
details: SerialPortRevokedDetails) => void): this;
|
|
9234
|
+
off(event: 'serial-port-revoked', listener: (event: Event,
|
|
9235
|
+
details: SerialPortRevokedDetails) => void): this;
|
|
8368
9236
|
once(event: 'serial-port-revoked', listener: (event: Event,
|
|
8369
9237
|
details: SerialPortRevokedDetails) => void): this;
|
|
8370
9238
|
addListener(event: 'serial-port-revoked', listener: (event: Event,
|
|
@@ -8379,6 +9247,11 @@ declare namespace Electron {
|
|
|
8379
9247
|
* The language code of the dictionary file
|
|
8380
9248
|
*/
|
|
8381
9249
|
languageCode: string) => void): this;
|
|
9250
|
+
off(event: 'spellcheck-dictionary-download-begin', listener: (event: Event,
|
|
9251
|
+
/**
|
|
9252
|
+
* The language code of the dictionary file
|
|
9253
|
+
*/
|
|
9254
|
+
languageCode: string) => void): this;
|
|
8382
9255
|
once(event: 'spellcheck-dictionary-download-begin', listener: (event: Event,
|
|
8383
9256
|
/**
|
|
8384
9257
|
* The language code of the dictionary file
|
|
@@ -8403,6 +9276,11 @@ declare namespace Electron {
|
|
|
8403
9276
|
* The language code of the dictionary file
|
|
8404
9277
|
*/
|
|
8405
9278
|
languageCode: string) => void): this;
|
|
9279
|
+
off(event: 'spellcheck-dictionary-download-failure', listener: (event: Event,
|
|
9280
|
+
/**
|
|
9281
|
+
* The language code of the dictionary file
|
|
9282
|
+
*/
|
|
9283
|
+
languageCode: string) => void): this;
|
|
8406
9284
|
once(event: 'spellcheck-dictionary-download-failure', listener: (event: Event,
|
|
8407
9285
|
/**
|
|
8408
9286
|
* The language code of the dictionary file
|
|
@@ -8426,6 +9304,11 @@ declare namespace Electron {
|
|
|
8426
9304
|
* The language code of the dictionary file
|
|
8427
9305
|
*/
|
|
8428
9306
|
languageCode: string) => void): this;
|
|
9307
|
+
off(event: 'spellcheck-dictionary-download-success', listener: (event: Event,
|
|
9308
|
+
/**
|
|
9309
|
+
* The language code of the dictionary file
|
|
9310
|
+
*/
|
|
9311
|
+
languageCode: string) => void): this;
|
|
8429
9312
|
once(event: 'spellcheck-dictionary-download-success', listener: (event: Event,
|
|
8430
9313
|
/**
|
|
8431
9314
|
* The language code of the dictionary file
|
|
@@ -8450,6 +9333,11 @@ declare namespace Electron {
|
|
|
8450
9333
|
* The language code of the dictionary file
|
|
8451
9334
|
*/
|
|
8452
9335
|
languageCode: string) => void): this;
|
|
9336
|
+
off(event: 'spellcheck-dictionary-initialized', listener: (event: Event,
|
|
9337
|
+
/**
|
|
9338
|
+
* The language code of the dictionary file
|
|
9339
|
+
*/
|
|
9340
|
+
languageCode: string) => void): this;
|
|
8453
9341
|
once(event: 'spellcheck-dictionary-initialized', listener: (event: Event,
|
|
8454
9342
|
/**
|
|
8455
9343
|
* The language code of the dictionary file
|
|
@@ -8475,6 +9363,9 @@ declare namespace Electron {
|
|
|
8475
9363
|
on(event: 'usb-device-added', listener: (event: Event,
|
|
8476
9364
|
device: USBDevice,
|
|
8477
9365
|
webContents: WebContents) => void): this;
|
|
9366
|
+
off(event: 'usb-device-added', listener: (event: Event,
|
|
9367
|
+
device: USBDevice,
|
|
9368
|
+
webContents: WebContents) => void): this;
|
|
8478
9369
|
once(event: 'usb-device-added', listener: (event: Event,
|
|
8479
9370
|
device: USBDevice,
|
|
8480
9371
|
webContents: WebContents) => void): this;
|
|
@@ -8494,6 +9385,9 @@ declare namespace Electron {
|
|
|
8494
9385
|
on(event: 'usb-device-removed', listener: (event: Event,
|
|
8495
9386
|
device: USBDevice,
|
|
8496
9387
|
webContents: WebContents) => void): this;
|
|
9388
|
+
off(event: 'usb-device-removed', listener: (event: Event,
|
|
9389
|
+
device: USBDevice,
|
|
9390
|
+
webContents: WebContents) => void): this;
|
|
8497
9391
|
once(event: 'usb-device-removed', listener: (event: Event,
|
|
8498
9392
|
device: USBDevice,
|
|
8499
9393
|
webContents: WebContents) => void): this;
|
|
@@ -8510,6 +9404,8 @@ declare namespace Electron {
|
|
|
8510
9404
|
*/
|
|
8511
9405
|
on(event: 'usb-device-revoked', listener: (event: Event,
|
|
8512
9406
|
details: UsbDeviceRevokedDetails) => void): this;
|
|
9407
|
+
off(event: 'usb-device-revoked', listener: (event: Event,
|
|
9408
|
+
details: UsbDeviceRevokedDetails) => void): this;
|
|
8513
9409
|
once(event: 'usb-device-revoked', listener: (event: Event,
|
|
8514
9410
|
details: UsbDeviceRevokedDetails) => void): this;
|
|
8515
9411
|
addListener(event: 'usb-device-revoked', listener: (event: Event,
|
|
@@ -8525,6 +9421,9 @@ declare namespace Electron {
|
|
|
8525
9421
|
on(event: 'will-download', listener: (event: Event,
|
|
8526
9422
|
item: DownloadItem,
|
|
8527
9423
|
webContents: WebContents) => void): this;
|
|
9424
|
+
off(event: 'will-download', listener: (event: Event,
|
|
9425
|
+
item: DownloadItem,
|
|
9426
|
+
webContents: WebContents) => void): this;
|
|
8528
9427
|
once(event: 'will-download', listener: (event: Event,
|
|
8529
9428
|
item: DownloadItem,
|
|
8530
9429
|
webContents: WebContents) => void): this;
|
|
@@ -9189,16 +10088,33 @@ declare namespace Electron {
|
|
|
9189
10088
|
* The new RGBA color the user assigned to be their system accent color.
|
|
9190
10089
|
*/
|
|
9191
10090
|
newColor: string) => void): this;
|
|
10091
|
+
/**
|
|
10092
|
+
* @platform win32
|
|
10093
|
+
*/
|
|
10094
|
+
off(event: 'accent-color-changed', listener: (event: Event,
|
|
10095
|
+
/**
|
|
10096
|
+
* The new RGBA color the user assigned to be their system accent color.
|
|
10097
|
+
*/
|
|
10098
|
+
newColor: string) => void): this;
|
|
10099
|
+
/**
|
|
10100
|
+
* @platform win32
|
|
10101
|
+
*/
|
|
9192
10102
|
once(event: 'accent-color-changed', listener: (event: Event,
|
|
9193
10103
|
/**
|
|
9194
10104
|
* The new RGBA color the user assigned to be their system accent color.
|
|
9195
10105
|
*/
|
|
9196
10106
|
newColor: string) => void): this;
|
|
10107
|
+
/**
|
|
10108
|
+
* @platform win32
|
|
10109
|
+
*/
|
|
9197
10110
|
addListener(event: 'accent-color-changed', listener: (event: Event,
|
|
9198
10111
|
/**
|
|
9199
10112
|
* The new RGBA color the user assigned to be their system accent color.
|
|
9200
10113
|
*/
|
|
9201
10114
|
newColor: string) => void): this;
|
|
10115
|
+
/**
|
|
10116
|
+
* @platform win32
|
|
10117
|
+
*/
|
|
9202
10118
|
removeListener(event: 'accent-color-changed', listener: (event: Event,
|
|
9203
10119
|
/**
|
|
9204
10120
|
* The new RGBA color the user assigned to be their system accent color.
|
|
@@ -9208,8 +10124,21 @@ declare namespace Electron {
|
|
|
9208
10124
|
* @platform win32
|
|
9209
10125
|
*/
|
|
9210
10126
|
on(event: 'color-changed', listener: (event: Event) => void): this;
|
|
10127
|
+
/**
|
|
10128
|
+
* @platform win32
|
|
10129
|
+
*/
|
|
10130
|
+
off(event: 'color-changed', listener: (event: Event) => void): this;
|
|
10131
|
+
/**
|
|
10132
|
+
* @platform win32
|
|
10133
|
+
*/
|
|
9211
10134
|
once(event: 'color-changed', listener: (event: Event) => void): this;
|
|
10135
|
+
/**
|
|
10136
|
+
* @platform win32
|
|
10137
|
+
*/
|
|
9212
10138
|
addListener(event: 'color-changed', listener: (event: Event) => void): this;
|
|
10139
|
+
/**
|
|
10140
|
+
* @platform win32
|
|
10141
|
+
*/
|
|
9213
10142
|
removeListener(event: 'color-changed', listener: (event: Event) => void): this;
|
|
9214
10143
|
/**
|
|
9215
10144
|
* A promise that resolves with `true` if consent was granted and `false` if it was
|
|
@@ -9988,8 +10917,21 @@ declare namespace Electron {
|
|
|
9988
10917
|
* @platform win32
|
|
9989
10918
|
*/
|
|
9990
10919
|
on(event: 'balloon-click', listener: Function): this;
|
|
10920
|
+
/**
|
|
10921
|
+
* @platform win32
|
|
10922
|
+
*/
|
|
10923
|
+
off(event: 'balloon-click', listener: Function): this;
|
|
10924
|
+
/**
|
|
10925
|
+
* @platform win32
|
|
10926
|
+
*/
|
|
9991
10927
|
once(event: 'balloon-click', listener: Function): this;
|
|
10928
|
+
/**
|
|
10929
|
+
* @platform win32
|
|
10930
|
+
*/
|
|
9992
10931
|
addListener(event: 'balloon-click', listener: Function): this;
|
|
10932
|
+
/**
|
|
10933
|
+
* @platform win32
|
|
10934
|
+
*/
|
|
9993
10935
|
removeListener(event: 'balloon-click', listener: Function): this;
|
|
9994
10936
|
/**
|
|
9995
10937
|
* Emitted when the tray balloon is closed because of timeout or user manually
|
|
@@ -9998,8 +10940,21 @@ declare namespace Electron {
|
|
|
9998
10940
|
* @platform win32
|
|
9999
10941
|
*/
|
|
10000
10942
|
on(event: 'balloon-closed', listener: Function): this;
|
|
10943
|
+
/**
|
|
10944
|
+
* @platform win32
|
|
10945
|
+
*/
|
|
10946
|
+
off(event: 'balloon-closed', listener: Function): this;
|
|
10947
|
+
/**
|
|
10948
|
+
* @platform win32
|
|
10949
|
+
*/
|
|
10001
10950
|
once(event: 'balloon-closed', listener: Function): this;
|
|
10951
|
+
/**
|
|
10952
|
+
* @platform win32
|
|
10953
|
+
*/
|
|
10002
10954
|
addListener(event: 'balloon-closed', listener: Function): this;
|
|
10955
|
+
/**
|
|
10956
|
+
* @platform win32
|
|
10957
|
+
*/
|
|
10003
10958
|
removeListener(event: 'balloon-closed', listener: Function): this;
|
|
10004
10959
|
/**
|
|
10005
10960
|
* Emitted when the tray balloon shows.
|
|
@@ -10007,8 +10962,21 @@ declare namespace Electron {
|
|
|
10007
10962
|
* @platform win32
|
|
10008
10963
|
*/
|
|
10009
10964
|
on(event: 'balloon-show', listener: Function): this;
|
|
10965
|
+
/**
|
|
10966
|
+
* @platform win32
|
|
10967
|
+
*/
|
|
10968
|
+
off(event: 'balloon-show', listener: Function): this;
|
|
10969
|
+
/**
|
|
10970
|
+
* @platform win32
|
|
10971
|
+
*/
|
|
10010
10972
|
once(event: 'balloon-show', listener: Function): this;
|
|
10973
|
+
/**
|
|
10974
|
+
* @platform win32
|
|
10975
|
+
*/
|
|
10011
10976
|
addListener(event: 'balloon-show', listener: Function): this;
|
|
10977
|
+
/**
|
|
10978
|
+
* @platform win32
|
|
10979
|
+
*/
|
|
10012
10980
|
removeListener(event: 'balloon-show', listener: Function): this;
|
|
10013
10981
|
/**
|
|
10014
10982
|
* Emitted when the tray icon is clicked.
|
|
@@ -10025,6 +10993,15 @@ declare namespace Electron {
|
|
|
10025
10993
|
* The position of the event.
|
|
10026
10994
|
*/
|
|
10027
10995
|
position: Point) => void): this;
|
|
10996
|
+
off(event: 'click', listener: (event: KeyboardEvent,
|
|
10997
|
+
/**
|
|
10998
|
+
* The bounds of tray icon.
|
|
10999
|
+
*/
|
|
11000
|
+
bounds: Rectangle,
|
|
11001
|
+
/**
|
|
11002
|
+
* The position of the event.
|
|
11003
|
+
*/
|
|
11004
|
+
position: Point) => void): this;
|
|
10028
11005
|
once(event: 'click', listener: (event: KeyboardEvent,
|
|
10029
11006
|
/**
|
|
10030
11007
|
* The bounds of tray icon.
|
|
@@ -10062,16 +11039,33 @@ declare namespace Electron {
|
|
|
10062
11039
|
* The bounds of tray icon.
|
|
10063
11040
|
*/
|
|
10064
11041
|
bounds: Rectangle) => void): this;
|
|
11042
|
+
/**
|
|
11043
|
+
* @platform darwin,win32
|
|
11044
|
+
*/
|
|
11045
|
+
off(event: 'double-click', listener: (event: KeyboardEvent,
|
|
11046
|
+
/**
|
|
11047
|
+
* The bounds of tray icon.
|
|
11048
|
+
*/
|
|
11049
|
+
bounds: Rectangle) => void): this;
|
|
11050
|
+
/**
|
|
11051
|
+
* @platform darwin,win32
|
|
11052
|
+
*/
|
|
10065
11053
|
once(event: 'double-click', listener: (event: KeyboardEvent,
|
|
10066
11054
|
/**
|
|
10067
11055
|
* The bounds of tray icon.
|
|
10068
11056
|
*/
|
|
10069
11057
|
bounds: Rectangle) => void): this;
|
|
11058
|
+
/**
|
|
11059
|
+
* @platform darwin,win32
|
|
11060
|
+
*/
|
|
10070
11061
|
addListener(event: 'double-click', listener: (event: KeyboardEvent,
|
|
10071
11062
|
/**
|
|
10072
11063
|
* The bounds of tray icon.
|
|
10073
11064
|
*/
|
|
10074
11065
|
bounds: Rectangle) => void): this;
|
|
11066
|
+
/**
|
|
11067
|
+
* @platform darwin,win32
|
|
11068
|
+
*/
|
|
10075
11069
|
removeListener(event: 'double-click', listener: (event: KeyboardEvent,
|
|
10076
11070
|
/**
|
|
10077
11071
|
* The bounds of tray icon.
|
|
@@ -10083,8 +11077,21 @@ declare namespace Electron {
|
|
|
10083
11077
|
* @platform darwin
|
|
10084
11078
|
*/
|
|
10085
11079
|
on(event: 'drag-end', listener: Function): this;
|
|
11080
|
+
/**
|
|
11081
|
+
* @platform darwin
|
|
11082
|
+
*/
|
|
11083
|
+
off(event: 'drag-end', listener: Function): this;
|
|
11084
|
+
/**
|
|
11085
|
+
* @platform darwin
|
|
11086
|
+
*/
|
|
10086
11087
|
once(event: 'drag-end', listener: Function): this;
|
|
11088
|
+
/**
|
|
11089
|
+
* @platform darwin
|
|
11090
|
+
*/
|
|
10087
11091
|
addListener(event: 'drag-end', listener: Function): this;
|
|
11092
|
+
/**
|
|
11093
|
+
* @platform darwin
|
|
11094
|
+
*/
|
|
10088
11095
|
removeListener(event: 'drag-end', listener: Function): this;
|
|
10089
11096
|
/**
|
|
10090
11097
|
* Emitted when a drag operation enters the tray icon.
|
|
@@ -10092,8 +11099,21 @@ declare namespace Electron {
|
|
|
10092
11099
|
* @platform darwin
|
|
10093
11100
|
*/
|
|
10094
11101
|
on(event: 'drag-enter', listener: Function): this;
|
|
11102
|
+
/**
|
|
11103
|
+
* @platform darwin
|
|
11104
|
+
*/
|
|
11105
|
+
off(event: 'drag-enter', listener: Function): this;
|
|
11106
|
+
/**
|
|
11107
|
+
* @platform darwin
|
|
11108
|
+
*/
|
|
10095
11109
|
once(event: 'drag-enter', listener: Function): this;
|
|
11110
|
+
/**
|
|
11111
|
+
* @platform darwin
|
|
11112
|
+
*/
|
|
10096
11113
|
addListener(event: 'drag-enter', listener: Function): this;
|
|
11114
|
+
/**
|
|
11115
|
+
* @platform darwin
|
|
11116
|
+
*/
|
|
10097
11117
|
removeListener(event: 'drag-enter', listener: Function): this;
|
|
10098
11118
|
/**
|
|
10099
11119
|
* Emitted when a drag operation exits the tray icon.
|
|
@@ -10101,8 +11121,21 @@ declare namespace Electron {
|
|
|
10101
11121
|
* @platform darwin
|
|
10102
11122
|
*/
|
|
10103
11123
|
on(event: 'drag-leave', listener: Function): this;
|
|
11124
|
+
/**
|
|
11125
|
+
* @platform darwin
|
|
11126
|
+
*/
|
|
11127
|
+
off(event: 'drag-leave', listener: Function): this;
|
|
11128
|
+
/**
|
|
11129
|
+
* @platform darwin
|
|
11130
|
+
*/
|
|
10104
11131
|
once(event: 'drag-leave', listener: Function): this;
|
|
11132
|
+
/**
|
|
11133
|
+
* @platform darwin
|
|
11134
|
+
*/
|
|
10105
11135
|
addListener(event: 'drag-leave', listener: Function): this;
|
|
11136
|
+
/**
|
|
11137
|
+
* @platform darwin
|
|
11138
|
+
*/
|
|
10106
11139
|
removeListener(event: 'drag-leave', listener: Function): this;
|
|
10107
11140
|
/**
|
|
10108
11141
|
* Emitted when any dragged items are dropped on the tray icon.
|
|
@@ -10110,8 +11143,21 @@ declare namespace Electron {
|
|
|
10110
11143
|
* @platform darwin
|
|
10111
11144
|
*/
|
|
10112
11145
|
on(event: 'drop', listener: Function): this;
|
|
11146
|
+
/**
|
|
11147
|
+
* @platform darwin
|
|
11148
|
+
*/
|
|
11149
|
+
off(event: 'drop', listener: Function): this;
|
|
11150
|
+
/**
|
|
11151
|
+
* @platform darwin
|
|
11152
|
+
*/
|
|
10113
11153
|
once(event: 'drop', listener: Function): this;
|
|
11154
|
+
/**
|
|
11155
|
+
* @platform darwin
|
|
11156
|
+
*/
|
|
10114
11157
|
addListener(event: 'drop', listener: Function): this;
|
|
11158
|
+
/**
|
|
11159
|
+
* @platform darwin
|
|
11160
|
+
*/
|
|
10115
11161
|
removeListener(event: 'drop', listener: Function): this;
|
|
10116
11162
|
/**
|
|
10117
11163
|
* Emitted when dragged files are dropped in the tray icon.
|
|
@@ -10123,16 +11169,33 @@ declare namespace Electron {
|
|
|
10123
11169
|
* The paths of the dropped files.
|
|
10124
11170
|
*/
|
|
10125
11171
|
files: string[]) => void): this;
|
|
11172
|
+
/**
|
|
11173
|
+
* @platform darwin
|
|
11174
|
+
*/
|
|
11175
|
+
off(event: 'drop-files', listener: (event: Event,
|
|
11176
|
+
/**
|
|
11177
|
+
* The paths of the dropped files.
|
|
11178
|
+
*/
|
|
11179
|
+
files: string[]) => void): this;
|
|
11180
|
+
/**
|
|
11181
|
+
* @platform darwin
|
|
11182
|
+
*/
|
|
10126
11183
|
once(event: 'drop-files', listener: (event: Event,
|
|
10127
11184
|
/**
|
|
10128
11185
|
* The paths of the dropped files.
|
|
10129
11186
|
*/
|
|
10130
11187
|
files: string[]) => void): this;
|
|
11188
|
+
/**
|
|
11189
|
+
* @platform darwin
|
|
11190
|
+
*/
|
|
10131
11191
|
addListener(event: 'drop-files', listener: (event: Event,
|
|
10132
11192
|
/**
|
|
10133
11193
|
* The paths of the dropped files.
|
|
10134
11194
|
*/
|
|
10135
11195
|
files: string[]) => void): this;
|
|
11196
|
+
/**
|
|
11197
|
+
* @platform darwin
|
|
11198
|
+
*/
|
|
10136
11199
|
removeListener(event: 'drop-files', listener: (event: Event,
|
|
10137
11200
|
/**
|
|
10138
11201
|
* The paths of the dropped files.
|
|
@@ -10148,16 +11211,33 @@ declare namespace Electron {
|
|
|
10148
11211
|
* the dropped text string.
|
|
10149
11212
|
*/
|
|
10150
11213
|
text: string) => void): this;
|
|
11214
|
+
/**
|
|
11215
|
+
* @platform darwin
|
|
11216
|
+
*/
|
|
11217
|
+
off(event: 'drop-text', listener: (event: Event,
|
|
11218
|
+
/**
|
|
11219
|
+
* the dropped text string.
|
|
11220
|
+
*/
|
|
11221
|
+
text: string) => void): this;
|
|
11222
|
+
/**
|
|
11223
|
+
* @platform darwin
|
|
11224
|
+
*/
|
|
10151
11225
|
once(event: 'drop-text', listener: (event: Event,
|
|
10152
11226
|
/**
|
|
10153
11227
|
* the dropped text string.
|
|
10154
11228
|
*/
|
|
10155
11229
|
text: string) => void): this;
|
|
11230
|
+
/**
|
|
11231
|
+
* @platform darwin
|
|
11232
|
+
*/
|
|
10156
11233
|
addListener(event: 'drop-text', listener: (event: Event,
|
|
10157
11234
|
/**
|
|
10158
11235
|
* the dropped text string.
|
|
10159
11236
|
*/
|
|
10160
11237
|
text: string) => void): this;
|
|
11238
|
+
/**
|
|
11239
|
+
* @platform darwin
|
|
11240
|
+
*/
|
|
10161
11241
|
removeListener(event: 'drop-text', listener: (event: Event,
|
|
10162
11242
|
/**
|
|
10163
11243
|
* the dropped text string.
|
|
@@ -10173,16 +11253,33 @@ declare namespace Electron {
|
|
|
10173
11253
|
* The position of the event.
|
|
10174
11254
|
*/
|
|
10175
11255
|
position: Point) => void): this;
|
|
11256
|
+
/**
|
|
11257
|
+
* @platform darwin
|
|
11258
|
+
*/
|
|
11259
|
+
off(event: 'mouse-down', listener: (event: KeyboardEvent,
|
|
11260
|
+
/**
|
|
11261
|
+
* The position of the event.
|
|
11262
|
+
*/
|
|
11263
|
+
position: Point) => void): this;
|
|
11264
|
+
/**
|
|
11265
|
+
* @platform darwin
|
|
11266
|
+
*/
|
|
10176
11267
|
once(event: 'mouse-down', listener: (event: KeyboardEvent,
|
|
10177
11268
|
/**
|
|
10178
11269
|
* The position of the event.
|
|
10179
11270
|
*/
|
|
10180
11271
|
position: Point) => void): this;
|
|
11272
|
+
/**
|
|
11273
|
+
* @platform darwin
|
|
11274
|
+
*/
|
|
10181
11275
|
addListener(event: 'mouse-down', listener: (event: KeyboardEvent,
|
|
10182
11276
|
/**
|
|
10183
11277
|
* The position of the event.
|
|
10184
11278
|
*/
|
|
10185
11279
|
position: Point) => void): this;
|
|
11280
|
+
/**
|
|
11281
|
+
* @platform darwin
|
|
11282
|
+
*/
|
|
10186
11283
|
removeListener(event: 'mouse-down', listener: (event: KeyboardEvent,
|
|
10187
11284
|
/**
|
|
10188
11285
|
* The position of the event.
|
|
@@ -10198,16 +11295,33 @@ declare namespace Electron {
|
|
|
10198
11295
|
* The position of the event.
|
|
10199
11296
|
*/
|
|
10200
11297
|
position: Point) => void): this;
|
|
11298
|
+
/**
|
|
11299
|
+
* @platform darwin
|
|
11300
|
+
*/
|
|
11301
|
+
off(event: 'mouse-enter', listener: (event: KeyboardEvent,
|
|
11302
|
+
/**
|
|
11303
|
+
* The position of the event.
|
|
11304
|
+
*/
|
|
11305
|
+
position: Point) => void): this;
|
|
11306
|
+
/**
|
|
11307
|
+
* @platform darwin
|
|
11308
|
+
*/
|
|
10201
11309
|
once(event: 'mouse-enter', listener: (event: KeyboardEvent,
|
|
10202
11310
|
/**
|
|
10203
11311
|
* The position of the event.
|
|
10204
11312
|
*/
|
|
10205
11313
|
position: Point) => void): this;
|
|
11314
|
+
/**
|
|
11315
|
+
* @platform darwin
|
|
11316
|
+
*/
|
|
10206
11317
|
addListener(event: 'mouse-enter', listener: (event: KeyboardEvent,
|
|
10207
11318
|
/**
|
|
10208
11319
|
* The position of the event.
|
|
10209
11320
|
*/
|
|
10210
11321
|
position: Point) => void): this;
|
|
11322
|
+
/**
|
|
11323
|
+
* @platform darwin
|
|
11324
|
+
*/
|
|
10211
11325
|
removeListener(event: 'mouse-enter', listener: (event: KeyboardEvent,
|
|
10212
11326
|
/**
|
|
10213
11327
|
* The position of the event.
|
|
@@ -10223,16 +11337,33 @@ declare namespace Electron {
|
|
|
10223
11337
|
* The position of the event.
|
|
10224
11338
|
*/
|
|
10225
11339
|
position: Point) => void): this;
|
|
11340
|
+
/**
|
|
11341
|
+
* @platform darwin
|
|
11342
|
+
*/
|
|
11343
|
+
off(event: 'mouse-leave', listener: (event: KeyboardEvent,
|
|
11344
|
+
/**
|
|
11345
|
+
* The position of the event.
|
|
11346
|
+
*/
|
|
11347
|
+
position: Point) => void): this;
|
|
11348
|
+
/**
|
|
11349
|
+
* @platform darwin
|
|
11350
|
+
*/
|
|
10226
11351
|
once(event: 'mouse-leave', listener: (event: KeyboardEvent,
|
|
10227
11352
|
/**
|
|
10228
11353
|
* The position of the event.
|
|
10229
11354
|
*/
|
|
10230
11355
|
position: Point) => void): this;
|
|
11356
|
+
/**
|
|
11357
|
+
* @platform darwin
|
|
11358
|
+
*/
|
|
10231
11359
|
addListener(event: 'mouse-leave', listener: (event: KeyboardEvent,
|
|
10232
11360
|
/**
|
|
10233
11361
|
* The position of the event.
|
|
10234
11362
|
*/
|
|
10235
11363
|
position: Point) => void): this;
|
|
11364
|
+
/**
|
|
11365
|
+
* @platform darwin
|
|
11366
|
+
*/
|
|
10236
11367
|
removeListener(event: 'mouse-leave', listener: (event: KeyboardEvent,
|
|
10237
11368
|
/**
|
|
10238
11369
|
* The position of the event.
|
|
@@ -10248,16 +11379,33 @@ declare namespace Electron {
|
|
|
10248
11379
|
* The position of the event.
|
|
10249
11380
|
*/
|
|
10250
11381
|
position: Point) => void): this;
|
|
11382
|
+
/**
|
|
11383
|
+
* @platform darwin,win32
|
|
11384
|
+
*/
|
|
11385
|
+
off(event: 'mouse-move', listener: (event: KeyboardEvent,
|
|
11386
|
+
/**
|
|
11387
|
+
* The position of the event.
|
|
11388
|
+
*/
|
|
11389
|
+
position: Point) => void): this;
|
|
11390
|
+
/**
|
|
11391
|
+
* @platform darwin,win32
|
|
11392
|
+
*/
|
|
10251
11393
|
once(event: 'mouse-move', listener: (event: KeyboardEvent,
|
|
10252
11394
|
/**
|
|
10253
11395
|
* The position of the event.
|
|
10254
11396
|
*/
|
|
10255
11397
|
position: Point) => void): this;
|
|
11398
|
+
/**
|
|
11399
|
+
* @platform darwin,win32
|
|
11400
|
+
*/
|
|
10256
11401
|
addListener(event: 'mouse-move', listener: (event: KeyboardEvent,
|
|
10257
11402
|
/**
|
|
10258
11403
|
* The position of the event.
|
|
10259
11404
|
*/
|
|
10260
11405
|
position: Point) => void): this;
|
|
11406
|
+
/**
|
|
11407
|
+
* @platform darwin,win32
|
|
11408
|
+
*/
|
|
10261
11409
|
removeListener(event: 'mouse-move', listener: (event: KeyboardEvent,
|
|
10262
11410
|
/**
|
|
10263
11411
|
* The position of the event.
|
|
@@ -10276,16 +11424,33 @@ declare namespace Electron {
|
|
|
10276
11424
|
* The position of the event.
|
|
10277
11425
|
*/
|
|
10278
11426
|
position: Point) => void): this;
|
|
11427
|
+
/**
|
|
11428
|
+
* @platform darwin
|
|
11429
|
+
*/
|
|
11430
|
+
off(event: 'mouse-up', listener: (event: KeyboardEvent,
|
|
11431
|
+
/**
|
|
11432
|
+
* The position of the event.
|
|
11433
|
+
*/
|
|
11434
|
+
position: Point) => void): this;
|
|
11435
|
+
/**
|
|
11436
|
+
* @platform darwin
|
|
11437
|
+
*/
|
|
10279
11438
|
once(event: 'mouse-up', listener: (event: KeyboardEvent,
|
|
10280
11439
|
/**
|
|
10281
11440
|
* The position of the event.
|
|
10282
11441
|
*/
|
|
10283
11442
|
position: Point) => void): this;
|
|
11443
|
+
/**
|
|
11444
|
+
* @platform darwin
|
|
11445
|
+
*/
|
|
10284
11446
|
addListener(event: 'mouse-up', listener: (event: KeyboardEvent,
|
|
10285
11447
|
/**
|
|
10286
11448
|
* The position of the event.
|
|
10287
11449
|
*/
|
|
10288
11450
|
position: Point) => void): this;
|
|
11451
|
+
/**
|
|
11452
|
+
* @platform darwin
|
|
11453
|
+
*/
|
|
10289
11454
|
removeListener(event: 'mouse-up', listener: (event: KeyboardEvent,
|
|
10290
11455
|
/**
|
|
10291
11456
|
* The position of the event.
|
|
@@ -10301,16 +11466,33 @@ declare namespace Electron {
|
|
|
10301
11466
|
* The bounds of tray icon.
|
|
10302
11467
|
*/
|
|
10303
11468
|
bounds: Rectangle) => void): this;
|
|
11469
|
+
/**
|
|
11470
|
+
* @platform darwin,win32
|
|
11471
|
+
*/
|
|
11472
|
+
off(event: 'right-click', listener: (event: KeyboardEvent,
|
|
11473
|
+
/**
|
|
11474
|
+
* The bounds of tray icon.
|
|
11475
|
+
*/
|
|
11476
|
+
bounds: Rectangle) => void): this;
|
|
11477
|
+
/**
|
|
11478
|
+
* @platform darwin,win32
|
|
11479
|
+
*/
|
|
10304
11480
|
once(event: 'right-click', listener: (event: KeyboardEvent,
|
|
10305
11481
|
/**
|
|
10306
11482
|
* The bounds of tray icon.
|
|
10307
11483
|
*/
|
|
10308
11484
|
bounds: Rectangle) => void): this;
|
|
11485
|
+
/**
|
|
11486
|
+
* @platform darwin,win32
|
|
11487
|
+
*/
|
|
10309
11488
|
addListener(event: 'right-click', listener: (event: KeyboardEvent,
|
|
10310
11489
|
/**
|
|
10311
11490
|
* The bounds of tray icon.
|
|
10312
11491
|
*/
|
|
10313
11492
|
bounds: Rectangle) => void): this;
|
|
11493
|
+
/**
|
|
11494
|
+
* @platform darwin,win32
|
|
11495
|
+
*/
|
|
10314
11496
|
removeListener(event: 'right-click', listener: (event: KeyboardEvent,
|
|
10315
11497
|
/**
|
|
10316
11498
|
* The bounds of tray icon.
|
|
@@ -10571,6 +11753,12 @@ declare namespace Electron {
|
|
|
10571
11753
|
* GetExitCodeProcess on windows.
|
|
10572
11754
|
*/
|
|
10573
11755
|
code: number) => void): this;
|
|
11756
|
+
off(event: 'exit', listener: (
|
|
11757
|
+
/**
|
|
11758
|
+
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
11759
|
+
* GetExitCodeProcess on windows.
|
|
11760
|
+
*/
|
|
11761
|
+
code: number) => void): this;
|
|
10574
11762
|
once(event: 'exit', listener: (
|
|
10575
11763
|
/**
|
|
10576
11764
|
* Contains the exit code for the process obtained from waitpid on posix, or
|
|
@@ -10594,6 +11782,7 @@ declare namespace Electron {
|
|
|
10594
11782
|
* `process.parentPort.postMessage()`.
|
|
10595
11783
|
*/
|
|
10596
11784
|
on(event: 'message', listener: (message: any) => void): this;
|
|
11785
|
+
off(event: 'message', listener: (message: any) => void): this;
|
|
10597
11786
|
once(event: 'message', listener: (message: any) => void): this;
|
|
10598
11787
|
addListener(event: 'message', listener: (message: any) => void): this;
|
|
10599
11788
|
removeListener(event: 'message', listener: (message: any) => void): this;
|
|
@@ -10601,6 +11790,7 @@ declare namespace Electron {
|
|
|
10601
11790
|
* Emitted once the child process has spawned successfully.
|
|
10602
11791
|
*/
|
|
10603
11792
|
on(event: 'spawn', listener: Function): this;
|
|
11793
|
+
off(event: 'spawn', listener: Function): this;
|
|
10604
11794
|
once(event: 'spawn', listener: Function): this;
|
|
10605
11795
|
addListener(event: 'spawn', listener: Function): this;
|
|
10606
11796
|
removeListener(event: 'spawn', listener: Function): this;
|
|
@@ -10675,6 +11865,7 @@ declare namespace Electron {
|
|
|
10675
11865
|
* Emitted when media becomes audible or inaudible.
|
|
10676
11866
|
*/
|
|
10677
11867
|
on(event: 'audio-state-changed', listener: (event: Event<WebContentsAudioStateChangedEventParams>) => void): this;
|
|
11868
|
+
off(event: 'audio-state-changed', listener: (event: Event<WebContentsAudioStateChangedEventParams>) => void): this;
|
|
10678
11869
|
once(event: 'audio-state-changed', listener: (event: Event<WebContentsAudioStateChangedEventParams>) => void): this;
|
|
10679
11870
|
addListener(event: 'audio-state-changed', listener: (event: Event<WebContentsAudioStateChangedEventParams>) => void): this;
|
|
10680
11871
|
removeListener(event: 'audio-state-changed', listener: (event: Event<WebContentsAudioStateChangedEventParams>) => void): this;
|
|
@@ -10690,6 +11881,11 @@ declare namespace Electron {
|
|
|
10690
11881
|
* Input properties.
|
|
10691
11882
|
*/
|
|
10692
11883
|
input: Input) => void): this;
|
|
11884
|
+
off(event: 'before-input-event', listener: (event: Event,
|
|
11885
|
+
/**
|
|
11886
|
+
* Input properties.
|
|
11887
|
+
*/
|
|
11888
|
+
input: Input) => void): this;
|
|
10693
11889
|
once(event: 'before-input-event', listener: (event: Event,
|
|
10694
11890
|
/**
|
|
10695
11891
|
* Input properties.
|
|
@@ -10709,6 +11905,7 @@ declare namespace Electron {
|
|
|
10709
11905
|
* Emitted when the `WebContents` loses focus.
|
|
10710
11906
|
*/
|
|
10711
11907
|
on(event: 'blur', listener: Function): this;
|
|
11908
|
+
off(event: 'blur', listener: Function): this;
|
|
10712
11909
|
once(event: 'blur', listener: Function): this;
|
|
10713
11910
|
addListener(event: 'blur', listener: Function): this;
|
|
10714
11911
|
removeListener(event: 'blur', listener: Function): this;
|
|
@@ -10726,6 +11923,15 @@ declare namespace Electron {
|
|
|
10726
11923
|
certificate: Certificate,
|
|
10727
11924
|
callback: (isTrusted: boolean) => void,
|
|
10728
11925
|
isMainFrame: boolean) => void): this;
|
|
11926
|
+
off(event: 'certificate-error', listener: (event: Event,
|
|
11927
|
+
url: string,
|
|
11928
|
+
/**
|
|
11929
|
+
* The error code.
|
|
11930
|
+
*/
|
|
11931
|
+
error: string,
|
|
11932
|
+
certificate: Certificate,
|
|
11933
|
+
callback: (isTrusted: boolean) => void,
|
|
11934
|
+
isMainFrame: boolean) => void): this;
|
|
10729
11935
|
once(event: 'certificate-error', listener: (event: Event,
|
|
10730
11936
|
url: string,
|
|
10731
11937
|
/**
|
|
@@ -10771,6 +11977,21 @@ declare namespace Electron {
|
|
|
10771
11977
|
*/
|
|
10772
11978
|
line: number,
|
|
10773
11979
|
sourceId: string) => void): this;
|
|
11980
|
+
off(event: 'console-message', listener: (event: Event,
|
|
11981
|
+
/**
|
|
11982
|
+
* The log level, from 0 to 3. In order it matches `verbose`, `info`, `warning` and
|
|
11983
|
+
* `error`.
|
|
11984
|
+
*/
|
|
11985
|
+
level: number,
|
|
11986
|
+
/**
|
|
11987
|
+
* The actual console message
|
|
11988
|
+
*/
|
|
11989
|
+
message: string,
|
|
11990
|
+
/**
|
|
11991
|
+
* The line number of the source that triggered this console message
|
|
11992
|
+
*/
|
|
11993
|
+
line: number,
|
|
11994
|
+
sourceId: string) => void): this;
|
|
10774
11995
|
once(event: 'console-message', listener: (event: Event,
|
|
10775
11996
|
/**
|
|
10776
11997
|
* The log level, from 0 to 3. In order it matches `verbose`, `info`, `warning` and
|
|
@@ -10827,6 +12048,11 @@ declare namespace Electron {
|
|
|
10827
12048
|
* requested new content bounds
|
|
10828
12049
|
*/
|
|
10829
12050
|
bounds: Rectangle) => void): this;
|
|
12051
|
+
off(event: 'content-bounds-updated', listener: (event: Event,
|
|
12052
|
+
/**
|
|
12053
|
+
* requested new content bounds
|
|
12054
|
+
*/
|
|
12055
|
+
bounds: Rectangle) => void): this;
|
|
10830
12056
|
once(event: 'content-bounds-updated', listener: (event: Event,
|
|
10831
12057
|
/**
|
|
10832
12058
|
* requested new content bounds
|
|
@@ -10847,6 +12073,8 @@ declare namespace Electron {
|
|
|
10847
12073
|
*/
|
|
10848
12074
|
on(event: 'context-menu', listener: (event: Event,
|
|
10849
12075
|
params: ContextMenuParams) => void): this;
|
|
12076
|
+
off(event: 'context-menu', listener: (event: Event,
|
|
12077
|
+
params: ContextMenuParams) => void): this;
|
|
10850
12078
|
once(event: 'context-menu', listener: (event: Event,
|
|
10851
12079
|
params: ContextMenuParams) => void): this;
|
|
10852
12080
|
addListener(event: 'context-menu', listener: (event: Event,
|
|
@@ -10865,10 +12093,24 @@ declare namespace Electron {
|
|
|
10865
12093
|
*/
|
|
10866
12094
|
on(event: 'crashed', listener: (event: Event,
|
|
10867
12095
|
killed: boolean) => void): this;
|
|
12096
|
+
/**
|
|
12097
|
+
* @deprecated
|
|
12098
|
+
*/
|
|
12099
|
+
off(event: 'crashed', listener: (event: Event,
|
|
12100
|
+
killed: boolean) => void): this;
|
|
12101
|
+
/**
|
|
12102
|
+
* @deprecated
|
|
12103
|
+
*/
|
|
10868
12104
|
once(event: 'crashed', listener: (event: Event,
|
|
10869
12105
|
killed: boolean) => void): this;
|
|
12106
|
+
/**
|
|
12107
|
+
* @deprecated
|
|
12108
|
+
*/
|
|
10870
12109
|
addListener(event: 'crashed', listener: (event: Event,
|
|
10871
12110
|
killed: boolean) => void): this;
|
|
12111
|
+
/**
|
|
12112
|
+
* @deprecated
|
|
12113
|
+
*/
|
|
10872
12114
|
removeListener(event: 'crashed', listener: (event: Event,
|
|
10873
12115
|
killed: boolean) => void): this;
|
|
10874
12116
|
/**
|
|
@@ -10903,6 +12145,21 @@ declare namespace Electron {
|
|
|
10903
12145
|
* coordinates of the custom cursor's hotspot.
|
|
10904
12146
|
*/
|
|
10905
12147
|
hotspot: Point) => void): this;
|
|
12148
|
+
off(event: 'cursor-changed', listener: (event: Event,
|
|
12149
|
+
type: string,
|
|
12150
|
+
image: NativeImage,
|
|
12151
|
+
/**
|
|
12152
|
+
* scaling factor for the custom cursor.
|
|
12153
|
+
*/
|
|
12154
|
+
scale: number,
|
|
12155
|
+
/**
|
|
12156
|
+
* the size of the `image`.
|
|
12157
|
+
*/
|
|
12158
|
+
size: Size,
|
|
12159
|
+
/**
|
|
12160
|
+
* coordinates of the custom cursor's hotspot.
|
|
12161
|
+
*/
|
|
12162
|
+
hotspot: Point) => void): this;
|
|
10906
12163
|
once(event: 'cursor-changed', listener: (event: Event,
|
|
10907
12164
|
type: string,
|
|
10908
12165
|
image: NativeImage,
|
|
@@ -10952,6 +12209,7 @@ declare namespace Electron {
|
|
|
10952
12209
|
* Emitted when `webContents` is destroyed.
|
|
10953
12210
|
*/
|
|
10954
12211
|
on(event: 'destroyed', listener: Function): this;
|
|
12212
|
+
off(event: 'destroyed', listener: Function): this;
|
|
10955
12213
|
once(event: 'destroyed', listener: Function): this;
|
|
10956
12214
|
addListener(event: 'destroyed', listener: Function): this;
|
|
10957
12215
|
removeListener(event: 'destroyed', listener: Function): this;
|
|
@@ -10959,6 +12217,7 @@ declare namespace Electron {
|
|
|
10959
12217
|
* Emitted when DevTools is closed.
|
|
10960
12218
|
*/
|
|
10961
12219
|
on(event: 'devtools-closed', listener: Function): this;
|
|
12220
|
+
off(event: 'devtools-closed', listener: Function): this;
|
|
10962
12221
|
once(event: 'devtools-closed', listener: Function): this;
|
|
10963
12222
|
addListener(event: 'devtools-closed', listener: Function): this;
|
|
10964
12223
|
removeListener(event: 'devtools-closed', listener: Function): this;
|
|
@@ -10966,6 +12225,7 @@ declare namespace Electron {
|
|
|
10966
12225
|
* Emitted when DevTools is focused / opened.
|
|
10967
12226
|
*/
|
|
10968
12227
|
on(event: 'devtools-focused', listener: Function): this;
|
|
12228
|
+
off(event: 'devtools-focused', listener: Function): this;
|
|
10969
12229
|
once(event: 'devtools-focused', listener: Function): this;
|
|
10970
12230
|
addListener(event: 'devtools-focused', listener: Function): this;
|
|
10971
12231
|
removeListener(event: 'devtools-focused', listener: Function): this;
|
|
@@ -10978,6 +12238,11 @@ declare namespace Electron {
|
|
|
10978
12238
|
* URL of the link that was clicked or selected.
|
|
10979
12239
|
*/
|
|
10980
12240
|
url: string) => void): this;
|
|
12241
|
+
off(event: 'devtools-open-url', listener: (event: Event,
|
|
12242
|
+
/**
|
|
12243
|
+
* URL of the link that was clicked or selected.
|
|
12244
|
+
*/
|
|
12245
|
+
url: string) => void): this;
|
|
10981
12246
|
once(event: 'devtools-open-url', listener: (event: Event,
|
|
10982
12247
|
/**
|
|
10983
12248
|
* URL of the link that was clicked or selected.
|
|
@@ -10997,6 +12262,7 @@ declare namespace Electron {
|
|
|
10997
12262
|
* Emitted when DevTools is opened.
|
|
10998
12263
|
*/
|
|
10999
12264
|
on(event: 'devtools-opened', listener: Function): this;
|
|
12265
|
+
off(event: 'devtools-opened', listener: Function): this;
|
|
11000
12266
|
once(event: 'devtools-opened', listener: Function): this;
|
|
11001
12267
|
addListener(event: 'devtools-opened', listener: Function): this;
|
|
11002
12268
|
removeListener(event: 'devtools-opened', listener: Function): this;
|
|
@@ -11004,6 +12270,7 @@ declare namespace Electron {
|
|
|
11004
12270
|
* Emitted when the devtools window instructs the webContents to reload
|
|
11005
12271
|
*/
|
|
11006
12272
|
on(event: 'devtools-reload-page', listener: Function): this;
|
|
12273
|
+
off(event: 'devtools-reload-page', listener: Function): this;
|
|
11007
12274
|
once(event: 'devtools-reload-page', listener: Function): this;
|
|
11008
12275
|
addListener(event: 'devtools-reload-page', listener: Function): this;
|
|
11009
12276
|
removeListener(event: 'devtools-reload-page', listener: Function): this;
|
|
@@ -11015,6 +12282,11 @@ declare namespace Electron {
|
|
|
11015
12282
|
* The guest web contents that is used by the `<webview>`.
|
|
11016
12283
|
*/
|
|
11017
12284
|
webContents: WebContents) => void): this;
|
|
12285
|
+
off(event: 'did-attach-webview', listener: (event: Event,
|
|
12286
|
+
/**
|
|
12287
|
+
* The guest web contents that is used by the `<webview>`.
|
|
12288
|
+
*/
|
|
12289
|
+
webContents: WebContents) => void): this;
|
|
11018
12290
|
once(event: 'did-attach-webview', listener: (event: Event,
|
|
11019
12291
|
/**
|
|
11020
12292
|
* The guest web contents that is used by the `<webview>`.
|
|
@@ -11039,6 +12311,11 @@ declare namespace Electron {
|
|
|
11039
12311
|
* Theme color is in format of '#rrggbb'. It is `null` when no theme color is set.
|
|
11040
12312
|
*/
|
|
11041
12313
|
color: (string) | (null)) => void): this;
|
|
12314
|
+
off(event: 'did-change-theme-color', listener: (event: Event,
|
|
12315
|
+
/**
|
|
12316
|
+
* Theme color is in format of '#rrggbb'. It is `null` when no theme color is set.
|
|
12317
|
+
*/
|
|
12318
|
+
color: (string) | (null)) => void): this;
|
|
11042
12319
|
once(event: 'did-change-theme-color', listener: (event: Event,
|
|
11043
12320
|
/**
|
|
11044
12321
|
* Theme color is in format of '#rrggbb'. It is `null` when no theme color is set.
|
|
@@ -11064,6 +12341,8 @@ declare namespace Electron {
|
|
|
11064
12341
|
*/
|
|
11065
12342
|
on(event: 'did-create-window', listener: (window: BrowserWindow,
|
|
11066
12343
|
details: DidCreateWindowDetails) => void): this;
|
|
12344
|
+
off(event: 'did-create-window', listener: (window: BrowserWindow,
|
|
12345
|
+
details: DidCreateWindowDetails) => void): this;
|
|
11067
12346
|
once(event: 'did-create-window', listener: (window: BrowserWindow,
|
|
11068
12347
|
details: DidCreateWindowDetails) => void): this;
|
|
11069
12348
|
addListener(event: 'did-create-window', listener: (window: BrowserWindow,
|
|
@@ -11081,6 +12360,13 @@ declare namespace Electron {
|
|
|
11081
12360
|
isMainFrame: boolean,
|
|
11082
12361
|
frameProcessId: number,
|
|
11083
12362
|
frameRoutingId: number) => void): this;
|
|
12363
|
+
off(event: 'did-fail-load', listener: (event: Event,
|
|
12364
|
+
errorCode: number,
|
|
12365
|
+
errorDescription: string,
|
|
12366
|
+
validatedURL: string,
|
|
12367
|
+
isMainFrame: boolean,
|
|
12368
|
+
frameProcessId: number,
|
|
12369
|
+
frameRoutingId: number) => void): this;
|
|
11084
12370
|
once(event: 'did-fail-load', listener: (event: Event,
|
|
11085
12371
|
errorCode: number,
|
|
11086
12372
|
errorDescription: string,
|
|
@@ -11113,6 +12399,13 @@ declare namespace Electron {
|
|
|
11113
12399
|
isMainFrame: boolean,
|
|
11114
12400
|
frameProcessId: number,
|
|
11115
12401
|
frameRoutingId: number) => void): this;
|
|
12402
|
+
off(event: 'did-fail-provisional-load', listener: (event: Event,
|
|
12403
|
+
errorCode: number,
|
|
12404
|
+
errorDescription: string,
|
|
12405
|
+
validatedURL: string,
|
|
12406
|
+
isMainFrame: boolean,
|
|
12407
|
+
frameProcessId: number,
|
|
12408
|
+
frameRoutingId: number) => void): this;
|
|
11116
12409
|
once(event: 'did-fail-provisional-load', listener: (event: Event,
|
|
11117
12410
|
errorCode: number,
|
|
11118
12411
|
errorDescription: string,
|
|
@@ -11139,6 +12432,7 @@ declare namespace Electron {
|
|
|
11139
12432
|
* spinning, and the `onload` event was dispatched.
|
|
11140
12433
|
*/
|
|
11141
12434
|
on(event: 'did-finish-load', listener: Function): this;
|
|
12435
|
+
off(event: 'did-finish-load', listener: Function): this;
|
|
11142
12436
|
once(event: 'did-finish-load', listener: Function): this;
|
|
11143
12437
|
addListener(event: 'did-finish-load', listener: Function): this;
|
|
11144
12438
|
removeListener(event: 'did-finish-load', listener: Function): this;
|
|
@@ -11149,6 +12443,10 @@ declare namespace Electron {
|
|
|
11149
12443
|
isMainFrame: boolean,
|
|
11150
12444
|
frameProcessId: number,
|
|
11151
12445
|
frameRoutingId: number) => void): this;
|
|
12446
|
+
off(event: 'did-frame-finish-load', listener: (event: Event,
|
|
12447
|
+
isMainFrame: boolean,
|
|
12448
|
+
frameProcessId: number,
|
|
12449
|
+
frameRoutingId: number) => void): this;
|
|
11152
12450
|
once(event: 'did-frame-finish-load', listener: (event: Event,
|
|
11153
12451
|
isMainFrame: boolean,
|
|
11154
12452
|
frameProcessId: number,
|
|
@@ -11181,6 +12479,19 @@ declare namespace Electron {
|
|
|
11181
12479
|
isMainFrame: boolean,
|
|
11182
12480
|
frameProcessId: number,
|
|
11183
12481
|
frameRoutingId: number) => void): this;
|
|
12482
|
+
off(event: 'did-frame-navigate', listener: (event: Event,
|
|
12483
|
+
url: string,
|
|
12484
|
+
/**
|
|
12485
|
+
* -1 for non HTTP navigations
|
|
12486
|
+
*/
|
|
12487
|
+
httpResponseCode: number,
|
|
12488
|
+
/**
|
|
12489
|
+
* empty for non HTTP navigations,
|
|
12490
|
+
*/
|
|
12491
|
+
httpStatusText: string,
|
|
12492
|
+
isMainFrame: boolean,
|
|
12493
|
+
frameProcessId: number,
|
|
12494
|
+
frameRoutingId: number) => void): this;
|
|
11184
12495
|
once(event: 'did-frame-navigate', listener: (event: Event,
|
|
11185
12496
|
url: string,
|
|
11186
12497
|
/**
|
|
@@ -11237,6 +12548,16 @@ declare namespace Electron {
|
|
|
11237
12548
|
* empty for non HTTP navigations
|
|
11238
12549
|
*/
|
|
11239
12550
|
httpStatusText: string) => void): this;
|
|
12551
|
+
off(event: 'did-navigate', listener: (event: Event,
|
|
12552
|
+
url: string,
|
|
12553
|
+
/**
|
|
12554
|
+
* -1 for non HTTP navigations
|
|
12555
|
+
*/
|
|
12556
|
+
httpResponseCode: number,
|
|
12557
|
+
/**
|
|
12558
|
+
* empty for non HTTP navigations
|
|
12559
|
+
*/
|
|
12560
|
+
httpStatusText: string) => void): this;
|
|
11240
12561
|
once(event: 'did-navigate', listener: (event: Event,
|
|
11241
12562
|
url: string,
|
|
11242
12563
|
/**
|
|
@@ -11279,6 +12600,11 @@ declare namespace Electron {
|
|
|
11279
12600
|
isMainFrame: boolean,
|
|
11280
12601
|
frameProcessId: number,
|
|
11281
12602
|
frameRoutingId: number) => void): this;
|
|
12603
|
+
off(event: 'did-navigate-in-page', listener: (event: Event,
|
|
12604
|
+
url: string,
|
|
12605
|
+
isMainFrame: boolean,
|
|
12606
|
+
frameProcessId: number,
|
|
12607
|
+
frameRoutingId: number) => void): this;
|
|
11282
12608
|
once(event: 'did-navigate-in-page', listener: (event: Event,
|
|
11283
12609
|
url: string,
|
|
11284
12610
|
isMainFrame: boolean,
|
|
@@ -11322,6 +12648,27 @@ declare namespace Electron {
|
|
|
11322
12648
|
* @deprecated
|
|
11323
12649
|
*/
|
|
11324
12650
|
frameRoutingId: number) => void): this;
|
|
12651
|
+
off(event: 'did-redirect-navigation', listener: (details: Event<WebContentsDidRedirectNavigationEventParams>,
|
|
12652
|
+
/**
|
|
12653
|
+
* @deprecated
|
|
12654
|
+
*/
|
|
12655
|
+
url: string,
|
|
12656
|
+
/**
|
|
12657
|
+
* @deprecated
|
|
12658
|
+
*/
|
|
12659
|
+
isInPlace: boolean,
|
|
12660
|
+
/**
|
|
12661
|
+
* @deprecated
|
|
12662
|
+
*/
|
|
12663
|
+
isMainFrame: boolean,
|
|
12664
|
+
/**
|
|
12665
|
+
* @deprecated
|
|
12666
|
+
*/
|
|
12667
|
+
frameProcessId: number,
|
|
12668
|
+
/**
|
|
12669
|
+
* @deprecated
|
|
12670
|
+
*/
|
|
12671
|
+
frameRoutingId: number) => void): this;
|
|
11325
12672
|
once(event: 'did-redirect-navigation', listener: (details: Event<WebContentsDidRedirectNavigationEventParams>,
|
|
11326
12673
|
/**
|
|
11327
12674
|
* @deprecated
|
|
@@ -11389,6 +12736,7 @@ declare namespace Electron {
|
|
|
11389
12736
|
* Corresponds to the points in time when the spinner of the tab started spinning.
|
|
11390
12737
|
*/
|
|
11391
12738
|
on(event: 'did-start-loading', listener: Function): this;
|
|
12739
|
+
off(event: 'did-start-loading', listener: Function): this;
|
|
11392
12740
|
once(event: 'did-start-loading', listener: Function): this;
|
|
11393
12741
|
addListener(event: 'did-start-loading', listener: Function): this;
|
|
11394
12742
|
removeListener(event: 'did-start-loading', listener: Function): this;
|
|
@@ -11416,6 +12764,27 @@ declare namespace Electron {
|
|
|
11416
12764
|
* @deprecated
|
|
11417
12765
|
*/
|
|
11418
12766
|
frameRoutingId: number) => void): this;
|
|
12767
|
+
off(event: 'did-start-navigation', listener: (details: Event<WebContentsDidStartNavigationEventParams>,
|
|
12768
|
+
/**
|
|
12769
|
+
* @deprecated
|
|
12770
|
+
*/
|
|
12771
|
+
url: string,
|
|
12772
|
+
/**
|
|
12773
|
+
* @deprecated
|
|
12774
|
+
*/
|
|
12775
|
+
isInPlace: boolean,
|
|
12776
|
+
/**
|
|
12777
|
+
* @deprecated
|
|
12778
|
+
*/
|
|
12779
|
+
isMainFrame: boolean,
|
|
12780
|
+
/**
|
|
12781
|
+
* @deprecated
|
|
12782
|
+
*/
|
|
12783
|
+
frameProcessId: number,
|
|
12784
|
+
/**
|
|
12785
|
+
* @deprecated
|
|
12786
|
+
*/
|
|
12787
|
+
frameRoutingId: number) => void): this;
|
|
11419
12788
|
once(event: 'did-start-navigation', listener: (details: Event<WebContentsDidStartNavigationEventParams>,
|
|
11420
12789
|
/**
|
|
11421
12790
|
* @deprecated
|
|
@@ -11483,6 +12852,7 @@ declare namespace Electron {
|
|
|
11483
12852
|
* Corresponds to the points in time when the spinner of the tab stopped spinning.
|
|
11484
12853
|
*/
|
|
11485
12854
|
on(event: 'did-stop-loading', listener: Function): this;
|
|
12855
|
+
off(event: 'did-stop-loading', listener: Function): this;
|
|
11486
12856
|
once(event: 'did-stop-loading', listener: Function): this;
|
|
11487
12857
|
addListener(event: 'did-stop-loading', listener: Function): this;
|
|
11488
12858
|
removeListener(event: 'did-stop-loading', listener: Function): this;
|
|
@@ -11490,6 +12860,7 @@ declare namespace Electron {
|
|
|
11490
12860
|
* Emitted when the document in the top-level frame is loaded.
|
|
11491
12861
|
*/
|
|
11492
12862
|
on(event: 'dom-ready', listener: Function): this;
|
|
12863
|
+
off(event: 'dom-ready', listener: Function): this;
|
|
11493
12864
|
once(event: 'dom-ready', listener: Function): this;
|
|
11494
12865
|
addListener(event: 'dom-ready', listener: Function): this;
|
|
11495
12866
|
removeListener(event: 'dom-ready', listener: Function): this;
|
|
@@ -11497,6 +12868,7 @@ declare namespace Electron {
|
|
|
11497
12868
|
* Emitted when the window enters a full-screen state triggered by HTML API.
|
|
11498
12869
|
*/
|
|
11499
12870
|
on(event: 'enter-html-full-screen', listener: Function): this;
|
|
12871
|
+
off(event: 'enter-html-full-screen', listener: Function): this;
|
|
11500
12872
|
once(event: 'enter-html-full-screen', listener: Function): this;
|
|
11501
12873
|
addListener(event: 'enter-html-full-screen', listener: Function): this;
|
|
11502
12874
|
removeListener(event: 'enter-html-full-screen', listener: Function): this;
|
|
@@ -11513,6 +12885,7 @@ declare namespace Electron {
|
|
|
11513
12885
|
* window.
|
|
11514
12886
|
*/
|
|
11515
12887
|
on(event: 'focus', listener: Function): this;
|
|
12888
|
+
off(event: 'focus', listener: Function): this;
|
|
11516
12889
|
once(event: 'focus', listener: Function): this;
|
|
11517
12890
|
addListener(event: 'focus', listener: Function): this;
|
|
11518
12891
|
removeListener(event: 'focus', listener: Function): this;
|
|
@@ -11521,6 +12894,8 @@ declare namespace Electron {
|
|
|
11521
12894
|
*/
|
|
11522
12895
|
on(event: 'found-in-page', listener: (event: Event,
|
|
11523
12896
|
result: Result) => void): this;
|
|
12897
|
+
off(event: 'found-in-page', listener: (event: Event,
|
|
12898
|
+
result: Result) => void): this;
|
|
11524
12899
|
once(event: 'found-in-page', listener: (event: Event,
|
|
11525
12900
|
result: Result) => void): this;
|
|
11526
12901
|
addListener(event: 'found-in-page', listener: (event: Event,
|
|
@@ -11533,6 +12908,8 @@ declare namespace Electron {
|
|
|
11533
12908
|
*/
|
|
11534
12909
|
on(event: 'frame-created', listener: (event: Event,
|
|
11535
12910
|
details: FrameCreatedDetails) => void): this;
|
|
12911
|
+
off(event: 'frame-created', listener: (event: Event,
|
|
12912
|
+
details: FrameCreatedDetails) => void): this;
|
|
11536
12913
|
once(event: 'frame-created', listener: (event: Event,
|
|
11537
12914
|
details: FrameCreatedDetails) => void): this;
|
|
11538
12915
|
addListener(event: 'frame-created', listener: (event: Event,
|
|
@@ -11545,6 +12922,8 @@ declare namespace Electron {
|
|
|
11545
12922
|
*/
|
|
11546
12923
|
on(event: 'input-event', listener: (event: Event,
|
|
11547
12924
|
inputEvent: InputEvent) => void): this;
|
|
12925
|
+
off(event: 'input-event', listener: (event: Event,
|
|
12926
|
+
inputEvent: InputEvent) => void): this;
|
|
11548
12927
|
once(event: 'input-event', listener: (event: Event,
|
|
11549
12928
|
inputEvent: InputEvent) => void): this;
|
|
11550
12929
|
addListener(event: 'input-event', listener: (event: Event,
|
|
@@ -11561,6 +12940,9 @@ declare namespace Electron {
|
|
|
11561
12940
|
on(event: 'ipc-message', listener: (event: IpcMainEvent,
|
|
11562
12941
|
channel: string,
|
|
11563
12942
|
...args: any[]) => void): this;
|
|
12943
|
+
off(event: 'ipc-message', listener: (event: IpcMainEvent,
|
|
12944
|
+
channel: string,
|
|
12945
|
+
...args: any[]) => void): this;
|
|
11564
12946
|
once(event: 'ipc-message', listener: (event: IpcMainEvent,
|
|
11565
12947
|
channel: string,
|
|
11566
12948
|
...args: any[]) => void): this;
|
|
@@ -11580,6 +12962,9 @@ declare namespace Electron {
|
|
|
11580
12962
|
on(event: 'ipc-message-sync', listener: (event: IpcMainEvent,
|
|
11581
12963
|
channel: string,
|
|
11582
12964
|
...args: any[]) => void): this;
|
|
12965
|
+
off(event: 'ipc-message-sync', listener: (event: IpcMainEvent,
|
|
12966
|
+
channel: string,
|
|
12967
|
+
...args: any[]) => void): this;
|
|
11583
12968
|
once(event: 'ipc-message-sync', listener: (event: IpcMainEvent,
|
|
11584
12969
|
channel: string,
|
|
11585
12970
|
...args: any[]) => void): this;
|
|
@@ -11593,6 +12978,7 @@ declare namespace Electron {
|
|
|
11593
12978
|
* Emitted when the window leaves a full-screen state triggered by HTML API.
|
|
11594
12979
|
*/
|
|
11595
12980
|
on(event: 'leave-html-full-screen', listener: Function): this;
|
|
12981
|
+
off(event: 'leave-html-full-screen', listener: Function): this;
|
|
11596
12982
|
once(event: 'leave-html-full-screen', listener: Function): this;
|
|
11597
12983
|
addListener(event: 'leave-html-full-screen', listener: Function): this;
|
|
11598
12984
|
removeListener(event: 'leave-html-full-screen', listener: Function): this;
|
|
@@ -11605,6 +12991,10 @@ declare namespace Electron {
|
|
|
11605
12991
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
11606
12992
|
authInfo: AuthInfo,
|
|
11607
12993
|
callback: (username?: string, password?: string) => void) => void): this;
|
|
12994
|
+
off(event: 'login', listener: (event: Event,
|
|
12995
|
+
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
12996
|
+
authInfo: AuthInfo,
|
|
12997
|
+
callback: (username?: string, password?: string) => void) => void): this;
|
|
11608
12998
|
once(event: 'login', listener: (event: Event,
|
|
11609
12999
|
authenticationResponseDetails: AuthenticationResponseDetails,
|
|
11610
13000
|
authInfo: AuthInfo,
|
|
@@ -11621,6 +13011,7 @@ declare namespace Electron {
|
|
|
11621
13011
|
* Emitted when media is paused or done playing.
|
|
11622
13012
|
*/
|
|
11623
13013
|
on(event: 'media-paused', listener: Function): this;
|
|
13014
|
+
off(event: 'media-paused', listener: Function): this;
|
|
11624
13015
|
once(event: 'media-paused', listener: Function): this;
|
|
11625
13016
|
addListener(event: 'media-paused', listener: Function): this;
|
|
11626
13017
|
removeListener(event: 'media-paused', listener: Function): this;
|
|
@@ -11628,6 +13019,7 @@ declare namespace Electron {
|
|
|
11628
13019
|
* Emitted when media starts playing.
|
|
11629
13020
|
*/
|
|
11630
13021
|
on(event: 'media-started-playing', listener: Function): this;
|
|
13022
|
+
off(event: 'media-started-playing', listener: Function): this;
|
|
11631
13023
|
once(event: 'media-started-playing', listener: Function): this;
|
|
11632
13024
|
addListener(event: 'media-started-playing', listener: Function): this;
|
|
11633
13025
|
removeListener(event: 'media-started-playing', listener: Function): this;
|
|
@@ -11639,6 +13031,11 @@ declare namespace Electron {
|
|
|
11639
13031
|
* Array of URLs.
|
|
11640
13032
|
*/
|
|
11641
13033
|
favicons: string[]) => void): this;
|
|
13034
|
+
off(event: 'page-favicon-updated', listener: (event: Event,
|
|
13035
|
+
/**
|
|
13036
|
+
* Array of URLs.
|
|
13037
|
+
*/
|
|
13038
|
+
favicons: string[]) => void): this;
|
|
11642
13039
|
once(event: 'page-favicon-updated', listener: (event: Event,
|
|
11643
13040
|
/**
|
|
11644
13041
|
* Array of URLs.
|
|
@@ -11661,6 +13058,9 @@ declare namespace Electron {
|
|
|
11661
13058
|
on(event: 'page-title-updated', listener: (event: Event,
|
|
11662
13059
|
title: string,
|
|
11663
13060
|
explicitSet: boolean) => void): this;
|
|
13061
|
+
off(event: 'page-title-updated', listener: (event: Event,
|
|
13062
|
+
title: string,
|
|
13063
|
+
explicitSet: boolean) => void): this;
|
|
11664
13064
|
once(event: 'page-title-updated', listener: (event: Event,
|
|
11665
13065
|
title: string,
|
|
11666
13066
|
explicitSet: boolean) => void): this;
|
|
@@ -11680,6 +13080,12 @@ declare namespace Electron {
|
|
|
11680
13080
|
* The image data of the whole frame.
|
|
11681
13081
|
*/
|
|
11682
13082
|
image: NativeImage) => void): this;
|
|
13083
|
+
off(event: 'paint', listener: (event: Event,
|
|
13084
|
+
dirtyRect: Rectangle,
|
|
13085
|
+
/**
|
|
13086
|
+
* The image data of the whole frame.
|
|
13087
|
+
*/
|
|
13088
|
+
image: NativeImage) => void): this;
|
|
11683
13089
|
once(event: 'paint', listener: (event: Event,
|
|
11684
13090
|
dirtyRect: Rectangle,
|
|
11685
13091
|
/**
|
|
@@ -11704,6 +13110,9 @@ declare namespace Electron {
|
|
|
11704
13110
|
on(event: 'plugin-crashed', listener: (event: Event,
|
|
11705
13111
|
name: string,
|
|
11706
13112
|
version: string) => void): this;
|
|
13113
|
+
off(event: 'plugin-crashed', listener: (event: Event,
|
|
13114
|
+
name: string,
|
|
13115
|
+
version: string) => void): this;
|
|
11707
13116
|
once(event: 'plugin-crashed', listener: (event: Event,
|
|
11708
13117
|
name: string,
|
|
11709
13118
|
version: string) => void): this;
|
|
@@ -11725,6 +13134,12 @@ declare namespace Electron {
|
|
|
11725
13134
|
* scrolling.
|
|
11726
13135
|
*/
|
|
11727
13136
|
preferredSize: Size) => void): this;
|
|
13137
|
+
off(event: 'preferred-size-changed', listener: (event: Event,
|
|
13138
|
+
/**
|
|
13139
|
+
* The minimum size needed to contain the layout of the document—without requiring
|
|
13140
|
+
* scrolling.
|
|
13141
|
+
*/
|
|
13142
|
+
preferredSize: Size) => void): this;
|
|
11728
13143
|
once(event: 'preferred-size-changed', listener: (event: Event,
|
|
11729
13144
|
/**
|
|
11730
13145
|
* The minimum size needed to contain the layout of the document—without requiring
|
|
@@ -11750,6 +13165,9 @@ declare namespace Electron {
|
|
|
11750
13165
|
on(event: 'preload-error', listener: (event: Event,
|
|
11751
13166
|
preloadPath: string,
|
|
11752
13167
|
error: Error) => void): this;
|
|
13168
|
+
off(event: 'preload-error', listener: (event: Event,
|
|
13169
|
+
preloadPath: string,
|
|
13170
|
+
error: Error) => void): this;
|
|
11753
13171
|
once(event: 'preload-error', listener: (event: Event,
|
|
11754
13172
|
preloadPath: string,
|
|
11755
13173
|
error: Error) => void): this;
|
|
@@ -11765,6 +13183,8 @@ declare namespace Electron {
|
|
|
11765
13183
|
*/
|
|
11766
13184
|
on(event: 'render-process-gone', listener: (event: Event,
|
|
11767
13185
|
details: RenderProcessGoneDetails) => void): this;
|
|
13186
|
+
off(event: 'render-process-gone', listener: (event: Event,
|
|
13187
|
+
details: RenderProcessGoneDetails) => void): this;
|
|
11768
13188
|
once(event: 'render-process-gone', listener: (event: Event,
|
|
11769
13189
|
details: RenderProcessGoneDetails) => void): this;
|
|
11770
13190
|
addListener(event: 'render-process-gone', listener: (event: Event,
|
|
@@ -11775,6 +13195,7 @@ declare namespace Electron {
|
|
|
11775
13195
|
* Emitted when the unresponsive web page becomes responsive again.
|
|
11776
13196
|
*/
|
|
11777
13197
|
on(event: 'responsive', listener: Function): this;
|
|
13198
|
+
off(event: 'responsive', listener: Function): this;
|
|
11778
13199
|
once(event: 'responsive', listener: Function): this;
|
|
11779
13200
|
addListener(event: 'responsive', listener: Function): this;
|
|
11780
13201
|
removeListener(event: 'responsive', listener: Function): this;
|
|
@@ -11796,6 +13217,9 @@ declare namespace Electron {
|
|
|
11796
13217
|
on(event: 'select-bluetooth-device', listener: (event: Event,
|
|
11797
13218
|
devices: BluetoothDevice[],
|
|
11798
13219
|
callback: (deviceId: string) => void) => void): this;
|
|
13220
|
+
off(event: 'select-bluetooth-device', listener: (event: Event,
|
|
13221
|
+
devices: BluetoothDevice[],
|
|
13222
|
+
callback: (deviceId: string) => void) => void): this;
|
|
11799
13223
|
once(event: 'select-bluetooth-device', listener: (event: Event,
|
|
11800
13224
|
devices: BluetoothDevice[],
|
|
11801
13225
|
callback: (deviceId: string) => void) => void): this;
|
|
@@ -11814,6 +13238,10 @@ declare namespace Electron {
|
|
|
11814
13238
|
url: string,
|
|
11815
13239
|
certificateList: Certificate[],
|
|
11816
13240
|
callback: (certificate: Certificate) => void) => void): this;
|
|
13241
|
+
off(event: 'select-client-certificate', listener: (event: Event,
|
|
13242
|
+
url: string,
|
|
13243
|
+
certificateList: Certificate[],
|
|
13244
|
+
callback: (certificate: Certificate) => void) => void): this;
|
|
11817
13245
|
once(event: 'select-client-certificate', listener: (event: Event,
|
|
11818
13246
|
url: string,
|
|
11819
13247
|
certificateList: Certificate[],
|
|
@@ -11830,6 +13258,7 @@ declare namespace Electron {
|
|
|
11830
13258
|
* Emitted when the web page becomes unresponsive.
|
|
11831
13259
|
*/
|
|
11832
13260
|
on(event: 'unresponsive', listener: Function): this;
|
|
13261
|
+
off(event: 'unresponsive', listener: Function): this;
|
|
11833
13262
|
once(event: 'unresponsive', listener: Function): this;
|
|
11834
13263
|
addListener(event: 'unresponsive', listener: Function): this;
|
|
11835
13264
|
removeListener(event: 'unresponsive', listener: Function): this;
|
|
@@ -11838,6 +13267,8 @@ declare namespace Electron {
|
|
|
11838
13267
|
*/
|
|
11839
13268
|
on(event: 'update-target-url', listener: (event: Event,
|
|
11840
13269
|
url: string) => void): this;
|
|
13270
|
+
off(event: 'update-target-url', listener: (event: Event,
|
|
13271
|
+
url: string) => void): this;
|
|
11841
13272
|
once(event: 'update-target-url', listener: (event: Event,
|
|
11842
13273
|
url: string) => void): this;
|
|
11843
13274
|
addListener(event: 'update-target-url', listener: (event: Event,
|
|
@@ -11863,6 +13294,17 @@ declare namespace Electron {
|
|
|
11863
13294
|
* modified to adjust the parameters of the guest page.
|
|
11864
13295
|
*/
|
|
11865
13296
|
params: Record<string, string>) => void): this;
|
|
13297
|
+
off(event: 'will-attach-webview', listener: (event: Event,
|
|
13298
|
+
/**
|
|
13299
|
+
* The web preferences that will be used by the guest page. This object can be
|
|
13300
|
+
* modified to adjust the preferences for the guest page.
|
|
13301
|
+
*/
|
|
13302
|
+
webPreferences: WebPreferences,
|
|
13303
|
+
/**
|
|
13304
|
+
* The other `<webview>` parameters such as the `src` URL. This object can be
|
|
13305
|
+
* modified to adjust the parameters of the guest page.
|
|
13306
|
+
*/
|
|
13307
|
+
params: Record<string, string>) => void): this;
|
|
11866
13308
|
once(event: 'will-attach-webview', listener: (event: Event,
|
|
11867
13309
|
/**
|
|
11868
13310
|
* The web preferences that will be used by the guest page. This object can be
|
|
@@ -11915,6 +13357,7 @@ declare namespace Electron {
|
|
|
11915
13357
|
* Calling `event.preventDefault()` will prevent the navigation.
|
|
11916
13358
|
*/
|
|
11917
13359
|
on(event: 'will-frame-navigate', listener: (details: Event<WebContentsWillFrameNavigateEventParams>) => void): this;
|
|
13360
|
+
off(event: 'will-frame-navigate', listener: (details: Event<WebContentsWillFrameNavigateEventParams>) => void): this;
|
|
11918
13361
|
once(event: 'will-frame-navigate', listener: (details: Event<WebContentsWillFrameNavigateEventParams>) => void): this;
|
|
11919
13362
|
addListener(event: 'will-frame-navigate', listener: (details: Event<WebContentsWillFrameNavigateEventParams>) => void): this;
|
|
11920
13363
|
removeListener(event: 'will-frame-navigate', listener: (details: Event<WebContentsWillFrameNavigateEventParams>) => void): this;
|
|
@@ -11953,6 +13396,27 @@ declare namespace Electron {
|
|
|
11953
13396
|
* @deprecated
|
|
11954
13397
|
*/
|
|
11955
13398
|
frameRoutingId: number) => void): this;
|
|
13399
|
+
off(event: 'will-navigate', listener: (details: Event<WebContentsWillNavigateEventParams>,
|
|
13400
|
+
/**
|
|
13401
|
+
* @deprecated
|
|
13402
|
+
*/
|
|
13403
|
+
url: string,
|
|
13404
|
+
/**
|
|
13405
|
+
* @deprecated
|
|
13406
|
+
*/
|
|
13407
|
+
isInPlace: boolean,
|
|
13408
|
+
/**
|
|
13409
|
+
* @deprecated
|
|
13410
|
+
*/
|
|
13411
|
+
isMainFrame: boolean,
|
|
13412
|
+
/**
|
|
13413
|
+
* @deprecated
|
|
13414
|
+
*/
|
|
13415
|
+
frameProcessId: number,
|
|
13416
|
+
/**
|
|
13417
|
+
* @deprecated
|
|
13418
|
+
*/
|
|
13419
|
+
frameRoutingId: number) => void): this;
|
|
11956
13420
|
once(event: 'will-navigate', listener: (details: Event<WebContentsWillNavigateEventParams>,
|
|
11957
13421
|
/**
|
|
11958
13422
|
* @deprecated
|
|
@@ -12028,6 +13492,7 @@ declare namespace Electron {
|
|
|
12028
13492
|
* owning BrowserWindow should one exist per the specification.
|
|
12029
13493
|
*/
|
|
12030
13494
|
on(event: 'will-prevent-unload', listener: (event: Event) => void): this;
|
|
13495
|
+
off(event: 'will-prevent-unload', listener: (event: Event) => void): this;
|
|
12031
13496
|
once(event: 'will-prevent-unload', listener: (event: Event) => void): this;
|
|
12032
13497
|
addListener(event: 'will-prevent-unload', listener: (event: Event) => void): this;
|
|
12033
13498
|
removeListener(event: 'will-prevent-unload', listener: (event: Event) => void): this;
|
|
@@ -12062,7 +13527,7 @@ declare namespace Electron {
|
|
|
12062
13527
|
* @deprecated
|
|
12063
13528
|
*/
|
|
12064
13529
|
frameRoutingId: number) => void): this;
|
|
12065
|
-
|
|
13530
|
+
off(event: 'will-redirect', listener: (details: Event<WebContentsWillRedirectEventParams>,
|
|
12066
13531
|
/**
|
|
12067
13532
|
* @deprecated
|
|
12068
13533
|
*/
|
|
@@ -12083,7 +13548,7 @@ declare namespace Electron {
|
|
|
12083
13548
|
* @deprecated
|
|
12084
13549
|
*/
|
|
12085
13550
|
frameRoutingId: number) => void): this;
|
|
12086
|
-
|
|
13551
|
+
once(event: 'will-redirect', listener: (details: Event<WebContentsWillRedirectEventParams>,
|
|
12087
13552
|
/**
|
|
12088
13553
|
* @deprecated
|
|
12089
13554
|
*/
|
|
@@ -12104,7 +13569,7 @@ declare namespace Electron {
|
|
|
12104
13569
|
* @deprecated
|
|
12105
13570
|
*/
|
|
12106
13571
|
frameRoutingId: number) => void): this;
|
|
12107
|
-
|
|
13572
|
+
addListener(event: 'will-redirect', listener: (details: Event<WebContentsWillRedirectEventParams>,
|
|
12108
13573
|
/**
|
|
12109
13574
|
* @deprecated
|
|
12110
13575
|
*/
|
|
@@ -12125,15 +13590,41 @@ declare namespace Electron {
|
|
|
12125
13590
|
* @deprecated
|
|
12126
13591
|
*/
|
|
12127
13592
|
frameRoutingId: number) => void): this;
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
13593
|
+
removeListener(event: 'will-redirect', listener: (details: Event<WebContentsWillRedirectEventParams>,
|
|
13594
|
+
/**
|
|
13595
|
+
* @deprecated
|
|
13596
|
+
*/
|
|
13597
|
+
url: string,
|
|
13598
|
+
/**
|
|
13599
|
+
* @deprecated
|
|
13600
|
+
*/
|
|
13601
|
+
isInPlace: boolean,
|
|
13602
|
+
/**
|
|
13603
|
+
* @deprecated
|
|
13604
|
+
*/
|
|
13605
|
+
isMainFrame: boolean,
|
|
13606
|
+
/**
|
|
13607
|
+
* @deprecated
|
|
13608
|
+
*/
|
|
13609
|
+
frameProcessId: number,
|
|
13610
|
+
/**
|
|
13611
|
+
* @deprecated
|
|
13612
|
+
*/
|
|
13613
|
+
frameRoutingId: number) => void): this;
|
|
13614
|
+
/**
|
|
13615
|
+
* Emitted when the user is requesting to change the zoom level using the mouse
|
|
13616
|
+
* wheel.
|
|
13617
|
+
*/
|
|
13618
|
+
on(event: 'zoom-changed', listener: (event: Event,
|
|
13619
|
+
/**
|
|
13620
|
+
* Can be `in` or `out`.
|
|
13621
|
+
*/
|
|
13622
|
+
zoomDirection: ('in' | 'out')) => void): this;
|
|
13623
|
+
off(event: 'zoom-changed', listener: (event: Event,
|
|
13624
|
+
/**
|
|
13625
|
+
* Can be `in` or `out`.
|
|
13626
|
+
*/
|
|
13627
|
+
zoomDirection: ('in' | 'out')) => void): this;
|
|
12137
13628
|
once(event: 'zoom-changed', listener: (event: Event,
|
|
12138
13629
|
/**
|
|
12139
13630
|
* Can be `in` or `out`.
|
|
@@ -13114,6 +14605,7 @@ declare namespace Electron {
|
|
|
13114
14605
|
* Emitted when the document is loaded.
|
|
13115
14606
|
*/
|
|
13116
14607
|
on(event: 'dom-ready', listener: Function): this;
|
|
14608
|
+
off(event: 'dom-ready', listener: Function): this;
|
|
13117
14609
|
once(event: 'dom-ready', listener: Function): this;
|
|
13118
14610
|
addListener(event: 'dom-ready', listener: Function): this;
|
|
13119
14611
|
removeListener(event: 'dom-ready', listener: Function): this;
|
|
@@ -13809,6 +15301,9 @@ declare namespace Electron {
|
|
|
13809
15301
|
* @deprecated
|
|
13810
15302
|
*/
|
|
13811
15303
|
addEventListener(event: 'crashed', listener: (event: DOMEvent) => void, useCapture?: boolean): this;
|
|
15304
|
+
/**
|
|
15305
|
+
* @deprecated
|
|
15306
|
+
*/
|
|
13812
15307
|
removeEventListener(event: 'crashed', listener: (event: DOMEvent) => void): this;
|
|
13813
15308
|
/**
|
|
13814
15309
|
* Fired when the renderer process unexpectedly disappears. This is normally
|
|
@@ -17985,44 +19480,6 @@ declare namespace Electron {
|
|
|
17985
19480
|
name: string;
|
|
17986
19481
|
}
|
|
17987
19482
|
|
|
17988
|
-
interface RemoteMainInterface {
|
|
17989
|
-
app: App;
|
|
17990
|
-
autoUpdater: AutoUpdater;
|
|
17991
|
-
BrowserView: typeof BrowserView;
|
|
17992
|
-
BrowserWindow: typeof BrowserWindow;
|
|
17993
|
-
clipboard: Clipboard;
|
|
17994
|
-
contentTracing: ContentTracing;
|
|
17995
|
-
crashReporter: CrashReporter;
|
|
17996
|
-
desktopCapturer: DesktopCapturer;
|
|
17997
|
-
dialog: Dialog;
|
|
17998
|
-
globalShortcut: GlobalShortcut;
|
|
17999
|
-
inAppPurchase: InAppPurchase;
|
|
18000
|
-
ipcMain: IpcMain;
|
|
18001
|
-
Menu: typeof Menu;
|
|
18002
|
-
MenuItem: typeof MenuItem;
|
|
18003
|
-
MessageChannelMain: typeof MessageChannelMain;
|
|
18004
|
-
nativeImage: typeof NativeImage;
|
|
18005
|
-
nativeTheme: NativeTheme;
|
|
18006
|
-
net: Net;
|
|
18007
|
-
netLog: NetLog;
|
|
18008
|
-
Notification: typeof Notification;
|
|
18009
|
-
powerMonitor: PowerMonitor;
|
|
18010
|
-
powerSaveBlocker: PowerSaveBlocker;
|
|
18011
|
-
protocol: Protocol;
|
|
18012
|
-
pushNotifications: PushNotifications;
|
|
18013
|
-
safeStorage: SafeStorage;
|
|
18014
|
-
screen: Screen;
|
|
18015
|
-
session: typeof Session;
|
|
18016
|
-
ShareMenu: typeof ShareMenu;
|
|
18017
|
-
shell: Shell;
|
|
18018
|
-
systemPreferences: SystemPreferences;
|
|
18019
|
-
TouchBar: typeof TouchBar;
|
|
18020
|
-
Tray: typeof Tray;
|
|
18021
|
-
utilityProcess: typeof UtilityProcess;
|
|
18022
|
-
webContents: typeof WebContents;
|
|
18023
|
-
webFrameMain: typeof WebFrameMain;
|
|
18024
|
-
}
|
|
18025
|
-
|
|
18026
19483
|
|
|
18027
19484
|
|
|
18028
19485
|
namespace Common {
|
|
@@ -18215,8 +19672,8 @@ declare namespace Electron {
|
|
|
18215
19672
|
type PageRanges = Electron.PageRanges;
|
|
18216
19673
|
type Params = Electron.Params;
|
|
18217
19674
|
type Video = Electron.Video;
|
|
18218
|
-
type BluetoothDevice = Electron.BluetoothDevice;
|
|
18219
19675
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
19676
|
+
type BluetoothDevice = Electron.BluetoothDevice;
|
|
18220
19677
|
type Certificate = Electron.Certificate;
|
|
18221
19678
|
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
18222
19679
|
type Cookie = Electron.Cookie;
|
|
@@ -18542,8 +19999,8 @@ declare namespace Electron {
|
|
|
18542
19999
|
type PageRanges = Electron.PageRanges;
|
|
18543
20000
|
type Params = Electron.Params;
|
|
18544
20001
|
type Video = Electron.Video;
|
|
18545
|
-
type BluetoothDevice = Electron.BluetoothDevice;
|
|
18546
20002
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
20003
|
+
type BluetoothDevice = Electron.BluetoothDevice;
|
|
18547
20004
|
type Certificate = Electron.Certificate;
|
|
18548
20005
|
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
18549
20006
|
type Cookie = Electron.Cookie;
|
|
@@ -18803,8 +20260,266 @@ declare namespace Electron {
|
|
|
18803
20260
|
type PageRanges = Electron.PageRanges;
|
|
18804
20261
|
type Params = Electron.Params;
|
|
18805
20262
|
type Video = Electron.Video;
|
|
20263
|
+
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
18806
20264
|
type BluetoothDevice = Electron.BluetoothDevice;
|
|
20265
|
+
type Certificate = Electron.Certificate;
|
|
20266
|
+
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
20267
|
+
type Cookie = Electron.Cookie;
|
|
20268
|
+
type CPUUsage = Electron.CPUUsage;
|
|
20269
|
+
type CrashReport = Electron.CrashReport;
|
|
20270
|
+
type CustomScheme = Electron.CustomScheme;
|
|
20271
|
+
type DesktopCapturerSource = Electron.DesktopCapturerSource;
|
|
20272
|
+
type Display = Electron.Display;
|
|
20273
|
+
type Extension = Electron.Extension;
|
|
20274
|
+
type ExtensionInfo = Electron.ExtensionInfo;
|
|
20275
|
+
type FileFilter = Electron.FileFilter;
|
|
20276
|
+
type FilePathWithHeaders = Electron.FilePathWithHeaders;
|
|
20277
|
+
type GPUFeatureStatus = Electron.GPUFeatureStatus;
|
|
20278
|
+
type HIDDevice = Electron.HIDDevice;
|
|
20279
|
+
type InputEvent = Electron.InputEvent;
|
|
20280
|
+
type IOCounters = Electron.IOCounters;
|
|
20281
|
+
type IpcMainEvent = Electron.IpcMainEvent;
|
|
20282
|
+
type IpcMainInvokeEvent = Electron.IpcMainInvokeEvent;
|
|
20283
|
+
type IpcRendererEvent = Electron.IpcRendererEvent;
|
|
20284
|
+
type JumpListCategory = Electron.JumpListCategory;
|
|
20285
|
+
type JumpListItem = Electron.JumpListItem;
|
|
20286
|
+
type KeyboardEvent = Electron.KeyboardEvent;
|
|
20287
|
+
type KeyboardInputEvent = Electron.KeyboardInputEvent;
|
|
20288
|
+
type MemoryInfo = Electron.MemoryInfo;
|
|
20289
|
+
type MemoryUsageDetails = Electron.MemoryUsageDetails;
|
|
20290
|
+
type MimeTypedBuffer = Electron.MimeTypedBuffer;
|
|
20291
|
+
type MouseInputEvent = Electron.MouseInputEvent;
|
|
20292
|
+
type MouseWheelInputEvent = Electron.MouseWheelInputEvent;
|
|
20293
|
+
type NotificationAction = Electron.NotificationAction;
|
|
20294
|
+
type NotificationResponse = Electron.NotificationResponse;
|
|
20295
|
+
type PaymentDiscount = Electron.PaymentDiscount;
|
|
20296
|
+
type Point = Electron.Point;
|
|
20297
|
+
type PostBody = Electron.PostBody;
|
|
20298
|
+
type PrinterInfo = Electron.PrinterInfo;
|
|
20299
|
+
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
20300
|
+
type ProcessMetric = Electron.ProcessMetric;
|
|
20301
|
+
type Product = Electron.Product;
|
|
20302
|
+
type ProductDiscount = Electron.ProductDiscount;
|
|
20303
|
+
type ProductSubscriptionPeriod = Electron.ProductSubscriptionPeriod;
|
|
20304
|
+
type ProtocolRequest = Electron.ProtocolRequest;
|
|
20305
|
+
type ProtocolResponse = Electron.ProtocolResponse;
|
|
20306
|
+
type ProtocolResponseUploadData = Electron.ProtocolResponseUploadData;
|
|
20307
|
+
type Rectangle = Electron.Rectangle;
|
|
20308
|
+
type Referrer = Electron.Referrer;
|
|
20309
|
+
type RenderProcessGoneDetails = Electron.RenderProcessGoneDetails;
|
|
20310
|
+
type ResolvedEndpoint = Electron.ResolvedEndpoint;
|
|
20311
|
+
type ResolvedHost = Electron.ResolvedHost;
|
|
20312
|
+
type ScrubberItem = Electron.ScrubberItem;
|
|
20313
|
+
type SegmentedControlSegment = Electron.SegmentedControlSegment;
|
|
20314
|
+
type SerialPort = Electron.SerialPort;
|
|
20315
|
+
type ServiceWorkerInfo = Electron.ServiceWorkerInfo;
|
|
20316
|
+
type SharedWorkerInfo = Electron.SharedWorkerInfo;
|
|
20317
|
+
type SharingItem = Electron.SharingItem;
|
|
20318
|
+
type ShortcutDetails = Electron.ShortcutDetails;
|
|
20319
|
+
type Size = Electron.Size;
|
|
20320
|
+
type Task = Electron.Task;
|
|
20321
|
+
type ThumbarButton = Electron.ThumbarButton;
|
|
20322
|
+
type TraceCategoriesAndOptions = Electron.TraceCategoriesAndOptions;
|
|
20323
|
+
type TraceConfig = Electron.TraceConfig;
|
|
20324
|
+
type Transaction = Electron.Transaction;
|
|
20325
|
+
type UploadData = Electron.UploadData;
|
|
20326
|
+
type UploadFile = Electron.UploadFile;
|
|
20327
|
+
type UploadRawData = Electron.UploadRawData;
|
|
20328
|
+
type USBDevice = Electron.USBDevice;
|
|
20329
|
+
type UserDefaultTypes = Electron.UserDefaultTypes;
|
|
20330
|
+
type WebPreferences = Electron.WebPreferences;
|
|
20331
|
+
type WebRequestFilter = Electron.WebRequestFilter;
|
|
20332
|
+
type WebSource = Electron.WebSource;
|
|
20333
|
+
}
|
|
20334
|
+
|
|
20335
|
+
namespace Utility {
|
|
20336
|
+
type Event<Params extends object = {}> = Electron.Event<Params>;
|
|
20337
|
+
type ClientRequest = Electron.ClientRequest;
|
|
20338
|
+
type IncomingMessage = Electron.IncomingMessage;
|
|
20339
|
+
const net: Net;
|
|
20340
|
+
type Net = Electron.Net;
|
|
20341
|
+
type AboutPanelOptionsOptions = Electron.AboutPanelOptionsOptions;
|
|
20342
|
+
type AddRepresentationOptions = Electron.AddRepresentationOptions;
|
|
20343
|
+
type AdjustSelectionOptions = Electron.AdjustSelectionOptions;
|
|
20344
|
+
type AnimationSettings = Electron.AnimationSettings;
|
|
20345
|
+
type AppDetailsOptions = Electron.AppDetailsOptions;
|
|
20346
|
+
type ApplicationInfoForProtocolReturnValue = Electron.ApplicationInfoForProtocolReturnValue;
|
|
20347
|
+
type AuthenticationResponseDetails = Electron.AuthenticationResponseDetails;
|
|
20348
|
+
type AuthInfo = Electron.AuthInfo;
|
|
20349
|
+
type AutoResizeOptions = Electron.AutoResizeOptions;
|
|
20350
|
+
type BeforeSendResponse = Electron.BeforeSendResponse;
|
|
20351
|
+
type BitmapOptions = Electron.BitmapOptions;
|
|
20352
|
+
type BlinkMemoryInfo = Electron.BlinkMemoryInfo;
|
|
20353
|
+
type BluetoothPairingHandlerHandlerDetails = Electron.BluetoothPairingHandlerHandlerDetails;
|
|
20354
|
+
type BrowserViewConstructorOptions = Electron.BrowserViewConstructorOptions;
|
|
20355
|
+
type CallbackResponse = Electron.CallbackResponse;
|
|
20356
|
+
type CertificateTrustDialogOptions = Electron.CertificateTrustDialogOptions;
|
|
20357
|
+
type ClearCodeCachesOptions = Electron.ClearCodeCachesOptions;
|
|
20358
|
+
type ClearStorageDataOptions = Electron.ClearStorageDataOptions;
|
|
20359
|
+
type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
|
|
20360
|
+
type CloseOpts = Electron.CloseOpts;
|
|
20361
|
+
type Config = Electron.Config;
|
|
20362
|
+
type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
|
|
20363
|
+
type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
|
|
20364
|
+
type ContextMenuEvent = Electron.ContextMenuEvent;
|
|
20365
|
+
type ContextMenuParams = Electron.ContextMenuParams;
|
|
20366
|
+
type ContinueActivityDetails = Electron.ContinueActivityDetails;
|
|
20367
|
+
type CookiesGetFilter = Electron.CookiesGetFilter;
|
|
20368
|
+
type CookiesSetDetails = Electron.CookiesSetDetails;
|
|
20369
|
+
type CrashReporterStartOptions = Electron.CrashReporterStartOptions;
|
|
20370
|
+
type CreateFromBitmapOptions = Electron.CreateFromBitmapOptions;
|
|
20371
|
+
type CreateFromBufferOptions = Electron.CreateFromBufferOptions;
|
|
20372
|
+
type CreateInterruptedDownloadOptions = Electron.CreateInterruptedDownloadOptions;
|
|
20373
|
+
type Data = Electron.Data;
|
|
20374
|
+
type DefaultFontFamily = Electron.DefaultFontFamily;
|
|
20375
|
+
type Details = Electron.Details;
|
|
20376
|
+
type DevicePermissionHandlerHandlerDetails = Electron.DevicePermissionHandlerHandlerDetails;
|
|
20377
|
+
type DevtoolsOpenUrlEvent = Electron.DevtoolsOpenUrlEvent;
|
|
20378
|
+
type DidChangeThemeColorEvent = Electron.DidChangeThemeColorEvent;
|
|
20379
|
+
type DidCreateWindowDetails = Electron.DidCreateWindowDetails;
|
|
20380
|
+
type DidFailLoadEvent = Electron.DidFailLoadEvent;
|
|
20381
|
+
type DidFrameFinishLoadEvent = Electron.DidFrameFinishLoadEvent;
|
|
20382
|
+
type DidFrameNavigateEvent = Electron.DidFrameNavigateEvent;
|
|
20383
|
+
type DidNavigateEvent = Electron.DidNavigateEvent;
|
|
20384
|
+
type DidNavigateInPageEvent = Electron.DidNavigateInPageEvent;
|
|
20385
|
+
type DidRedirectNavigationEvent = Electron.DidRedirectNavigationEvent;
|
|
20386
|
+
type DidStartNavigationEvent = Electron.DidStartNavigationEvent;
|
|
20387
|
+
type DisplayBalloonOptions = Electron.DisplayBalloonOptions;
|
|
20388
|
+
type DisplayMediaRequestHandlerHandlerRequest = Electron.DisplayMediaRequestHandlerHandlerRequest;
|
|
20389
|
+
type DownloadURLOptions = Electron.DownloadURLOptions;
|
|
20390
|
+
type EnableNetworkEmulationOptions = Electron.EnableNetworkEmulationOptions;
|
|
20391
|
+
type FeedURLOptions = Electron.FeedURLOptions;
|
|
20392
|
+
type FileIconOptions = Electron.FileIconOptions;
|
|
20393
|
+
type FindInPageOptions = Electron.FindInPageOptions;
|
|
20394
|
+
type FocusOptions = Electron.FocusOptions;
|
|
20395
|
+
type ForkOptions = Electron.ForkOptions;
|
|
20396
|
+
type FoundInPageEvent = Electron.FoundInPageEvent;
|
|
20397
|
+
type FrameCreatedDetails = Electron.FrameCreatedDetails;
|
|
20398
|
+
type FromPartitionOptions = Electron.FromPartitionOptions;
|
|
20399
|
+
type FromPathOptions = Electron.FromPathOptions;
|
|
20400
|
+
type HandlerDetails = Electron.HandlerDetails;
|
|
20401
|
+
type HeadersReceivedResponse = Electron.HeadersReceivedResponse;
|
|
20402
|
+
type HeapStatistics = Electron.HeapStatistics;
|
|
20403
|
+
type HidDeviceAddedDetails = Electron.HidDeviceAddedDetails;
|
|
20404
|
+
type HidDeviceRemovedDetails = Electron.HidDeviceRemovedDetails;
|
|
20405
|
+
type HidDeviceRevokedDetails = Electron.HidDeviceRevokedDetails;
|
|
20406
|
+
type IgnoreMouseEventsOptions = Electron.IgnoreMouseEventsOptions;
|
|
20407
|
+
type ImportCertificateOptions = Electron.ImportCertificateOptions;
|
|
20408
|
+
type Info = Electron.Info;
|
|
20409
|
+
type Input = Electron.Input;
|
|
20410
|
+
type InsertCSSOptions = Electron.InsertCSSOptions;
|
|
20411
|
+
type IpcMessageEvent = Electron.IpcMessageEvent;
|
|
20412
|
+
type Item = Electron.Item;
|
|
20413
|
+
type JumpListSettings = Electron.JumpListSettings;
|
|
20414
|
+
type LoadCommitEvent = Electron.LoadCommitEvent;
|
|
20415
|
+
type LoadExtensionOptions = Electron.LoadExtensionOptions;
|
|
20416
|
+
type LoadFileOptions = Electron.LoadFileOptions;
|
|
20417
|
+
type LoadURLOptions = Electron.LoadURLOptions;
|
|
20418
|
+
type LoginItemSettings = Electron.LoginItemSettings;
|
|
20419
|
+
type LoginItemSettingsOptions = Electron.LoginItemSettingsOptions;
|
|
20420
|
+
type MenuItemConstructorOptions = Electron.MenuItemConstructorOptions;
|
|
20421
|
+
type MessageBoxOptions = Electron.MessageBoxOptions;
|
|
20422
|
+
type MessageBoxReturnValue = Electron.MessageBoxReturnValue;
|
|
20423
|
+
type MessageBoxSyncOptions = Electron.MessageBoxSyncOptions;
|
|
20424
|
+
type MessageDetails = Electron.MessageDetails;
|
|
20425
|
+
type MessageEvent = Electron.MessageEvent;
|
|
20426
|
+
type MoveToApplicationsFolderOptions = Electron.MoveToApplicationsFolderOptions;
|
|
20427
|
+
type NotificationConstructorOptions = Electron.NotificationConstructorOptions;
|
|
20428
|
+
type OnBeforeRedirectListenerDetails = Electron.OnBeforeRedirectListenerDetails;
|
|
20429
|
+
type OnBeforeRequestListenerDetails = Electron.OnBeforeRequestListenerDetails;
|
|
20430
|
+
type OnBeforeSendHeadersListenerDetails = Electron.OnBeforeSendHeadersListenerDetails;
|
|
20431
|
+
type OnCompletedListenerDetails = Electron.OnCompletedListenerDetails;
|
|
20432
|
+
type OnErrorOccurredListenerDetails = Electron.OnErrorOccurredListenerDetails;
|
|
20433
|
+
type OnHeadersReceivedListenerDetails = Electron.OnHeadersReceivedListenerDetails;
|
|
20434
|
+
type OnResponseStartedListenerDetails = Electron.OnResponseStartedListenerDetails;
|
|
20435
|
+
type OnSendHeadersListenerDetails = Electron.OnSendHeadersListenerDetails;
|
|
20436
|
+
type OpenDevToolsOptions = Electron.OpenDevToolsOptions;
|
|
20437
|
+
type OpenDialogOptions = Electron.OpenDialogOptions;
|
|
20438
|
+
type OpenDialogReturnValue = Electron.OpenDialogReturnValue;
|
|
20439
|
+
type OpenDialogSyncOptions = Electron.OpenDialogSyncOptions;
|
|
20440
|
+
type OpenExternalOptions = Electron.OpenExternalOptions;
|
|
20441
|
+
type Options = Electron.Options;
|
|
20442
|
+
type Opts = Electron.Opts;
|
|
20443
|
+
type PageFaviconUpdatedEvent = Electron.PageFaviconUpdatedEvent;
|
|
20444
|
+
type PageTitleUpdatedEvent = Electron.PageTitleUpdatedEvent;
|
|
20445
|
+
type Parameters = Electron.Parameters;
|
|
20446
|
+
type Payment = Electron.Payment;
|
|
20447
|
+
type PermissionCheckHandlerHandlerDetails = Electron.PermissionCheckHandlerHandlerDetails;
|
|
20448
|
+
type PermissionRequestHandlerHandlerDetails = Electron.PermissionRequestHandlerHandlerDetails;
|
|
20449
|
+
type PluginCrashedEvent = Electron.PluginCrashedEvent;
|
|
20450
|
+
type PopupOptions = Electron.PopupOptions;
|
|
20451
|
+
type PreconnectOptions = Electron.PreconnectOptions;
|
|
20452
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
20453
|
+
type Privileges = Electron.Privileges;
|
|
20454
|
+
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
20455
|
+
type Provider = Electron.Provider;
|
|
20456
|
+
type PurchaseProductOpts = Electron.PurchaseProductOpts;
|
|
20457
|
+
type ReadBookmark = Electron.ReadBookmark;
|
|
20458
|
+
type RegistrationCompletedDetails = Electron.RegistrationCompletedDetails;
|
|
20459
|
+
type RelaunchOptions = Electron.RelaunchOptions;
|
|
20460
|
+
type RenderProcessGoneEvent = Electron.RenderProcessGoneEvent;
|
|
20461
|
+
type Request = Electron.Request;
|
|
20462
|
+
type ResizeOptions = Electron.ResizeOptions;
|
|
20463
|
+
type ResolveHostOptions = Electron.ResolveHostOptions;
|
|
20464
|
+
type ResourceUsage = Electron.ResourceUsage;
|
|
20465
|
+
type Response = Electron.Response;
|
|
20466
|
+
type Result = Electron.Result;
|
|
20467
|
+
type SaveDialogOptions = Electron.SaveDialogOptions;
|
|
20468
|
+
type SaveDialogReturnValue = Electron.SaveDialogReturnValue;
|
|
20469
|
+
type SaveDialogSyncOptions = Electron.SaveDialogSyncOptions;
|
|
20470
|
+
type SelectHidDeviceDetails = Electron.SelectHidDeviceDetails;
|
|
20471
|
+
type SelectUsbDeviceDetails = Electron.SelectUsbDeviceDetails;
|
|
20472
|
+
type SerialPortRevokedDetails = Electron.SerialPortRevokedDetails;
|
|
20473
|
+
type Settings = Electron.Settings;
|
|
20474
|
+
type SourcesOptions = Electron.SourcesOptions;
|
|
20475
|
+
type SSLConfigConfig = Electron.SSLConfigConfig;
|
|
20476
|
+
type StartLoggingOptions = Electron.StartLoggingOptions;
|
|
20477
|
+
type Streams = Electron.Streams;
|
|
20478
|
+
type SystemMemoryInfo = Electron.SystemMemoryInfo;
|
|
20479
|
+
type TitleBarOverlay = Electron.TitleBarOverlay;
|
|
20480
|
+
type TitleBarOverlayOptions = Electron.TitleBarOverlayOptions;
|
|
20481
|
+
type TitleOptions = Electron.TitleOptions;
|
|
20482
|
+
type ToBitmapOptions = Electron.ToBitmapOptions;
|
|
20483
|
+
type ToDataURLOptions = Electron.ToDataURLOptions;
|
|
20484
|
+
type ToPNGOptions = Electron.ToPNGOptions;
|
|
20485
|
+
type TouchBarButtonConstructorOptions = Electron.TouchBarButtonConstructorOptions;
|
|
20486
|
+
type TouchBarColorPickerConstructorOptions = Electron.TouchBarColorPickerConstructorOptions;
|
|
20487
|
+
type TouchBarConstructorOptions = Electron.TouchBarConstructorOptions;
|
|
20488
|
+
type TouchBarGroupConstructorOptions = Electron.TouchBarGroupConstructorOptions;
|
|
20489
|
+
type TouchBarLabelConstructorOptions = Electron.TouchBarLabelConstructorOptions;
|
|
20490
|
+
type TouchBarPopoverConstructorOptions = Electron.TouchBarPopoverConstructorOptions;
|
|
20491
|
+
type TouchBarScrubberConstructorOptions = Electron.TouchBarScrubberConstructorOptions;
|
|
20492
|
+
type TouchBarSegmentedControlConstructorOptions = Electron.TouchBarSegmentedControlConstructorOptions;
|
|
20493
|
+
type TouchBarSliderConstructorOptions = Electron.TouchBarSliderConstructorOptions;
|
|
20494
|
+
type TouchBarSpacerConstructorOptions = Electron.TouchBarSpacerConstructorOptions;
|
|
20495
|
+
type TraceBufferUsageReturnValue = Electron.TraceBufferUsageReturnValue;
|
|
20496
|
+
type UpdateTargetUrlEvent = Electron.UpdateTargetUrlEvent;
|
|
20497
|
+
type UploadProgress = Electron.UploadProgress;
|
|
20498
|
+
type UsbDeviceRevokedDetails = Electron.UsbDeviceRevokedDetails;
|
|
20499
|
+
type USBProtectedClassesHandlerHandlerDetails = Electron.USBProtectedClassesHandlerHandlerDetails;
|
|
20500
|
+
type VisibleOnAllWorkspacesOptions = Electron.VisibleOnAllWorkspacesOptions;
|
|
20501
|
+
type WebContentsAudioStateChangedEventParams = Electron.WebContentsAudioStateChangedEventParams;
|
|
20502
|
+
type WebContentsDidRedirectNavigationEventParams = Electron.WebContentsDidRedirectNavigationEventParams;
|
|
20503
|
+
type WebContentsDidStartNavigationEventParams = Electron.WebContentsDidStartNavigationEventParams;
|
|
20504
|
+
type WebContentsPrintOptions = Electron.WebContentsPrintOptions;
|
|
20505
|
+
type WebContentsWillFrameNavigateEventParams = Electron.WebContentsWillFrameNavigateEventParams;
|
|
20506
|
+
type WebContentsWillNavigateEventParams = Electron.WebContentsWillNavigateEventParams;
|
|
20507
|
+
type WebContentsWillRedirectEventParams = Electron.WebContentsWillRedirectEventParams;
|
|
20508
|
+
type WebviewTagPrintOptions = Electron.WebviewTagPrintOptions;
|
|
20509
|
+
type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
|
|
20510
|
+
type WillNavigateEvent = Electron.WillNavigateEvent;
|
|
20511
|
+
type WillResizeDetails = Electron.WillResizeDetails;
|
|
20512
|
+
type EditFlags = Electron.EditFlags;
|
|
20513
|
+
type Env = Electron.Env;
|
|
20514
|
+
type FoundInPageResult = Electron.FoundInPageResult;
|
|
20515
|
+
type LaunchItems = Electron.LaunchItems;
|
|
20516
|
+
type Margins = Electron.Margins;
|
|
20517
|
+
type MediaFlags = Electron.MediaFlags;
|
|
20518
|
+
type PageRanges = Electron.PageRanges;
|
|
20519
|
+
type Params = Electron.Params;
|
|
20520
|
+
type Video = Electron.Video;
|
|
18807
20521
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
20522
|
+
type BluetoothDevice = Electron.BluetoothDevice;
|
|
18808
20523
|
type Certificate = Electron.Certificate;
|
|
18809
20524
|
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
18810
20525
|
type Cookie = Electron.Cookie;
|
|
@@ -19145,8 +20860,8 @@ declare namespace Electron {
|
|
|
19145
20860
|
type PageRanges = Electron.PageRanges;
|
|
19146
20861
|
type Params = Electron.Params;
|
|
19147
20862
|
type Video = Electron.Video;
|
|
19148
|
-
type BluetoothDevice = Electron.BluetoothDevice;
|
|
19149
20863
|
type BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
|
20864
|
+
type BluetoothDevice = Electron.BluetoothDevice;
|
|
19150
20865
|
type Certificate = Electron.Certificate;
|
|
19151
20866
|
type CertificatePrincipal = Electron.CertificatePrincipal;
|
|
19152
20867
|
type Cookie = Electron.Cookie;
|
|
@@ -19266,11 +20981,16 @@ declare module 'electron/renderer' {
|
|
|
19266
20981
|
export = Electron.Renderer;
|
|
19267
20982
|
}
|
|
19268
20983
|
|
|
20984
|
+
declare module 'electron/utility' {
|
|
20985
|
+
export = Electron.Utility;
|
|
20986
|
+
}
|
|
20987
|
+
|
|
19269
20988
|
interface NodeRequireFunction {
|
|
19270
20989
|
(moduleName: 'electron'): typeof Electron.CrossProcessExports;
|
|
19271
20990
|
(moduleName: 'electron/main'): typeof Electron.Main;
|
|
19272
20991
|
(moduleName: 'electron/common'): typeof Electron.Common;
|
|
19273
20992
|
(moduleName: 'electron/renderer'): typeof Electron.Renderer;
|
|
20993
|
+
(moduleName: 'electron/utility'): typeof Electron.Utility;
|
|
19274
20994
|
}
|
|
19275
20995
|
|
|
19276
20996
|
interface NodeRequire {
|
|
@@ -19278,6 +20998,7 @@ interface NodeRequire {
|
|
|
19278
20998
|
(moduleName: 'electron/main'): typeof Electron.Main;
|
|
19279
20999
|
(moduleName: 'electron/common'): typeof Electron.Common;
|
|
19280
21000
|
(moduleName: 'electron/renderer'): typeof Electron.Renderer;
|
|
21001
|
+
(moduleName: 'electron/utility'): typeof Electron.Utility;
|
|
19281
21002
|
}
|
|
19282
21003
|
|
|
19283
21004
|
interface File {
|
|
@@ -19312,6 +21033,7 @@ declare namespace NodeJS {
|
|
|
19312
21033
|
* beginning to load the web page or the main script.
|
|
19313
21034
|
*/
|
|
19314
21035
|
on(event: 'loaded', listener: Function): this;
|
|
21036
|
+
off(event: 'loaded', listener: Function): this;
|
|
19315
21037
|
once(event: 'loaded', listener: Function): this;
|
|
19316
21038
|
addListener(event: 'loaded', listener: Function): this;
|
|
19317
21039
|
removeListener(event: 'loaded', listener: Function): this;
|