WKGeolocationManager.h [plain text]
#ifndef WKGeolocationManager_h
#define WKGeolocationManager_h
#include <WebKit2/WKBase.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*WKGeolocationProviderStartUpdatingCallback)(WKGeolocationManagerRef geolocationManager, const void* clientInfo);
typedef void (*WKGeolocationProviderStopUpdatingCallback)(WKGeolocationManagerRef geolocationManager, const void* clientInfo);
struct WKGeolocationProvider {
int version;
const void * clientInfo;
WKGeolocationProviderStartUpdatingCallback startUpdating;
WKGeolocationProviderStopUpdatingCallback stopUpdating;
};
typedef struct WKGeolocationProvider WKGeolocationProvider;
enum { kWKGeolocationProviderCurrentVersion = 0 };
WK_EXPORT WKTypeID WKGeolocationManagerGetTypeID();
WK_EXPORT void WKGeolocationManagerSetProvider(WKGeolocationManagerRef geolocationManager, const WKGeolocationProvider* 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