Add 'loading-state-changed' event for BrowserWindow.

It's required for testing the BrowserWindow class.
This commit is contained in:
Cheng Zhao 2013-08-29 11:47:07 +08:00
parent e00d3d4b37
commit 34e1800716
5 changed files with 32 additions and 2 deletions

View file

@ -45,6 +45,13 @@ Creates a new `BrowserWindow` with native properties set by the `options`. Usual
Emitted when the document changed its title, calling `event.preventDefault()` would prevent the native window's title to change.
### Event: 'loading-state-changed'
* `event` Event
* `isLoading` Boolean
Emitted when the window is starting or is done loading a page.
### Event: 'close'
* `event` Event
@ -325,4 +332,4 @@ Reloads current window.
### BrowserWindow.reloadIgnoringCache()
Reloads current window and ignores cache.
Reloads current window and ignores cache.