mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-24 13:34:13 +08:00
24 lines
706 B
C#
24 lines
706 B
C#
![]() |
using Xilium.CefGlue;
|
|||
|
using Xilium.CefGlue.Common.Handlers;
|
|||
|
|
|||
|
namespace WebViewControl {
|
|||
|
|
|||
|
partial class WebView {
|
|||
|
private class InternalDialogHandler : DialogHandler {
|
|||
|
|
|||
|
private WebView OwnerWebView { get; }
|
|||
|
|
|||
|
public InternalDialogHandler(WebView webView) {
|
|||
|
OwnerWebView = webView;
|
|||
|
}
|
|||
|
|
|||
|
protected override bool OnFileDialog(CefBrowser browser, CefFileDialogMode mode, string title, string defaultFilePath, string[] acceptFilters, CefFileDialogCallback callback) {
|
|||
|
if (OwnerWebView.DisableFileDialogs) {
|
|||
|
return true;
|
|||
|
}
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|