mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-03 14:34:08 +02:00
18 lines
736 B
C#
18 lines
736 B
C#
using CefSharp.WinForms;
|
|
using TweetDuck.Utils;
|
|
using TweetImpl.CefSharp.Component;
|
|
using TweetLib.Browser.CEF.Utils;
|
|
using TweetLib.Core;
|
|
|
|
namespace TweetDuck.Browser.Base {
|
|
sealed class CefBrowserComponent : BrowserComponentBase {
|
|
private static readonly CreateContextMenu DefaultContextMenuFactory = static handler => new ContextMenuBase(handler);
|
|
|
|
public override string CacheFolder => CefUtils.GetCacheFolder(App.StoragePath);
|
|
|
|
public CefBrowserComponent(ChromiumWebBrowser browser, CreateContextMenu? createContextMenu = null, bool autoReload = true) : base(browser, createContextMenu ?? DefaultContextMenuFactory, new JsDialogOpener(browser), PopupHandler.Instance, autoReload) {
|
|
browser.SetupZoomEvents();
|
|
}
|
|
}
|
|
}
|