Skip to content

Commit ed6a983

Browse files
committed
Upgrade to 126.1.14+g2be337f+chromium-126.0.6478.57 / Chromium 126.0.6478.57
- IDialogHandler.OnFileDialog add new extensions and descriptions arguments (Breaking Change) Resolves #4838
1 parent 3ff0c36 commit ed6a983

35 files changed

+83
-53
lines changed

CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\cef.sdk.125.0.21\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.125.0.21\build\cef.sdk.props')" />
3+
<Import Project="..\packages\cef.sdk.126.1.14\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.126.1.14\build\cef.sdk.props')" />
44
<Import Project="..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" />
55
<Import Project="..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" />
66
<Import Project="..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" />

CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\cef.sdk.125.0.21\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.125.0.21\build\cef.sdk.props')" />
3+
<Import Project="..\packages\cef.sdk.126.1.14\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.126.1.14\build\cef.sdk.props')" />
44
<Import Project="..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" />
55
<Import Project="..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" />
66
<Import Project="..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" />

CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace CefSharp
3131
{
3232
auto propertyAttribute = javascriptProperty->IsReadOnly ? V8_PROPERTY_ATTRIBUTE_READONLY : V8_PROPERTY_ATTRIBUTE_NONE;
3333

34-
v8Value->SetValue(propertyName, V8_ACCESS_CONTROL_DEFAULT, propertyAttribute);
34+
v8Value->SetValue(propertyName, propertyAttribute);
3535
}
3636
};
3737
}

CefSharp.BrowserSubprocess.Core/Resource.rc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma code_page(65001)
22

33
1 VERSIONINFO
4-
FILEVERSION 125,0,210
5-
PRODUCTVERSION 125,0,210
4+
FILEVERSION 126,1,140
5+
PRODUCTVERSION 126,1,140
66
FILEFLAGSMASK 0x17L
77
#ifdef _DEBUG
88
FILEFLAGS 0x1L
@@ -18,10 +18,10 @@ BEGIN
1818
BLOCK "040904b0"
1919
BEGIN
2020
VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core"
21-
VALUE "FileVersion", "125.0.210"
21+
VALUE "FileVersion", "126.1.140"
2222
VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors"
2323
VALUE "ProductName", "CefSharp"
24-
VALUE "ProductVersion", "125.0.210"
24+
VALUE "ProductVersion", "126.1.140"
2525
END
2626
END
2727
BLOCK "VarFileInfo"

CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="cef.sdk" version="125.0.21" targetFramework="native" />
3+
<package id="cef.sdk" version="126.1.14" targetFramework="native" />
44
<package id="Microsoft.Build.Tasks.Git" version="1.0.0" targetFramework="native" developmentDependency="true" />
55
<package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" />
66
<package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" />

CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="cef.sdk" version="125.0.21" targetFramework="netcoreapp3.1" />
3+
<package id="cef.sdk" version="126.1.14" targetFramework="netcoreapp3.1" />
44
<package id="Microsoft.Build.Tasks.Git" version="1.0.0" targetFramework="native" developmentDependency="true" />
55
<package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" />
66
<package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" />

CefSharp.BrowserSubprocess/app.manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
99
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1010

11-
<assemblyIdentity version="125.0.210.0" name="CefSharp.BrowserSubprocess.app" />
11+
<assemblyIdentity version="126.1.140.0" name="CefSharp.BrowserSubprocess.app" />
1212
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
1313
<security>
1414
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">

CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\cef.sdk.125.0.21\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.125.0.21\build\cef.sdk.props')" />
3+
<Import Project="..\packages\cef.sdk.126.1.14\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.126.1.14\build\cef.sdk.props')" />
44
<Import Project="..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" />
55
<Import Project="..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" />
66
<Import Project="..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" />

CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\cef.sdk.125.0.21\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.125.0.21\build\cef.sdk.props')" />
3+
<Import Project="..\packages\cef.sdk.126.1.14\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.126.1.14\build\cef.sdk.props')" />
44
<Import Project="..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" />
55
<Import Project="..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" />
66
<Import Project="..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" />

CefSharp.Core.Runtime/Internals/ClientAdapter.cpp

+9-2
Original file line numberDiff line numberDiff line change
@@ -958,8 +958,13 @@ namespace CefSharp
958958
}
959959
}
960960

