Files
UnrealEngineUWP/Engine/Source/Developer/AutomationDriver/Private/AutomatedApplication.h
Robert Manuszewski 2752c82adc Merging //UE4/Dev-Main @ 4664414 to Dev-Core (//UE4/Dev-Core)
#rb none

[CL 4675693 by Robert Manuszewski in Dev-Core branch]
2019-01-02 00:55:51 -05:00

44 lines
1.1 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GenericPlatform/GenericApplication.h"
#include "GenericPlatform/ICursor.h"
class GenericApplication;
class FGenericApplicationMessageHandler;
class IPassThroughMessageHandlerFactory;
class FAutomatedApplication
: public GenericApplication
{
public:
TSharedRef<FGenericApplicationMessageHandler> GetRealMessageHandler() { return RealMessageHandler.ToSharedRef(); }
virtual void AllowPlatformMessageHandling() = 0;
virtual void DisablePlatformMessageHandling() = 0;
virtual void SetFakeModifierKeys(FModifierKeysState Value) = 0;
FAutomatedApplication(
const TSharedPtr<ICursor>& InCursor)
: GenericApplication(InCursor)
{ }
protected:
TSharedPtr<FGenericApplicationMessageHandler> RealMessageHandler;
private:
};
class FAutomatedApplicationFactory
{
public:
static TSharedRef<FAutomatedApplication> Create(
const TSharedRef<GenericApplication>& PlatformApplication,
const TSharedRef<IPassThroughMessageHandlerFactory>& PassThroughMessageHandlerFactory);
};