init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
namespace Cef3
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cef3.Interop;
|
||||
|
||||
/// <summary>
|
||||
/// Callback interface for CefBrowserHost::RunFileDialog. The methods of this
|
||||
/// class will be called on the browser process UI thread.
|
||||
/// </summary>
|
||||
public abstract unsafe partial class CefRunFileDialogCallback
|
||||
{
|
||||
private void on_file_dialog_dismissed(cef_run_file_dialog_callback_t* self, int selected_accept_filter, cef_string_list* file_paths)
|
||||
{
|
||||
CheckSelf(self);
|
||||
|
||||
var mFilePaths = cef_string_list.ToArray(file_paths);
|
||||
|
||||
OnFileDialogDismissed(selected_accept_filter, mFilePaths);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called asynchronously after the file dialog is dismissed.
|
||||
/// |selected_accept_filter| is the 0-based index of the value selected from
|
||||
/// the accept filters array passed to CefBrowserHost::RunFileDialog.
|
||||
/// |file_paths| will be a single value or a list of values depending on the
|
||||
/// dialog mode. If the selection was cancelled |file_paths| will be empty.
|
||||
/// </summary>
|
||||
protected abstract void OnFileDialogDismissed(int selectedAcceptFilter, string[] filePaths);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user