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

146 lines
2.7 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "CEF/CEFBrowserPopupFeatures.h"
#if WITH_CEF3
FCEFBrowserPopupFeatures::FCEFBrowserPopupFeatures()
: X(0)
, bXSet(false)
, Y(0)
, bYSet(false)
, Width(0)
, bWidthSet(false)
, Height(0)
, bHeightSet(false)
, bMenuBarVisible(true)
, bStatusBarVisible(false)
, bToolBarVisible(true)
, bLocationBarVisible(true)
, bScrollbarsVisible(true)
, bResizable(true)
, bIsFullscreen(false)
, bIsDialog(false)
{
}
FCEFBrowserPopupFeatures::FCEFBrowserPopupFeatures( const CefPopupFeatures& PopupFeatures )
{
X = PopupFeatures.x;
bXSet = PopupFeatures.xSet ? true : false;
Y = PopupFeatures.y;
bYSet = PopupFeatures.ySet ? true : false;
Width = PopupFeatures.width;
bWidthSet = PopupFeatures.widthSet ? true : false;
Height = PopupFeatures.height;
bHeightSet = PopupFeatures.heightSet ? true : false;
bMenuBarVisible = PopupFeatures.menuBarVisible ? true : false;
bStatusBarVisible = PopupFeatures.statusBarVisible ? true : false;
bToolBarVisible = PopupFeatures.toolBarVisible ? true : false;
bScrollbarsVisible = PopupFeatures.scrollbarsVisible ? true : false;
// no longer set by the CEF API so default them here to their historic value
bLocationBarVisible = false;
bResizable = false;
bIsFullscreen = false;
bIsDialog = false;
}
FCEFBrowserPopupFeatures::~FCEFBrowserPopupFeatures()
{
}
void FCEFBrowserPopupFeatures::SetResizable(const bool bResize)
{
bResizable = bResize;
}
int FCEFBrowserPopupFeatures::GetX() const
{
return X;
}
bool FCEFBrowserPopupFeatures::IsXSet() const
{
return bXSet;
}
int FCEFBrowserPopupFeatures::GetY() const
{
return Y;
}
bool FCEFBrowserPopupFeatures::IsYSet() const
{
return bYSet;
}
int FCEFBrowserPopupFeatures::GetWidth() const
{
return Width;
}
bool FCEFBrowserPopupFeatures::IsWidthSet() const
{
return bWidthSet;
}
int FCEFBrowserPopupFeatures::GetHeight() const
{
return Height;
}
bool FCEFBrowserPopupFeatures::IsHeightSet() const
{
return bHeightSet;
}
bool FCEFBrowserPopupFeatures::IsMenuBarVisible() const
{
return bMenuBarVisible;
}
bool FCEFBrowserPopupFeatures::IsStatusBarVisible() const
{
return bStatusBarVisible;
}
bool FCEFBrowserPopupFeatures::IsToolBarVisible() const
{
return bToolBarVisible;
}
bool FCEFBrowserPopupFeatures::IsLocationBarVisible() const
{
return bLocationBarVisible;
}
bool FCEFBrowserPopupFeatures::IsScrollbarsVisible() const
{
return bScrollbarsVisible;
}
bool FCEFBrowserPopupFeatures::IsResizable() const
{
return bResizable;
}
bool FCEFBrowserPopupFeatures::IsFullscreen() const
{
return bIsFullscreen;
}
bool FCEFBrowserPopupFeatures::IsDialog() const
{
return bIsDialog;
}
TArray<FString> FCEFBrowserPopupFeatures::GetAdditionalFeatures() const
{
TArray<FString> Empty;
return Empty;
}
#endif