Unfortunately, this language is Greek to me. I normally I'd figure it out for myself- but this strikes me as if it's just a matter of syntax. Would someone mind translating this into it's workable form?
I've figured out how to specify the window's starting height/width and position, as well as it's default color (the page I will be using is black, as such I want the un-loaded window to start out black upon opening).
Now I'd like to figure out how to have these facets be specified through command line arguments. Something like this-
- Code: Select all
browser_settings.background_color = command_line->GetSwitchValue("background-color");
window_info.width = command_line->GetSwitchValue("window-size")[0];
window_info.height = command_line->GetSwitchValue("window-size")[1];
window_info.x = command_line->GetSwitchValue("window-position")[0];
window_info.y = command_line->GetSwitchValue("window-position")[1];
// Create the first browser window.
CefBrowserHost::CreateBrowser(window_info, handler, url, browser_settings,
NULL);
Please note- I have pretty much no idea what I'm doing here- apologies for clogging the forum.