- Code: Select all
CefWindowInfo window_info;
window_info.SetAsPopup(nullptr, "devtools://devtools/bundled/devtools_app.html");
CefBrowserSettings browser_settings;
CefPoint point = CefPoint();
if (params) {
point.x = params->GetXCoord();
point.y = params->GetYCoord();
}
browser->GetHost()->ShowDevTools(window_info, client_handler, browser_settings, point);
i have two problem:
1. cefclient demo can't open devtool automaticlly.
in the devtool window, click settings -> checked 'Auto-open DevTools for popups' box, and then create another browser window, the newer devtool can't open automaticly.
2. how to get devtool's settings info ?
i want to get devtools settings info that i can ShowDevTool in ClientHandler::OnAfterCreated .