electron/atom/browser/api/lib/exports/electron.coffee

58 lines
1.4 KiB
CoffeeScript
Raw Normal View History

2015-12-17 14:03:16 +00:00
common = require '../../../../common/api/lib/exports/electron'
2016-01-12 02:03:02 +00:00
### Import common modules. ###
2015-12-17 14:03:16 +00:00
common.defineProperties exports
2015-11-12 08:28:22 +00:00
2015-12-17 14:03:16 +00:00
Object.defineProperties exports,
2016-01-12 02:03:02 +00:00
### Browser side modules, please sort with alphabet order. ###
2015-11-12 08:28:22 +00:00
app:
enumerable: true
get: -> require '../app'
autoUpdater:
enumerable: true
get: -> require '../auto-updater'
BrowserWindow:
enumerable: true
get: -> require '../browser-window'
contentTracing:
enumerable: true
get: -> require '../content-tracing'
dialog:
enumerable: true
get: -> require '../dialog'
ipcMain:
enumerable: true
get: -> require '../ipc-main'
globalShortcut:
enumerable: true
get: -> require '../global-shortcut'
Menu:
enumerable: true
get: -> require '../menu'
MenuItem:
enumerable: true
get: -> require '../menu-item'
powerMonitor:
enumerable: true
get: -> require '../power-monitor'
powerSaveBlocker:
enumerable: true
get: -> require '../power-save-blocker'
protocol:
enumerable: true
get: -> require '../protocol'
screen:
enumerable: true
get: -> require '../screen'
2015-11-19 12:47:11 +00:00
session:
enumerable: true
get: -> require '../session'
2015-11-13 13:52:05 +00:00
Tray:
2015-11-12 08:28:22 +00:00
enumerable: true
get: -> require '../tray'
2016-01-12 02:03:02 +00:00
### The internal modules, invisible unless you know their names. ###
NavigationController:
get: -> require '../navigation-controller'
webContents:
get: -> require '../web-contents'