From: Jessica Lord Date: Tue, 1 Sep 2015 03:05:57 +0000 (-0700) Subject: Updates from inline comments X-Git-Tag: v0.32.0~28^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=05d0f17447fe198d732b529e08a8f4209981cc79;p=electron.git Updates from inline comments --- diff --git a/docs/api/web-frame.md b/docs/api/web-frame.md index 4d42dd78..1d472a87 100644 --- a/docs/api/web-frame.md +++ b/docs/api/web-frame.md @@ -29,7 +29,7 @@ Returns the current zoom factor. * `level` Number - Zoom level -Changes the zoom level to the specified level. The "original size" is 0 and each +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. diff --git a/docs/api/web-view-tag.md b/docs/api/web-view-tag.md index 4e8ded66..d004c952 100644 --- a/docs/api/web-view-tag.md +++ b/docs/api/web-view-tag.md @@ -2,10 +2,10 @@ Use the `webview` tag to embed 'guest' content (such as web pages) in your Electron app. The guest content is contained within the `webview` container. -An embedder page within your app controls how the guest content is laid out and +An embedded page within your app controls how the guest content is laid out and rendered. -Different from an `iframe`, the `webview` runs in a separate process than your +Unlike an `iframe`, the `webview` runs in a separate process than your app. It doesn't have the same permissions as your web page and all interactions between your app and embedded content will be asynchronous. This keeps your app safe from the embedded content. @@ -71,7 +71,7 @@ The `src` attribute can also accept data URLs, such as If "on", the `webview` container will automatically resize within the bounds specified by the attributes `minwidth`, `minheight`, `maxwidth`, and -`maxheight`. These constraints do not impact the `webview` UNLESS `autosize` is +`maxheight`. These constraints do not impact the `webview` unless `autosize` is enabled. When `autosize` is enabled, the `webview` container size cannot be less than the minimum values or greater than the maximum. @@ -104,7 +104,7 @@ will be loaded by `require` in guest page under the hood. When the guest page doesn't have node integration this script will still have access to all Node APIs, but global objects injected by Node will be deleted -after this script has completed execution. +after this script has finished executing. ### `httpreferrer` @@ -158,7 +158,7 @@ Returns a boolean whether guest page is still loading resources. ### `.isWaitingForResponse()` -Returns a boolean whether guest page is waiting for a first-response for the +Returns a boolean whether the guest page is waiting for a first-response for the main resource of the page. ### `.stop()` @@ -167,25 +167,25 @@ Stops any pending navigation. ### `.reload()` -Reloads guest page. +Reloads the guest page. ### `.reloadIgnoringCache()` -Reloads guest page and ignores cache. +Reloads the guest page and ignores cache. ### `.canGoBack()` -Returns a boolean whether guest page can go back. +Returns a boolean whether the guest page can go back. ### `.canGoForward()` -Returns a boolean whether guest page can go forward. +Returns a boolean whether the guest page can go forward. ### `.canGoToOffset(offset)` * `offset` Integer -Returns a boolean whether guest page can go to `offset`. +Returns a boolean whether the guest page can go to `offset`. ### `.clearHistory()` @@ -193,11 +193,11 @@ Clears the navigation history. ### `.goBack()` -Makes guest page go back. +Makes the guest page go back. ### `.goForward()` -Makes guest page go forward. +Makes the guest page go forward. ### `.goToIndex(index)` @@ -219,7 +219,7 @@ Whether the renderer process has crashed. * `userAgent` String -Overrides the user agent for guest page. +Overrides the user agent for the guest page. ### `.getUserAgent()` @@ -229,7 +229,7 @@ Returns a `String` representing the user agent for guest page. * `css` String -Injects CSS into guest page. +Injects CSS into the guest page. ### `.executeJavaScript(code, userGesture)` @@ -237,8 +237,8 @@ Injects CSS into guest page. * `userGesture` Boolean - Default `false`. Evaluates `code` in page. If `userGesture` is set, it will create user gesture -context. HTML APIs like `requestFullScreen`, which require user action, can take -advantage of this option for automation. +context in the page. HTML APIs like `requestFullScreen`, which require user +action, can take advantage of this option for automation. ### `.openDevTools()`