Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/Public/IWebBrowserAdapter.h
henrik karlsson 5db685f97d [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082269 by henrik karlsson in ue5-main branch]
2023-06-17 18:13:06 -04:00

29 lines
773 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "IWebBrowserWindow.h"
class IWebBrowserAdapter
{
public:
virtual FString GetName() const = 0;
virtual bool IsPermanent() const = 0;
virtual void ConnectTo(const TSharedRef<IWebBrowserWindow>& BrowserWindow) = 0;
virtual void DisconnectFrom(const TSharedRef<IWebBrowserWindow>& BrowserWindow) = 0;
};
class FWebBrowserAdapterFactory
{
public:
static WEBBROWSER_API TSharedRef<IWebBrowserAdapter> Create(const FString& Name, UObject* JSBridge, bool IsPermanent);
static WEBBROWSER_API TSharedRef<IWebBrowserAdapter> Create(const FString& Name, UObject* JSBridge, bool IsPermanent, const FString& ConnectScriptText, const FString& DisconnectScriptText);
};