From: Jessica Lord Date: Wed, 2 Sep 2015 16:57:29 +0000 (-0700) Subject: Merge master X-Git-Tag: v0.32.0~28^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2e5a539f57fec2979a4cb3dbaf8df2f01bf26dd4;p=electron.git Merge master --- 2e5a539f57fec2979a4cb3dbaf8df2f01bf26dd4 diff --cc docs/api/web-frame.md index 1d472a87,82d5fcc4..bdf42da3 --- a/docs/api/web-frame.md +++ b/docs/api/web-frame.md @@@ -1,6 -1,7 +1,7 @@@ -# web-frame +# webFrame - The `web-frame` module customizes the rendering of the current web page. -The `web-frame` module allows you to customize the rendering of the current ++The `web-frame` module allows you to customize the rendering of the current + web page. An example of zooming current page to 200%. @@@ -10,18 -10,14 +11,18 @@@ var webFrame = require('web-frame') webFrame.setZoomFactor(2); ``` -## webFrame.setZoomFactor(factor) +## Methods + +The `web-frame` module has the following methods: + +### `webFrame.setZoomFactor(factor)` -* `factor` Number - Zoom factor +* `factor` Number - Zoom factor. --Changes the zoom factor to the specified factor, zoom factor is --zoom percent / 100, so 300% = 3.0. ++Changes the zoom factor to the specified factor. Zoom factor is ++zoom percent divided by 100, so 300% = 3.0. -## webFrame.getZoomFactor() +### `webFrame.getZoomFactor()` Returns the current zoom factor.