Add BrowserWindow.prototype.setContentProtection(enable)

This commit is contained in:
Milan Burda 2016-06-22 10:40:01 +02:00
parent fd40f3d344
commit c243cf0c0f
8 changed files with 28 additions and 0 deletions

View file

@ -1050,6 +1050,13 @@ All mouse events happened in this window will be passed to the window below
this window, but if this window has focus, it will still receive keyboard
events.
### `win.setContentProtection(enable)` _macOS_ _Windows_
Prevents the window contents from being captured by other apps.
On macOS it sets the NSWindow's sharingType to NSWindowSharingNone.
On Windows it calls SetWindowDisplayAffinity with WDA_MONITOR.
### `win.setFocusable(focusable)` _Windows_
* `focusable` Boolean