Files
common/CEF4Delphi/win32/hpps/uCEFApplicationCore.hpp
T
2026-06-12 23:18:12 +08:00

622 lines
40 KiB
C++

// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFApplicationCore.pas' rev: 37.00 (Windows)
#ifndef uCEFApplicationCoreHPP
#define uCEFApplicationCoreHPP
#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <System.Classes.hpp>
#include <System.UITypes.hpp>
#include <System.SyncObjs.hpp>
#include <uCEFTypes.hpp>
#include <uCEFInterfaces.hpp>
#include <uCEFApplicationEvents.hpp>
#include <uCEFBaseRefCounted.hpp>
#include <uCEFSchemeRegistrar.hpp>
#include <uCEFPreferenceRegistrar.hpp>
#include <uCEFComponentIdList.hpp>
//-- user supplied -----------------------------------------------------------
namespace Ucefapplicationcore
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCefApplicationCore;
class DELPHICLASS TCEFDirectoryDeleterThread;
class DELPHICLASS TCEFProxySettings;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefApplicationCore : public System::TInterfacedObject
{
typedef System::TInterfacedObject inherited;
protected:
bool FNoSandbox;
Uceftypes::ustring FBrowserSubprocessPath;
Uceftypes::ustring FFrameworkDirPath;
Uceftypes::ustring FMainBundlePath;
bool FMultiThreadedMessageLoop;
bool FExternalMessagePump;
bool FWindowlessRenderingEnabled;
bool FCommandLineArgsDisabled;
Uceftypes::ustring FCache;
Uceftypes::ustring FRootCache;
bool FPersistSessionCookies;
Uceftypes::ustring FUserAgent;
Uceftypes::ustring FUserAgentProduct;
Uceftypes::ustring FLocale;
Uceftypes::ustring FLogFile;
Uceftypes::TCefLogSeverity FLogSeverity;
Uceftypes::TCefLogItems FLogItems;
Uceftypes::ustring FJavaScriptFlags;
Uceftypes::ustring FResourcesDirPath;
Uceftypes::ustring FLocalesDirPath;
int FRemoteDebuggingPort;
int FUncaughtExceptionStackSize;
bool FIgnoreCertificateErrors;
Uceftypes::TCefColor FBackgroundColor;
Uceftypes::ustring FAcceptLanguageList;
Uceftypes::ustring FCookieableSchemesList;
bool FCookieableSchemesExcludeDefaults;
Uceftypes::ustring FChromePolicyId;
int FChromeAppIconId;
bool FDisableSignalHandlers;
bool FSingleProcess;
bool FEnableMediaStream;
bool FEnableSpeechInput;
bool FUseFakeUIForMediaStream;
bool FEnableUsermediaScreenCapturing;
bool FEnableGPU;
Uceftypes::ustring FEnableFeatures;
Uceftypes::ustring FDisableFeatures;
Uceftypes::ustring FEnableBlinkFeatures;
Uceftypes::ustring FDisableBlinkFeatures;
Uceftypes::ustring FBlinkSettings;
Uceftypes::ustring FForceFieldTrials;
Uceftypes::ustring FForceFieldTrialParams;
Uceftypes::TCefState FSmoothScrolling;
bool FMuteAudio;
bool FSitePerProcess;
bool FDisableWebSecurity;
bool FDisablePDFExtension;
bool FDisableSiteIsolationTrials;
bool FDisableChromeLoginPrompt;
bool FDisableExtensions;
Uceftypes::TCefAutoplayPolicy FAutoplayPolicy;
bool FDisableBackgroundNetworking;
bool FMetricsRecordingOnly;
bool FAllowFileAccessFromFiles;
bool FAllowRunningInsecureContent;
bool FEnablePrintPreview;
Uceftypes::ustring FDefaultEncoding;
bool FDisableJavascript;
bool FDisableJavascriptCloseWindows;
bool FDisableJavascriptAccessClipboard;
bool FDisableJavascriptDomPaste;
bool FAllowUniversalAccessFromFileUrls;
bool FDisableImageLoading;
bool FImageShrinkStandaloneToFit;
bool FDisableTextAreaResize;
bool FDisableTabToLinks;
bool FEnableProfanityFilter;
bool FDisableSpellChecking;
Uceftypes::ustring FOverrideSpellCheckLang;
Uceftypes::TCefState FTouchEvents;
bool FDisableReadingFromCanvas;
bool FHyperlinkAuditing;
bool FDisableNewBrowserInfoTimeout;
Uceftypes::ustring FDevToolsProtocolLogFile;
float FForcedDeviceScaleFactor;
bool FDisableZygote;
bool FUseMockKeyChain;
bool FDisableRequestHandlingForTesting;
bool FDisablePopupBlocking;
bool FDisableBackForwardCache;
bool FDisableComponentUpdate;
bool FAllowInsecureLocalhost;
bool FKioskPrinting;
Uceftypes::ustring FTreatInsecureOriginAsSecure;
bool FNetLogEnabled;
Uceftypes::ustring FNetLogFile;
Uceftypes::TCefNetLogCaptureMode FNetLogCaptureMode;
Uceftypes::ustring FRemoteAllowOrigins;
bool FAutoAcceptCamAndMicCapture;
Uceftypes::TCefUIColorMode FUIColorMode;
bool FDisableHangMonitor;
bool FHideCrashRestoreBubble;
Uceftypes::TCefState FPostQuantumKyber;
TCEFProxySettings* FProxySettings;
Uceftypes::TCefState FFieldTrialConfig;
bool FDoNotDeElevate;
void *FWindowsSandboxInfo;
bool FDeleteCache;
bool FDeleteCookies;
bool FCheckCEFFiles;
bool FShowMessageDlg;
bool FMissingBinariesException;
bool FSetCurrentDir;
bool FGlobalContextInitialized;
Uceftypes::TFileVersionInfo FChromeVersionInfo;
bool FLibLoaded;
bool FLogProcessInfo;
bool FReRaiseExceptions;
float FDeviceScaleFactor;
Uceftypes::ustring FLocalesRequired;
Uceftypes::TCefProcessType FProcessType;
bool FMustCreateResourceBundleHandler;
bool FMustCreateBrowserProcessHandler;
bool FMustCreateRenderProcessHandler;
bool FMustCreateLoadHandler;
Uceftypes::TCefAplicationStatus FStatus;
System::UnicodeString FMissingLibFiles;
bool FMustFreeLibrary;
Uceftypes::ustring FLastErrorMessage;
bool FSharedTextureEnabled;
bool FExternalBeginFrameEnabled;
Uceftypes::TCefGLImplementation FUseGL;
Uceftypes::TCefAngleImplementation FUseAngle;
Winapi::Windows::THandle FLibHandle;
System::Classes::TStringList* FCustomCommandLines;
System::Classes::TStringList* FCustomCommandLineValues;
Uceftypes::TCefSettings FAppSettings;
bool FDisableGPUCache;
Ucefcomponentidlist::TCEFComponentIdList* FComponentIDList;
Ucefapplicationevents::_di_TOnRegisterCustomSchemesEvent FOnRegisterCustomSchemes;
Ucefapplicationevents::_di_TOnRegisterCustomPreferencesEvent FOnRegisterCustomPreferences;
Ucefapplicationevents::_di_TOnContextInitializedEvent FOnContextInitialized;
Ucefapplicationevents::_di_TOnBeforeChildProcessLaunchEvent FOnBeforeChildProcessLaunch;
Ucefapplicationevents::_di_TOnAlreadyRunningAppRelaunchEvent FOnAlreadyRunningAppRelaunch;
Ucefapplicationevents::_di_TOnScheduleMessagePumpWorkEvent FOnScheduleMessagePumpWork;
Ucefapplicationevents::_di_TOnGetDefaultClientEvent FOnGetDefaultClient;
Ucefapplicationevents::_di_TOnGetDefaultRequestContextHandlerEvent FOnGetDefaultRequestContextHandler;
Ucefapplicationevents::_di_TOnGetLocalizedStringEvent FOnGetLocalizedString;
Ucefapplicationevents::_di_TOnGetDataResourceEvent FOnGetDataResource;
Ucefapplicationevents::_di_TOnGetDataResourceForScaleEvent FOnGetDataResourceForScale;
Ucefapplicationevents::_di_TOnWebKitInitializedEvent FOnWebKitInitialized;
Ucefapplicationevents::_di_TOnBrowserCreatedEvent FOnBrowserCreated;
Ucefapplicationevents::_di_TOnBrowserDestroyedEvent FOnBrowserDestroyed;
Ucefapplicationevents::_di_TOnContextCreatedEvent FOnContextCreated;
Ucefapplicationevents::_di_TOnContextReleasedEvent FOnContextReleased;
Ucefapplicationevents::_di_TOnUncaughtExceptionEvent FOnUncaughtException;
Ucefapplicationevents::_di_TOnFocusedNodeChangedEvent FOnFocusedNodeChanged;
Ucefapplicationevents::_di_TOnProcessMessageReceivedEvent FOnProcessMessageReceived;
Ucefapplicationevents::_di_TOnRenderLoadingStateChange FOnLoadingStateChange;
Ucefapplicationevents::_di_TOnRenderLoadStart FOnLoadStart;
Ucefapplicationevents::_di_TOnRenderLoadEnd FOnLoadEnd;
Ucefapplicationevents::_di_TOnRenderLoadError FOnLoadError;
void __fastcall SetCache(const Uceftypes::ustring aValue);
void __fastcall SetRootCache(const Uceftypes::ustring aValue);
void __fastcall SetBrowserSubprocessPath(const Uceftypes::ustring aValue);
void __fastcall SetFrameworkDirPath(const Uceftypes::ustring aValue);
void __fastcall SetResourcesDirPath(const Uceftypes::ustring aValue);
void __fastcall SetLocalesDirPath(const Uceftypes::ustring aValue);
void __fastcall SetOsmodalLoop(bool aValue);
void __fastcall SetKioskPrinting(bool aValue);
void __fastcall SetLogFile(const Uceftypes::ustring aValue);
Uceftypes::ustring __fastcall GetChromeVersion();
Uceftypes::ustring __fastcall GetLibCefVersion();
Uceftypes::ustring __fastcall GetLibCefPath();
Uceftypes::ustring __fastcall GetChromeElfPath();
Uceftypes::ustring __fastcall GetLocalesDirPath();
Uceftypes::ustring __fastcall GetResourcesDirPath();
virtual bool __fastcall GetMustCreateResourceBundleHandler();
virtual bool __fastcall GetMustCreateBrowserProcessHandler();
virtual bool __fastcall GetMustCreateRenderProcessHandler();
virtual bool __fastcall GetMustCreateLoadHandler();
bool __fastcall GetGlobalContextInitialized();
int __fastcall GetChildProcessesCount();
unsigned __int64 __fastcall GetUsedMemory();
unsigned __int64 __fastcall GetTotalSystemMemory();
unsigned __int64 __fastcall GetAvailableSystemMemory();
unsigned __fastcall GetSystemMemoryLoad();
Uceftypes::ustring __fastcall GetApiHashPlatform();
Uceftypes::ustring __fastcall GetApiHashCommit();
int __fastcall GetApiVersion();
Uceftypes::TCefResultCode __fastcall GetExitCode();
Ucefinterfaces::_di_ICefBrowser __fastcall GetBrowserById(int aID);
System::UnicodeString __fastcall GetCookiesDir(const System::UnicodeString aRootDirectory);
virtual bool __fastcall LoadCEFlibrary();
bool __fastcall Load_cef_api_hash_h();
bool __fastcall Load_cef_version_info_h();
bool __fastcall Load_cef_id_mappers_h();
bool __fastcall Load_cef_app_capi_h();
bool __fastcall Load_cef_app_win_h();
bool __fastcall Load_cef_browser_capi_h();
bool __fastcall Load_cef_command_line_capi_h();
bool __fastcall Load_cef_cookie_capi_h();
bool __fastcall Load_cef_crash_util_h();
bool __fastcall Load_cef_drag_data_capi_h();
bool __fastcall Load_cef_dump_without_crashing_internal_h();
bool __fastcall Load_cef_file_util_capi_h();
bool __fastcall Load_cef_i18n_util_capi_h();
bool __fastcall Load_cef_image_capi_h();
bool __fastcall Load_cef_menu_model_capi_h();
bool __fastcall Load_cef_media_router_capi_h();
bool __fastcall Load_cef_origin_whitelist_capi_h();
bool __fastcall Load_cef_parser_capi_h();
bool __fastcall Load_cef_path_util_capi_h();
bool __fastcall Load_cef_preference_capi_h();
bool __fastcall Load_cef_print_settings_capi_h();
bool __fastcall Load_cef_process_message_capi_h();
bool __fastcall Load_cef_process_util_capi_h();
bool __fastcall Load_cef_request_capi_h();
bool __fastcall Load_cef_request_context_capi_h();
bool __fastcall Load_cef_resource_bundle_capi_h();
bool __fastcall Load_cef_response_capi_h();
bool __fastcall Load_cef_scheme_capi_h();
bool __fastcall Load_cef_server_capi_h();
bool __fastcall Load_cef_shared_process_message_builder_capi_h();
bool __fastcall Load_cef_ssl_info_capi_h();
bool __fastcall Load_cef_stream_capi_h();
bool __fastcall Load_cef_task_capi_h();
bool __fastcall Load_cef_task_manager_capi_h();
bool __fastcall Load_cef_thread_capi_h();
bool __fastcall Load_cef_trace_capi_h();
bool __fastcall Load_cef_urlrequest_capi_h();
bool __fastcall Load_cef_v8_capi_h();
bool __fastcall Load_cef_values_capi_h();
bool __fastcall Load_cef_waitable_event_capi_h();
bool __fastcall Load_cef_xml_reader_capi_h();
bool __fastcall Load_cef_zip_reader_capi_h();
bool __fastcall Load_cef_logging_internal_h();
bool __fastcall Load_cef_string_list_h();
bool __fastcall Load_cef_string_map_h();
bool __fastcall Load_cef_string_multimap_h();
bool __fastcall Load_cef_string_types_h();
bool __fastcall Load_cef_thread_internal_h();
bool __fastcall Load_cef_trace_event_internal_h();
bool __fastcall Load_cef_browser_view_capi_h();
bool __fastcall Load_cef_display_capi_h();
bool __fastcall Load_cef_label_button_capi_h();
bool __fastcall Load_cef_menu_button_capi_h();
bool __fastcall Load_cef_panel_capi_h();
bool __fastcall Load_cef_scroll_view_capi_h();
bool __fastcall Load_cef_textfield_capi_h();
bool __fastcall Load_cef_window_capi_h();
bool __fastcall Load_cef_types_linux_h();
bool __fastcall Load_cef_time_h();
virtual void __fastcall doOnBeforeCommandLineProcessing(const Uceftypes::ustring processType, const Ucefinterfaces::_di_ICefCommandLine commandLine);
virtual void __fastcall doOnRegisterCustomSchemes(Ucefschemeregistrar::TCefSchemeRegistrarRef* const registrar);
virtual void __fastcall doOnRegisterCustomPreferences(Uceftypes::TCefPreferencesType type_, Uceftypes::PCefPreferenceRegistrar registrar);
virtual void __fastcall doOnContextInitialized();
virtual void __fastcall doOnBeforeChildProcessLaunch(const Ucefinterfaces::_di_ICefCommandLine commandLine);
virtual void __fastcall doOnAlreadyRunningAppRelaunch(const Ucefinterfaces::_di_ICefCommandLine commandLine, const Uceftypes::ustring current_directory, bool &aResult);
virtual void __fastcall doOnScheduleMessagePumpWork(const __int64 delayMs);
virtual void __fastcall doGetDefaultClient(Ucefinterfaces::_di_ICefClient &aClient);
virtual void __fastcall doGetDefaultRequestContextHandler(Ucefinterfaces::_di_ICefRequestContextHandler &aRequestContextHandler);
virtual bool __fastcall doGetLocalizedString(int stringid, Uceftypes::ustring &stringVal);
virtual bool __fastcall doGetDataResource(int resourceId, void * &data, System::NativeUInt &dataSize);
virtual bool __fastcall doGetDataResourceForScale(int resourceId, Uceftypes::TCefScaleFactor scaleFactor, void * &data, System::NativeUInt &dataSize);
virtual void __fastcall doOnWebKitInitialized();
virtual void __fastcall doOnBrowserCreated(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefDictionaryValue extra_info);
virtual void __fastcall doOnBrowserDestroyed(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall doOnContextCreated(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Ucefinterfaces::_di_ICefv8Context context);
virtual void __fastcall doOnContextReleased(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Ucefinterfaces::_di_ICefv8Context context);
virtual void __fastcall doOnUncaughtException(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Ucefinterfaces::_di_ICefv8Context context, const Ucefinterfaces::_di_ICefV8Exception V8Exception, const Ucefinterfaces::_di_ICefV8StackTrace stackTrace);
virtual void __fastcall doOnFocusedNodeChanged(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, const Ucefinterfaces::_di_ICefDomNode node);
virtual void __fastcall doOnProcessMessageReceived(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, Uceftypes::TCefProcessId sourceProcess, const Ucefinterfaces::_di_ICefProcessMessage aMessage, bool &aHandled);
virtual void __fastcall doOnLoadingStateChange(const Ucefinterfaces::_di_ICefBrowser browser, bool isLoading, bool canGoBack, bool canGoForward);
virtual void __fastcall doOnLoadStart(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, Uceftypes::TCefTransitionType transitionType);
virtual void __fastcall doOnLoadEnd(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, int httpStatusCode);
virtual void __fastcall doOnLoadError(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefFrame frame, Uceftypes::TCefErrorCode errorCode, const Uceftypes::ustring errorText, const Uceftypes::ustring failedUrl);
void __fastcall ShutDown();
void __fastcall FreeLibcefLibrary();
int __fastcall ExecuteProcess(const Ucefinterfaces::_di_ICefApp aApp);
void __fastcall InitializeCefMainArgs(Uceftypes::TCefMainArgs &aCefMainArgs);
void __fastcall InitializeSettings(Uceftypes::TCefSettings &aSettings);
bool __fastcall InitializeLibrary(const Ucefinterfaces::_di_ICefApp aApp);
void __fastcall RenameAndDeleteDir(const System::UnicodeString aDirectory, bool aKeepCookies = false);
void __fastcall DeleteCacheContents(const System::UnicodeString aDirectory);
void __fastcall DeleteCookiesDB(const System::UnicodeString aRootDirectory);
void __fastcall MoveCookiesDB(const System::UnicodeString aSrcDirectory, const System::UnicodeString aDstDirectory);
bool __fastcall MultiExeProcessing();
bool __fastcall SingleExeProcessing();
virtual void __fastcall BeforeInitSubProcess();
virtual bool __fastcall CheckCEFResources();
bool __fastcall CheckCEFAPIHash();
virtual bool __fastcall CheckCEFDLL();
virtual bool __fastcall CheckWindowsVersion();
virtual bool __fastcall CheckOSVersion();
virtual void __fastcall ShowErrorMessageDlg(const System::UnicodeString aError);
Uceftypes::TCefProcessType __fastcall ParseProcessType();
virtual void __fastcall AddCustomCommandLineSwitches(System::Classes::TStringList* &aKeys, System::Classes::TStringList* &aValues);
void __fastcall AppendSwitch(System::Classes::TStringList* &aKeys, System::Classes::TStringList* &aValues, const Uceftypes::ustring aNewKey, const Uceftypes::ustring aNewValue = Uceftypes::ustring());
void __fastcall ReplaceSwitch(System::Classes::TStringList* &aKeys, System::Classes::TStringList* &aValues, const Uceftypes::ustring aNewKey, const Uceftypes::ustring aNewValue = Uceftypes::ustring());
void __fastcall CleanupFeatures(System::Classes::TStringList* &aKeys, System::Classes::TStringList* &aValues, const System::UnicodeString aEnableKey, const System::UnicodeString aDisableKey);
void __fastcall ClearSchemeHandlerFactories();
public:
__fastcall TCefApplicationCore();
__fastcall virtual ~TCefApplicationCore();
virtual void __fastcall AfterConstruction();
void __fastcall AddCustomCommandLine(const System::UnicodeString aCommandLine, const System::UnicodeString aValue = System::UnicodeString());
bool __fastcall CheckCEFLibrary();
bool __fastcall StartMainProcess();
bool __fastcall StartSubProcess();
void __fastcall DoMessageLoopWork();
void __fastcall RunMessageLoop();
void __fastcall QuitMessageLoop();
void __fastcall SetNestableTasksAllowed(bool allowed);
virtual void __fastcall UpdateDeviceScaleFactor();
bool __fastcall ValidComponentID(int aComponentID);
int __fastcall NextComponentID();
void __fastcall RemoveComponentID(int aComponentID);
bool __fastcall DumpWithoutCrashing(__int64 mseconds_between_dumps, const Uceftypes::ustring function_name, const Uceftypes::ustring file_name, int line_number);
bool __fastcall GetCEFVersionInfo(Uceftypes::TCefVersionInfo &aCEFVersionInfo);
bool __fastcall GetChromiumVersionInfo(Uceftypes::TChromiumVersionInfo &aChromiumVersionInfo);
int __fastcall GetIdForPackResourceName(const Uceftypes::ustring name);
int __fastcall GetIdForPackStringName(const Uceftypes::ustring name);
int __fastcall GetIdForCommandIdName(const Uceftypes::ustring name);
__property bool NoSandbox = {read=FNoSandbox, write=FNoSandbox, nodefault};
__property Uceftypes::ustring BrowserSubprocessPath = {read=FBrowserSubprocessPath, write=SetBrowserSubprocessPath};
__property Uceftypes::ustring FrameworkDirPath = {read=FFrameworkDirPath, write=SetFrameworkDirPath};
__property Uceftypes::ustring MainBundlePath = {read=FMainBundlePath, write=FMainBundlePath};
__property bool MultiThreadedMessageLoop = {read=FMultiThreadedMessageLoop, write=FMultiThreadedMessageLoop, nodefault};
__property bool ExternalMessagePump = {read=FExternalMessagePump, write=FExternalMessagePump, nodefault};
__property bool WindowlessRenderingEnabled = {read=FWindowlessRenderingEnabled, write=FWindowlessRenderingEnabled, nodefault};
__property bool CommandLineArgsDisabled = {read=FCommandLineArgsDisabled, write=FCommandLineArgsDisabled, nodefault};
__property Uceftypes::ustring Cache = {read=FCache, write=SetCache};
__property Uceftypes::ustring RootCache = {read=FRootCache, write=SetRootCache};
__property bool PersistSessionCookies = {read=FPersistSessionCookies, write=FPersistSessionCookies, nodefault};
__property Uceftypes::ustring UserAgent = {read=FUserAgent, write=FUserAgent};
__property Uceftypes::ustring UserAgentProduct = {read=FUserAgentProduct, write=FUserAgentProduct};
__property Uceftypes::ustring Locale = {read=FLocale, write=FLocale};
__property Uceftypes::ustring LogFile = {read=FLogFile, write=SetLogFile};
__property Uceftypes::TCefLogSeverity LogSeverity = {read=FLogSeverity, write=FLogSeverity, nodefault};
__property Uceftypes::TCefLogItems LogItems = {read=FLogItems, write=FLogItems, nodefault};
__property Uceftypes::ustring JavaScriptFlags = {read=FJavaScriptFlags, write=FJavaScriptFlags};
__property Uceftypes::ustring ResourcesDirPath = {read=GetResourcesDirPath, write=SetResourcesDirPath};
__property Uceftypes::ustring LocalesDirPath = {read=GetLocalesDirPath, write=SetLocalesDirPath};
__property int RemoteDebuggingPort = {read=FRemoteDebuggingPort, write=FRemoteDebuggingPort, nodefault};
__property int UncaughtExceptionStackSize = {read=FUncaughtExceptionStackSize, write=FUncaughtExceptionStackSize, nodefault};
__property Uceftypes::TCefColor BackgroundColor = {read=FBackgroundColor, write=FBackgroundColor, nodefault};
__property Uceftypes::ustring AcceptLanguageList = {read=FAcceptLanguageList, write=FAcceptLanguageList};
__property Uceftypes::ustring CookieableSchemesList = {read=FCookieableSchemesList, write=FCookieableSchemesList};
__property bool CookieableSchemesExcludeDefaults = {read=FCookieableSchemesExcludeDefaults, write=FCookieableSchemesExcludeDefaults, nodefault};
__property Uceftypes::ustring ChromePolicyId = {read=FChromePolicyId, write=FChromePolicyId};
__property int ChromeAppIconId = {read=FChromeAppIconId, write=FChromeAppIconId, nodefault};
__property bool DisableSignalHandlers = {read=FDisableSignalHandlers, write=FDisableSignalHandlers, nodefault};
__property bool SingleProcess = {read=FSingleProcess, write=FSingleProcess, nodefault};
__property bool EnableMediaStream = {read=FEnableMediaStream, write=FEnableMediaStream, nodefault};
__property bool EnableSpeechInput = {read=FEnableSpeechInput, write=FEnableSpeechInput, nodefault};
__property bool UseFakeUIForMediaStream = {read=FUseFakeUIForMediaStream, write=FUseFakeUIForMediaStream, nodefault};
__property bool EnableUsermediaScreenCapturing = {read=FEnableUsermediaScreenCapturing, write=FEnableUsermediaScreenCapturing, nodefault};
__property bool EnableGPU = {read=FEnableGPU, write=FEnableGPU, nodefault};
__property Uceftypes::ustring EnableFeatures = {read=FEnableFeatures, write=FEnableFeatures};
__property Uceftypes::ustring DisableFeatures = {read=FDisableFeatures, write=FDisableFeatures};
__property Uceftypes::ustring EnableBlinkFeatures = {read=FEnableBlinkFeatures, write=FEnableBlinkFeatures};
__property Uceftypes::ustring DisableBlinkFeatures = {read=FDisableBlinkFeatures, write=FDisableBlinkFeatures};
__property Uceftypes::ustring BlinkSettings = {read=FBlinkSettings, write=FBlinkSettings};
__property Uceftypes::ustring ForceFieldTrials = {read=FForceFieldTrials, write=FForceFieldTrials};
__property Uceftypes::ustring ForceFieldTrialParams = {read=FForceFieldTrialParams, write=FForceFieldTrialParams};
__property Uceftypes::TCefState SmoothScrolling = {read=FSmoothScrolling, write=FSmoothScrolling, nodefault};
__property bool MuteAudio = {read=FMuteAudio, write=FMuteAudio, nodefault};
__property bool SitePerProcess = {read=FSitePerProcess, write=FSitePerProcess, nodefault};
__property bool DisableWebSecurity = {read=FDisableWebSecurity, write=FDisableWebSecurity, nodefault};
__property bool DisablePDFExtension = {read=FDisablePDFExtension, write=FDisablePDFExtension, nodefault};
__property bool DisableSiteIsolationTrials = {read=FDisableSiteIsolationTrials, write=FDisableSiteIsolationTrials, nodefault};
__property bool DisableChromeLoginPrompt = {read=FDisableChromeLoginPrompt, write=FDisableChromeLoginPrompt, nodefault};
__property bool DisableExtensions = {read=FDisableExtensions, write=FDisableExtensions, nodefault};
__property Uceftypes::TCefAutoplayPolicy AutoplayPolicy = {read=FAutoplayPolicy, write=FAutoplayPolicy, nodefault};
__property bool DisableBackgroundNetworking = {read=FDisableBackgroundNetworking, write=FDisableBackgroundNetworking, nodefault};
__property bool MetricsRecordingOnly = {read=FMetricsRecordingOnly, write=FMetricsRecordingOnly, nodefault};
__property bool AllowFileAccessFromFiles = {read=FAllowFileAccessFromFiles, write=FAllowFileAccessFromFiles, nodefault};
__property bool AllowRunningInsecureContent = {read=FAllowRunningInsecureContent, write=FAllowRunningInsecureContent, nodefault};
__property bool EnablePrintPreview = {read=FEnablePrintPreview, write=FEnablePrintPreview, nodefault};
__property Uceftypes::ustring DefaultEncoding = {read=FDefaultEncoding, write=FDefaultEncoding};
__property bool DisableJavascript = {read=FDisableJavascript, write=FDisableJavascript, nodefault};
__property bool DisableJavascriptCloseWindows = {read=FDisableJavascriptCloseWindows, write=FDisableJavascriptCloseWindows, nodefault};
__property bool DisableJavascriptAccessClipboard = {read=FDisableJavascriptAccessClipboard, write=FDisableJavascriptAccessClipboard, nodefault};
__property bool DisableJavascriptDomPaste = {read=FDisableJavascriptDomPaste, write=FDisableJavascriptDomPaste, nodefault};
__property bool AllowUniversalAccessFromFileUrls = {read=FAllowUniversalAccessFromFileUrls, write=FAllowUniversalAccessFromFileUrls, nodefault};
__property bool DisableImageLoading = {read=FDisableImageLoading, write=FDisableImageLoading, nodefault};
__property bool ImageShrinkStandaloneToFit = {read=FImageShrinkStandaloneToFit, write=FImageShrinkStandaloneToFit, nodefault};
__property bool DisableTextAreaResize = {read=FDisableTextAreaResize, write=FDisableTextAreaResize, nodefault};
__property bool DisableTabToLinks = {read=FDisableTabToLinks, write=FDisableTabToLinks, nodefault};
__property bool EnableProfanityFilter = {read=FEnableProfanityFilter, write=FEnableProfanityFilter, nodefault};
__property bool DisableSpellChecking = {read=FDisableSpellChecking, write=FDisableSpellChecking, nodefault};
__property Uceftypes::ustring OverrideSpellCheckLang = {read=FOverrideSpellCheckLang, write=FOverrideSpellCheckLang};
__property Uceftypes::TCefState TouchEvents = {read=FTouchEvents, write=FTouchEvents, nodefault};
__property bool DisableReadingFromCanvas = {read=FDisableReadingFromCanvas, write=FDisableReadingFromCanvas, nodefault};
__property bool HyperlinkAuditing = {read=FHyperlinkAuditing, write=FHyperlinkAuditing, nodefault};
__property bool DisableNewBrowserInfoTimeout = {read=FDisableNewBrowserInfoTimeout, write=FDisableNewBrowserInfoTimeout, nodefault};
__property Uceftypes::ustring DevToolsProtocolLogFile = {read=FDevToolsProtocolLogFile, write=FDevToolsProtocolLogFile};
__property float ForcedDeviceScaleFactor = {read=FForcedDeviceScaleFactor, write=FForcedDeviceScaleFactor};
__property bool DisableZygote = {read=FDisableZygote, write=FDisableZygote, nodefault};
__property bool UseMockKeyChain = {read=FUseMockKeyChain, write=FUseMockKeyChain, nodefault};
__property bool DisableRequestHandlingForTesting = {read=FDisableRequestHandlingForTesting, write=FDisableRequestHandlingForTesting, nodefault};
__property bool DisablePopupBlocking = {read=FDisablePopupBlocking, write=FDisablePopupBlocking, nodefault};
__property bool DisableBackForwardCache = {read=FDisableBackForwardCache, write=FDisableBackForwardCache, nodefault};
__property bool DisableComponentUpdate = {read=FDisableComponentUpdate, write=FDisableComponentUpdate, nodefault};
__property bool AllowInsecureLocalhost = {read=FAllowInsecureLocalhost, write=FAllowInsecureLocalhost, nodefault};
__property bool KioskPrinting = {read=FKioskPrinting, write=SetKioskPrinting, nodefault};
__property Uceftypes::ustring TreatInsecureOriginAsSecure = {read=FTreatInsecureOriginAsSecure, write=FTreatInsecureOriginAsSecure};
__property bool NetLogEnabled = {read=FNetLogEnabled, write=FNetLogEnabled, nodefault};
__property Uceftypes::ustring NetLogFile = {read=FNetLogFile, write=FNetLogFile};
__property Uceftypes::TCefNetLogCaptureMode NetLogCaptureMode = {read=FNetLogCaptureMode, write=FNetLogCaptureMode, nodefault};
__property Uceftypes::ustring RemoteAllowOrigins = {read=FRemoteAllowOrigins, write=FRemoteAllowOrigins};
__property bool AutoAcceptCamAndMicCapture = {read=FAutoAcceptCamAndMicCapture, write=FAutoAcceptCamAndMicCapture, nodefault};
__property Uceftypes::TCefUIColorMode UIColorMode = {read=FUIColorMode, write=FUIColorMode, nodefault};
__property bool DisableHangMonitor = {read=FDisableHangMonitor, write=FDisableHangMonitor, nodefault};
__property bool HideCrashRestoreBubble = {read=FHideCrashRestoreBubble, write=FHideCrashRestoreBubble, nodefault};
__property Uceftypes::TCefState TLS13HybridizedKyberSupport = {read=FPostQuantumKyber, write=FPostQuantumKyber, nodefault};
__property TCEFProxySettings* ProxySettings = {read=FProxySettings};
__property Uceftypes::TCefState FieldTrialConfig = {read=FFieldTrialConfig, write=FFieldTrialConfig, nodefault};
__property bool DoNotDeElevate = {read=FDoNotDeElevate, write=FDoNotDeElevate, nodefault};
__property bool IgnoreCertificateErrors = {read=FIgnoreCertificateErrors, write=FIgnoreCertificateErrors, nodefault};
__property void * WindowsSandboxInfo = {read=FWindowsSandboxInfo, write=FWindowsSandboxInfo};
__property bool DeleteCache = {read=FDeleteCache, write=FDeleteCache, nodefault};
__property bool DeleteCookies = {read=FDeleteCookies, write=FDeleteCookies, nodefault};
__property bool CheckCEFFiles = {read=FCheckCEFFiles, write=FCheckCEFFiles, nodefault};
__property bool ShowMessageDlg = {read=FShowMessageDlg, write=FShowMessageDlg, nodefault};
__property bool MissingBinariesException = {read=FMissingBinariesException, write=FMissingBinariesException, nodefault};
__property bool SetCurrentDir = {read=FSetCurrentDir, write=FSetCurrentDir, nodefault};
__property bool GlobalContextInitialized = {read=GetGlobalContextInitialized, nodefault};
__property System::UInt16 ChromeMajorVer = {read=FChromeVersionInfo.MajorVer, nodefault};
__property System::UInt16 ChromeMinorVer = {read=FChromeVersionInfo.MinorVer, nodefault};
__property System::UInt16 ChromeRelease = {read=FChromeVersionInfo.Release, nodefault};
__property System::UInt16 ChromeBuild = {read=FChromeVersionInfo.Build, nodefault};
__property Uceftypes::ustring ChromeVersion = {read=GetChromeVersion};
__property Uceftypes::ustring LibCefVersion = {read=GetLibCefVersion};
__property Uceftypes::ustring LibCefPath = {read=GetLibCefPath};
__property Uceftypes::ustring ChromeElfPath = {read=GetChromeElfPath};
__property bool LibLoaded = {read=FLibLoaded, nodefault};
__property bool LogProcessInfo = {read=FLogProcessInfo, write=FLogProcessInfo, nodefault};
__property bool ReRaiseExceptions = {read=FReRaiseExceptions, write=FReRaiseExceptions, nodefault};
__property float DeviceScaleFactor = {read=FDeviceScaleFactor};
__property Uceftypes::ustring LocalesRequired = {read=FLocalesRequired, write=FLocalesRequired};
__property Uceftypes::TCefProcessType ProcessType = {read=FProcessType, nodefault};
__property bool MustCreateResourceBundleHandler = {read=GetMustCreateResourceBundleHandler, write=FMustCreateResourceBundleHandler, nodefault};
__property bool MustCreateBrowserProcessHandler = {read=GetMustCreateBrowserProcessHandler, write=FMustCreateBrowserProcessHandler, nodefault};
__property bool MustCreateRenderProcessHandler = {read=GetMustCreateRenderProcessHandler, write=FMustCreateRenderProcessHandler, nodefault};
__property bool MustCreateLoadHandler = {read=GetMustCreateLoadHandler, write=FMustCreateLoadHandler, nodefault};
__property bool OsmodalLoop = {write=SetOsmodalLoop, nodefault};
__property Uceftypes::TCefAplicationStatus Status = {read=FStatus, nodefault};
__property System::UnicodeString MissingLibFiles = {read=FMissingLibFiles};
__property bool MustFreeLibrary = {read=FMustFreeLibrary, write=FMustFreeLibrary, nodefault};
__property int ChildProcessesCount = {read=GetChildProcessesCount, nodefault};
__property unsigned __int64 UsedMemory = {read=GetUsedMemory};
__property unsigned __int64 TotalSystemMemory = {read=GetTotalSystemMemory};
__property unsigned __int64 AvailableSystemMemory = {read=GetAvailableSystemMemory};
__property unsigned SystemMemoryLoad = {read=GetSystemMemoryLoad, nodefault};
__property Uceftypes::ustring ApiHashPlatform = {read=GetApiHashPlatform};
__property Uceftypes::ustring ApiHashCommit = {read=GetApiHashCommit};
__property int ApiVersion = {read=GetApiVersion, nodefault};
__property Uceftypes::TCefResultCode ExitCode = {read=GetExitCode, nodefault};
__property Ucefinterfaces::_di_ICefBrowser BrowserById[int id] = {read=GetBrowserById};
__property Uceftypes::ustring LastErrorMessage = {read=FLastErrorMessage};
__property bool SharedTextureEnabled = {read=FSharedTextureEnabled, write=FSharedTextureEnabled, nodefault};
__property bool ExternalBeginFrameEnabled = {read=FExternalBeginFrameEnabled, write=FExternalBeginFrameEnabled, nodefault};
__property Uceftypes::TCefGLImplementation UseGL = {read=FUseGL, write=FUseGL, nodefault};
__property Uceftypes::TCefAngleImplementation UseAngle = {read=FUseAngle, write=FUseAngle, nodefault};
__property Ucefapplicationevents::_di_TOnRegisterCustomSchemesEvent OnRegCustomSchemes = {read=FOnRegisterCustomSchemes, write=FOnRegisterCustomSchemes};
__property Ucefapplicationevents::_di_TOnRegisterCustomPreferencesEvent OnRegisterCustomPreferences = {read=FOnRegisterCustomPreferences, write=FOnRegisterCustomPreferences};
__property Ucefapplicationevents::_di_TOnContextInitializedEvent OnContextInitialized = {read=FOnContextInitialized, write=FOnContextInitialized};
__property Ucefapplicationevents::_di_TOnBeforeChildProcessLaunchEvent OnBeforeChildProcessLaunch = {read=FOnBeforeChildProcessLaunch, write=FOnBeforeChildProcessLaunch};
__property Ucefapplicationevents::_di_TOnAlreadyRunningAppRelaunchEvent OnAlreadyRunningAppRelaunch = {read=FOnAlreadyRunningAppRelaunch, write=FOnAlreadyRunningAppRelaunch};
__property Ucefapplicationevents::_di_TOnScheduleMessagePumpWorkEvent OnScheduleMessagePumpWork = {read=FOnScheduleMessagePumpWork, write=FOnScheduleMessagePumpWork};
__property Ucefapplicationevents::_di_TOnGetDefaultClientEvent OnGetDefaultClient = {read=FOnGetDefaultClient, write=FOnGetDefaultClient};
__property Ucefapplicationevents::_di_TOnGetDefaultRequestContextHandlerEvent OnGetDefaultRequestContextHandler = {read=FOnGetDefaultRequestContextHandler, write=FOnGetDefaultRequestContextHandler};
__property Ucefapplicationevents::_di_TOnGetLocalizedStringEvent OnGetLocalizedString = {read=FOnGetLocalizedString, write=FOnGetLocalizedString};
__property Ucefapplicationevents::_di_TOnGetDataResourceEvent OnGetDataResource = {read=FOnGetDataResource, write=FOnGetDataResource};
__property Ucefapplicationevents::_di_TOnGetDataResourceForScaleEvent OnGetDataResourceForScale = {read=FOnGetDataResourceForScale, write=FOnGetDataResourceForScale};
__property Ucefapplicationevents::_di_TOnWebKitInitializedEvent OnWebKitInitialized = {read=FOnWebKitInitialized, write=FOnWebKitInitialized};
__property Ucefapplicationevents::_di_TOnBrowserCreatedEvent OnBrowserCreated = {read=FOnBrowserCreated, write=FOnBrowserCreated};
__property Ucefapplicationevents::_di_TOnBrowserDestroyedEvent OnBrowserDestroyed = {read=FOnBrowserDestroyed, write=FOnBrowserDestroyed};
__property Ucefapplicationevents::_di_TOnContextCreatedEvent OnContextCreated = {read=FOnContextCreated, write=FOnContextCreated};
__property Ucefapplicationevents::_di_TOnContextReleasedEvent OnContextReleased = {read=FOnContextReleased, write=FOnContextReleased};
__property Ucefapplicationevents::_di_TOnUncaughtExceptionEvent OnUncaughtException = {read=FOnUncaughtException, write=FOnUncaughtException};
__property Ucefapplicationevents::_di_TOnFocusedNodeChangedEvent OnFocusedNodeChanged = {read=FOnFocusedNodeChanged, write=FOnFocusedNodeChanged};
__property Ucefapplicationevents::_di_TOnProcessMessageReceivedEvent OnProcessMessageReceived = {read=FOnProcessMessageReceived, write=FOnProcessMessageReceived};
__property Ucefapplicationevents::_di_TOnRenderLoadingStateChange OnLoadingStateChange = {read=FOnLoadingStateChange, write=FOnLoadingStateChange};
__property Ucefapplicationevents::_di_TOnRenderLoadStart OnLoadStart = {read=FOnLoadStart, write=FOnLoadStart};
__property Ucefapplicationevents::_di_TOnRenderLoadEnd OnLoadEnd = {read=FOnLoadEnd, write=FOnLoadEnd};
__property Ucefapplicationevents::_di_TOnRenderLoadError OnLoadError = {read=FOnLoadError, write=FOnLoadError};
private:
void *__IApplicationCoreEvents; // Ucefinterfaces::IApplicationCoreEvents
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {55E99E25-A05D-46D5-B3A4-C8C2E71C1F4D}
operator Ucefinterfaces::_di_IApplicationCoreEvents()
{
Ucefinterfaces::_di_IApplicationCoreEvents intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::IApplicationCoreEvents*(void) { return (Ucefinterfaces::IApplicationCoreEvents*)&__IApplicationCoreEvents; }
#endif
};
#pragma pack(pop)
class PASCALIMPLEMENTATION TCEFDirectoryDeleterThread : public System::Classes::TThread
{
typedef System::Classes::TThread inherited;
protected:
System::UnicodeString FDirectory;
virtual void __fastcall Execute();
public:
__fastcall TCEFDirectoryDeleterThread(const System::UnicodeString aDirectory);
public:
/* TThread.Destroy */ inline __fastcall virtual ~TCEFDirectoryDeleterThread() { }
};
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCEFProxySettings : public System::TObject
{
typedef System::TObject inherited;
protected:
bool FNoProxyServer;
bool FAutoDetect;
Uceftypes::ustring FByPassList;
Uceftypes::ustring FPacUrl;
Uceftypes::ustring FServer;
public:
__fastcall TCEFProxySettings();
__property bool NoProxyServer = {read=FNoProxyServer, write=FNoProxyServer, nodefault};
__property bool AutoDetect = {read=FAutoDetect, write=FAutoDetect, nodefault};
__property Uceftypes::ustring ByPassList = {read=FByPassList, write=FByPassList};
__property Uceftypes::ustring PacUrl = {read=FPacUrl, write=FPacUrl};
__property Uceftypes::ustring Server = {read=FServer, write=FServer};
public:
/* TObject.Destroy */ inline __fastcall virtual ~TCEFProxySettings() { }
};
#pragma pack(pop)
//-- var, const, procedure ---------------------------------------------------
static _DELPHI_CONST System::Byte CEF_SUPPORTED_VERSION_MAJOR = System::Byte(0x8e);
static _DELPHI_CONST System::Int8 CEF_SUPPORTED_VERSION_MINOR = System::Int8(0x0);
static _DELPHI_CONST System::Int8 CEF_SUPPORTED_VERSION_RELEASE = System::Int8(0xe);
static _DELPHI_CONST System::Int8 CEF_SUPPORTED_VERSION_BUILD = System::Int8(0x0);
static _DELPHI_CONST System::Byte CEF_CHROMEELF_VERSION_MAJOR = System::Byte(0x8e);
static _DELPHI_CONST System::Int8 CEF_CHROMEELF_VERSION_MINOR = System::Int8(0x0);
static _DELPHI_CONST System::Word CEF_CHROMEELF_VERSION_RELEASE = System::Word(0x1d14);
static _DELPHI_CONST System::Byte CEF_CHROMEELF_VERSION_BUILD = System::Byte(0xa3);
static _DELPHI_CONST System::Word CEF_API_VERSION_MIN = System::Word(0x33f4);
static _DELPHI_CONST System::Word CEF_API_VERSION_LAST = System::Word(0x3778);
static _DELPHI_CONST System::Word CEF_API_VERSION = System::Word(0x3778);
static _DELPHI_CONST int CEF_API_VERSION_EXPERIMENTAL = int(0xf423f);
#define CEF_API_HASH_PLATFORM_LINUX L"18761cd4725392883e0d77a1db53b08a4cae7ac6"
#define CEF_API_HASH_PLATFORM_MAC L"4ef1c19a09a8ca2e523fea4f79215a6934de1071"
#define CEF_API_HASH_PLATFORM_WINDOWS L"1ce1d0945fb904ca48c16e2c2bdbbf25bfb7b12e"
#define LIBCEF_DLL L"libcef.dll"
#define CHROMEELF_DLL L"chrome_elf.dll"
#define LIBCEF_PAK L"cef.pak"
#define LIBCEF_LOCALE_DIR L"locales"
#define LIBCEF_LOCALE_ENUS L"en-US.pak"
extern DELPHI_PACKAGE TCefApplicationCore* GlobalCEFApp;
extern DELPHI_PACKAGE void __fastcall DestroyGlobalCEFApp(void);
} /* namespace Ucefapplicationcore */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFAPPLICATIONCORE)
using namespace Ucefapplicationcore;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFApplicationCoreHPP