You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
62 lines
1.7 KiB
C++
62 lines
1.7 KiB
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
#if WITH_CEF3
|
|
#if PLATFORM_WINDOWS
|
|
#include "WindowsHWrapper.h"
|
|
#include "AllowWindowsPlatformTypes.h"
|
|
#include "AllowWindowsPlatformAtomics.h"
|
|
#endif
|
|
|
|
#pragma push_macro("OVERRIDE")
|
|
#undef OVERRIDE // cef headers provide their own OVERRIDE macro
|
|
THIRD_PARTY_INCLUDES_START
|
|
#include "include/cef_app.h"
|
|
THIRD_PARTY_INCLUDES_END
|
|
#pragma pop_macro("OVERRIDE")
|
|
|
|
#if PLATFORM_WINDOWS
|
|
#include "HideWindowsPlatformAtomics.h"
|
|
#include "HideWindowsPlatformTypes.h"
|
|
#endif
|
|
|
|
#include "UnrealCEFSubProcessRemoteScripting.h"
|
|
|
|
/**
|
|
* Implements CEF App and other Process level interfaces
|
|
*/
|
|
class FUnrealCEFSubProcessApp
|
|
: public CefApp
|
|
, public CefRenderProcessHandler
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Default Constructor
|
|
*/
|
|
FUnrealCEFSubProcessApp();
|
|
|
|
private:
|
|
// CefApp methods:
|
|
virtual CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler() override { return this; }
|
|
|
|
// CefRenderProcessHandler methods:
|
|
virtual void OnContextCreated( CefRefPtr<CefBrowser> Browser, CefRefPtr<CefFrame> Frame, CefRefPtr<CefV8Context> Context ) override;
|
|
|
|
virtual void OnContextReleased( CefRefPtr<CefBrowser> Browser, CefRefPtr<CefFrame> Frame, CefRefPtr<CefV8Context> Context ) override;
|
|
|
|
virtual bool OnProcessMessageReceived( CefRefPtr<CefBrowser> Browser, CefProcessId SourceProcess, CefRefPtr<CefProcessMessage> Message ) override;
|
|
|
|
virtual void OnRenderThreadCreated( CefRefPtr<CefListValue> ExtraInfo ) override;
|
|
|
|
// Handles remote scripting messages from the frontend process
|
|
FUnrealCEFSubProcessRemoteScripting RemoteScripting;
|
|
|
|
// Include the default reference counting implementation.
|
|
IMPLEMENT_REFCOUNTING(FUnrealCEFSubProcessApp);
|
|
};
|
|
|
|
#endif // WITH_CEF3
|