2008-10-30 Greg Bolsinga <bolsinga@apple.com>
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 31 Oct 2008 01:56:43 +0000 (01:56 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 31 Oct 2008 01:56:43 +0000 (01:56 +0000)
commit71d1af879ad91be3271225f7c9e845dbfc4ba89b
tree572b15d17f9bd6259356d12f7e91936db0327b0f
parent522e6ea907c3ef2811118f46fb6bfe742a84a7fa
2008-10-30  Greg Bolsinga  <bolsinga@apple.com>

        Reviewed by Sam Weinig

        https://bugs.webkit.org/show_bug.cgi?id=21967

        For some platforms the GeolocationService must be suspended and resumed.

        * page/Geolocation.cpp:
        (WebCore::Geolocation::clearWatch): now uses Geolocation::hasListeners()
        (WebCore::Geolocation::suspend): calls GeolocationService::suspend() if there are listeners
        (WebCore::Geolocation::resume): calls GeolocationService::resume() if there are listeners
        (WebCore::Geolocation::geolocationServicePositionChanged): now uses Geolocation::hasListeners()
        * page/Geolocation.h:
        (WebCore::Geolocation::hasListeners): Indicates of the Geolocation has interested GeolocationService listeners
        * platform/GeolocationService.h:
        (WebCore::GeolocationService::suspend): empty implementation
        (WebCore::GeolocationService::resume): empty implementation

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@38018 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/page/Geolocation.cpp
WebCore/page/Geolocation.h
WebCore/platform/GeolocationService.h