feat: add webFrameMain API to the main process (#25464)
This commit is contained in:
parent
647df1e547
commit
704d69a8f9
18 changed files with 778 additions and 8 deletions
|
@ -31,7 +31,8 @@ export const browserModuleList: ElectronInternal.ModuleEntry[] = [
|
|||
{ name: 'Tray', loader: () => require('./tray') },
|
||||
{ name: 'View', loader: () => require('./view') },
|
||||
{ name: 'webContents', loader: () => require('./web-contents') },
|
||||
{ name: 'WebContentsView', loader: () => require('./web-contents-view') }
|
||||
{ name: 'WebContentsView', loader: () => require('./web-contents-view') },
|
||||
{ name: 'webFrameMain', loader: () => require('./web-frame-main') }
|
||||
];
|
||||
|
||||
if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
|
||||
|
|
|
@ -34,7 +34,8 @@ export const browserModuleNames = [
|
|||
'Tray',
|
||||
'View',
|
||||
'webContents',
|
||||
'WebContentsView'
|
||||
'WebContentsView',
|
||||
'webFrameMain'
|
||||
];
|
||||
|
||||
if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
|
||||
|
|
5
lib/browser/api/web-frame-main.ts
Normal file
5
lib/browser/api/web-frame-main.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
const { fromId } = process._linkedBinding('electron_browser_web_frame_main');
|
||||
|
||||
export default {
|
||||
fromId
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue