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') },
|
2023-05-25 11:36:12 +00:00
|
|
|
{ name: 'clipboard', loader: () => require('./clipboard') },
|
2019-06-02 20:03:03 +00:00
|
|
|
{ name: 'contentTracing', loader: () => require('./content-tracing') },
|
|
|
|
{ name: 'crashReporter', loader: () => require('./crash-reporter') },
|
2023-05-24 19:32:31 +00:00
|
|
|
{ name: 'desktopCapturer', loader: () => require('./desktop-capturer') },
|
2019-06-02 20:03:03 +00:00
|
|
|
{ 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') },
|
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') },
|
2022-07-12 15:38:49 +00:00
|
|
|
{ name: 'pushNotifications', loader: () => require('./push-notifications') },
|
2019-06-02 20:03:03 +00:00
|
|
|
{ name: 'protocol', loader: () => require('./protocol') },
|
2021-08-05 22:12:54 +00:00
|
|
|
{ name: 'safeStorage', loader: () => require('./safe-storage') },
|
2019-06-02 20:03:03 +00:00
|
|
|
{ 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') },
|
2022-10-20 05:49:49 +00:00
|
|
|
{ name: 'utilityProcess', loader: () => require('./utility-process') },
|
2019-06-02 20:03:03 +00:00
|
|
|
{ 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') }
|
2017-03-06 14:58:10 +00:00
|
|
|
];
|
2018-08-26 23:03:46 +00:00
|
|
|
|
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') }
|
2018-08-26 23:03:46 +00:00
|
|
|
);
|
|
|
|
}
|