From 86b441d5994ef26bfe31ef91e0993be7bc697221 Mon Sep 17 00:00:00 2001 From: Kriti Singh Date: Tue, 21 Jul 2020 10:59:32 +0530 Subject: [PATCH] docs: add descriptions for types of permissions (#23781) --- docs/api/session.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/api/session.md b/docs/api/session.md index 6f56e57ad19d..c780d9c4a094 100644 --- a/docs/api/session.md +++ b/docs/api/session.md @@ -348,8 +348,14 @@ win.webContents.session.setCertificateVerifyProc((request, callback) => { * `handler` Function | null * `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 - Enum of 'media', 'geolocation', 'notifications', 'midiSysex', - 'pointerLock', 'fullscreen', 'openExternal'. + * `permission` String - The type of requested permission. + * `media` - Request access to media devices such as camera, microphone and speakers. + * `geolocation` - Request access to user's current location. + * `notifications` - Request notification creation and the ability to display them in the user's system tray. + * `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. + * `fullscreen` - Request for the app to enter fullscreen mode. + * `openExternal` - Request to open links in external applications. * `callback` Function * `permissionGranted` Boolean - Allow or deny the permission. * `details` Object - Some properties are only available on certain permission types.