init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
namespace Cef3
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cef3.Interop;
|
||||
|
||||
/// <summary>
|
||||
/// Implement this interface to receive geolocation updates. The methods of this
|
||||
/// class will be called on the browser process UI thread.
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called with the 'best available' location information or, if the location
|
||||
/// update failed, with error information.
|
||||
/// </summary>
|
||||
protected abstract void OnLocationUpdate(CefGeoposition position);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user