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

132 lines
2.5 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, {
2017-02-27 16:56:32 +00:00
// Browser side modules, please sort alphabetically.
2017-02-24 18:53:11 +00:00
// Any modules added here must also be added to the browserModules array
// in remote.js
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
}
},
globalShortcut: {
2016-01-12 02:40:23 +00:00
enumerable: true,
get: function () {
return require('../global-shortcut')
2016-01-12 02:40:23 +00:00
}
},
ipcMain: {
2016-01-12 02:40:23 +00:00
enumerable: true,
get: function () {
return require('../ipc-main')
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
}
},
net: {
enumerable: true,
get: function () {
return require('../net')
}
},
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
}
},
2016-04-24 12:13:46 +00:00
systemPreferences: {
enumerable: true,
get: function () {
return require('../system-preferences')
}
},
TouchBar: {
enumerable: true,
get: function () {
return require('../touch-bar')
}
},
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-07-15 01:59:19 +00:00
webContents: {
enumerable: true,
get: function () {
return require('../web-contents')
}
},
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
}
}
})