Add "enable_desktop_capturer" build flag (#13133)

* Make it possible to disable a module for a renderer

* Put DesktopCapturer API under a build flag

The name is "enable_desktop_capturer".
Enabled by default.
This commit is contained in:
Alexey Kuzmin 2018-06-13 18:15:34 +02:00 committed by Charles Kerr
parent 6ff111a141
commit dee9aef975
11 changed files with 77 additions and 16 deletions

View file

@ -33,6 +33,8 @@ Object.defineProperties(exports, {
return require('../../../common/api/is-promise')
}
},
// XXX(alexeykuzmin): It won't be available if the Desktop Capturer
// was disabled during build time.
desktopCapturer: {
get: function () {
return require('../../../renderer/api/desktop-capturer')