namespace Cef3 { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Cef3.Interop; /// /// Callback interface for asynchronous continuation of file dialog requests. /// public sealed unsafe partial class CefFileDialogCallback { /// /// Continue the file selection. |selected_accept_filter| should be the 0-based /// index of the value selected from the accept filters array passed to /// CefDialogHandler::OnFileDialog. |file_paths| should be a single value or a /// list of values depending on the dialog mode. An empty |file_paths| value is /// treated the same as calling Cancel(). /// public void Continue(int selectedAcceptFilter, string[] filePaths) { var n_filePaths = cef_string_list.From(filePaths); cef_file_dialog_callback_t.cont(_self, selectedAcceptFilter, n_filePaths); libcef.string_list_free(n_filePaths); } /// /// Cancel the file selection. /// public void Cancel() { cef_file_dialog_callback_t.cancel(_self); } } }