961-
bool ClientAdapter::OnFileDialog(CefRefPtr<CefBrowser> browser, FileDialogMode mode, const CefString& title,
962-
const CefString& default_file_path, const std::vector<CefString>& accept_filters,
961+
bool ClientAdapter::OnFileDialog(CefRefPtr<CefBrowser> browser,
962+
FileDialogMode mode,
963+
const CefString& title,
964+
const CefString& default_file_path,
965+
const std::vector<CefString>& accept_filters,
966+
const std::vector<CefString>& accept_extensions,
967+
const std::vector<CefString>& accept_descriptions,
963968
CefRefPtr<CefFileDialogCallback> callback)
964969
{
965970
auto handler = _browserControl->DialogHandler;
@@ -979,6 +984,8 @@ namespace CefSharp
979984
StringUtils::ToClr(title),
980985
StringUtils::ToClr(default_file_path),
981986
StringUtils::ToClr(accept_filters),
987+
StringUtils::ToClr(accept_extensions),
988+
StringUtils::ToClr(accept_descriptions),
982989
callbackWrapper);
983990
}
984991

CefSharp.Core.Runtime/Internals/ClientAdapter.h

+7-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,13 @@ namespace CefSharp
180180
virtual DECL void OnDialogClosed(CefRefPtr<CefBrowser> browser) override;
181181

