Changeset 106903 in webkit
- Timestamp:
- Feb 6, 2012, 9:09:11 PM (15 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.cpp (modified) (5 diffs)
-
blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r106790 r106903 1 2012-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 1 24 2012-02-06 Robin Cao <robin.cao@torchmobile.com.cn> 2 25 -
trunk/Source/WebKit/blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.cpp
r106731 r106903 25 25 #include "GeolocationError.h" 26 26 #include "Page.h" 27 #include "WebPage.h"28 27 #include "WebPage_p.h" 29 28 30 29 using namespace WebCore; 31 30 32 GeolocationControllerClientBlackBerry::GeolocationControllerClientBlackBerry(BlackBerry::WebKit::WebPage * webPage)33 : m_webPage (webPage)31 GeolocationControllerClientBlackBerry::GeolocationControllerClientBlackBerry(BlackBerry::WebKit::WebPagePrivate* webPagePrivate) 32 : m_webPagePrivate(webPagePrivate) 34 33 , m_tracker(0) 35 34 , m_accuracy(false) … … 68 67 if (!frame) 69 68 return; 70 m_webPage ->d->m_page->chrome()->requestGeolocationPermissionForFrame(frame, location);69 m_webPagePrivate->m_page->chrome()->requestGeolocationPermissionForFrame(frame, location); 71 70 } 72 71 … … 76 75 if (!frame) 77 76 return; 78 m_webPage ->d->m_page->chrome()->cancelGeolocationPermissionRequestForFrame(frame, location);77 m_webPagePrivate->m_page->chrome()->cancelGeolocationPermissionRequestForFrame(frame, location); 79 78 } 80 79 … … 84 83 m_lastPosition = GeolocationPosition::create(timestamp, latitude, longitude, accuracy, altitudeValid, altitude, altitudeAccuracyValid, 85 84 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()); 87 86 } 88 87 … … 90 89 { 91 90 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()); 93 92 } 94 93 -
trunk/Source/WebKit/blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.h
r106731 r106903 20 20 #define GeolocationControllerClientBlackBerry_h 21 21 22 #include "WebPage.h"23 22 #include <BlackBerryPlatformGeoTracker.h> 24 23 #include <BlackBerryPlatformGeoTrackerListener.h> … … 26 25 #include <GeolocationPosition.h> 27 26 27 namespace BlackBerry { 28 namespace WebKit { 29 class WebPagePrivate; 30 } 31 } 32 28 33 namespace WebCore { 29 34 30 35 class GeolocationControllerClientBlackBerry : public GeolocationClient, public BlackBerry::Platform::GeoTrackerListener { 31 36 public: 32 GeolocationControllerClientBlackBerry(BlackBerry::WebKit::WebPage *);37 GeolocationControllerClientBlackBerry(BlackBerry::WebKit::WebPagePrivate*); 33 38 34 39 virtual void geolocationDestroyed(); … … 47 52 48 53 private: 49 BlackBerry::WebKit::WebPage * m_webPage;54 BlackBerry::WebKit::WebPagePrivate* m_webPagePrivate; 50 55 BlackBerry::Platform::GeoTracker* m_tracker; 51 56 RefPtr<GeolocationPosition> m_lastPosition;
Note:
See TracChangeset
for help on using the changeset viewer.