Expose setVisualZoomLevelLimits on webContents and <web-view>

This commit is contained in:
Kevin Sawicki 2016-11-22 08:07:55 -08:00
parent 756a338b05
commit 9a5df9da41
3 changed files with 20 additions and 1 deletions

View file

@ -101,8 +101,10 @@ WebContents.prototype.sendToAll = function (channel, ...args) {
const webFrameMethods = [
'insertText',
'setLayoutZoomLevelLimits',
'setVisualZoomLevelLimits',
'setZoomFactor',
'setZoomLevel',
// TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
'setZoomLevelLimits'
]
const webFrameMethodsWithResult = [