⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136162 in webkit


Ignore:
Timestamp:
Nov 29, 2012, 2:13:29 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Modifying GeoClientBlackBerry to switch between high and low accuracy
​https://bugs.webkit.org/show_bug.cgi?id=103666

Patch by Otto Derek Cheung <​otcheung@rim.com> on 2012-11-29
Reviewed by Yong Li.

Internally reviewed by Yong Li.

PR 243420

Updating GeolocationClientBlackBerry to switch accuracy when GeolocationController
calls setEnableHighAccuracy.

  • WebCoreSupport/GeolocationClientBlackBerry.cpp:

(GeolocationClientBlackBerry::startUpdating):
(GeolocationClientBlackBerry::setEnableHighAccuracy):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/ChangeLog

    r136157 r136162  
     12012-11-29  Otto Derek Cheung  <otcheung@rim.com>
     2
     3        [BlackBerry] Modifying GeoClientBlackBerry to switch between high and low accuracy
     4        https://bugs.webkit.org/show_bug.cgi?id=103666
     5
     6        Reviewed by Yong Li.
     7
     8        Internally reviewed by Yong Li.
     9
     10        PR 243420
     11
     12        Updating GeolocationClientBlackBerry to switch accuracy when GeolocationController
     13        calls setEnableHighAccuracy.
     14
     15        * WebCoreSupport/GeolocationClientBlackBerry.cpp:
     16        (GeolocationClientBlackBerry::startUpdating):
     17        (GeolocationClientBlackBerry::setEnableHighAccuracy):
     18
    1192012-11-29  Andrew Lo  <anlo@rim.com>
    220
  • trunk/Source/WebKit/blackberry/WebCoreSupport/GeolocationClientBlackBerry.cpp

    r133247 r136162  
    5353{
    5454    if (!m_isActive)
    55         BlackBerry::Platform::GeolocationHandler::instance()->addListener(this, false);
     55        BlackBerry::Platform::GeolocationHandler::instance()->addListener(this);
    5656    m_isActive = true;
    5757}
    … …  
    130130void GeolocationClientBlackBerry::setEnableHighAccuracy(bool newAccuracy)
    131131{
    132     // FIXME: we have to implement high accuracy on our side too
    133     m_accuracy = newAccuracy;
     132    if (m_accuracy != newAccuracy) {
     133        m_accuracy = newAccuracy;
     134        BlackBerry::Platform::GeolocationHandler::instance()->switchAccuracy(this);
     135    }
    134136}
    135137
Note: See TracChangeset for help on using the changeset viewer.