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

111 lines
2.1 KiB
JavaScript
Raw Normal View History

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.
common.defineProperties(exports)
2016-01-12 02:40:23 +00:00
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')
2016-01-12 02:40:23 +00:00
}
},
autoUpdater: {
enumerable: true,
get: function () {
return require('../auto-updater')
2016-01-12 02:40:23 +00:00
}
},
BrowserWindow: {
enumerable: true,
get: function () {
return require('../browser-window')
2016-01-12 02:40:23 +00:00
}
},
contentTracing: {
enumerable: true,
get: function () {
return require('../content-tracing')
2016-01-12 02:40:23 +00:00
}
},
dialog: {
enumerable: true,
get: function () {
return require('../dialog')
2016-01-12 02:40:23 +00:00
}
},
ipcMain: {
enumerable: true,
get: function () {
return require('../ipc-main')
2016-01-12 02:40:23 +00:00
}
},
globalShortcut: {
enumerable: true,
get: function () {
return require('../global-shortcut')
2016-01-12 02:40:23 +00:00
}
},
Menu: {
enumerable: true,
get: function () {
return require('../menu')
2016-01-12 02:40:23 +00:00
}
},
MenuItem: {
enumerable: true,
get: function () {
return require('../menu-item')
2016-01-12 02:40:23 +00:00
}
},
powerMonitor: {
enumerable: true,
get: function () {
return require('../power-monitor')
2016-01-12 02:40:23 +00:00
}
},
powerSaveBlocker: {
enumerable: true,
get: function () {
return require('../power-save-blocker')
2016-01-12 02:40:23 +00:00
}
},
protocol: {
enumerable: true,
get: function () {
return require('../protocol')
2016-01-12 02:40:23 +00:00
}
},
screen: {
enumerable: true,
get: function () {
return require('../screen')
2016-01-12 02:40:23 +00:00
}
},
session: {
enumerable: true,
get: function () {
return require('../session')
2016-01-12 02:40:23 +00:00
}
},
Tray: {
enumerable: true,
get: function () {
return require('../tray')
2016-01-12 02:40:23 +00:00
}
},
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')
2016-01-12 02:40:23 +00:00
}
},
webContents: {
get: function () {
return require('../web-contents')
2016-01-12 02:40:23 +00:00
}
}
})