Changeset 63745 in webkit
- Timestamp:
- Jul 20, 2010 8:09:49 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r63742 r63745 1 2010-07-20 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r63742. 4 http://trac.webkit.org/changeset/63742 5 https://bugs.webkit.org/show_bug.cgi?id=42641 6 7 Broke Leopard Intel build. (Requested by bbandix on #webkit). 8 9 * wtf/Platform.h: 10 1 11 2010-07-20 Mahesh Kulkarni <mahesh.kulkarni@nokia.com> 2 12 -
trunk/JavaScriptCore/wtf/Platform.h
r63742 r63745 1117 1117 #endif 1118 1118 1119 /* Geolocation request policy. pre-emptive policy is to acquire user permission before acquiring location.1120 Client based implementations will have option to choose between pre-emptive and nonpre-emptive permission policy.1121 pre-emptive permission policy is enabled by default for all client-based implementations. */1122 #if ENABLE(CLIENT_BASED_GEOLOCATION)1123 #define WTF_USE_PREEMPT_GEOLOCATION_PERMISSION1124 #endif1125 1126 1119 #endif /* WTF_Platform_h */ -
trunk/WebCore/ChangeLog
r63743 r63745 1 2010-07-20 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r63742. 4 http://trac.webkit.org/changeset/63742 5 https://bugs.webkit.org/show_bug.cgi?id=42641 6 7 Broke Leopard Intel build. (Requested by bbandix on #webkit). 8 9 * WebCore.pro: 10 * page/Geolocation.cpp: 11 (WebCore::Geolocation::startRequest): 12 (WebCore::Geolocation::setIsAllowed): 13 (WebCore::Geolocation::startUpdating): 14 * page/Geolocation.h: 15 1 16 2010-07-20 Adam Roben <aroben@apple.com> 2 17 -
trunk/WebCore/WebCore.pro
r63742 r63745 2708 2708 2709 2709 contains(DEFINES, ENABLE_GEOLOCATION=1) { 2710 # if geolocation is enabled, enable pre-request for permission policy2711 DEFINES += WTF_USE_PREEMPT_GEOLOCATION_PERMISSION2712 2713 2710 HEADERS += \ 2714 2711 platform/qt/GeolocationServiceQt.h -
trunk/WebCore/page/Geolocation.cpp
r63742 r63745 280 280 notifier->setUseCachedPosition(); 281 281 else if (notifier->hasZeroTimeout() || startUpdating(notifier.get())) { 282 #if USE(PREEMPT_GEOLOCATION_PERMISSION)282 #if ENABLE(CLIENT_BASED_GEOLOCATION) 283 283 // Only start timer if we're not waiting for user permission. 284 284 if (!m_startRequestPermissionNotifier) … … 401 401 m_allowGeolocation = allowed ? Yes : No; 402 402 403 #if USE(PREEMPT_GEOLOCATION_PERMISSION)403 #if ENABLE(CLIENT_BASED_GEOLOCATION) 404 404 if (m_startRequestPermissionNotifier) { 405 405 if (isAllowed()) { … … 407 407 m_startRequestPermissionNotifier->startTimerIfNeeded(); 408 408 m_startRequestPermissionNotifier = 0; 409 #if ENABLE(CLIENT_BASED_GEOLOCATION)410 409 if (!m_frame) 411 410 return; … … 414 413 return; 415 414 page->geolocationController()->addObserver(this); 416 #else417 // TODO: Handle startUpdate() for non-client based implementations using pre-emptive policy418 #endif419 415 } else { 420 416 m_startRequestPermissionNotifier->setFatalError(PositionError::create(PositionError::PERMISSION_DENIED, permissionDeniedErrorMessage)); … … 617 613 bool Geolocation::startUpdating(GeoNotifier* notifier) 618 614 { 619 #if USE(PREEMPT_GEOLOCATION_PERMISSION) 615 #if ENABLE(CLIENT_BASED_GEOLOCATION) 616 // FIXME: Pass options to client. 617 620 618 if (!isAllowed()) { 621 619 m_startRequestPermissionNotifier = notifier; … … 623 621 return true; 624 622 } 625 #endif 626 627 #if ENABLE(CLIENT_BASED_GEOLOCATION) 623 628 624 if (!m_frame) 629 625 return false; … … 633 629 return false; 634 630 635 // FIXME: Pass options to client.636 631 page->geolocationController()->addObserver(this); 637 632 return true; -
trunk/WebCore/page/Geolocation.h
r63742 r63745 166 166 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 167 167 OwnPtr<GeolocationService> m_service; 168 #endif 169 #if USE(PREEMPT_GEOLOCATION_PERMISSION) 168 #else 170 169 RefPtr<GeoNotifier> m_startRequestPermissionNotifier; 171 170 #endif
Note: See TracChangeset
for help on using the changeset viewer.