Merge pull request #2757 from atom/jl-web-contents-links
Update Documentation Links to web-contents
This commit is contained in:
commit
39bd10d1ef
4 changed files with 4 additions and 4 deletions
|
@ -263,7 +263,7 @@ Returns the window that is focused in this application.
|
||||||
|
|
||||||
### `BrowserWindow.fromWebContents(webContents)`
|
### `BrowserWindow.fromWebContents(webContents)`
|
||||||
|
|
||||||
* `webContents` [WebContents](#webcontents)
|
* `webContents` [WebContents](web-contents.md)
|
||||||
|
|
||||||
Find a window according to the `webContents` it owns.
|
Find a window according to the `webContents` it owns.
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ a renderer will be emitted to this module.
|
||||||
## Sending Messages
|
## Sending Messages
|
||||||
|
|
||||||
It is also possible to send messages from the main process to the renderer
|
It is also possible to send messages from the main process to the renderer
|
||||||
process, see [WebContents.send](browser-window.md#webcontentssendchannel-args)
|
process, see [WebContents.send](web-contents.md#webcontentssendchannel-args)
|
||||||
for more information.
|
for more information.
|
||||||
|
|
||||||
- When sending a message, the event name is the `channel`.
|
- When sending a message, the event name is the `channel`.
|
||||||
|
|
|
@ -21,7 +21,7 @@ win.loadUrl('https://github.com');
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** for the reverse (access the renderer process from the main process),
|
**Note:** for the reverse (access the renderer process from the main process),
|
||||||
you can use [webContents.executeJavascript](browser-window.md#webcontents-executejavascript-code).
|
you can use [webContents.executeJavascript](web-contents.md#webcontentsexecutejavascriptcode-usergesture).
|
||||||
|
|
||||||
## Remote Objects
|
## Remote Objects
|
||||||
|
|
||||||
|
|
|
@ -355,7 +355,7 @@ Prints webview's web page as PDF, Same with `webContents.printToPDF(options, cal
|
||||||
Send `args..` to guest page via `channel` in asynchronous message, the guest
|
Send `args..` to guest page via `channel` in asynchronous message, the guest
|
||||||
page can handle it by listening to the `channel` event of `ipc` module.
|
page can handle it by listening to the `channel` event of `ipc` module.
|
||||||
|
|
||||||
See [WebContents.send](browser-window.md#webcontentssendchannel-args) for
|
See [WebContents.send](web-contents.md#webcontentssendchannel-args) for
|
||||||
examples.
|
examples.
|
||||||
|
|
||||||
## DOM events
|
## DOM events
|
||||||
|
|
Loading…
Reference in a new issue