webContents: set zoom levels with HostZoomMap

This commit is contained in:
deepak1556 2017-01-29 19:43:20 +05:30
parent 5e78330c6d
commit b27c94368d
3 changed files with 30 additions and 6 deletions

View file

@ -105,15 +105,10 @@ const webFrameMethods = [
'insertText',
'setLayoutZoomLevelLimits',
'setVisualZoomLevelLimits',
'setZoomFactor',
'setZoomLevel',
// TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
'setZoomLevelLimits'
]
const webFrameMethodsWithResult = [
'getZoomFactor',
'getZoomLevel'
]
const webFrameMethodsWithResult = []
const asyncWebFrameMethods = function (requestId, method, callback, ...args) {
return new Promise((resolve, reject) => {