summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_delegate_qt.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2014-09-18 18:21:28 +0200
committerPierre Rossi <pierre.rossi@gmail.com>2014-11-24 13:23:12 +0100
commita029fa2f6ef08bcad653f3d3e5a53ca8e3340b14 (patch)
tree446d7e2eee03aed3886246f11622bb7fc47b6b6b /src/core/web_contents_delegate_qt.h
parent66b2ca886063cfecaf000578492aa360581cab8a (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.h')
-rw-r--r--src/core/web_contents_delegate_qt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.h b/src/core/web_contents_delegate_qt.h
index 2ab5fc8cd..29a548f47 100644
--- a/src/core/web_contents_delegate_qt.h
+++ b/src/core/web_contents_delegate_qt.h
@@ -40,6 +40,8 @@
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
+#include "base/callback.h"
+
#include "javascript_dialog_manager_qt.h"
#include <QtCore/qcompilerdetection.h>
@@ -88,7 +90,9 @@ public:
void overrideWebPreferences(content::WebContents *, WebPreferences*);
void allowCertificateError(const QExplicitlySharedDataPointer<CertificateErrorController> &) ;
+ void requestGeolocationPermission(const GURL &requestingFrameOrigin, base::Callback<void (bool)> resultCallback, base::Closure *cancelCallback);
+ QPair<base::Callback<void (bool)>, base::Closure*> m_lastGeolocationRequestCallbacks;
private:
WebContentsAdapter *createWindow(content::WebContents *new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, bool user_gesture);