Files
UnrealEngineUWP/Engine/Source/Runtime/WebBrowser/Private/WebBrowserApp.h
Justin Sargent 273cde1704 Merging using UE4-To-UE4-LauncherDev
#platformnotify Josh.Adams

[CL 2581810 by Justin Sargent in Main branch]
2015-06-09 16:41:53 -04:00

42 lines
994 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#if WITH_CEF3
#if PLATFORM_WINDOWS
#include "AllowWindowsPlatformTypes.h"
#endif
#pragma push_macro("OVERRIDE")
#undef OVERRIDE // cef headers provide their own OVERRIDE macro
#include "include/cef_app.h"
#pragma pop_macro("OVERRIDE")
#if PLATFORM_WINDOWS
#include "HideWindowsPlatformTypes.h"
#endif
/**
* Implements CEF App and other Process level interfaces
*/
class FWebBrowserApp : public CefApp,
public CefBrowserProcessHandler
{
public:
/**
* Default Constructor
*/
FWebBrowserApp();
private:
// CefApp methods.
virtual CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() override { return this; }
// CefBrowserProcessHandler methods:
virtual void OnContextInitialized() override;
virtual void OnBeforeChildProcessLaunch(CefRefPtr<CefCommandLine> CommandLine) override;
// Include the default reference counting implementation.
IMPLEMENT_REFCOUNTING(FWebBrowserApp);
};
#endif