Merge remote-tracking branch 'upstream/master' into speedup-gpu
This commit is contained in:
commit
8eed91d87a
79 changed files with 674 additions and 436 deletions
|
@ -651,6 +651,42 @@ Mute the audio on the current web page.
|
|||
|
||||
Returns whether this page has been muted.
|
||||
|
||||
#### `contents.setZoomFactor(factor)`
|
||||
|
||||
* `factor` Number - Zoom factor.
|
||||
|
||||
Changes the zoom factor to the specified factor. Zoom factor is
|
||||
zoom percent divided by 100, so 300% = 3.0.
|
||||
|
||||
#### `contents.getZoomFactor(callback)`
|
||||
|
||||
* `callback` Function
|
||||
|
||||
Sends a request to get current zoom factor, the `callback` will be called with
|
||||
`callback(zoomFactor)`.
|
||||
|
||||
#### `contents.setZoomLevel(level)`
|
||||
|
||||
* `level` Number - Zoom level
|
||||
|
||||
Changes the zoom level to the specified level. The original size is 0 and each
|
||||
increment above or below represents zooming 20% larger or smaller to default
|
||||
limits of 300% and 50% of original size, respectively.
|
||||
|
||||
#### `contents.getZoomLevel(callback)`
|
||||
|
||||
* `callback` Function
|
||||
|
||||
Sends a request to get current zoom level, the `callback` will be called with
|
||||
`callback(zoomLevel)`.
|
||||
|
||||
#### `contents.setZoomLevelLimits(minimumLevel, maximumLevel)`
|
||||
|
||||
* `minimumLevel` Number
|
||||
* `maximumLevel` Number
|
||||
|
||||
Sets the maximum and minimum zoom level.`
|
||||
|
||||
#### `contents.undo()`
|
||||
|
||||
Executes the editing command `undo` in web page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue