Bug 732923 - CoreLocation provider shouldn't implement nsIGeolocationUpdate. r=jdm

This commit is contained in:
Guilherme Gonçalves 2014-01-08 16:04:21 -05:00
parent 465a600b29
commit 390ccfc5fe
2 changed files with 4 additions and 7 deletions

View File

@ -24,16 +24,16 @@ class CoreLocationObjects;
class CoreLocationLocationProvider
: public nsIGeolocationProvider
, public nsIGeolocationUpdate
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIGEOLOCATIONUPDATE
NS_DECL_NSIGEOLOCATIONPROVIDER
CoreLocationLocationProvider();
static bool IsCoreLocationAvailable();
void NotifyError(uint16_t aErrorCode);
void Update(nsIDOMGeoPosition* aSomewhere);
private:
virtual ~CoreLocationLocationProvider() {};

View File

@ -218,19 +218,16 @@ CoreLocationLocationProvider::SetHighAccuracy(bool aEnable)
return NS_OK;
}
NS_IMETHODIMP
void
CoreLocationLocationProvider::Update(nsIDOMGeoPosition* aSomewhere)
{
if (aSomewhere && mCallback) {
mCallback->Update(aSomewhere);
}
return NS_OK;
}
NS_IMETHODIMP
void
CoreLocationLocationProvider::NotifyError(uint16_t aErrorCode)
{
mCallback->NotifyError(aErrorCode);
return NS_OK;
}