init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
namespace Cef3
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cef3.Interop;
|
||||
|
||||
/// <summary>
|
||||
/// Callback interface used to asynchronously continue a download.
|
||||
/// </summary>
|
||||
public sealed unsafe partial class CefBeforeDownloadCallback
|
||||
{
|
||||
/// <summary>
|
||||
/// Call to continue the download. Set |download_path| to the full file path
|
||||
/// for the download including the file name or leave blank to use the
|
||||
/// suggested name and the default temp directory. Set |show_dialog| to true
|
||||
/// if you do wish to show the default "Save As" dialog.
|
||||
/// </summary>
|
||||
public void Continue(string downloadPath, bool showDialog)
|
||||
{
|
||||
fixed (char* downloadPath_ptr = downloadPath)
|
||||
{
|
||||
var n_downloadPath = new cef_string_t(downloadPath_ptr, downloadPath != null ? downloadPath.Length : 0);
|
||||
cef_before_download_callback_t.cont(_self, &n_downloadPath, showDialog ? 1 : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user