mac: Add APIs on setting icon in titlebar.
This commit is contained in:
parent
2f5dfb1dc7
commit
a7b730654c
7 changed files with 44 additions and 0 deletions
|
@ -362,6 +362,20 @@ Enters or leaves the kiosk mode.
|
|||
|
||||
Returns whether the window is in kiosk mode.
|
||||
|
||||
### BrowserWindow.setRepresentedFilename(filename)
|
||||
|
||||
* `filename` String
|
||||
|
||||
__OS X Only__ Sets the pathname of the file the window represents, and the icon
|
||||
of the file will show in window's title bar.
|
||||
|
||||
### BrowserWindow.setDocumentEdited(edited)
|
||||
|
||||
* `edited` Boolean
|
||||
|
||||
__OS X Only__ Specifies whether the window’s document has been edited, and the
|
||||
icon in titlebar will become grey when set to `true`.
|
||||
|
||||
### BrowserWindow.openDevTools()
|
||||
|
||||
Opens the developer tools.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue