Skip to content

Commit ef9d8fe

Browse files
authored
Merge pull request electron#7843 from electron/process-docs
document the process(es) in which APIs are available
2 parents 7e90bb4 + 471b998 commit ef9d8fe

29 files changed

+74
-2
lines changed

docs/api/app.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Control your application's event lifecycle.
44
5+
Process: [Main](../tutorial/quick-start.md#main-process)
6+
57
The following example shows how to quit the application when the last window is
68
closed:
79

docs/api/auto-updater.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Enable apps to automatically update themselves.
44
5+
Process: [Main](../tutorial/quick-start.md#main-process)
6+
57
The `autoUpdater` module provides an interface for the
68
[Squirrel](https://github.com/Squirrel) framework.
79

docs/api/browser-window.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Create and control browser windows.
44
5+
Process: [Main](../tutorial/quick-start.md#main-process)
6+
57
```javascript
68
// In the main process.
79
const {BrowserWindow} = require('electron')

docs/api/clipboard.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Perform copy and paste operations on the system clipboard.
44
5+
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
6+
57
The following example shows how to write a string to the clipboard:
68

79
```javascript

docs/api/crash-reporter.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Submit crash reports to a remote server.
44
5+
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
6+
57
The following is an example of automatically submitting a crash report to a
68
remote server:
79

docs/api/desktop-capturer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
> Access information about media sources that can be used to capture audio and
44
> video from the desktop using the [`navigator.webkitGetUserMedia`] API.
55
6+
Process: [Renderer](../tutorial/quick-start.md#renderer-process)
7+
68
The following example shows how to capture video from a desktop window whose
79
title is `Electron`:
810

docs/api/dialog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Display native system dialogs for opening and saving files, alerting, etc.
44
5+
Process: [Main](../tutorial/quick-start.md#main-process)
6+
57
An example of showing a dialog to select multiple files and directories:
68

79
```javascript

docs/api/download-item.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Control file downloads from remote sources.
44
5+
Process: [Main](../tutorial/quick-start.md#main-process)
6+
57
`DownloadItem` is an `EventEmitter` that represents a download item in Electron.
68
It is used in `will-download` event of `Session` class, and allows users to
79
control the download item.
@@ -59,7 +61,7 @@ Returns:
5961
* `state` String
6062

6163
Emitted when the download is in a terminal state. This includes a completed
62-
download, a cancelled download(via `downloadItem.cancel()`), and interrupted
64+
download, a cancelled download (via `downloadItem.cancel()`), and interrupted
6365
download that can't be resumed.
6466

6567
The `state` can be one of following:

docs/api/file-object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let users work on native files directly with the HTML5 file API. Electron has
77
added a `path` attribute to the `File` interface which exposes the file's real
88
path on filesystem.
99

10-
Example on getting a real path from a dragged-onto-the-app file:
10+
Example of getting a real path from a dragged-onto-the-app file:
1111

1212
```html
1313
<div id="holder">

docs/api/global-shortcut.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
> Detect keyboard events when the application does not have keyboard focus.
44
5+
Process: [Main](../tutorial/quick-start.md#main-process)
6+
57
The `globalShortcut` module can register/unregister a global keyboard shortcut
68
with the operating system so that you can customize the operations for various
79
shortcuts.

0 commit comments

Comments
 (0)