Example #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);
        }
Example #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);
 }
Example #3
0
 internal static CefGeoposition FromNative(cef_geoposition_t* position)
 {
     return new CefGeoposition(position);
 }