diff --git a/lib/browser/api/exports/electron.js b/lib/browser/api/exports/electron.js index 3f4059521752..0c6ce065b029 100644 --- a/lib/browser/api/exports/electron.js +++ b/lib/browser/api/exports/electron.js @@ -109,6 +109,42 @@ Object.defineProperties(exports, { return require('../touch-bar') } }, + TouchBarButton: { + enumerable: true, + get: function () { + return require('../touch-bar').Button + } + }, + TouchBarColorPicker: { + enumerable: true, + get: function () { + return require('../touch-bar').ColorPicker + } + }, + TouchBarGroup: { + enumerable: true, + get: function () { + return require('../touch-bar').Group + } + }, + TouchBarLabel: { + enumerable: true, + get: function () { + return require('../touch-bar').Label + } + }, + TouchBarPopOver: { + enumerable: true, + get: function () { + return require('../touch-bar').PopOver + } + }, + TouchBarSlider: { + enumerable: true, + get: function () { + return require('../touch-bar').Slider + } + }, Tray: { enumerable: true, get: function () {