forked from electron/electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed browser-side to main process
renamed a few occurances of "web page" to "renderer" renamed a few files that had "browser" in their name to "main-process" note that there are still many occurances of web page.
- Loading branch information
Showing
15 changed files
with
103 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# ipc (renderer) | ||
|
||
The `ipc` module provides a few methods so you can send synchronous and | ||
asynchronous messages to the browser, and also receive messages sent from | ||
browser. If you want to make use of modules of browser from renderer, you | ||
might consider using the [remote](remote.md) module. | ||
asynchronous messages to the main process, and also receive messages sent from | ||
main process. If you want to make use of modules of main process from renderer | ||
process, you might consider using the [remote](remote.md) module. | ||
|
||
See [ipc (browser)](ipc-browser.md) for examples. | ||
See [ipc (main process)](ipc-main-process.md) for examples. | ||
|
||
## ipc.send(channel[, args...]) | ||
|
||
Send `args..` to the web page via `channel` in asynchronous message, the browser | ||
Send `args..` to the renderer via `channel` in asynchronous message, the main | ||
process can handle it by listening to the `channel` event of `ipc` module. | ||
|
||
## ipc.sendSync(channel[, args...]) | ||
|
||
Send `args..` to the web page via `channel` in synchronous message, and returns | ||
the result sent from browser. The browser process can handle it by listening to | ||
Send `args..` to the renderer via `channel` in synchronous message, and returns | ||
the result sent from main process. The main process can handle it by listening to | ||
the `channel` event of `ipc` module, and returns by setting `event.returnValue`. | ||
|
||
**Note:** Usually developers should never use this API, since sending | ||
synchronous message would block the whole web page. | ||
synchronous message would block the whole renderer process. | ||
|
||
## ipc.sendToHost(channel[, args...]) | ||
|
||
Like `ipc.send` but the message will be sent to the host page instead of the | ||
browser process. | ||
main process. | ||
|
||
This is mainly used by the page in `<webview>` to communicate with host page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.