Changeset 166677 in webkit
- Timestamp:
- Apr 2, 2014 4:41:04 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r166675 r166677 1 2014-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 1 15 2014-04-02 Tim Horton <timothy_horton@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm
r166663 r166677 98 98 } 99 99 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 100 109 @end 101 110 … … 197 206 @end 198 207 199 #if PLATFORM(IOS)200 @implementation WKProcessPool (WKInternal)201 202 - (WKGeolocationProviderIOS *)_geolocationProvider203 {204 if (!_geolocationProvider)205 _geolocationProvider = adoptNS([[WKGeolocationProviderIOS alloc] initWithContext:_context.get()]);206 return _geolocationProvider.get();207 }208 209 @end210 #endif // PLATFORM(IOS)211 212 208 #endif // WK_API_ENABLED -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKProcessPoolInternal.h
r166663 r166677 51 51 API::ObjectStorage<WebKit::WebContext> _context; 52 52 } 53 54 #if TARGET_OS_IPHONE 55 @property(readonly) WKGeolocationProviderIOS *_geolocationProvider; 56 #endif 53 57 @end 54 58 55 #if TARGET_OS_IPHONE56 @interface WKProcessPool (WKInternal)57 @property(readonly) WKGeolocationProviderIOS *_geolocationProvider;58 @end59 #endif60 61 59 #endif // WK_API_ENABLED
Note: See TracChangeset
for help on using the changeset viewer.