WKGeolocationManager.h [plain text]
#ifndef WKGeolocationManager_h
#define WKGeolocationManager_h
#include <WebKit/WKBase.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*WKGeolocationProviderStartUpdatingCallback)(WKGeolocationManagerRef geolocationManager, const void* clientInfo);
typedef void (*WKGeolocationProviderStopUpdatingCallback)(WKGeolocationManagerRef geolocationManager, const void* clientInfo);
typedef void (*WKGeolocationProviderSetEnableHighAccuracyCallback)(WKGeolocationManagerRef geolocationManager, bool enabled, const void* clientInfo);
typedef struct WKGeolocationProviderBase {
int version;
const void * clientInfo;
} WKGeolocationProviderBase;
typedef struct WKGeolocationProviderV0 {
WKGeolocationProviderBase base;
WKGeolocationProviderStartUpdatingCallback startUpdating;
WKGeolocationProviderStopUpdatingCallback stopUpdating;
} WKGeolocationProviderV0;
typedef struct WKGeolocationProviderV1 {
WKGeolocationProviderBase base;
WKGeolocationProviderStartUpdatingCallback startUpdating;
WKGeolocationProviderStopUpdatingCallback stopUpdating;
WKGeolocationProviderSetEnableHighAccuracyCallback setEnableHighAccuracy;
} WKGeolocationProviderV1;
WK_EXPORT WKTypeID WKGeolocationManagerGetTypeID();
WK_EXPORT void WKGeolocationManagerSetProvider(WKGeolocationManagerRef geolocationManager, const WKGeolocationProviderBase* provider);
WK_EXPORT void WKGeolocationManagerProviderDidChangePosition(WKGeolocationManagerRef geolocationManager, WKGeolocationPositionRef position);
WK_EXPORT void WKGeolocationManagerProviderDidFailToDeterminePosition(WKGeolocationManagerRef geolocationManager);
WK_EXPORT void WKGeolocationManagerProviderDidFailToDeterminePositionWithErrorMessage(WKGeolocationManagerRef geolocationManager, WKStringRef errorMessage);
#ifdef __cplusplus
}
#endif
#endif