Page 1 of 1

how to get devtools info?

PostPosted: Fri Feb 21, 2020 11:07 am
by zhengtong0898
i use this code to create a popup devtool.
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 .