Esempio n. 1
0
 private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e)
 {
     if (e.Frame.IsMain && NotificationJS != null && browser.Address != "about:blank")
     {
         e.Frame.ExecuteJavaScriptAsync(PropertyBridge.GenerateScript(PropertyBridge.Environment.Notification));
         ScriptLoader.ExecuteScript(e.Frame, NotificationJS, NotificationScriptIdentifier);
         plugins.ExecutePlugins(e.Frame, PluginEnvironment.Notification);
     }
 }
Esempio n. 2
0
        private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e)
        {
            IFrame frame = e.Frame;

            if (frame.IsMain && browser.Address != "about:blank")
            {
                frame.ExecuteJavaScriptAsync(PropertyBridge.GenerateScript(PropertyBridge.Environment.Notification));
                ScriptLoader.ExecuteFile(frame, "notification.js", this);
            }
        }
Esempio n. 3
0
        private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e)
        {
            if (e.Frame.IsMain && notificationJS != null && browser.Address != "about:blank" && !flags.HasFlag(NotificationFlags.DisableScripts))
            {
                e.Frame.ExecuteJavaScriptAsync(PropertyBridge.GenerateScript(PropertyBridge.Properties.ExpandLinksOnHover));
                ScriptLoader.ExecuteScript(e.Frame, notificationJS, NotificationScriptIdentifier);

                if (plugins != null && plugins.HasAnyPlugin(PluginEnvironment.Notification))
                {
                    ScriptLoader.ExecuteScript(e.Frame, pluginJS, PluginScriptIdentifier);
                    ScriptLoader.ExecuteFile(e.Frame, PluginManager.PluginGlobalScriptFile);
                    plugins.ExecutePlugins(e.Frame, PluginEnvironment.Notification, false);
                }
            }
        }
Esempio n. 4
0
 public void UpdateProperties(PropertyBridge.Properties properties)
 {
     browser.ExecuteScriptAsync(PropertyBridge.GenerateScript(properties));
 }