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

Changeset 106903 in webkit


Ignore:
Timestamp:
Feb 6, 2012, 9:09:11 PM (15 years ago)
Author:
leo.yang@torchmobile.com.cn
Message:

[BlackBerry] Use WebPagePrivate instead of WebPage in GeolocationControllerClientBlackBerry
https://bugs.webkit.org/show_bug.cgi?id=77927

Reviewed by Antonio Gomes.

WebKit/blackberry/Api/WebPage which has a d pointer is designed for public API.
GeolocationControllerClientBlackBerry in WebKit/blackberry/WebCoreSupport should
use the d pointer directly because the client is internal implementation.

No functionalities changed, no new tests.

  • blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.cpp:

(GeolocationControllerClientBlackBerry::GeolocationControllerClientBlackBerry):
(GeolocationControllerClientBlackBerry::requestPermission):
(GeolocationControllerClientBlackBerry::cancelPermissionRequest):
(GeolocationControllerClientBlackBerry::onLocationUpdate):
(GeolocationControllerClientBlackBerry::onLocationError):

  • blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.h:

(WebKit):
(GeolocationControllerClientBlackBerry):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r106790 r106903  
     12012-02-06  Leo Yang  <leo.yang@torchmobile.com.cn>
     2
     3        [BlackBerry] Use WebPagePrivate instead of WebPage in GeolocationControllerClientBlackBerry
     4        https://bugs.webkit.org/show_bug.cgi?id=77927
     5
     6        Reviewed by Antonio Gomes.
     7
     8        WebKit/blackberry/Api/WebPage which has a d pointer is designed for public API.
     9        GeolocationControllerClientBlackBerry in WebKit/blackberry/WebCoreSupport should
     10        use the d pointer directly because the client is internal implementation.
     11
     12        No functionalities changed, no new tests.
     13
     14        * blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.cpp:
     15        (GeolocationControllerClientBlackBerry::GeolocationControllerClientBlackBerry):
     16        (GeolocationControllerClientBlackBerry::requestPermission):
     17        (GeolocationControllerClientBlackBerry::cancelPermissionRequest):
     18        (GeolocationControllerClientBlackBerry::onLocationUpdate):
     19        (GeolocationControllerClientBlackBerry::onLocationError):
     20        * blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.h:
     21        (WebKit):
     22        (GeolocationControllerClientBlackBerry):
     23
    1242012-02-06  Robin Cao  <robin.cao@torchmobile.com.cn>
    225
  • trunk/Source/WebKit/blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.cpp

    r106731 r106903  
    2525#include "GeolocationError.h"
    2626#include "Page.h"
    27 #include "WebPage.h"
    2827#include "WebPage_p.h"
    2928
    3029using namespace WebCore;
    3130
    32 GeolocationControllerClientBlackBerry::GeolocationControllerClientBlackBerry(BlackBerry::WebKit::WebPage* webPage)
    33     : m_webPage(webPage)
     31GeolocationControllerClientBlackBerry::GeolocationControllerClientBlackBerry(BlackBerry::WebKit::WebPagePrivate* webPagePrivate)
     32    : m_webPagePrivate(webPagePrivate)
    3433    , m_tracker(0)
    3534    , m_accuracy(false)
     
    6867    if (!frame)
    6968        return;
    70     m_webPage->d->m_page->chrome()->requestGeolocationPermissionForFrame(frame, location);
     69    m_webPagePrivate->m_page->chrome()->requestGeolocationPermissionForFrame(frame, location);
    7170}
    7271
     
    7675    if (!frame)
    7776        return;
    78     m_webPage->d->m_page->chrome()->cancelGeolocationPermissionRequestForFrame(frame, location);
     77    m_webPagePrivate->m_page->chrome()->cancelGeolocationPermissionRequestForFrame(frame, location);
    7978}
    8079
     
    8483    m_lastPosition = GeolocationPosition::create(timestamp, latitude, longitude, accuracy, altitudeValid, altitude, altitudeAccuracyValid,
    8584                                                 altitudeAccuracy, headingValid, heading, speedValid, speed);
    86     m_webPage->d->m_page->geolocationController()->positionChanged(m_lastPosition.get());
     85    m_webPagePrivate->m_page->geolocationController()->positionChanged(m_lastPosition.get());
    8786}
    8887
     
    9089{
    9190    RefPtr<GeolocationError> error = GeolocationError::create(GeolocationError::PositionUnavailable, String::fromUTF8(errorStr));
    92     m_webPage->d->m_page->geolocationController()->errorOccurred(error.get());
     91    m_webPagePrivate->m_page->geolocationController()->errorOccurred(error.get());
    9392}
    9493
  • trunk/Source/WebKit/blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.h

    r106731 r106903  
    2020#define GeolocationControllerClientBlackBerry_h
    2121
    22 #include "WebPage.h"
    2322#include <BlackBerryPlatformGeoTracker.h>
    2423#include <BlackBerryPlatformGeoTrackerListener.h>
     
    2625#include <GeolocationPosition.h>
    2726
     27namespace BlackBerry {
     28namespace WebKit {
     29class WebPagePrivate;
     30}
     31}
     32
    2833namespace WebCore {
    2934
    3035class GeolocationControllerClientBlackBerry : public GeolocationClient, public BlackBerry::Platform::GeoTrackerListener {
    3136public:
    32     GeolocationControllerClientBlackBerry(BlackBerry::WebKit::WebPage*);
     37    GeolocationControllerClientBlackBerry(BlackBerry::WebKit::WebPagePrivate*);
    3338
    3439    virtual void geolocationDestroyed();
     
    4752
    4853private:
    49     BlackBerry::WebKit::WebPage* m_webPage;
     54    BlackBerry::WebKit::WebPagePrivate* m_webPagePrivate;
    5055    BlackBerry::Platform::GeoTracker* m_tracker;
    5156    RefPtr<GeolocationPosition> m_lastPosition;
Note: See TracChangeset for help on using the changeset viewer.