webContents: set zoom levels with HostZoomMap
This commit is contained in:
parent
5e78330c6d
commit
b27c94368d
3 changed files with 30 additions and 6 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue