@@ -18,10 +18,12 @@ bool IDialogHandler.OnFileDialog(
18
18
CefFileDialogMode mode ,
19
19
string title ,
20
20
string defaultFilePath ,
21
- List < string > acceptFilters ,
21
+ IReadOnlyCollection < string > acceptFilters ,
22
+ IReadOnlyCollection < string > acceptExtensions ,
23
+ IReadOnlyCollection < string > acceptDescriptions ,
22
24
IFileDialogCallback callback )
23
25
{
24
- return OnFileDialog ( chromiumWebBrowser , browser , mode , title , defaultFilePath , acceptFilters , callback ) ;
26
+ return OnFileDialog ( chromiumWebBrowser , browser , mode , title , defaultFilePath , acceptFilters , acceptExtensions , acceptDescriptions , callback ) ;
25
27
}
26
28
27
29
/// <summary>
@@ -46,6 +48,12 @@ bool IDialogHandler.OnFileDialog(
46
48
/// (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"),
47
49
/// (b) individual file extensions (e.g. ".txt" or ".png"),
48
50
/// (c) combined description and file extension delimited using "|" and ";" (e.g. "Image Types|.png;.gif;.jpg").</param>
51
+ /// <param name="acceptExtensions">provides the semicolon-delimited expansion of MIME
52
+ /// types to file extensions (if known, or empty string otherwise).</param>
53
+ /// <param name="acceptDescriptions">
54
+ /// Provides the descriptions for MIME types (if known, or empty string otherwise).
55
+ /// For example, the 'image/*' mime type might have extensions ".png;.jpg;.bmp;..." and description 'Image Files'
56
+ /// </param>
49
57
/// <param name="callback">Callback interface for asynchronous continuation of file dialog requests.</param>
50
58
/// <returns>To display a custom dialog return true. To display the default dialog return false.</returns>
51
59
protected virtual bool OnFileDialog (
@@ -54,7 +62,9 @@ protected virtual bool OnFileDialog(
54
62
CefFileDialogMode mode ,
55
63
string title ,
56
64
string defaultFilePath ,
57
- List < string > acceptFilters ,
65
+ IReadOnlyCollection < string > acceptFilters ,
66
+ IReadOnlyCollection < string > acceptExtensions ,
67
+ IReadOnlyCollection < string > acceptDescriptions ,
58
68
IFileDialogCallback callback )
59
69
{
60
70
return false ;
0 commit comments