Move "restart()" API to webContents.

This commit is contained in:
Cheng Zhao 2014-04-29 15:21:22 +08:00
parent 8342c7cfe1
commit 19698fc739
2 changed files with 5 additions and 3 deletions

View file

@ -11,6 +11,10 @@ module.exports.wrap = (webContents) ->
webContents.send = (args...) ->
@_send 'ATOM_INTERNAL_MESSAGE', [args...]
# WebContents::restart()
# Restart the renderer process.
webContents.restart = -> @loadUrl @getUrl()
# The processId and routingId and identify a webContents.
webContents.getId = -> "#{@getProcessId()}-#{@getRoutingId()}"
webContents.equal = (other) -> @getId() is other.getId()