diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2014-09-18 18:21:28 +0200 |
---|---|---|
committer | Pierre Rossi <pierre.rossi@gmail.com> | 2014-11-24 13:23:12 +0100 |
commit | a029fa2f6ef08bcad653f3d3e5a53ca8e3340b14 (patch) | |
tree | 446d7e2eee03aed3886246f11622bb7fc47b6b6b /src/core/web_contents_delegate_qt.cpp | |
parent | 66b2ca886063cfecaf000578492aa360581cab8a (diff) |
Wire the geolocation API to QtPositioning
If QtPositioning is available, provide chromium with a
LocationProvider that uses it as a backend.
Change-Id: I53ad3b45e49d0d2d181c1a6459b7be764293c2a6
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/web_contents_delegate_qt.cpp')
-rw-r--r-- | src/core/web_contents_delegate_qt.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.cpp b/src/core/web_contents_delegate_qt.cpp index f9dba67fe..46830f865 100644 --- a/src/core/web_contents_delegate_qt.cpp +++ b/src/core/web_contents_delegate_qt.cpp @@ -301,3 +301,9 @@ void WebContentsDelegateQt::allowCertificateError(const QExplicitlySharedDataPoi { m_viewClient->allowCertificateError(errorController); } + +void WebContentsDelegateQt::requestGeolocationPermission(const GURL &requestingFrameOrigin, base::Callback<void (bool)> resultCallback, base::Closure *cancelCallback) +{ + m_lastGeolocationRequestCallbacks = qMakePair(resultCallback, cancelCallback); + m_viewClient->runGeolocationPermissionRequest(toQt(requestingFrameOrigin)); +} |