Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
        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;
                });
            };
        }
Exemplo n.º 3
0
 public Example(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager) : base(browserComponent, notificationInterface, commonInterface, pluginManager, CreateSetupObject)
 {
 }
Exemplo n.º 4
0
 private NotificationBrowser(IBrowserComponent browserComponent, Func <NotificationBrowser, BrowserSetup> setup) : base(browserComponent, setup)
 {
 }
Exemplo n.º 5
0
 public Tweet(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager) : this(browserComponent, notificationInterface, commonInterface, pluginManager, browser => CreateSetupObject(browser, notificationInterface))
 {
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 8
0
 public BaseContextMenu(IBrowserComponent browser)
 {
     this.browser             = browser;
     this.fileDownloadManager = new FileDownloadManager(browser);
 }
Exemplo n.º 9
0
 internal FileDownloadManager(IBrowserComponent browserComponent)
 {
     this.browserComponent = browserComponent;
 }
Exemplo n.º 10
0
 private static NotificationBrowser CreateBrowserImpl(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ITweetDeckInterface tweetDeckInterface, PluginManager pluginManager)
 {
     return(new NotificationBrowser.Example(browserComponent, notificationInterface, tweetDeckInterface, pluginManager));
 }
Exemplo n.º 11
0
 internal static BrowserSetup CreateSetupObject(IBrowserComponent browserComponent, BrowserSetup setup)
 {
     setup.ContextMenuHandler ??= new BaseContextMenu(browserComponent);
     setup.ResourceRequestHandler ??= new BaseResourceRequestHandler();
     return(setup);
 }
Exemplo n.º 12
0
 public BaseBrowser(IBrowserComponent browserComponent) : base(browserComponent, CreateSetupObject)
 {
 }
Exemplo n.º 13
0
 internal static BrowserSetup CreateSetupObject(IBrowserComponent browserComponent)
 {
     return(CreateSetupObject(browserComponent, new BrowserSetup()));
 }
Exemplo n.º 14
0
 protected BaseBrowser(IBrowserComponent browserComponent, Func <T, BrowserSetup> setup)
 {
     this.browserComponent = browserComponent;
     this.browserComponent.Setup(setup((T)this));
 }