Emit ATOM_BROWSER_RELEASE_RENDER_VIEW in C++
This commit is contained in:
parent
42e21d15bf
commit
77dbec305f
2 changed files with 12 additions and 6 deletions
|
@ -30,11 +30,6 @@ wrapWebContents = (webContents) ->
|
|||
do (name, method) ->
|
||||
webContents[name] = -> method.apply controller, arguments
|
||||
|
||||
# Tell the rpc server that a render view has been deleted and we need to
|
||||
# release all objects owned by it.
|
||||
webContents.on 'render-view-deleted', (event, processId) ->
|
||||
process.emit 'ATOM_BROWSER_RELEASE_RENDER_VIEW', processId
|
||||
|
||||
# Dispatch IPC messages to the ipc module.
|
||||
webContents.on 'ipc-message', (event, packed) ->
|
||||
[channel, args...] = packed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue