12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #pragma once
- #include "CoreMinimal.h"
- #include "Misc/ScopeLock.h"
- #if WITH_CEF3
- #include "CEFInterfaceLibCefIncludes.h"
- DECLARE_LOG_CATEGORY_EXTERN(LogCEFInterfaceBrowser, Log, All);
- class FCEFInterfaceBrowserApp : public CefApp,
- public CefBrowserProcessHandler
- {
- public:
-
- FCEFInterfaceBrowserApp(bool bInGPU);
-
- bool TickMessagePump(float DeltaTime, bool bForce);
- private:
-
- virtual CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() override { return this; }
- virtual void OnBeforeCommandLineProcessing(const CefString& ProcessType, CefRefPtr< CefCommandLine > CommandLine) override;
-
- virtual void OnBeforeChildProcessLaunch(CefRefPtr<CefCommandLine> CommandLine) override;
- virtual void OnScheduleMessagePumpWork(int64 delay_ms) override;
-
- IMPLEMENT_REFCOUNTING(FCEFInterfaceBrowserApp);
-
- FCriticalSection MessagePumpCountdownCS;
-
- int64 MessagePumpCountdown;
-
- bool bGPU;
- };
- #endif
|