Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/Private/CEF/CEFBrowserPopupFeatures.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

93 lines
2.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#if WITH_CEF3
#include "IWebBrowserPopupFeatures.h"
#if PLATFORM_WINDOWS
#include "Windows/WindowsHWrapper.h"
#include "Windows/AllowWindowsPlatformTypes.h"
#include "Windows/AllowWindowsPlatformAtomics.h"
#endif
#pragma push_macro("OVERRIDE")
#undef OVERRIDE // cef headers provide their own OVERRIDE macro
THIRD_PARTY_INCLUDES_START
#if PLATFORM_APPLE
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#endif
#include "include/cef_base.h"
#if PLATFORM_APPLE
PRAGMA_ENABLE_DEPRECATION_WARNINGS
#endif
THIRD_PARTY_INCLUDES_END
#pragma pop_macro("OVERRIDE")
#if PLATFORM_WINDOWS
#include "Windows/HideWindowsPlatformAtomics.h"
#include "Windows/HideWindowsPlatformTypes.h"
#endif
#endif
class IWebBrowserPopupFeatures;
#if WITH_CEF3
class FCEFBrowserPopupFeatures
: public IWebBrowserPopupFeatures
{
public:
FCEFBrowserPopupFeatures();
FCEFBrowserPopupFeatures(const CefPopupFeatures& PopupFeatures);
virtual ~FCEFBrowserPopupFeatures();
void SetResizable(const bool bResize);
// IWebBrowserPopupFeatures Interface
virtual int GetX() const override;
virtual bool IsXSet() const override;
virtual int GetY() const override;
virtual bool IsYSet() const override;
virtual int GetWidth() const override;
virtual bool IsWidthSet() const override;
virtual int GetHeight() const override;
virtual bool IsHeightSet() const override;
virtual bool IsMenuBarVisible() const override;
virtual bool IsStatusBarVisible() const override;
virtual bool IsToolBarVisible() const override;
virtual bool IsLocationBarVisible() const override;
virtual bool IsScrollbarsVisible() const override;
virtual bool IsResizable() const override;
virtual bool IsFullscreen() const override;
virtual bool IsDialog() const override;
virtual TArray<FString> GetAdditionalFeatures() const override;
private:
int X;
bool bXSet;
int Y;
bool bYSet;
int Width;
bool bWidthSet;
int Height;
bool bHeightSet;
bool bMenuBarVisible;
bool bStatusBarVisible;
bool bToolBarVisible;
bool bLocationBarVisible;
bool bScrollbarsVisible;
bool bResizable;
bool bIsFullscreen;
bool bIsDialog;
};
#endif