2019-06-02 20:03:03 +00:00
|
|
|
// TODO: Updating this file also required updating the module-keys file
|
|
|
|
|
2017-03-06 14:58:10 +00:00
|
|
|
// Browser side modules, please sort alphabetically.
|
2019-08-23 09:18:58 +00:00
|
|
|
export const browserModuleList: ElectronInternal.ModuleEntry[] = [
|
2019-06-02 20:03:03 +00:00
|
|
|
{ name: 'app', loader: () => require('./app') },
|
|
|
|
{ name: 'autoUpdater', loader: () => require('./auto-updater') },
|
2020-06-29 07:06:20 +00:00
|
|
|
{ name: 'BaseWindow', loader: () => require('./base-window') },
|
2019-06-02 20:03:03 +00:00
|
|
|
{ name: 'BrowserView', loader: () => require('./browser-view') },
|
|
|
|
{ name: 'BrowserWindow', loader: () => require('./browser-window') },
|
|
|
|
{ name: 'contentTracing', loader: () => require('./content-tracing') },
|
|
|
|
{ name: 'crashReporter', loader: () => require('./crash-reporter') },
|
|
|
|
{ name: 'dialog', loader: () => require('./dialog') },
|
|
|
|
{ name: 'globalShortcut', loader: () => require('./global-shortcut') },
|
|
|
|
{ name: 'ipcMain', loader: () => require('./ipc-main') },
|
|
|
|
{ name: 'inAppPurchase', loader: () => require('./in-app-purchase') },
|
|
|
|
{ name: 'Menu', loader: () => require('./menu') },
|
|
|
|
{ name: 'MenuItem', loader: () => require('./menu-item') },
|
2020-03-12 01:07:54 +00:00
|
|
|
{ name: 'MessageChannelMain', loader: () => require('./message-channel') },
|
2020-08-24 16:36:13 +00:00
|
|
|
{ name: 'nativeImage', loader: () => require('./native-image') },
|
2019-09-16 21:23:13 +00:00
|
|
|
{ name: 'nativeTheme', loader: () => require('./native-theme') },
|
2019-06-02 20:03:03 +00:00
|
|
|
{ name: 'net', loader: () => require('./net') },
|
|
|
|
{ name: 'netLog', loader: () => require('./net-log') },
|
|
|
|
{ name: 'Notification', loader: () => require('./notification') },
|
|
|
|
{ name: 'powerMonitor', loader: () => require('./power-monitor') },
|
|
|
|
{ name: 'powerSaveBlocker', loader: () => require('./power-save-blocker') },
|
|
|
|
{ name: 'protocol', loader: () => require('./protocol') },
|
|
|
|
{ name: 'screen', loader: () => require('./screen') },
|
|
|
|
{ name: 'session', loader: () => require('./session') },
|
2020-10-20 01:33:06 +00:00
|
|
|
{ name: 'ShareMenu', loader: () => require('./share-menu') },
|
2019-06-02 20:03:03 +00:00
|
|
|
{ name: 'systemPreferences', loader: () => require('./system-preferences') },
|
|
|
|
{ name: 'TouchBar', loader: () => require('./touch-bar') },
|
|
|
|
{ name: 'Tray', loader: () => require('./tray') },
|
|
|
|
{ name: 'View', loader: () => require('./view') },
|
|
|
|
{ name: 'webContents', loader: () => require('./web-contents') },
|
2020-10-09 16:50:46 +00:00
|
|
|
{ name: 'WebContentsView', loader: () => require('./web-contents-view') },
|
|
|
|
{ name: 'webFrameMain', loader: () => require('./web-frame-main') }
|
2020-03-20 20:28:31 +00:00
|
|
|
];
|
2018-08-26 23:03:46 +00:00
|
|
|
|
2020-05-21 00:25:49 +00:00
|
|
|
if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
|
|
|
|
browserModuleList.push(
|
|
|
|
{ name: 'desktopCapturer', loader: () => require('./desktop-capturer') }
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-05-10 23:06:07 +00:00
|
|
|
if (BUILDFLAG(ENABLE_VIEWS_API)) {
|
2019-08-23 09:18:58 +00:00
|
|
|
browserModuleList.push(
|
2020-03-28 06:44:57 +00:00
|
|
|
{ name: 'ImageView', loader: () => require('./views/image-view') }
|
2020-03-20 20:28:31 +00:00
|
|
|
);
|
2018-08-26 23:03:46 +00:00
|
|
|
}
|