Further clean up
This commit is contained in:
parent
7078ed80fa
commit
76da80c5e9
1 changed files with 20 additions and 26 deletions
|
@ -399,31 +399,25 @@ Returns:
|
||||||
Can be `none`, `mouse`, `keyboard`, `touch`, `touchMenu`.
|
Can be `none`, `mouse`, `keyboard`, `touch`, `touchMenu`.
|
||||||
* `mediaFlags` Object - The flags for the media element the context menu was
|
* `mediaFlags` Object - The flags for the media element the context menu was
|
||||||
invoked on. See more about this below.
|
invoked on. See more about this below.
|
||||||
|
* `inError` Boolean - Whether the media element has crashed.
|
||||||
|
* `isPaused` Boolean - Whether the media element is paused.
|
||||||
|
* `isMuted` Boolean - Whether the media element is muted.
|
||||||
|
* `hasAudio` Boolean - Whether the media element has audio.
|
||||||
|
* `isLooping` Boolean - Whether the media element is looping.
|
||||||
|
* `isControlsVisible` Boolean - Whether the media element's controls are
|
||||||
|
visible.
|
||||||
|
* `canToggleControls` Boolean - Whether the media element's controls are
|
||||||
|
toggleable.
|
||||||
|
* `canRotate` Boolean - Whether the media element can be rotated.
|
||||||
* `editFlags` Object - These flags indicate whether the renderer believes it is
|
* `editFlags` Object - These flags indicate whether the renderer believes it is
|
||||||
able to perform the corresponding action. See more about this below.
|
able to perform the corresponding action. See more about this below.
|
||||||
|
* `canUndo` Boolean - Whether the renderer believes it can undo.
|
||||||
The `mediaFlags` is an object with the following properties:
|
* `canRedo` Boolean - Whether the renderer believes it can redo.
|
||||||
|
* `canCut` Boolean - Whether the renderer believes it can cut.
|
||||||
* `inError` Boolean - Whether the media element has crashed.
|
* `canCopy` Boolean - Whether the renderer believes it can copy
|
||||||
* `isPaused` Boolean - Whether the media element is paused.
|
* `canPaste` Boolean - Whether the renderer believes it can paste.
|
||||||
* `isMuted` Boolean - Whether the media element is muted.
|
* `canDelete` Boolean - Whether the renderer believes it can delete.
|
||||||
* `hasAudio` Boolean - Whether the media element has audio.
|
* `canSelectAll` Boolean - Whether the renderer believes it can select all.
|
||||||
* `isLooping` Boolean - Whether the media element is looping.
|
|
||||||
* `isControlsVisible` Boolean - Whether the media element's controls are
|
|
||||||
visible.
|
|
||||||
* `canToggleControls` Boolean - Whether the media element's controls are
|
|
||||||
toggleable.
|
|
||||||
* `canRotate` Boolean - Whether the media element can be rotated.
|
|
||||||
|
|
||||||
The `editFlags` is an object with the following properties:
|
|
||||||
|
|
||||||
* `canUndo` Boolean - Whether the renderer believes it can undo.
|
|
||||||
* `canRedo` Boolean - Whether the renderer believes it can redo.
|
|
||||||
* `canCut` Boolean - Whether the renderer believes it can cut.
|
|
||||||
* `canCopy` Boolean - Whether the renderer believes it can copy
|
|
||||||
* `canPaste` Boolean - Whether the renderer believes it can paste.
|
|
||||||
* `canDelete` Boolean - Whether the renderer believes it can delete.
|
|
||||||
* `canSelectAll` Boolean - Whether the renderer believes it can select all.
|
|
||||||
|
|
||||||
Emitted when there is a new context menu that needs to be handled.
|
Emitted when there is a new context menu that needs to be handled.
|
||||||
|
|
||||||
|
@ -982,8 +976,8 @@ app.on('ready', () => {
|
||||||
* `parameters` Object
|
* `parameters` Object
|
||||||
* `screenPosition` String - Specify the screen type to emulate
|
* `screenPosition` String - Specify the screen type to emulate
|
||||||
(default: `desktop`)
|
(default: `desktop`)
|
||||||
* `desktop` String - Desktop screen type
|
* `desktop` - Desktop screen type
|
||||||
* `mobile` String - Mobile screen type
|
* `mobile` - Mobile screen type
|
||||||
* `screenSize` Object - Set the emulated screen size (screenPosition == mobile)
|
* `screenSize` Object - Set the emulated screen size (screenPosition == mobile)
|
||||||
* `width` Integer - Set the emulated screen width
|
* `width` Integer - Set the emulated screen width
|
||||||
* `height` Integer - Set the emulated screen height
|
* `height` Integer - Set the emulated screen height
|
||||||
|
@ -1229,7 +1223,7 @@ Detaches the debugger from the `webContents`.
|
||||||
* `commandParams` Object (optional) - JSON object with request parameters.
|
* `commandParams` Object (optional) - JSON object with request parameters.
|
||||||
* `callback` Function (optional) - Response
|
* `callback` Function (optional) - Response
|
||||||
* `error` Object - Error message indicating the failure of the command.
|
* `error` Object - Error message indicating the failure of the command.
|
||||||
* `result` Object - Response defined by the 'returns' attribute of
|
* `result` Any - Response defined by the 'returns' attribute of
|
||||||
the command description in the remote debugging protocol.
|
the command description in the remote debugging protocol.
|
||||||
|
|
||||||
Send given command to the debugging target.
|
Send given command to the debugging target.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue