Emit ATOM_BROWSER_RELEASE_RENDER_VIEW in C++

This commit is contained in:
Cheng Zhao 2015-06-23 21:27:50 +08:00
parent 42e21d15bf
commit 77dbec305f
2 changed files with 12 additions and 6 deletions

View file

@ -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