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(); }
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); }
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; }
public virtual CefWebClient Create(CefWebBrowserCore context) { return(new CefWebClient(context)); }
public CefWebLifeSpanHandler(CefWebBrowserCore context) { this.context = context; }
public CefWebLoadHandler(CefWebBrowserCore context) { this.context = context; }
public CefWebFrameCore(CefWebBrowserCore context, CefFrame frame) { this.context = context; this.frame = frame; }
// private Dictionary<CefHandlerStatusType, string> statusMessages = new Dictionary<CefHandlerStatusType, string>(); public CefWebDisplayHandler(CefWebBrowserCore context) { this.context = context; }
public CefWebKeyboardHandler(CefWebBrowserCore context) { this.context = context; }