1- // Type definitions for Electron 35.3 .0+wvcus
1+ // Type definitions for Electron 35.4 .0+wvcus
22// Project: http://electronjs.org/
33// Definitions by: The Electron Team <https://github.com/electron/electron>
44// Definitions: https://github.com/electron/typescript-definitions
@@ -2355,43 +2355,45 @@ declare namespace Electron {
23552355 *
23562356 * Calling `event.preventDefault()` will prevent the menu from being displayed.
23572357 *
2358- * @platform win32
2358+ * To convert `point` to DIP, use `screen.screenToDipPoint(point)`.
2359+ *
2360+ * @platform win32,linux
23592361 */
23602362 on(event: 'system-context-menu', listener: (event: Event,
23612363 /**
2362- * The screen coordinates the context menu was triggered at
2364+ * The screen coordinates where the context menu was triggered.
23632365 */
23642366 point: Point) => void): this;
23652367 /**
2366- * @platform win32
2368+ * @platform win32,linux
23672369 */
23682370 off(event: 'system-context-menu', listener: (event: Event,
23692371 /**
2370- * The screen coordinates the context menu was triggered at
2372+ * The screen coordinates where the context menu was triggered.
23712373 */
23722374 point: Point) => void): this;
23732375 /**
2374- * @platform win32
2376+ * @platform win32,linux
23752377 */
23762378 once(event: 'system-context-menu', listener: (event: Event,
23772379 /**
2378- * The screen coordinates the context menu was triggered at
2380+ * The screen coordinates where the context menu was triggered.
23792381 */
23802382 point: Point) => void): this;
23812383 /**
2382- * @platform win32
2384+ * @platform win32,linux
23832385 */
23842386 addListener(event: 'system-context-menu', listener: (event: Event,
23852387 /**
2386- * The screen coordinates the context menu was triggered at
2388+ * The screen coordinates where the context menu was triggered.
23872389 */
23882390 point: Point) => void): this;
23892391 /**
2390- * @platform win32
2392+ * @platform win32,linux
23912393 */
23922394 removeListener(event: 'system-context-menu', listener: (event: Event,
23932395 /**
2394- * The screen coordinates the context menu was triggered at
2396+ * The screen coordinates where the context menu was triggered.
23952397 */
23962398 point: Point) => void): this;
23972399 /**
@@ -4757,43 +4759,45 @@ declare namespace Electron {
47574759 *
47584760 * Calling `event.preventDefault()` will prevent the menu from being displayed.
47594761 *
4760- * @platform win32
4762+ * To convert `point` to DIP, use `screen.screenToDipPoint(point)`.
4763+ *
4764+ * @platform win32,linux
47614765 */
47624766 on(event: 'system-context-menu', listener: (event: Event,
47634767 /**
4764- * The screen coordinates the context menu was triggered at
4768+ * The screen coordinates where the context menu was triggered.
47654769 */
47664770 point: Point) => void): this;
47674771 /**
4768- * @platform win32
4772+ * @platform win32,linux
47694773 */
47704774 off(event: 'system-context-menu', listener: (event: Event,
47714775 /**
4772- * The screen coordinates the context menu was triggered at
4776+ * The screen coordinates where the context menu was triggered.
47734777 */
47744778 point: Point) => void): this;
47754779 /**
4776- * @platform win32
4780+ * @platform win32,linux
47774781 */
47784782 once(event: 'system-context-menu', listener: (event: Event,
47794783 /**
4780- * The screen coordinates the context menu was triggered at
4784+ * The screen coordinates where the context menu was triggered.
47814785 */
47824786 point: Point) => void): this;
47834787 /**
4784- * @platform win32
4788+ * @platform win32,linux
47854789 */
47864790 addListener(event: 'system-context-menu', listener: (event: Event,
47874791 /**
4788- * The screen coordinates the context menu was triggered at
4792+ * The screen coordinates where the context menu was triggered.
47894793 */
47904794 point: Point) => void): this;
47914795 /**
4792- * @platform win32
4796+ * @platform win32,linux
47934797 */
47944798 removeListener(event: 'system-context-menu', listener: (event: Event,
47954799 /**
4796- * The screen coordinates the context menu was triggered at
4800+ * The screen coordinates where the context menu was triggered.
47974801 */
47984802 point: Point) => void): this;
47994803 /**
@@ -4804,43 +4808,45 @@ declare namespace Electron {
48044808 *
48054809 * Calling `event.preventDefault()` will prevent the menu from being displayed.
48064810 *
4807- * @platform win32
4811+ * To convert `point` to DIP, use `screen.screenToDipPoint(point)`.
4812+ *
4813+ * @platform win32,linux
48084814 */
48094815 on(event: 'system-context-menu', listener: (event: Event,
48104816 /**
4811- * The screen coordinates the context menu was triggered at
4817+ * The screen coordinates where the context menu was triggered.
48124818 */
48134819 point: Point) => void): this;
48144820 /**
4815- * @platform win32
4821+ * @platform win32,linux
48164822 */
48174823 off(event: 'system-context-menu', listener: (event: Event,
48184824 /**
4819- * The screen coordinates the context menu was triggered at
4825+ * The screen coordinates where the context menu was triggered.
48204826 */
48214827 point: Point) => void): this;
48224828 /**
4823- * @platform win32
4829+ * @platform win32,linux
48244830 */
48254831 once(event: 'system-context-menu', listener: (event: Event,
48264832 /**
4827- * The screen coordinates the context menu was triggered at
4833+ * The screen coordinates where the context menu was triggered.
48284834 */
48294835 point: Point) => void): this;
48304836 /**
4831- * @platform win32
4837+ * @platform win32,linux
48324838 */
48334839 addListener(event: 'system-context-menu', listener: (event: Event,
48344840 /**
4835- * The screen coordinates the context menu was triggered at
4841+ * The screen coordinates where the context menu was triggered.
48364842 */
48374843 point: Point) => void): this;
48384844 /**
4839- * @platform win32
4845+ * @platform win32,linux
48404846 */
48414847 removeListener(event: 'system-context-menu', listener: (event: Event,
48424848 /**
4843- * The screen coordinates the context menu was triggered at
4849+ * The screen coordinates where the context menu was triggered.
48444850 */
48454851 point: Point) => void): this;
48464852 /**
0 commit comments