Skip to content
  • weinig@apple.com's avatar
    Add Mac WebKit side of the client based geolocation provider. · d633d844
    weinig@apple.com authored
    Reviewed by Dan Bernstein.
    
    WebKit: 
    
    * WebKit.xcodeproj/project.pbxproj:
    
    WebKit/mac: 
    
    * Misc/WebKitErrors.m:
    (registerErrors): Add Geolocation errors.
    * Misc/WebKitErrorsPrivate.h:
    * WebCoreSupport/WebGeolocationControllerClient.h: Added.
    (WebGeolocationControllerClient::webView):
    * WebCoreSupport/WebGeolocationControllerClient.mm: Added.
    (WebGeolocationControllerClient::WebGeolocationControllerClient):
    (WebGeolocationControllerClient::startUpdating):
    (WebGeolocationControllerClient::stopUpdating):
    (WebGeolocationControllerClient::lastPosition):
    Add implementation of the WebGeolocationControllerClient.
    
    * WebView/WebGeolocationPosition.h: Added.
    * WebView/WebGeolocationPosition.mm: Added.
    (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
    (core):
    (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
    * WebView/WebGeolocationPositionInternal.h: Added.
    Add an Objective-C wrapper for GeolocationPosition.
     
    * WebView/WebView.mm:
    (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Set the GeolocationControllerClient.
    (-[WebView _setGeolocationProvider:]): Set the GeolocationProvider
    (-[WebView _geolocationProvider]): Return the GeolocationProvider.
    (-[WebView _geolocationDidChangePosition:]): Notify WebCore that the position changed.
    (-[WebView _geolocationDidFailWithError:]): Notify WebCore that an error occured.
    * WebView/WebViewData.h:
    * WebView/WebViewPrivate.h:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d633d844