Rename wxCefApp to wxCefBrowserApp

The new name is more precise, as there can be other CefApp subclasses
used in the other CEF processes too.

No real changes.
This commit is contained in:
Vadim Zeitlin 2023-12-20 18:09:45 +01:00
parent 6f130c121f
commit cf3699bd7a

View file

@ -543,10 +543,11 @@ private:
IMPLEMENT_REFCOUNTING(wxBrowserProcessHandler);
};
class wxCefApp : public CefApp
// Application class used in the browser process.
class wxCefBrowserApp : public CefApp
{
public:
wxCefApp()
wxCefBrowserApp()
: m_browserProcessHandler(new wxBrowserProcessHandler{})
{
}
@ -559,7 +560,7 @@ public:
private:
CefRefPtr<CefBrowserProcessHandler> m_browserProcessHandler;
IMPLEMENT_REFCOUNTING(wxCefApp);
IMPLEMENT_REFCOUNTING(wxCefBrowserApp);
};
} // namespace wxCEF
@ -924,7 +925,7 @@ bool wxWebViewChromium::InitCEF()
CefMainArgs args(app->argc, app->argv);
#endif
CefRefPtr<CefApp> cefApp{new wxCefApp{}};
CefRefPtr<CefApp> cefApp{new wxCefBrowserApp{}};
if (CefInitialize(args, settings, cefApp, nullptr))
{
ms_cefInitialized = true;