SIGN IN SIGN UP
cefsharp / CefSharp UNCLAIMED

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework

0 0 1 C#
// Copyright © 2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.Collections.Generic;
using System.IO;
using CefSharp.Handler;
namespace CefSharp.Example.Handlers
{
public class TempFileDialogHandler : DialogHandler
2014-06-03 00:25:37 +10:00
{
protected override bool OnFileDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, string title, string defaultFilePath, List<string> acceptFilters, IFileDialogCallback callback)
2014-06-03 00:25:37 +10:00
{
callback.Continue(new List<string> { Path.GetRandomFileName() });
2014-06-03 00:25:37 +10:00
return true;
}
}
}