protected Tweet(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager, Func <NotificationBrowser, BrowserSetup> setup) : base(browserComponent, setup) { this.browserComponent.PageLoadEnd += BrowserComponentOnPageLoadEnd; this.browserComponent.AttachBridgeObject("$TD", new NotificationBridgeObject(notificationInterface, commonInterface)); this.notificationInterface = notificationInterface; this.pluginManager = pluginManager; this.pluginManager.Register(PluginEnvironment.Notification, browserComponent); }
public static void SetupDockOnLoad(IBrowserComponent browserComponent, ChromiumWebBrowser browser) { browser.Dock = DockStyle.None; browser.Location = ControlExtensions.InvisibleLocation; browserComponent.BrowserLoaded += (sender, args) => { browser.InvokeAsyncSafe(() => { browser.Location = Point.Empty; browser.Dock = DockStyle.Fill; }); }; }
public Example(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager) : base(browserComponent, notificationInterface, commonInterface, pluginManager, CreateSetupObject) { }
private NotificationBrowser(IBrowserComponent browserComponent, Func <NotificationBrowser, BrowserSetup> setup) : base(browserComponent, setup) { }
public Tweet(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager) : this(browserComponent, notificationInterface, commonInterface, pluginManager, browser => CreateSetupObject(browser, notificationInterface)) { }
private static NotificationBrowser CreateBrowserImpl(IBrowserComponent browserComponent, PluginManager pluginManager) { return(new NotificationBrowser.Screenshot(browserComponent, pluginManager.NotificationInjections)); }
public Screenshot(IBrowserComponent browserComponent, IEnumerable <InjectedString> notificationInjections) : base(browserComponent, CreateSetupObject) { this.notificationInjections = notificationInjections; }
public BaseContextMenu(IBrowserComponent browser) { this.browser = browser; this.fileDownloadManager = new FileDownloadManager(browser); }
internal FileDownloadManager(IBrowserComponent browserComponent) { this.browserComponent = browserComponent; }
private static NotificationBrowser CreateBrowserImpl(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ITweetDeckInterface tweetDeckInterface, PluginManager pluginManager) { return(new NotificationBrowser.Example(browserComponent, notificationInterface, tweetDeckInterface, pluginManager)); }
internal static BrowserSetup CreateSetupObject(IBrowserComponent browserComponent, BrowserSetup setup) { setup.ContextMenuHandler ??= new BaseContextMenu(browserComponent); setup.ResourceRequestHandler ??= new BaseResourceRequestHandler(); return(setup); }
public BaseBrowser(IBrowserComponent browserComponent) : base(browserComponent, CreateSetupObject) { }
internal static BrowserSetup CreateSetupObject(IBrowserComponent browserComponent) { return(CreateSetupObject(browserComponent, new BrowserSetup())); }
protected BaseBrowser(IBrowserComponent browserComponent, Func <T, BrowserSetup> setup) { this.browserComponent = browserComponent; this.browserComponent.Setup(setup((T)this)); }