electron/lib/browser/api/exports/electron.js

113 lines
2.1 KiB
JavaScript
Raw Normal View History

2016-03-08 19:07:42 +00:00
const common = require('../../../common/api/exports/electron');
2016-01-12 02:40:23 +00:00
2016-01-14 18:35:29 +00:00
// Import common modules.
2016-01-12 02:40:23 +00:00
common.defineProperties(exports);
Object.defineProperties(exports, {
2016-01-14 18:35:29 +00:00
// Browser side modules, please sort with alphabet order.
2016-01-12 02:40:23 +00:00
app: {
enumerable: true,
get: function() {
return require('../app');
}
},
autoUpdater: {
enumerable: true,
get: function() {
return require('../auto-updater');
}
},
BrowserWindow: {
enumerable: true,
get: function() {
return require('../browser-window');
}
},
contentTracing: {
enumerable: true,
get: function() {
return require('../content-tracing');
}
},
dialog: {
enumerable: true,
get: function() {
return require('../dialog');
}
},
ipcMain: {
enumerable: true,
get: function() {
return require('../ipc-main');
}
},
globalShortcut: {
enumerable: true,
get: function() {
return require('../global-shortcut');
}
},
Menu: {
enumerable: true,
get: function() {
return require('../menu');
}
},
MenuItem: {
enumerable: true,
get: function() {
return require('../menu-item');
}
},
powerMonitor: {
enumerable: true,
get: function() {
return require('../power-monitor');
}
},
powerSaveBlocker: {
enumerable: true,
get: function() {
return require('../power-save-blocker');
}
},
protocol: {
enumerable: true,
get: function() {
return require('../protocol');
}
},
screen: {
enumerable: true,
get: function() {
return require('../screen');
}
},
session: {
enumerable: true,
get: function() {
return require('../session');
}
},
Tray: {
enumerable: true,
get: function() {
return require('../tray');
}
},
2016-01-14 18:35:29 +00:00
// The internal modules, invisible unless you know their names.
2016-01-12 02:40:23 +00:00
NavigationController: {
get: function() {
return require('../navigation-controller');
}
},
webContents: {
get: function() {
return require('../web-contents');
}
}
});