2020-05-11 01:06:07 +02:00
|
|
|
// TODO: Figure out a way to not duplicate this information between here and module-list
|
|
|
|
// It is currently duplicated as module-list "require"s all the browser API file and the
|
|
|
|
// remote module in the renderer process depends on that file. As a result webpack
|
|
|
|
// includes all the browser API files in the renderer process as well and we want to avoid that
|
|
|
|
|
|
|
|
// Browser side modules, please sort alphabetically.
|
|
|
|
export const browserModuleNames = [
|
|
|
|
'app',
|
|
|
|
'autoUpdater',
|
2020-06-29 16:06:20 +09:00
|
|
|
'BaseWindow',
|
2020-05-11 01:06:07 +02:00
|
|
|
'BrowserView',
|
|
|
|
'BrowserWindow',
|
|
|
|
'contentTracing',
|
|
|
|
'crashReporter',
|
|
|
|
'dialog',
|
|
|
|
'globalShortcut',
|
|
|
|
'ipcMain',
|
|
|
|
'inAppPurchase',
|
|
|
|
'Menu',
|
|
|
|
'MenuItem',
|
2020-08-24 09:36:13 -07:00
|
|
|
'nativeImage',
|
2020-05-11 01:06:07 +02:00
|
|
|
'nativeTheme',
|
|
|
|
'net',
|
|
|
|
'netLog',
|
|
|
|
'MessageChannelMain',
|
|
|
|
'Notification',
|
|
|
|
'powerMonitor',
|
|
|
|
'powerSaveBlocker',
|
|
|
|
'protocol',
|
|
|
|
'screen',
|
|
|
|
'session',
|
2020-10-20 10:33:06 +09:00
|
|
|
'ShareMenu',
|
2020-05-11 01:06:07 +02:00
|
|
|
'systemPreferences',
|
|
|
|
'TouchBar',
|
|
|
|
'Tray',
|
|
|
|
'View',
|
|
|
|
'webContents',
|
2020-10-09 12:50:46 -04:00
|
|
|
'WebContentsView',
|
|
|
|
'webFrameMain'
|
2020-05-11 01:06:07 +02:00
|
|
|
];
|
|
|
|
|
2020-05-21 02:25:49 +02:00
|
|
|
if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
|
|
|
|
browserModuleNames.push('desktopCapturer');
|
|
|
|
}
|
|
|
|
|
2020-05-11 01:06:07 +02:00
|
|
|
if (BUILDFLAG(ENABLE_VIEWS_API)) {
|
|
|
|
browserModuleNames.push(
|
|
|
|
'ImageView'
|
|
|
|
);
|
|
|
|
}
|