Borderless browser with CEF 3.3112.1659/Ubuntu 12.04.5 x64
Posted: Thu Sep 14, 2017 2:49 am
I'm fairly new to CEF, i'm trying to create new borderless browser (just for webpage viewing) on ubuntu 12.04.5 x64. Currently I have tried this way (gtk top level window -> disable decoration -> set window info with parent set to previously crated window -> create browser):
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:
Note:
- i can only use prebuild binaries (i cannot rebuild the entire cef),
- i'm stuck with the EOF ubuntu version.
- 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.