Merge pull request #1309 from hokein/workspace-visible-api

Add workspace visible APIs
This commit is contained in:
Cheng Zhao 2015-03-29 20:37:07 +08:00
commit 3b1be743ef
8 changed files with 68 additions and 0 deletions

View file

@ -586,6 +586,20 @@ can still bring up the menu bar by pressing the single `Alt` key.
Returns whether the menu bar is visible.
### BrowserWindow.setVisibleOnAllWorkspaces(visible)
* `visible` Boolean
Sets whether the window should be visible on all workspaces.
**Note:** This API does nothing on Windows.
### BrowserWindow.isVisibleOnAllWorkspaces()
Returns whether the window is visible on all workspaces.
**Note:** This API always return false on Windows.
## Class: WebContents
A `WebContents` is responsible for rendering and controlling a web page.