Exemple #1
0
        private void on_location_update(cef_get_geolocation_callback_t *self, cef_geoposition_t *position)
        {
            CheckSelf(self);

            var mPosition = CefGeoposition.FromNative(position);

            OnLocationUpdate(mPosition);
        }
Exemple #2
0
 private CefGeoposition(cef_geoposition_t *position)
 {
     _latitude         = position->latitude;
     _longitude        = position->longitude;
     _altitude         = position->altitude;
     _accuracy         = position->accuracy;
     _altitudeAccuracy = position->altitude_accuracy;
     _heading          = position->heading;
     _speed            = position->speed;
     _timestamp        = cef_time_t.ToDateTime(&position->timestamp);
     _errorCode        = position->error_code;
     _errorMessage     = cef_string_t.ToString(&position->error_message);
 }
 public static void Clear(cef_geoposition_t *self)
 {
     cef_string_t.Clear(&self->error_message);
 }
Exemple #4
0
 internal static CefGeoposition FromNative(cef_geoposition_t *position)
 {
     return(new CefGeoposition(position));
 }
 private void on_location_update(cef_get_geolocation_callback_t *self, cef_geoposition_t *position)
 {
     CheckSelf(self);
     throw new NotImplementedException(); // TODO: CefGetGeolocationCallback.OnLocationUpdate
 }