reverted incorrect changes
This commit is contained in:
parent
b6875ad49b
commit
4a508e0e41
3 changed files with 8 additions and 9 deletions
|
@ -241,7 +241,7 @@ Get the unique ID of this window.
|
|||
### BrowserWindow.destroy()
|
||||
|
||||
Force closing the window, the `unload` and `beforeunload` event won't be emitted
|
||||
for the renderer process (web page), and `close` event would also not be emitted
|
||||
for the web page, and `close` event would also not be emitted
|
||||
for this window, but it would guarantee the `closed` event to be emitted.
|
||||
|
||||
You should only use this method when the renderer process (web page) has crashed.
|
||||
|
@ -249,8 +249,8 @@ You should only use this method when the renderer process (web page) has crashed
|
|||
### BrowserWindow.close()
|
||||
|
||||
Try to close the window, this has the same effect with user manually clicking
|
||||
the close button of the window. The renderer process (web page) may cancel the
|
||||
close though, see the [close event](window#event-close).
|
||||
the close button of the window. The web page may cancel the close though, see
|
||||
the [close event](window#event-close).
|
||||
|
||||
### BrowserWindow.focus()
|
||||
|
||||
|
@ -327,11 +327,11 @@ Returns an array that contains window's width and height.
|
|||
* `width` Integer
|
||||
* `height` Integer
|
||||
|
||||
Resizes the renderer's area (i.e. the web page) to `width` and `height`.
|
||||
Resizes the window's client area (e.g. the web page) to `width` and `height`.
|
||||
|
||||
### BrowserWindow.getContentSize()
|
||||
|
||||
Returns an array that contains the renderer's width and height.
|
||||
Returns an array that contains window's client area's width and height.
|
||||
|
||||
### BrowserWindow.setMinimumSize(width, height)
|
||||
|
||||
|
|
|
@ -46,4 +46,4 @@ Assign to this to return an value to synchronous messages.
|
|||
|
||||
### Event.sender
|
||||
|
||||
The `WebContents` of the renderer that has sent the message.
|
||||
The `WebContents` that sent the message.
|
||||
|
|
|
@ -13,10 +13,9 @@ Chromium browser, controlled by JavaScript.
|
|||
|
||||
### The main process
|
||||
|
||||
The main atom-shell process displays a GUI by showing web pages. We have
|
||||
The main atom-shell process displays a GUI by creating web pages. We have
|
||||
**scripts that run in the atom-shell runtime**, that create **scripts
|
||||
that run in the web page**. We call them **main process scripts**,
|
||||
and **renderer process scripts**.
|
||||
that run in the web page**.
|
||||
|
||||
In atom-shell, we have provided the [ipc](../api/ipc-renderer.md) module for
|
||||
communication from the main process to the renderer process, and the
|
||||
|
|
Loading…
Add table
Reference in a new issue