- Code: Select all
GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_decorated (GTK_WINDOW(window), FALSE);
CefWindowHandle window_handle = GDK_WINDOW_XWINDOW (GTK_WIDGET (window)->window);
CefWindowInfo window_info;
window_info.SetAsChild(window_handle, CefRect(100, 100, 800, 600));
CefBrowserHost::CreateBrowser(window_info, handler, url, browser_settings, NULL);
But this only opens a browser on specified location with correct width/height, but it still has borders.
On the other hand i have successfully created borderless browser window on windows with only:
- Code: Select all
CefWindowInfo window_info;
window_info.style = WS_VISIBLE | WS_POPUP;
window_info.x = 2120;
window_info.y = 200;
window_info.width = 800;
window_info.height = 600;
CefBrowserHost::CreateBrowserSync(window_info, handler, url, browser_settings, NULL);
Note:
- i can only use prebuild binaries (i cannot rebuild the entire cef),
- i'm stuck with the EOF ubuntu version.