From d433826c7d0514228b44f0c30ec7e545a3c179bb Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Mon, 9 Mar 2015 05:30:04 -0700 Subject: Move featurePermissionRequested to the public API Change-Id: Ifc0baac73daad9146eb8f2878e49257d25310555 Reviewed-by: Allan Sandfeld Jensen Reviewed-by: Andras Becsi --- .../doc/src/qquickwebengineview_lgpl.qdoc | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'src/webengine/doc/src/qquickwebengineview_lgpl.qdoc') diff --git a/src/webengine/doc/src/qquickwebengineview_lgpl.qdoc b/src/webengine/doc/src/qquickwebengineview_lgpl.qdoc index 73c084dab..035d4a382 100644 --- a/src/webengine/doc/src/qquickwebengineview_lgpl.qdoc +++ b/src/webengine/doc/src/qquickwebengineview_lgpl.qdoc @@ -244,6 +244,23 @@ \endcode */ +/*! + \qmlmethod void WebEngineView::grantFeaturePermission(url securityOrigin, WebEngineView::Feature feature, bool granted) + + Sets the permission for the web site identified by \a securityOrigin to use \a feature. + + \sa featurePermissionRequested() +*/ + +/*! + \qmlsignal void WebEngineView::featurePermissionRequested(url securityOrigin, WebEngineView::Feature feature) + + This is signal is emitted when the web site identified by \a securityOrigin requests + to make use of the resource or device identified by \a feature. + + \sa grantFeaturePermission() +*/ + /*! \qmlsignal WebEngineView::loadingChanged(loadRequest) @@ -416,3 +433,17 @@ \sa WebEngineView::findText() */ + +/*! + \qmlproperty enumeration WebEngineView::Feature + + This enum describes the platform feature access categories that the user may be asked to grant or deny access to. + + \value Geolocation Access to location hardware or service + \value MediaAudioCapture Audio capture devices such a microphones + \value MediaVideoCapture Video devices, e.g. cameras + \value MediaAudioVideoCapture Both Audio and Video capture devices. + + \sa featurePermissionRequested(), grantFeaturePermission() + +*/ -- cgit v1.2.3