Merge pull request #655 from hokein/master

SetProgressBar API Implementation, fixes #635
This commit is contained in:
Cheng Zhao 2014-09-20 11:19:34 +08:00
commit 805215be78
11 changed files with 133 additions and 1 deletions

View file

@ -488,6 +488,19 @@ Sets the `menu` as the window top menu.
__Note:__ This API is not available on OS X.
### BrowserWindow.setProgressBar(progress)
* `progress` Double
Sets progress value in progress bar. Valid range is [0, 1.0].
Remove progress bar when progress < 0;
Change to indeterminate mode when progress > 1.
On Linux platform, only supports Unity desktop environment, you need to specify
the `*.desktop` file name to `desktopName` field in `package.json`. By default,
it will assume `app.getName().desktop`.
## Class: WebContents
A `WebContents` is responsible for rendering and controlling a web page.