Merge pull request #7457 from josephfrazier/fix-findinpage-links

Fix webContents.findInPage links in docs
This commit is contained in:
Kevin Sawicki 2016-10-03 09:22:53 -07:00 committed by GitHub
commit 9c55280917
3 changed files with 9 additions and 6 deletions

View file

@ -309,7 +309,7 @@ Returns:
* `matches` Integer (optional) - 일치하는 개수. * `matches` Integer (optional) - 일치하는 개수.
* `selectionArea` Object (optional) - 첫 일치 부위의 좌표. * `selectionArea` Object (optional) - 첫 일치 부위의 좌표.
[`webContents.findInPage`](web-contents.md#webcontentsfindinpage) 요청의 결과를 [`webContents.findInPage`] 요청의 결과를
사용할 수 있을 때 발생하는 이벤트입니다. 사용할 수 있을 때 발생하는 이벤트입니다.
#### Event: 'media-started-playing' #### Event: 'media-started-playing'
@ -755,7 +755,7 @@ CSS 코드를 현재 웹 페이지에 삽입합니다.
#### `contents.stopFindInPage(action)` #### `contents.stopFindInPage(action)`
* `action` String - [`webContents.findInPage`](web-contents.md#webcontentfindinpage) * `action` String - [`webContents.findInPage`]
요청이 종료되었을 때 일어날 수 있는 작업을 지정합니다. 요청이 종료되었을 때 일어날 수 있는 작업을 지정합니다.
* `clearSelection` - 선택을 취소합니다. * `clearSelection` - 선택을 취소합니다.
* `keepSelection` - 선택을 일반 선택으로 변경합니다. * `keepSelection` - 선택을 일반 선택으로 변경합니다.
@ -1235,3 +1235,4 @@ win.webContents.debugger.sendCommand('Network.enable')
디버깅 타겟이 관련 이벤트를 발생시킬 때 마다 발생하는 이벤트입니다. 디버깅 타겟이 관련 이벤트를 발생시킬 때 마다 발생하는 이벤트입니다.
[rdp]: https://developer.chrome.com/devtools/docs/debugger-protocol [rdp]: https://developer.chrome.com/devtools/docs/debugger-protocol
[`webContents.findInPage`]: web-contents.md#contentsfindinpagetext-options

View file

@ -248,7 +248,7 @@ var webContents = win.webContents;
* `matches` Integer (可选) - 匹配数量. * `matches` Integer (可选) - 匹配数量.
* `selectionArea` Object (可选) - 协调首个匹配位置. * `selectionArea` Object (可选) - 协调首个匹配位置.
当使用 [`webContents.findInPage`](web-contents.md#webcontentsfindinpage) 进行页内查找并且找到可用值得时候发出事件. 当使用 [`webContents.findInPage`] 进行页内查找并且找到可用值得时候发出事件.
### Event: 'media-started-playing' ### Event: 'media-started-playing'
@ -499,7 +499,7 @@ var currentURL = win.webContents.getURL();
### `webContents.stopFindInPage(action)` ### `webContents.stopFindInPage(action)`
* `action` String - 指定一个行为来接替停止 * `action` String - 指定一个行为来接替停止
[`webContents.findInPage`](web-contents.md#webcontentfindinpage) 请求. [`webContents.findInPage`] 请求.
* `clearSelection` - 转变为一个普通的 selection. * `clearSelection` - 转变为一个普通的 selection.
* `keepSelection` - 清除 selection. * `keepSelection` - 清除 selection.
* `activateSelection` - 获取焦点并点击 selection node. * `activateSelection` - 获取焦点并点击 selection node.
@ -862,3 +862,4 @@ win.webContents.debugger.sendCommand("Network.enable");
每当调试目标发出事件时发出. 每当调试目标发出事件时发出.
[rdp]: https://developer.chrome.com/devtools/docs/debugger-protocol [rdp]: https://developer.chrome.com/devtools/docs/debugger-protocol
[`webContents.findInPage`]: web-contents.md#webcontentsfindinpagetext-options

View file

@ -312,7 +312,7 @@ Returns:
* `selectionArea` Object - Coordinates of first match region. * `selectionArea` Object - Coordinates of first match region.
Emitted when a result is available for Emitted when a result is available for
[`webContents.findInPage`](web-contents.md#webcontentsfindinpage) request. [`webContents.findInPage`] request.
#### Event: 'media-started-playing' #### Event: 'media-started-playing'
@ -775,7 +775,7 @@ the request can be obtained by subscribing to
#### `contents.stopFindInPage(action)` #### `contents.stopFindInPage(action)`
* `action` String - Specifies the action to take place when ending * `action` String - Specifies the action to take place when ending
[`webContents.findInPage`](web-contents.md#webcontentfindinpage) request. [`webContents.findInPage`] request.
* `clearSelection` - Clear the selection. * `clearSelection` - Clear the selection.
* `keepSelection` - Translate the selection into a normal selection. * `keepSelection` - Translate the selection into a normal selection.
* `activateSelection` - Focus and click the selection node. * `activateSelection` - Focus and click the selection node.
@ -1261,3 +1261,4 @@ Emitted when debugging session is terminated. This happens either when
Emitted whenever debugging target issues instrumentation event. Emitted whenever debugging target issues instrumentation event.
[rdp]: https://developer.chrome.com/devtools/docs/debugger-protocol [rdp]: https://developer.chrome.com/devtools/docs/debugger-protocol
[`webContents.findInPage`]: web-contents.md#contentsfindinpagetext-options