Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/Public/WebBrowserModule.h
Marc Audy 76a4f7dd9e Merge CEF version 84.0.4147 from the //Portal branch directly into the //UE5/EA branch
- The CEF helper process has been renamed from UnrealCEFSubprocess to EpicWebHelper
- Support for accelerated rendering from CEF has been added (using GPU->GPU texture copies). This works for the Standalone renderer in DX11/macOS-OpenGL and in the D3D11 RHI renderer, otherwise falls back to the default CPU texture copy mode. Accelerated paint can be disabled by adding "-nocefaccelpaint" to the commandline.
- Numerous other bug fixes and perf improvements in the CEF code have been added since we last took a version drop

#jira distro-133
#[fyi] wes.fudala

#ushell-cherrypick of 15635368 by alfred.reynolds

[CL 15651276 by Marc Audy in ue5-main branch]
2021-03-09 01:37:10 -04:00

75 lines
1.8 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
class IWebBrowserSingleton;
/**
* WebBrowser initialization settings, can be used to override default init behaviors.
*/
struct WEBBROWSER_API FWebBrowserInitSettings
{
public:
/**
* Default constructor. Initializes all members with default behavior values.
*/
FWebBrowserInitSettings();
// The string which is appended to the browser's user-agent value.
FString ProductVersion;
};
/**
* WebBrowserModule interface
*/
class IWebBrowserModule : public IModuleInterface
{
public:
/**
* Get or load the Web Browser Module
*
* @return The loaded module
*/
static inline IWebBrowserModule& Get()
{
return FModuleManager::LoadModuleChecked< IWebBrowserModule >("WebBrowser");
}
/**
* Check whether the module has already been loaded
*
* @return True if the module is loaded
*/
static inline bool IsAvailable()
{
return FModuleManager::Get().IsModuleLoaded("WebBrowser");
}
/**
* Customize initialization settings. You must call this before the first GetSingleton call, in order to override init settings.
*
* @param WebBrowserInitSettings The custom settings.
* @return true if the settings were used to initialize the singleton. False if the call was ignored due to singleton already existing.
*/
virtual bool CustomInitialize(const FWebBrowserInitSettings& WebBrowserInitSettings) = 0;
/**
* Get the Web Browser Singleton
*
* @return The Web Browser Singleton
*/
virtual IWebBrowserSingleton* GetSingleton() = 0;
/**
* Check whether the web module loaded its requirements successfully
*
* @return True if the module load worked
*/
virtual bool IsWebModuleAvailable() const = 0;
};