[Qt][WK2] Implement permission API for Qt port
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2011 08:41:19 +0000 (08:41 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Nov 2011 08:41:19 +0000 (08:41 +0000)
commitacd11137376c3e229430041da3ff9fd990aac77d
treec4c2026ea4160338950b99f31e1a5d32babd5e18
parentbc05cf269285be7ea1ece76e2eed9abbf9f8c19d
[Qt][WK2] Implement permission API for Qt port
https://bugs.webkit.org/show_bug.cgi?id=59200

Permission API hookup for Geolocation, it allows to receive in WebView
a signal when a permission request is done (e.g. to grant permission
for accessing geolocation information) and set it accordingly.

Patch by Adenilson Cavalcanti <adenilson.silva@openbossa.org> on 2011-11-30
Reviewed by Simon Hausmann.

.:

* Source/qtwebkit-export.map:

Source/WebKit/qt:

* declarative/plugin.cpp:
(WebKitQmlPlugin::registerTypes):

Source/WebKit2:

* Target.pri:
* UIProcess/API/qt/qquickwebview_p.h:
* UIProcess/API/qt/qwebpermissionrequest.cpp: Added.
(QWebPermissionRequestPrivate::QWebPermissionRequestPrivate):
(QWebPermissionRequestPrivate::~QWebPermissionRequestPrivate):
(QWebPermissionRequest::create):
(QWebPermissionRequest::QWebPermissionRequest):
(QWebPermissionRequest::~QWebPermissionRequest):
(QWebPermissionRequest::type):
(QWebPermissionRequest::setAllow):
(QWebPermissionRequest::allow):
(QWebPermissionRequest::scheme):
(QWebPermissionRequest::host):
(QWebPermissionRequest::port):
* UIProcess/API/qt/qwebpermissionrequest_p.h: Added.
* UIProcess/API/qt/tests/qmltests/WebView/tst_geopermission.qml: Added.
* UIProcess/API/qt/tests/qmltests/common/geolocation.html: Added.
* UIProcess/API/qt/tests/qmltests/qmltests.pro:
* UIProcess/qt/QtWebPageUIClient.cpp:
(QtWebPageUIClient::QtWebPageUIClient):
(QtWebPageUIClient::permissionRequest):
(QtWebPageUIClient::policyForGeolocationPermissionRequest):
* UIProcess/qt/QtWebPageUIClient.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
ChangeLog
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/declarative/plugin.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/Target.pri
Source/WebKit2/UIProcess/API/qt/qquickwebview_p.h
Source/WebKit2/UIProcess/API/qt/qwebpermissionrequest.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/qwebpermissionrequest_p.h [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_geopermission.qml [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/common/geolocation.html [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/qmltests.pro
Source/WebKit2/UIProcess/qt/QtWebPageUIClient.cpp
Source/WebKit2/UIProcess/qt/QtWebPageUIClient.h
Source/qtwebkit-export.map