182182
// CefDialogHandler
183-
virtual DECL bool OnFileDialog(CefRefPtr<CefBrowser> browser, FileDialogMode mode, const CefString& title,
184-
const CefString& default_file_path, const std::vector<CefString>& accept_filters,
183+
virtual DECL bool OnFileDialog(CefRefPtr<CefBrowser> browser,
184+
FileDialogMode mode,
185+
const CefString& title,
186+
const CefString& default_file_path,
187+
const std::vector<CefString>& accept_filters,
188+
const std::vector<CefString>& accept_extensions,
189+
const std::vector<CefString>& accept_descriptions,
185190
CefRefPtr<CefFileDialogCallback> callback) override;
186191

187192
//CefDragHandler

CefSharp.Core.Runtime/Resource.rc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma code_page(65001)
22

33
1 VERSIONINFO
4-
FILEVERSION 125,0,210
5-
PRODUCTVERSION 125,0,210
4+
FILEVERSION 126,1,140
5+
PRODUCTVERSION 126,1,140
66
FILEFLAGSMASK 0x17L
77
#ifdef _DEBUG
88
FILEFLAGS 0x1L
@@ -18,10 +18,10 @@ BEGIN
1818
BLOCK "040904b0"
1919
BEGIN
2020
VALUE "FileDescription", "CefSharp.Core"
21-
VALUE "FileVersion", "125.0.210"
21+
VALUE "FileVersion", "126.1.140"
2222
VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors"
2323
VALUE "ProductName", "CefSharp"
24-
VALUE "ProductVersion", "125.0.210"
24+
VALUE "ProductVersion", "126.1.140"
2525
END
2626
END
2727
BLOCK "VarFileInfo"

CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="cef.sdk" version="125.0.21" targetFramework="native" />
3+
<package id="cef.sdk" version="126.1.14" targetFramework="native" />
44
<package id="Microsoft.Build.Tasks.Git" version="1.0.0" targetFramework="native" developmentDependency="true" />
55
<package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" />
66
<package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" />

CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="cef.sdk" version="125.0.21" targetFramework="netcoreapp3.1" />
3+
<package id="cef.sdk" version="126.1.14" targetFramework="netcoreapp3.1" />
44
<package id="Microsoft.Build.Tasks.Git" version="1.0.0" targetFramework="native" developmentDependency="true" />
55
<package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" />
66
<package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" />

CefSharp.Example/Handlers/TempFileDialogHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CefSharp.Example.Handlers
1010
{
1111
public class TempFileDialogHandler : DialogHandler
1212
{
13-
protected override bool OnFileDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, string title, string defaultFilePath, List<string> acceptFilters, IFileDialogCallback callback)
13+
protected override bool OnFileDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, string title, string defaultFilePath, IReadOnlyCollection<string> acceptFilters, IReadOnlyCollection<string> acceptExtensions, IReadOnlyCollection<string> acceptDescriptions, IFileDialogCallback callback)
1414
{
1515
callback.Continue(new List<string> { Path.GetRandomFileName() });
1616

CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</None>
2424
</ItemGroup>
2525
<ItemGroup>
26-
<PackageReference Include="chromiumembeddedframework.runtime" Version="125.0.21" />
26+
<PackageReference Include="chromiumembeddedframework.runtime" Version="126.1.14" />
2727
</ItemGroup>
2828
<ItemGroup>
2929
<Compile Remove="bin.netcore\**" />

CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<ProjectReference Include="..\CefSharp.Example\CefSharp.Example.netcore.csproj" />
4040
<ProjectReference Include="..\CefSharp.OffScreen\CefSharp.OffScreen.netcore.csproj" />
4141
<ProjectReference Include="..\CefSharp\CefSharp.netcore.csproj" />
42-
<PackageReference Include="chromiumembeddedframework.runtime" Version="125.0.21" />
42+
<PackageReference Include="chromiumembeddedframework.runtime" Version="126.1.14" />
4343
</ItemGroup>
4444

4545
<ItemGroup>

CefSharp.OffScreen.Example/app.manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
88
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
99

10-
<assemblyIdentity version="125.0.210.0" name="CefSharp.OffScreen.Example.app" />
10+
<assemblyIdentity version="126.1.140.0" name="CefSharp.OffScreen.Example.app" />
1111
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
1212
<security>
1313
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">

CefSharp.Test/CefSharp.Test.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<ItemGroup>
3737
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0" />
3838
<PackageReference Include="Bogus" Version="35.4.1" />
39-
<PackageReference Include="chromiumembeddedframework.runtime" Version="125.0.21" />
39+
<PackageReference Include="chromiumembeddedframework.runtime" Version="126.1.14" />
4040
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
4141

4242
<PackageReference Include="Moq" Version="4.13.0" />

CefSharp.Test/CefSharp.Test.netcore.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<ProjectReference Include="..\CefSharp.Wpf\CefSharp.Wpf.netcore.csproj" />
3636
<ProjectReference Include="..\CefSharp.Example\CefSharp.Example.netcore.csproj" />
3737
<PackageReference Include="Bogus" Version="35.4.1" />
38-
<PackageReference Include="chromiumembeddedframework.runtime" Version="125.0.21" />
38+
<PackageReference Include="chromiumembeddedframework.runtime" Version="126.1.14" />
3939
</ItemGroup>
4040

4141
<ItemGroup>

CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<ProjectReference Include="..\CefSharp\CefSharp.csproj" />
3333
</ItemGroup>
3434
<ItemGroup>
35-
<PackageReference Include="chromiumembeddedframework.runtime" Version="125.0.21" />
35+
<PackageReference Include="chromiumembeddedframework.runtime" Version="126.1.14" />
3636
</ItemGroup>
3737
<ItemGroup>
3838
<Compile Remove="bin.netcore\**" />

CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<ProjectReference Include="..\CefSharp.Example\CefSharp.Example.netcore.csproj" />
4040
<ProjectReference Include="..\CefSharp.WinForms\CefSharp.WinForms.netcore.csproj" />
4141
<ProjectReference Include="..\CefSharp\CefSharp.netcore.csproj" />
42-
<PackageReference Include="chromiumembeddedframework.runtime" Version="125.0.21" />
42+
<PackageReference Include="chromiumembeddedframework.runtime" Version="126.1.14" />
4343
</ItemGroup>
4444

4545
<ItemGroup>

CefSharp.WinForms.Example/app.manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
99
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1010

11-
<assemblyIdentity version="125.0.210.0" name="CefSharp.WinForms.Example.app" />
11+
<assemblyIdentity version="126.1.140.0" name="CefSharp.WinForms.Example.app" />
1212

1313
<dependency>
1414
<dependentAssembly>

CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<Folder Include="Assets\Images\" />
3232
</ItemGroup>
3333
<ItemGroup>
34-
<PackageReference Include="chromiumembeddedframework.runtime" Version="125.0.21" />
34+
<PackageReference Include="chromiumembeddedframework.runtime" Version="126.1.14" />
3535
<PackageReference Include="MaterialDesignThemes" Version="4.8.0" />
3636
</ItemGroup>
3737
<ItemGroup>

CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<ProjectReference Include="..\CefSharp.Example\CefSharp.Example.netcore.csproj" />
4141
<ProjectReference Include="..\CefSharp.Wpf\CefSharp.Wpf.netcore.csproj" />
4242
<ProjectReference Include="..\CefSharp\CefSharp.netcore.csproj" />
43-
<PackageReference Include="chromiumembeddedframework.runtime" Version="125.0.21" />
43+
<PackageReference Include="chromiumembeddedframework.runtime" Version="126.1.14" />
4444
<PackageReference Include="System.Runtime.InteropServices.WindowsRuntime" Version="4.3.0" />
4545
<PackageReference Include="MaterialDesignThemes" Version="4.8.0" />
4646
</ItemGroup>

CefSharp.Wpf.Example/app.manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
88
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
99

10-
<assemblyIdentity version="125.0.210.0" name="CefSharp.Wpf.Example.app" />
10+
<assemblyIdentity version="126.1.140.0" name="CefSharp.Wpf.Example.app" />
1111
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
1212
<security>
1313
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">

CefSharp.shfbproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<DocumentationSource sourceFile="CefSharp.WinForms\CefSharp.WinForms.csproj" />
3232
<DocumentationSource sourceFile="CefSharp.Wpf\CefSharp.Wpf.csproj" />
3333
</DocumentationSources>
34-
<HelpFileVersion>125.0.210</HelpFileVersion>
34+
<HelpFileVersion>126.1.140</HelpFileVersion>
3535
<MaximumGroupParts>2</MaximumGroupParts>
3636
<NamespaceGrouping>False</NamespaceGrouping>
3737
<SyntaxFilters>C#, Managed C++</SyntaxFilters>
@@ -59,7 +59,7 @@
5959
<Filter entryType="Namespace" fullName="CefSharp.Wpf.Internals" isExposed="False" xmlns="" />
6060
</ApiFilter>
6161
<VisibleItems>InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable</VisibleItems>
62-
<HeaderText>Version 125.0.210</HeaderText>
62+
<HeaderText>Version 126.1.140</HeaderText>
6363
<CopyrightHref>https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE</CopyrightHref>
6464
<NamespaceSummaries>
6565
<NamespaceSummaryItem name="CefSharp" isDocumented="True">Interfaces, enums, structs and classes that make up the core API interface</NamespaceSummaryItem>

CefSharp/Handler/DialogHandler.cs

+13-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ bool IDialogHandler.OnFileDialog(
1818
CefFileDialogMode mode,
1919
string title,
2020
string defaultFilePath,
21-
List<string> acceptFilters,
21+
IReadOnlyCollection<string> acceptFilters,
22+
IReadOnlyCollection<string> acceptExtensions,
23+
IReadOnlyCollection<string> acceptDescriptions,
2224
IFileDialogCallback callback)
2325
{
24-
return OnFileDialog(chromiumWebBrowser, browser, mode, title, defaultFilePath, acceptFilters, callback);
26+
return OnFileDialog(chromiumWebBrowser, browser, mode, title, defaultFilePath, acceptFilters, acceptExtensions, acceptDescriptions, callback);
2527
}
2628

2729
/// <summary>
@@ -46,6 +48,12 @@ bool IDialogHandler.OnFileDialog(
4648
/// (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"),
4749
/// (b) individual file extensions (e.g. ".txt" or ".png"),
4850
/// (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>
4957
/// <param name="callback">Callback interface for asynchronous continuation of file dialog requests.</param>
5058
/// <returns>To display a custom dialog return true. To display the default dialog return false.</returns>
5159
protected virtual bool OnFileDialog(
@@ -54,7 +62,9 @@ protected virtual bool OnFileDialog(
5462
CefFileDialogMode mode,
5563
string title,
5664
string defaultFilePath,
57-
List<string> acceptFilters,
65+
IReadOnlyCollection<string> acceptFilters,
66+
IReadOnlyCollection<string> acceptExtensions,
67+
IReadOnlyCollection<string> acceptDescriptions,
5868
IFileDialogCallback callback)
5969
{
6070
return false;

0 commit comments

Comments
 (0)