зеркало из https://github.com/electron/electron.git
link process annotations to glossary
This commit is contained in:
Родитель
a098bf30d4
Коммит
e57cb713b2
|
@ -2,7 +2,7 @@
|
|||
|
||||
> loquear o sistema de entrar no modo de pouca energia (suspenso).
|
||||
|
||||
Processo: [Main](../tutorial/quick-start.md#main-process)
|
||||
Processo: [Main](../glossary.md#main-process)
|
||||
|
||||
Por exemplo:
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Control your application's event lifecycle.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
The following example shows how to quit the application when the last window is
|
||||
closed:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Enable apps to automatically update themselves.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
The `autoUpdater` module provides an interface for the
|
||||
[Squirrel](https://github.com/Squirrel) framework.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Manipulate the child browser window
|
||||
|
||||
Process: [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
The `BrowserWindowProxy` object is returned from `window.open` and provides
|
||||
limited functionality with the child window.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Create and control browser windows.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
```javascript
|
||||
// In the main process.
|
||||
|
@ -111,7 +111,7 @@ child.once('ready-to-show', () => {
|
|||
|
||||
> Create and control browser windows.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
`BrowserWindow` is an
|
||||
[EventEmitter](http://nodejs.org/api/events.html#events_class_events_eventemitter).
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Make HTTP/HTTPS requests.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
`ClientRequest` implements the [Writable Stream](https://nodejs.org/api/stream.html#stream_writable_streams)
|
||||
interface and is therefore an [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter).
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Perform copy and paste operations on the system clipboard.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
The following example shows how to write a string to the clipboard:
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Collect tracing data from Chromium's content module for finding performance
|
||||
bottlenecks and slow operations.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
This module does not include a web interface so you need to open
|
||||
`chrome://tracing/` in a Chrome browser and load the generated file to view the
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Query and modify a session's cookies.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
Instances of the `Cookies` class are accessed by using `cookies` property of
|
||||
a `Session`.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Submit crash reports to a remote server.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
The following is an example of automatically submitting a crash report to a
|
||||
remote server:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> An alternate transport for Chrome's remote debugging protocol.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
Chrome Developer Tools has a [special binding][rdp] available at JavaScript
|
||||
runtime that allows interacting with pages and instrumenting them.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Access information about media sources that can be used to capture audio and
|
||||
> video from the desktop using the [`navigator.webkitGetUserMedia`] API.
|
||||
|
||||
Process: [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
The following example shows how to capture video from a desktop window whose
|
||||
title is `Electron`:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Display native system dialogs for opening and saving files, alerting, etc.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
An example of showing a dialog to select multiple files and directories:
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Control file downloads from remote sources.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
`DownloadItem` is an `EventEmitter` that represents a download item in Electron.
|
||||
It is used in `will-download` event of `Session` class, and allows users to
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Detect keyboard events when the application does not have keyboard focus.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
The `globalShortcut` module can register/unregister a global keyboard shortcut
|
||||
with the operating system so that you can customize the operations for various
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Handle responses to HTTP/HTTPS requests.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
`IncomingMessage` implements the [Readable Stream](https://nodejs.org/api/stream.html#stream_readable_streams)
|
||||
interface and is therefore an [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter).
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Communicate asynchronously from the main process to renderer processes.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
The `ipcMain` module is an instance of the
|
||||
[EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) class. When used in the main
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Communicate asynchronously from a renderer process to the main process.
|
||||
|
||||
Process: [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
The `ipcRenderer` module is an instance of the
|
||||
[EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) class. It provides a few
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Add items to native application menus and context menus.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
See [`Menu`](menu.md) for examples.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Create native application menus and context menus.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
### `new Menu()`
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Create tray, dock, and application icons using PNG or JPG files.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
In Electron, for the APIs that take images, you can pass either file paths or
|
||||
`NativeImage` instances. An empty image will be used when `null` is passed.
|
||||
|
@ -159,7 +159,7 @@ Creates a new `NativeImage` instance from `dataURL`.
|
|||
|
||||
> Natively wrap images such as tray, dock, and application icons.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
### Instance Methods
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Issue HTTP/HTTPS requests using Chromium's native networking library
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
The `net` module is a client-side API for issuing HTTP(S) requests. It is
|
||||
similar to the [HTTP](https://nodejs.org/api/http.html) and
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Monitor power state changes.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
You cannot require or use this module until the `ready` event of the `app`
|
||||
module is emitted.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Block the system from entering low-power (sleep) mode.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
For example:
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Extensions to process object.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
Electron's `process` object is extended from the
|
||||
[Node.js `process` object](https://nodejs.org/api/process.html).
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Register a custom protocol and intercept existing protocol requests.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
An example of implementing a protocol that has the same effect as the
|
||||
`file://` protocol:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Use main process modules from the renderer process.
|
||||
|
||||
Process: [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
The `remote` module provides a simple way to do inter-process communication
|
||||
(IPC) between the renderer process (web page) and the main process.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Retrieve information about screen size, displays, cursor position, etc.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
You cannot require or use this module until the `ready` event of the `app`
|
||||
module is emitted.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Manage browser sessions, cookies, cache, proxy settings, etc.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
The `session` module can be used to create new `Session` objects.
|
||||
|
||||
|
@ -54,7 +54,7 @@ A `Session` object, the default session object of the app.
|
|||
|
||||
> Get and set properties of a session.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
You can create a `Session` object in the `session` module:
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Manage files and URLs using their default applications.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process), [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
The `shell` module provides functions related to desktop integration.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Get system preferences.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
```javascript
|
||||
const {systemPreferences} = require('electron')
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Add icons and context menus to the system's notification area.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
`Tray` is an [EventEmitter][event-emitter].
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Render and control web pages.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
`webContents` is an
|
||||
[EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter).
|
||||
|
@ -49,7 +49,7 @@ Returns `WebContents` - A WebContents instance with the given ID.
|
|||
|
||||
> Render and control the contents of a BrowserWindow instance.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
### Instance Events
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Customize the rendering of the current web page.
|
||||
|
||||
Process: [Renderer](../tutorial/quick-start.md#renderer-process)
|
||||
Process: [Renderer](../glossary.md#renderer-process)
|
||||
|
||||
An example of zooming current page to 200%.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Intercept and modify the contents of a request at various stages of its lifetime.
|
||||
|
||||
Process: [Main](../tutorial/quick-start.md#main-process)
|
||||
Process: [Main](../glossary.md#main-process)
|
||||
|
||||
Instances of the `WebRequest` class are accessed by using the `webRequest`
|
||||
property of a `Session`.
|
||||
|
|
Загрузка…
Ссылка в новой задаче