Move navigator related APIs to webContents.

This commit is contained in:
Cheng Zhao 2014-04-25 12:52:30 +08:00
parent e70d195cde
commit c8a82e6e50
5 changed files with 67 additions and 74 deletions

View file

@ -88,7 +88,10 @@ BrowserWindow.fromDevTools = (processId, routingId) ->
devtools.routingId == routingId
# Be compatible with old API.
BrowserWindow::loadUrl = (url) -> @webContents.loadUrl(url)
BrowserWindow::getUrl = -> @webContents.getUrl()
BrowserWindow::reload = -> @webContents.reload()
BrowserWindow::reloadIgnoringCache = -> @webContents.reloadIgnoringCache()
BrowserWindow::getPageTitle = -> @webContents.getTitle()
BrowserWindow::isLoading = -> @webContents.isLoading()
BrowserWindow::isWaitingForResponse = -> @webContents.isWaitingForResponse()