electron/lib/renderer/api/exports/electron.js

39 lines
767 B
JavaScript
Raw Normal View History

2016-03-25 19:57:17 +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-03-25 19:57:17 +00:00
common.defineProperties(exports)
2016-01-12 02:40:23 +00:00
Object.defineProperties(exports, {
2016-01-14 18:35:29 +00:00
// Renderer side modules, please sort with alphabet order.
2016-01-12 02:40:23 +00:00
desktopCapturer: {
enumerable: true,
2016-03-25 19:57:17 +00:00
get: function () {
return require('../desktop-capturer')
2016-01-12 02:40:23 +00:00
}
},
ipcRenderer: {
enumerable: true,
2016-03-25 19:57:17 +00:00
get: function () {
return require('../ipc-renderer')
2016-01-12 02:40:23 +00:00
}
},
remote: {
enumerable: true,
2016-03-25 19:57:17 +00:00
get: function () {
return require('../remote')
2016-01-12 02:40:23 +00:00
}
},
screen: {
enumerable: true,
2016-03-25 19:57:17 +00:00
get: function () {
return require('../screen')
2016-01-12 02:40:23 +00:00
}
},
webFrame: {
enumerable: true,
2016-03-25 19:57:17 +00:00
get: function () {
return require('../web-frame')
2016-01-12 02:40:23 +00:00
}
}
2016-03-25 19:57:17 +00:00
})