2016-03-24 20:15:04 +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-24 20:15:04 +00:00
|
|
|
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,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../app')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
autoUpdater: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../auto-updater')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
BrowserWindow: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../browser-window')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
contentTracing: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../content-tracing')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
dialog: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../dialog')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
2017-02-23 18:01:27 +00:00
|
|
|
globalShortcut: {
|
2016-01-12 02:40:23 +00:00
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
2017-02-23 18:01:27 +00:00
|
|
|
return require('../global-shortcut')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
2017-02-23 18:01:27 +00:00
|
|
|
ipcMain: {
|
2016-01-12 02:40:23 +00:00
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
2017-02-23 18:01:27 +00:00
|
|
|
return require('../ipc-main')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
Menu: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../menu')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
MenuItem: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../menu-item')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
2017-02-23 18:01:27 +00:00
|
|
|
net: {
|
|
|
|
enumerable: true,
|
|
|
|
get: function () {
|
|
|
|
return require('../net')
|
|
|
|
}
|
|
|
|
},
|
2016-01-12 02:40:23 +00:00
|
|
|
powerMonitor: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../power-monitor')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
powerSaveBlocker: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../power-save-blocker')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
protocol: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../protocol')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
screen: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../screen')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
session: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
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')
|
|
|
|
}
|
|
|
|
},
|
2016-11-27 11:54:12 +00:00
|
|
|
TouchBar: {
|
|
|
|
enumerable: true,
|
|
|
|
get: function () {
|
|
|
|
return require('../touch-bar')
|
|
|
|
}
|
|
|
|
},
|
2016-01-12 02:40:23 +00:00
|
|
|
Tray: {
|
|
|
|
enumerable: true,
|
2016-03-24 20:15:04 +00:00
|
|
|
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: {
|
2016-03-24 20:15:04 +00:00
|
|
|
get: function () {
|
|
|
|
return require('../navigation-controller')
|
2016-01-12 02:40:23 +00:00
|
|
|
}
|
|
|
|
}
|
2016-03-24 20:15:04 +00:00
|
|
|
})
|