From 4a508e0e4189d3351df117cfb7937f26839d6324 Mon Sep 17 00:00:00 2001 From: Joseph Dykstra Date: Fri, 27 Mar 2015 07:46:26 -0500 Subject: [PATCH] reverted incorrect changes --- docs/api/browser-window.md | 10 +++++----- docs/api/ipc-main-process.md | 2 +- docs/tutorial/quick-start.md | 5 ++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 4b73689e..2170c384 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -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) diff --git a/docs/api/ipc-main-process.md b/docs/api/ipc-main-process.md index dc82a4ab..d558f7fb 100644 --- a/docs/api/ipc-main-process.md +++ b/docs/api/ipc-main-process.md @@ -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. diff --git a/docs/tutorial/quick-start.md b/docs/tutorial/quick-start.md index 6d4fcdf7..99692d89 100644 --- a/docs/tutorial/quick-start.md +++ b/docs/tutorial/quick-start.md @@ -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 -- 2.43.0