Exemplo n.º 1
0
        public AndroidWindow(IWebWindowImplementation window) : base(window)
        {
            watch.Start();

            Loaded += () =>
            {
                watch.Stop();
                Console.WriteLine("TimeToBoot:" + watch.ElapsedMilliseconds);
            };
        }
Exemplo n.º 2
0
        public VueWindow(IWebWindowImplementation window = null) : base(window)
        {
            bool requireExpose = false;

            VueSettingsAttribute settings = GetType().GetCustomAttribute <VueSettingsAttribute>();

            if (settings != null)
            {
                requireExpose = settings.RequireExpose;
            }

            _vueData = VueData.Create(this, requireExpose);
        }
Exemplo n.º 3
0
        public CefWebBrowser(IWebWindowImplementation window, int initialWidth = 200, int initialHeight = 100)
        {
            _window = window;
            SetStyle(
                ControlStyles.ContainerControl
                | ControlStyles.ResizeRedraw
                //| ControlStyles.FixedWidth
                //| ControlStyles.FixedHeight
                | ControlStyles.StandardClick
                | ControlStyles.UserMouse
                | ControlStyles.SupportsTransparentBackColor
                | ControlStyles.StandardDoubleClick
                | ControlStyles.OptimizedDoubleBuffer
                | ControlStyles.CacheText
                | ControlStyles.EnableNotifyMessage
                | ControlStyles.DoubleBuffer
                | ControlStyles.OptimizedDoubleBuffer
                | ControlStyles.UseTextForAccessibility
                | ControlStyles.Opaque,
                false);

            SetStyle(
                ControlStyles.UserPaint
                | ControlStyles.AllPaintingInWmPaint
                | ControlStyles.Selectable,
                true);

            _initialWidth  = initialWidth;
            _initialHeight = initialHeight;

            var settings = new CefBrowserSettings();

            _core = new WebBrowser(this, settings, "about:blank");
            _core.OnProcessMessage += (a, b) =>
            {
                if (OnProcessMessage != null)
                {
                    return(OnProcessMessage(a, b));
                }
                return(false);
            };
            _core.Created += new EventHandler(BrowserCreated);
        }
Exemplo n.º 4
0
 //Required due to Androids structure
 public AndroidVueWindow(IWebWindowImplementation window) : base(window)
 {
 }