[Qt] Implement client based geolocation for qtport
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Feb 2011 21:40:40 +0000 (21:40 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Feb 2011 21:40:40 +0000 (21:40 +0000)
commit4056b693f535ac2a9916f127ce65e59a6a9c3acd
treeef1ac9270c1b7c7f469b974d553e605ac7190400
parent819352cf12311766a729a990251412d37703578b
[Qt] Implement client based geolocation for qtport
https://bugs.webkit.org/show_bug.cgi?id=42629

Patch by Mahesh Kulkarni <mahesh.kulkarni@nokia.com> on 2011-02-18
Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Implements client based geolocation for qtwebkit. Removed old code related to non-client based geolocation

No tests as yet. This will be raised as different bug as new mock client implementation need to be done.

* WebCore.pro:
* features.pri:
* platform/qt/GeolocationServiceQt.cpp: Removed.
* platform/qt/GeolocationServiceQt.h: Removed.

Source/WebKit/qt:

Implements client based geolocation for qtwebkit.
New client based geolocation contains permission API's as well,
so removed the implementation from ChromeClientQt.cpp.

* Api/qwebpage.cpp:
(QWebPagePrivate::QWebPagePrivate):
* WebCoreSupport/ChromeClientQt.cpp:
* WebCoreSupport/ChromeClientQt.h:
(WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
(WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
* WebCoreSupport/GeolocationClientQt.cpp: Added.
(WebCore::GeolocationClientQt::GeolocationClientQt):
(WebCore::GeolocationClientQt::~GeolocationClientQt):
(WebCore::GeolocationClientQt::geolocationDestroyed):
(WebCore::GeolocationClientQt::positionUpdated):
(WebCore::GeolocationClientQt::startUpdating):
(WebCore::GeolocationClientQt::stopUpdating):
(WebCore::GeolocationClientQt::setEnableHighAccuracy):
(WebCore::GeolocationClientQt::requestPermission):
(WebCore::GeolocationClientQt::cancelPermissionRequest):
* WebCoreSupport/GeolocationClientQt.h: Added.
(WebCore::GeolocationClientQt::lastPosition):

LayoutTests:

Disable Geolocation layout test case until client-based mock layout controller is implemented.

* platform/qt/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@79028 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/qt/Skipped
Source/WebCore/ChangeLog
Source/WebCore/WebCore.pro
Source/WebCore/features.pri
Source/WebCore/page/Geolocation.h
Source/WebCore/platform/GeolocationService.h
Source/WebKit/qt/Api/qwebpage.cpp
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp
Source/WebKit/qt/WebCoreSupport/ChromeClientQt.h
Source/WebKit/qt/WebCoreSupport/GeolocationClientQt.cpp [moved from Source/WebCore/platform/qt/GeolocationServiceQt.cpp with 50% similarity]
Source/WebKit/qt/WebCoreSupport/GeolocationClientQt.h [moved from Source/WebCore/platform/qt/GeolocationServiceQt.h with 75% similarity]