Exemplo n.º 1
0
        protected override void OnRealized()
        {
            base.OnRealized ();

            Console.WriteLine("OnRealized2");

            this.core = new CefWebBrowserCore(this, new CefBrowserSettings(), "http://google.com");
            this.core.Created += HandleCoreCreated;
            this.ChildVisible = true;

            var windowInfo = new CefWindowInfo();

            #if WINDOWS
            #error WINDOWS is not supported currently.
            // TODO: Win32
            // windowInfo.SetAsChild(
            //    gdk_win32_drawable_get_handle(this.GdkWindow.Handle), this.x, this.y, this.width, this.height
            //    );
            #elif LINUX
            windowInfo.SetAsChild(
                this.Raw
                );
            #else
            #error OS not supported.
            #endif

            this.core.Create(windowInfo);
            windowInfo.Dispose();
        }
Exemplo n.º 2
0
        public CefWebBrowser(CefBrowserSettings settings, string startUrl)
        {
            this.core = new CefWebBrowserCore(this, settings, startUrl);
            this.core.Created += new EventHandler(core_Created);

            this.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);

            this.SetStyle(
                ControlStyles.UserPaint
                | ControlStyles.AllPaintingInWmPaint
                | ControlStyles.Selectable,
                true);
        }
Exemplo n.º 3
0
 public CefWebClient(CefWebBrowserCore context)
 {
     this.context = context;
     this.lifeSpanHandler = new CefWebLifeSpanHandler(context);
     this.loadHandler = new CefWebLoadHandler(context);
     this.requestHandler = new CefWebRequestHandler(context);
     this.displayHandler = new CefWebDisplayHandler(context);
     this.focusHandler = null; // new CefWebFocusHandler(context);
     this.keyboardHandler = new CefWebKeyboardHandler(context);
     this.menuHandler = null; // new CefWebMenuHandler(context);
     this.printHandler = null; // new CefWebPrintHandler(context);
     this.findHandler = null; // new CefWebFindHandler(context);
     this.jsDialogHandler = new CefWebJSDialogHandler(context);
     this.v8ContextHandler = new CefWebV8ContextHandler(context);
     this.renderHandler = null; // new CefWebRenderHandler(context);
     this.dragHandler = null; // new CefWebDragHandler(context);
 }
Exemplo n.º 4
0
 public CefWebClient(CefWebBrowserCore context)
 {
     this.context          = context;
     this.lifeSpanHandler  = new CefWebLifeSpanHandler(context);
     this.loadHandler      = new CefWebLoadHandler(context);
     this.requestHandler   = new CefWebRequestHandler(context);
     this.displayHandler   = new CefWebDisplayHandler(context);
     this.focusHandler     = null; // new CefWebFocusHandler(context);
     this.keyboardHandler  = new CefWebKeyboardHandler(context);
     this.menuHandler      = null; // new CefWebMenuHandler(context);
     this.printHandler     = null; // new CefWebPrintHandler(context);
     this.findHandler      = null; // new CefWebFindHandler(context);
     this.jsDialogHandler  = new CefWebJSDialogHandler(context);
     this.v8ContextHandler = new CefWebV8ContextHandler(context);
     this.renderHandler    = null; // new CefWebRenderHandler(context);
     this.dragHandler      = null; // new CefWebDragHandler(context);
 }
 public CefWebJSDialogHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
 public CefWebV8ContextHandler(CefWebBrowserCore context)
 {
     _context = context;
 }
 public CefWebRequestHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 8
0
 public CefWebV8ContextHandler(CefWebBrowserCore context)
 {
     _context = context;
 }
Exemplo n.º 9
0
 public virtual CefWebClient Create(CefWebBrowserCore context)
 {
     return(new CefWebClient(context));
 }
Exemplo n.º 10
0
 public CefWebRequestHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 11
0
 public CefWebLifeSpanHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 12
0
 public CefWebLoadHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 13
0
 public CefWebLifeSpanHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 14
0
 public CefWebJSDialogHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 15
0
 public CefWebFrameCore(CefWebBrowserCore context, CefFrame frame)
 {
     this.context = context;
     this.frame = frame;
 }
Exemplo n.º 16
0
        // private Dictionary<CefHandlerStatusType, string> statusMessages = new Dictionary<CefHandlerStatusType, string>();

        public CefWebDisplayHandler(CefWebBrowserCore context)
        {
            this.context = context;
        }
Exemplo n.º 17
0
 public CefWebKeyboardHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 18
0
 // private Dictionary<CefHandlerStatusType, string> statusMessages = new Dictionary<CefHandlerStatusType, string>();
 public CefWebDisplayHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 19
0
 public CefWebKeyboardHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }
Exemplo n.º 20
0
 public CefWebFrameCore(CefWebBrowserCore context, CefFrame frame)
 {
     this.context = context;
     this.frame   = frame;
 }
Exemplo n.º 21
0
 public CefWebLoadHandler(CefWebBrowserCore context)
 {
     this.context = context;
 }