docs: document missing permission types (#24660)

This commit is contained in:
Cheng Zhao 2020-07-21 20:49:37 +09:00 committed by GitHub
parent 77eea08a54
commit a12602dbc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,8 +350,10 @@ win.webContents.session.setCertificateVerifyProc((request, callback) => {
* `webContents` [WebContents](web-contents.md) - WebContents requesting the permission. Please note that if the request comes from a subframe you should use `requestingUrl` to check the request origin. * `webContents` [WebContents](web-contents.md) - WebContents requesting the permission. Please note that if the request comes from a subframe you should use `requestingUrl` to check the request origin.
* `permission` String - The type of requested permission. * `permission` String - The type of requested permission.
* `media` - Request access to media devices such as camera, microphone and speakers. * `media` - Request access to media devices such as camera, microphone and speakers.
* `mediaKeySystem` - Request access to DRM protected content.
* `geolocation` - Request access to user's current location. * `geolocation` - Request access to user's current location.
* `notifications` - Request notification creation and the ability to display them in the user's system tray. * `notifications` - Request notification creation and the ability to display them in the user's system tray.
* `midi` - Request MIDI access in the `webmidi` API.
* `midiSysex` - Request the use of system exclusive messages in the `webmidi` API. * `midiSysex` - Request the use of system exclusive messages in the `webmidi` API.
* `pointerLock` - Request to directly interpret mouse movements as an input method. Click [here](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API) to know more. * `pointerLock` - Request to directly interpret mouse movements as an input method. Click [here](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API) to know more.
* `fullscreen` - Request for the app to enter fullscreen mode. * `fullscreen` - Request for the app to enter fullscreen mode.