namespace Cef3 { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Cef3.Interop; /// /// Implement this interface to receive geolocation updates. The methods of this /// class will be called on the browser process UI thread. /// public abstract unsafe partial class CefGetGeolocationCallback { private void on_location_update(cef_get_geolocation_callback_t* self, cef_geoposition_t* position) { CheckSelf(self); var mPosition = CefGeoposition.FromNative(position); OnLocationUpdate(mPosition); } /// /// Called with the 'best available' location information or, if the location /// update failed, with error information. /// protected abstract void OnLocationUpdate(CefGeoposition position); } }