BrowserWindow::getDevToolsWebContents = ->
wrapWebContents @_getDevToolsWebContents()
-BrowserWindow::restart = ->
- @loadUrl(@getUrl())
-
BrowserWindow::setMenu = (menu) ->
if process.platform is 'darwin'
throw new Error('BrowserWindow.setMenu is not available on OS X')
BrowserWindow::send = -> @webContents.send.apply @webContents, arguments
# Be compatible with old API.
+BrowserWindow::restart = -> @webContents.restart()
BrowserWindow::getUrl = -> @webContents.getUrl()
BrowserWindow::reload = -> @webContents.reload()
BrowserWindow::reloadIgnoringCache = -> @webContents.reloadIgnoringCache()
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()