Changeset 166677 in webkit


Ignore:
Timestamp:
Apr 2, 2014 4:41:04 PM (10 years ago)
Author:
dino@apple.com
Message:

[iOS] Expose geolocation provider on the process pool
https://bugs.webkit.org/show_bug.cgi?id=131125

Reviewed by Dan Bernstein.

Followup comments from Dan Bernstein. Use a class
extension rather than a new category.

  • UIProcess/API/Cocoa/WKProcessPool.mm:

(-[WKProcessPool _geolocationProvider]):

  • UIProcess/API/Cocoa/WKProcessPoolInternal.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r166675 r166677  
     12014-04-02  Dean Jackson  <dino@apple.com>
     2
     3        [iOS] Expose geolocation provider on the process pool
     4        https://bugs.webkit.org/show_bug.cgi?id=131125
     5
     6        Reviewed by Dan Bernstein.
     7
     8        Followup comments from Dan Bernstein. Use a class
     9        extension rather than a new category.
     10
     11        * UIProcess/API/Cocoa/WKProcessPool.mm:
     12        (-[WKProcessPool _geolocationProvider]):
     13        * UIProcess/API/Cocoa/WKProcessPoolInternal.h:
     14
    1152014-04-02  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm

    r166663 r166677  
    9898}
    9999
     100#if PLATFORM(IOS)
     101- (WKGeolocationProviderIOS *)_geolocationProvider
     102{
     103    if (!_geolocationProvider)
     104        _geolocationProvider = adoptNS([[WKGeolocationProviderIOS alloc] initWithContext:_context.get()]);
     105    return _geolocationProvider.get();
     106}
     107#endif // PLATFORM(IOS)
     108
    100109@end
    101110
     
    197206@end
    198207
    199 #if PLATFORM(IOS)
    200 @implementation WKProcessPool (WKInternal)
    201 
    202 - (WKGeolocationProviderIOS *)_geolocationProvider
    203 {
    204     if (!_geolocationProvider)
    205         _geolocationProvider = adoptNS([[WKGeolocationProviderIOS alloc] initWithContext:_context.get()]);
    206     return _geolocationProvider.get();
    207 }
    208 
    209 @end
    210 #endif // PLATFORM(IOS)
    211 
    212208#endif // WK_API_ENABLED
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessPoolInternal.h

    r166663 r166677  
    5151    API::ObjectStorage<WebKit::WebContext> _context;
    5252}
     53
     54#if TARGET_OS_IPHONE
     55@property(readonly) WKGeolocationProviderIOS *_geolocationProvider;
     56#endif
    5357@end
    5458
    55 #if TARGET_OS_IPHONE
    56 @interface WKProcessPool (WKInternal)
    57 @property(readonly) WKGeolocationProviderIOS *_geolocationProvider;
    58 @end
    59 #endif
    60 
    6159#endif // WK_API_ENABLED
Note: See TracChangeset for help on using the changeset viewer.