Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/Public/IWebBrowserAdapter.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

29 lines
768 B
C++

// Copyright 1998-2019 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 WEBBROWSER_API FWebBrowserAdapterFactory
{
public:
static TSharedRef<IWebBrowserAdapter> Create(const FString& Name, UObject* JSBridge, bool IsPermanent);
static TSharedRef<IWebBrowserAdapter> Create(const FString& Name, UObject* JSBridge, bool IsPermanent, const FString& ConnectScriptText, const FString& DisconnectScriptText);
};