File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ const { remote } = require('electron')
2020remote .webContents .fromId (webview .getWebContentsId ())
2121```
2222
23+ ### ` webFrame.setLayoutZoomLevelLimits() `
24+
25+ Chromium has removed support for changing the layout zoom level limits, and it
26+ is beyond Electron's capacity to maintain it. The function was deprecated in
27+ Electron 8.x, and has been removed in Electron 9.x. The layout zoom level limits
28+ are now fixed at a minimum of 0.25 and a maximum of 5.0, as defined
29+ [ here] ( https://chromium.googlesource.com/chromium/src/+/938b37a6d2886bf8335fc7db792f1eb46c65b2ae/third_party/blink/common/page/page_zoom.cc#11 ) .
30+
2331## Planned Breaking API Changes (8.0)
2432
2533### Values sent over IPC are now serialized with Structured Clone Algorithm
Original file line number Diff line number Diff line change @@ -1113,17 +1113,6 @@ Sets the maximum and minimum pinch-to-zoom level.
11131113> contents .setVisualZoomLevelLimits (1 , 3 )
11141114> ` ` `
11151115
1116- #### ` contents .setLayoutZoomLevelLimits (minimumLevel, maximumLevel)` _Deprecated_
1117-
1118- * ` minimumLevel` Number
1119- * ` maximumLevel` Number
1120-
1121- Returns ` Promise < void > `
1122-
1123- Sets the maximum and minimum layout-based (i.e. non-visual) zoom level.
1124-
1125- **Deprecated:** This API is no longer supported by Chromium.
1126-
11271116#### ` contents .undo ()`
11281117
11291118Executes the editing command ` undo` in web page.
Original file line number Diff line number Diff line change @@ -56,15 +56,6 @@ Sets the maximum and minimum pinch-to-zoom level.
5656> webFrame .setVisualZoomLevelLimits (1 , 3 )
5757> ` ` `
5858
59- ### ` webFrame .setLayoutZoomLevelLimits (minimumLevel, maximumLevel)` _Deprecated_
60-
61- * ` minimumLevel` Number
62- * ` maximumLevel` Number
63-
64- Sets the maximum and minimum layout-based (i.e. non-visual) zoom level.
65-
66- **Deprecated:** This API is no longer supported by Chromium.
67-
6859### ` webFrame .setSpellCheckProvider (language, provider)`
6960
7061* ` language` String
Original file line number Diff line number Diff line change @@ -635,17 +635,6 @@ Returns `Promise<void>`
635635
636636Sets the maximum and minimum pinch-to-zoom level.
637637
638- ### ` <webview>.setLayoutZoomLevelLimits(minimumLevel, maximumLevel) ` _ Deprecated_
639-
640- * ` minimumLevel ` Number
641- * ` maximumLevel ` Number
642-
643- Returns ` Promise<void> `
644-
645- Sets the maximum and minimum layout-based (i.e. non-visual) zoom level.
646-
647- ** Deprecated:** This API is no longer supported by Chromium.
648-
649638### ` <webview>.showDefinitionForSelection() ` _ macOS_
650639
651640Shows pop-up dictionary that searches the selected word on the page.
Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ const webFrameMethods = [
173173 'insertCSS' ,
174174 'insertText' ,
175175 'removeInsertedCSS' ,
176- 'setLayoutZoomLevelLimits' ,
177176 'setVisualZoomLevelLimits'
178177]
179178
Original file line number Diff line number Diff line change 11import { EventEmitter } from 'events'
2- import { deprecate } from 'electron'
32
43const binding = process . electronBinding ( 'web_frame' )
54
6- const setLayoutZoomLevelLimitsWarning = deprecate . warnOnce ( 'setLayoutZoomLevelLimits' )
7-
85class WebFrame extends EventEmitter {
96 constructor ( public context : Window ) {
107 super ( )
@@ -48,10 +45,6 @@ class WebFrame extends EventEmitter {
4845 get routingId ( ) {
4946 return binding . _getRoutingId ( this . context )
5047 }
51-
52- setLayoutZoomLevelLimits ( ) {
53- setLayoutZoomLevelLimitsWarning ( )
54- }
5548}
5649
5750// Populate the methods.
You can’t perform that action at this time.
0 commit comments