UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CEFBrowserClosureTask.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
7
#if WITH_CEF3
8
#include "
CEFLibCefIncludes.h
"
9
10
// Helper for posting a closure as a task
11
class
FCEFBrowserClosureTask
12
:
public
CefTask
13
{
14
public
:
15
FCEFBrowserClosureTask
(
CefRefPtr<CefBaseRefCounted>
InHandle
,
TFunction
<
void
()>
InClosure
)
16
:
Handle
(
InHandle
)
17
,
Closure
(
InClosure
)
18
{ }
19
20
virtual
void
Execute
()
override
21
{
22
Closure
();
23
}
24
25
private
:
26
CefRefPtr<CefBaseRefCounted>
Handle
;
// Used so the handler will not go out of scope before the closure is executed.
27
TFunction
<
void
()>
Closure
;
28
IMPLEMENT_REFCOUNTING
(
FCEFBrowserClosureTask
);
29
};
30
31
32
#endif
/* WITH_CEF3 */
void
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
CEFLibCefIncludes.h
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ERDGSetupTaskWaitPoint::Execute
@ Execute
ESerializePropertyType::Handle
@ Handle
TFunction
Definition
AndroidPlatformMisc.h:14
Engine
Source
Runtime
WebBrowser
Private
CEF
CEFBrowserClosureTask.h
Generated by
1.9.8