webContents: adding events to detect gpu and plugin process crashes

This commit is contained in:
deepak1556 2015-05-13 01:05:56 +05:30
parent b238ac5981
commit c548b9c87e
6 changed files with 49 additions and 1 deletions

View file

@ -724,6 +724,18 @@ Calling `event.preventDefault()` can prevent the navigation.
Emitted when the renderer process is crashed.
### Event: 'gpu-crashed'
Emitted when the gpu process is crashed.
### Event: 'plugin-crashed'
* `event` Event
* `name` String
* `version` String
Emitted when a plugin process is crashed.
### Event: 'destroyed'
Emitted when the WebContents is destroyed.

View file

@ -434,6 +434,17 @@ ipc.on('ping', function() {
Fired when the renderer process is crashed.
### gpu-crashed
Fired when the gpu process is crashed.
### plugin-crashed
* `name` String
* `version` String
Fired when a plugin process is crashed.
### destroyed
Fired when the WebContents is destroyed.