![]() |
UCefView
|
Represents a UMG widget contains a CEF browser view (wrapped by Slate Widget). More...
#include <CefView.h>
Public Types | |
using | FOnLoadStateChangedEvent = (*)( const int64& InBrowserId , bool bInIsLoading , bool bInCanGoBack , bool bInCanGoForward ) |
The callback type of loading state changed. | |
using | FOnLoadStartEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , bool bInIsMainFrame , int InTransitionType ) |
The callback type of loading starts. | |
using | FOnLoadEndEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , bool bInIsMainFrame , int InHttpStatusCode ) |
The callback type of loading ends. | |
using | FOnLoadErrorEvent = void(*)( const int64& InBrowserId , const FCefFrameId& InFrameId , bool bInIsMainFrame , int InErrorCode , const FString& InErrorMsg , const FString& InFailedUrl ) |
The callback type of loading failed due to error. | |
using | FOnDraggableRegionChangedEvent = void(*)( const FVector4& InDraggableRegion , const FVector4& InNonDraggableRegion ) |
The callback type of draggable region changed. | |
using | FOnAddressChangedEvent = void(*)( const FCefFrameId& InFrameId , const FString& InNewAddress ) |
The callback type of the address changed. | |
using | FOnTitleChangedEvent = void(*)( const FString& InTitle ) |
The callback type of title changed. | |
using | FOnFaviconUrlChangedEvent = void(*)( const TArray<FString>& InUrls ) |
The callback type of favicon url changed. | |
using | FOnFullscreenModeChangedEvent = void(*)( bool bInFullscreen ) |
The callback type of fullscreen mode changed. | |
using | FOnStatusMessageEvent = void(*)( const FString& InMessage ) |
The callback type of status message changed. | |
using | FOnConsoleMessageEvent = void(*)( const FString& InMessage , int32 InLevel ) |
The callback type of console message from the web content. | |
using | FOnLoadingProgressChangedEvent = void(*)( double InProgress ) |
The callback type of loading progress changed. | |
using | FOnUrlRequestEvent = void(*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InRequestUrl ) |
The callback type of built-in scheme URL access. | |
using | FOnQueryRequestEvent = void(*)( const int64& InBrowserId , const FCefFrameId& InFrameId , UCefViewQuery* InQuery ) |
The callback type of new UCefQuery request. | |
using | FOnInvokeMethodEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InMethod , const FString& InArguments ) |
The callback type of invoking method request from web content(Javascript). | |
using | FOnReportJavascriptResultEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InContext , const FString& InResult ) |
The callback type of the result of the javascript executed with executeJavascriptWithResult returned. | |
using | FOnNativeBrowserCreatedEvent = void(*)() |
The callback type of the native browser window created event. This slot does not work for OSR mode. | |
Public Member Functions | |
UCefView () | |
virtual | ~UCefView () |
virtual void | SynchronizeProperties () override |
virtual void | ReleaseSlateResources (bool bInReleaseChildren) override |
void | AddLocalFolderResource (const FString &InFolderPath, const FString &InTargetUrl, int32 InPriority=0) |
Adds a url mapping item with local web resource directory. | |
void | AddArchiveFileResource (const FString &InArchivePath, const FString &InTargetUrl, const FString &InPassword="", int32 InPriority=0) |
Adds a url mapping item with local archive (.zip) file which contains the web resource. | |
int64 | GetBrowserId () |
Gets the browser id. | |
void | NavigateToUrl (const FString &InTargetUrl) |
Navigates to the URL. | |
bool | BrowserCanGoBack () |
Checks whether the browser can go back. | |
bool | BrowserCanGoForward () |
Checks whether the browser can go forward. | |
void | BrowserGoBack () |
Requires the browser to go back. | |
void | BrowserGoForward () |
Requires the browser to go forward. | |
bool | IsBrowserLoading () |
Checks whether the browser is loading. | |
void | BrowserReload () |
Requires the browser to reload. | |
void | BrowserStopLoad () |
Requires the browser to stop load. | |
bool | TriggerEventForFrame (const UCefViewEvent *InCefViewEvent, const FCefFrameId &InFrameId) |
Triggers an event for a specific frame in the CEF view. | |
bool | TriggerEventForMainFrame (const UCefViewEvent *InCefViewEvent) |
Triggers an event for the main frame in the CEF view. | |
bool | BroadcastEvent (const UCefViewEvent *InCefViewEvent) |
Broadcasts an event to all frames in the CEF view. | |
bool | ResponseUCefQuery (const UCefViewQuery *InCefQuery) |
Responses to a CEF query with the provided result. | |
bool | ExecuteJavascript (const FCefFrameId &InFrameId, const FString &InJavascriptCode, const FString &InTargetUrl) |
Executes JavaScript code in a specific frame of the CEF view. | |
bool | ExecuteJavascriptWithResult (const FCefFrameId &InFrameId, const FString &InJavascriptCode, const FString &InTargetUrl, const FString &InExecuteContext) |
Executes JavaScript code in a specific frame and returns the result. | |
bool | SetPreference (const FString &InPreferenceName, const FString &InPreferenceValue, FString &InError) |
Sets a preference in the CEF browser. | |
void | SetDisablePopupContextMenu (bool bInIsDisable) |
Sets whether to disable the context menu for pop-up browser. | |
bool | IsPopupContextMenuDisabled () |
Gets whether to disable the context menu for pop-up browser. | |
bool | HasDevTools () |
Detects whether this browser has a dev-tools opened. | |
void | ShowDevTools () |
Opens the dev-tools dialog. | |
void | CloseDevTools () |
Closes the dev-tools dialog. | |
void | SetEnableDragAndDrop (bool bInIsEnable) |
Sets whether to enable drag and drop. | |
bool | IsDragAndDropEnabled () const |
Gets whether to enable drag and drop. | |
Public Attributes | |
FString | Url |
The URL to be loaded in the CEF browser. | |
bool | EnableContextMenu = true |
Enables or disables the context menu in the CEF browser. | |
bool | EnableDragAndDrop = false |
Enables or disables drag and drop functionality in the CEF browser. | |
int32 | FrameRate = 60 |
The frame rate at which the CEF browser will render. | |
FColor | BackgroundColor = FColor::White |
The background color of the CEF browser. | |
TArray< FLocalFolderResourceMapping > | LocalFolderResroucesMapping |
Mappings for local folders to be used as web resources. | |
TArray< FArchiveFileResourceMapping > | ArchiveFileResourceMapping |
Mappings for archive files to be used as web resources. | |
FString | StandardFontFamily |
The standard font family for the CEF browser. | |
FString | FixedFontFamily |
The fixed font family for the CEF browser. | |
FString | SerifFontFamily |
The serif font family for the CEF browser. | |
FString | SansSerifFontFamily |
The sans-serif font family for the CEF browser. | |
FString | CursiveFontFamily |
The cursive font family for the CEF browser. | |
FString | FantasyFontFamily |
The fantasy font family for the CEF browser. | |
int32 | DefaultFontSize |
The default font size for the CEF browser. | |
int32 | DefaultFixedFontSize |
The default fixed font size for the CEF browser. | |
int32 | MinimumFontSize |
The minimum font size for the CEF browser. | |
int32 | MinimumLogicalFontSize |
The minimum logical font size for the CEF browser. | |
FString | DefaultEncoding |
The default encoding for the CEF browser. | |
FString | AcceptLanguageList |
The accept language list for the CEF browser. | |
ECefViewFeatureState | RemoteFonts |
Whether remote fonts are enabled for the CEF browser. | |
ECefViewFeatureState | Javascript = ECefViewFeatureState::Default |
Whether JavaScript is enabled for the CEF browser. | |
ECefViewFeatureState | AllowJavascriptCloseWindows = ECefViewFeatureState::Default |
Whether JavaScript can close windows in the CEF browser. | |
ECefViewFeatureState | AllowJavascriptAccessClipboard = ECefViewFeatureState::Default |
Whether JavaScript can access the clipboard in the CEF browser. | |
ECefViewFeatureState | AllowJavascriptDomPaste = ECefViewFeatureState::Default |
Whether JavaScript can paste from the DOM in the CEF browser. | |
ECefViewFeatureState | Plugins = ECefViewFeatureState::Default |
Whether plugins are enabled for the CEF browser. | |
ECefViewFeatureState | ImageLoading = ECefViewFeatureState::Default |
Whether images are loading for the CEF browser. | |
ECefViewFeatureState | ImageShrinkStandaloneToFit = ECefViewFeatureState::Default |
Whether images shrink standalone to fit for the CEF browser. | |
ECefViewFeatureState | TextAreaResize = ECefViewFeatureState::Default |
Whether text areas can be resized for the CEF browser. | |
ECefViewFeatureState | TabToLinks = ECefViewFeatureState::Default |
Whether tabs can be used to navigate links for the CEF browser. | |
ECefViewFeatureState | LocalStorage = ECefViewFeatureState::Default |
Whether local storage is enabled for the CEF browser. | |
ECefViewFeatureState | Databases = ECefViewFeatureState::Default |
Whether databases are enabled for the CEF browser. | |
ECefViewFeatureState | WebGL = ECefViewFeatureState::Default |
Whether WebGL is enabled for the CEF browser. | |
FOnLoadStateChangedEvent | OnLoadStateChanged |
FOnLoadStartEvent | OnLoadStart |
FOnLoadEndEvent | OnLoadEnd |
FOnLoadErrorEvent | OnLoadError |
FOnDraggableRegionChangedEvent | OnDraggableRegionChanged |
FOnAddressChangedEvent | OnAddressChanged |
FOnTitleChangedEvent | OnTitleChanged |
FOnFaviconUrlChangedEvent | OnFaviconUrlChanged |
FOnFullscreenModeChangedEvent | OnFullscreenModeChanged |
FOnStatusMessageEvent | OnStatusMessage |
FOnConsoleMessageEvent | OnConsoleMessage |
FOnLoadingProgressChangedEvent | OnLoadingProgressChanged |
FOnUrlRequestEvent | OnUrlRequest |
FOnQueryRequestEvent | OnQueryRequest |
FOnInvokeMethodEvent | OnInvokeMethod |
FOnReportJavascriptResultEvent | OnReportJavascriptResult |
FOnNativeBrowserCreatedEvent | OnNativeBrowserCreated |
Static Public Attributes | |
static const FCefFrameId | MainFrameID |
The main frame identity. | |
static const FCefFrameId | AllFrameID |
The identifier for all frames. | |
Protected Member Functions | |
virtual TSharedRef< SWidget > | RebuildWidget () override |
void | OnNewBrowser (const FCefFrameId &InSourceFrameId, const FString &InUrl, const FString &InName, ECefWindowOpenDisposition InTargetDisposition, FIntRect &InRect) |
Gets called before a new browser created (only for browser created by non-JavaScript). | |
bool | OnNewPopup (const FCefFrameId &InFrameId, const FString &InTargetUrl, FString &InTargetFrameName, ECefWindowOpenDisposition InTargetDisposition, FIntRect &InRect, FCefViewSettings &InSettings, bool &bInDisableJavascriptAccess) |
Gets called before the pop-up browser is created (only for browsers created by JavaScript). | |
bool | OnRequestCloseFromWeb () |
Gets called when close request received from the web. | |
void | OnSlateLoadStateChangedEvent (const int64 &InBrowserId, bool bInIsLoading, bool bInCanGoBack, bool bInCanGoForward) |
Handles the load state changed event from the Slate CEF view. | |
void | OnSlateLoadStartEvent (const int64 &InBrowserId, const FCefFrameId &InFrameId, bool bInIsMainFrame, int InTransitionType) |
Handles the load start event from the Slate CEF view. | |
void | OnSlateLoadEndEvent (const int64 &InBrowserId, const FCefFrameId &InFrameId, bool bInIsMainFrame, int InHttpStatusCode) |
Handles the load end event from the Slate CEF view. | |
void | OnSlateLoadErrorEvent (const int64 &InBrowserId, const FCefFrameId &InFrameId, bool bInIsMainFrame, int InErrorCode, const FString &InErrorMsg, const FString &InFailedUrl, bool &bInHandled) |
Handles the load error event from the Slate CEF view. | |
void | OnSlateDraggableRegionChangedEvent (const FVector4 &InDraggableRegion, const FVector4 &InNonDraggableRegion) |
Handles the draggable region changed event from the Slate CEF view. | |
void | OnSlateAddressChangedEvent (const FCefFrameId &InFrameId, const FString &InNewAddress) |
Handles the address changed event from the Slate CEF view. | |
void | OnSlateTitleChangedEvent (const FString &InTitle) |
Handles the title changed event from the Slate CEF view. | |
void | OnSlateFaviconUrlChangedEvent (const TArray< FString > &InUrls) |
Handles the favicon URL changed event from the Slate CEF view. | |
void | OnSlateFullscreenModeChangedEvent (bool bInFullscreen) |
Handles the fullscreen mode changed event from the Slate CEF view. | |
void | OnSlateStatusMessageEvent (const FString &InMessage) |
Handles the status message event from the Slate CEF view. | |
void | OnSlateConsoleMessageEvent (const FString &InMessage, int32 InLevel) |
Handles the console message event from the Slate CEF view. | |
void | OnSlateLoadingProgressChangedEvent (double InProgress) |
Handles the loading progress changed event from the Slate CEF view. | |
void | OnSlateUrlRequestEvent (const int64 &InBrowserId, const FCefFrameId &InFrameId, const FString &InRequestUrl) |
Handles the URL request event from the Slate CEF view. | |
void | OnSlateQueryRequestEvent (const int64 &InBrowserId, const FCefFrameId &InFrameId, const int64 &InQueryId, const FString &InRequest) |
Handles the query request event from the Slate CEF view. | |
void | OnSlateInvokeMethodEvent (const int64 &InBrowserId, const FCefFrameId &InFrameId, const FString &InMethod, const TArray< TSharedPtr< FJsonValue > > &InArguments) |
Handles the invoke method event from the Slate CEF view. | |
void | OnSlateReportJavascriptResultEvent (const int64 &InBrowserId, const FCefFrameId &InFrameId, const FString &InContext, const TSharedPtr< FJsonValue > &InResult) |
Handles the report javascript result event from the Slate CEF view. | |
void | OnSlateNativeBrowserCreatedEvent () |
Handles the native browser created event from the Slate CEF view. | |
Protected Attributes | |
TSharedPtr< SCefView > | SlateCefView |
Represents a UMG widget contains a CEF browser view (wrapped by Slate Widget).
using UCefView::FOnAddressChangedEvent = void(*)( const FCefFrameId& InFrameId , const FString& InNewAddress ) |
The callback type of the address changed.
InFrameId | The frame id. |
InNewAddress | The address. |
using UCefView::FOnConsoleMessageEvent = void(*)( const FString& InMessage , int32 InLevel ) |
The callback type of console message from the web content.
InMessage | The message. |
InLevel | The level. |
using UCefView::FOnDraggableRegionChangedEvent = void(*)( const FVector4& InDraggableRegion , const FVector4& InNonDraggableRegion ) |
The callback type of draggable region changed.
InDraggableRegion | The new draggable region. |
InNonDraggableRegion | The new non-draggable region. |
using UCefView::FOnFaviconUrlChangedEvent = void(*)( const TArray<FString>& InUrls ) |
The callback type of favicon url changed.
InUrls | The urls. |
using UCefView::FOnFullscreenModeChangedEvent = void(*)( bool bInFullscreen ) |
The callback type of fullscreen mode changed.
bInFullscreen | The current fullscreen mode. |
using UCefView::FOnInvokeMethodEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InMethod , const FString& InArguments ) |
The callback type of invoking method request from web content(Javascript).
InBrowserId | The browser id. |
InFrameId | The frame id. |
InMethod | The method name. |
InArguments | The arguments list. |
using UCefView::FOnLoadEndEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , bool bInIsMainFrame , int InHttpStatusCode ) |
The callback type of loading ends.
InBrowserId | Indicates the browser id. |
InFrameId | Indicates the frame id. |
bInIsMainFrame | Indicates the whether this is the main frame. |
InHttpStatusCode | The HTTP status code. |
using UCefView::FOnLoadErrorEvent = void(*)( const int64& InBrowserId , const FCefFrameId& InFrameId , bool bInIsMainFrame , int InErrorCode , const FString& InErrorMsg , const FString& InFailedUrl ) |
The callback type of loading failed due to error.
InBrowserId | Indicates the browser id. |
InFrameId | Indicates the frame id. |
bInIsMainFrame | Indicates whether this is the main frame. |
InErrorCode | The error code. |
InErrorMsg | The error message. |
InFailedUrl | The url caused the failure. |
using UCefView::FOnLoadingProgressChangedEvent = void(*)( double InProgress ) |
The callback type of loading progress changed.
InProgress | Current progress. |
using UCefView::FOnLoadStartEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , bool bInIsMainFrame , int InTransitionType ) |
The callback type of loading starts.
InBrowserId | Indicates the browser id. |
InFrameId | Indicates the frame id. |
bInIsMainFrame | Indicates the whether this is the main frame. |
InTransitionType | transition type. |
using UCefView::FOnLoadStateChangedEvent = (*)( const int64& InBrowserId , bool bInIsLoading , bool bInCanGoBack , bool bInCanGoForward ) |
The callback type of loading state changed.
InBrowserId | Indicates the browser id. |
bInIsLoading | Indicates the browser is loading. |
bInCanGoBack | Indicates the browser can go back. |
bInCanGoForward | Indicates the browser can go forward. |
using UCefView::FOnNativeBrowserCreatedEvent = void(*)() |
The callback type of the native browser window created event. This slot does not work for OSR mode.
using UCefView::FOnQueryRequestEvent = void(*)( const int64& InBrowserId , const FCefFrameId& InFrameId , UCefViewQuery* InQuery ) |
The callback type of new UCefQuery request.
InBrowserId | The browser id. |
InFrameId | The frame id. |
InQuery | The query request. |
using UCefView::FOnReportJavascriptResultEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InContext , const FString& InResult ) |
The callback type of the result of the javascript executed with executeJavascriptWithResult returned.
InBrowserId | The browser id. |
InFrameId | The frame id. |
InContext | The context. |
InResult | The result. |
using UCefView::FOnStatusMessageEvent = void(*)( const FString& InMessage ) |
The callback type of status message changed.
InMessage | The status message. |
using UCefView::FOnTitleChangedEvent = void(*)( const FString& InTitle ) |
The callback type of title changed.
InTitle | The title. |
using UCefView::FOnUrlRequestEvent = void(*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InRequestUrl ) |
The callback type of built-in scheme URL access.
InBrowserId | The browser id. |
InFrameId | The frame id. |
InRequestUrl | The full url. |
UCefView::UCefView | ( | ) |
|
virtual |
void UCefView::AddArchiveFileResource | ( | const FString & | InArchivePath, |
const FString & | InTargetUrl, | ||
const FString & | InPassword = "", | ||
int32 | InPriority = 0 ) |
Adds a url mapping item with local archive (.zip) file which contains the web resource.
InArchivePath | The path to the local archive file. |
InTargetUrl | The url to be mapped to. |
InPassword | The password of the archive. |
InPriority | The priority. |
void UCefView::AddLocalFolderResource | ( | const FString & | InFolderPath, |
const FString & | InTargetUrl, | ||
int32 | InPriority = 0 ) |
Adds a url mapping item with local web resource directory.
InFolderPath | The path to the local resource directory. |
InTargetUrl | The url to be mapped to. |
InPriority | The priority. |
bool UCefView::BroadcastEvent | ( | const UCefViewEvent * | InCefViewEvent | ) |
Broadcasts an event to all frames in the CEF view.
InCefViewEvent | The event to broadcast. |
bool UCefView::BrowserCanGoBack | ( | ) |
Checks whether the browser can go back.
bool UCefView::BrowserCanGoForward | ( | ) |
Checks whether the browser can go forward.
void UCefView::BrowserGoBack | ( | ) |
Requires the browser to go back.
void UCefView::BrowserGoForward | ( | ) |
Requires the browser to go forward.
void UCefView::BrowserReload | ( | ) |
Requires the browser to reload.
void UCefView::BrowserStopLoad | ( | ) |
Requires the browser to stop load.
void UCefView::CloseDevTools | ( | ) |
Closes the dev-tools dialog.
bool UCefView::ExecuteJavascript | ( | const FCefFrameId & | InFrameId, |
const FString & | InJavascriptCode, | ||
const FString & | InTargetUrl ) |
Executes JavaScript code in a specific frame of the CEF view.
InFrameId | The ID of the frame in which to execute the JavaScript. |
InJavascriptCode | The JavaScript code to execute. |
InTargetUrl | The URL to associate with the script (used for debugging). |
bool UCefView::ExecuteJavascriptWithResult | ( | const FCefFrameId & | InFrameId, |
const FString & | InJavascriptCode, | ||
const FString & | InTargetUrl, | ||
const FString & | InExecuteContext ) |
Executes JavaScript code in a specific frame and returns the result.
InFrameId | The ID of the frame in which to execute the JavaScript. |
InJavascriptCode | The JavaScript code to execute. |
InTargetUrl | The URL to associate with the script (used for debugging). |
InExecuteContext | The context in which the script is executed. |
int64 UCefView::GetBrowserId | ( | ) |
Gets the browser id.
bool UCefView::HasDevTools | ( | ) |
Detects whether this browser has a dev-tools opened.
bool UCefView::IsBrowserLoading | ( | ) |
Checks whether the browser is loading.
bool UCefView::IsDragAndDropEnabled | ( | ) | const |
Gets whether to enable drag and drop.
bool UCefView::IsPopupContextMenuDisabled | ( | ) |
Gets whether to disable the context menu for pop-up browser.
void UCefView::NavigateToUrl | ( | const FString & | InTargetUrl | ) |
Navigates to the URL.
InTargetUrl | The url. |
|
protected |
Gets called before a new browser created (only for browser created by non-JavaScript).
InSourceFrameId | The source frame id. |
InUrl | The target URL. |
InName | The target name. |
InTargetDisposition | Target window open method. |
InRect | Rect to be used for the popup. |
|
protected |
Gets called before the pop-up browser is created (only for browsers created by JavaScript).
InFrameId | The source frame ID. |
InTargetUrl | The target URL. |
InTargetFrameName | The target name. |
InTargetDisposition | Target window open method. |
InRect | Rectangle to be used for the popup. |
InSettings | Settings to be used for the popup. |
bInDisableJavascriptAccess | Indicates whether JavaScript access is disabled. |
|
protected |
Gets called when close request received from the web.
|
protected |
Handles the address changed event from the Slate CEF view.
InFrameId | The ID of the frame. |
InNewAddress | The new address. |
|
protected |
Handles the console message event from the Slate CEF view.
InMessage | The console message. |
InLevel | The level of the console message. |
|
protected |
Handles the draggable region changed event from the Slate CEF view.
InDraggableRegion | The draggable region. |
InNonDraggableRegion | The non-draggable region. |
|
protected |
Handles the favicon URL changed event from the Slate CEF view.
InUrls | The new favicon URLs. |
|
protected |
Handles the fullscreen mode changed event from the Slate CEF view.
bInFullscreen | Whether the browser is in fullscreen mode. |
|
protected |
Handles the invoke method event from the Slate CEF view.
InBrowserId | The ID of the browser. |
InFrameId | The ID of the frame. |
InMethod | The name of the method to invoke. |
InArguments | The arguments to pass to the method. |
|
protected |
Handles the load end event from the Slate CEF view.
InBrowserId | The ID of the browser. |
InFrameId | The ID of the frame. |
bInIsMainFrame | Whether the frame is the main frame. |
InHttpStatusCode | The HTTP status code. |
|
protected |
Handles the load error event from the Slate CEF view.
InBrowserId | The ID of the browser. |
InFrameId | The ID of the frame. |
bInIsMainFrame | Whether the frame is the main frame. |
InErrorCode | The error code. |
InErrorMsg | The error message. |
InFailedUrl | The URL that failed to load. |
bInHandled | Whether the event was handled. |
|
protected |
Handles the loading progress changed event from the Slate CEF view.
InProgress | The loading progress. |
|
protected |
Handles the load start event from the Slate CEF view.
InBrowserId | The ID of the browser. |
InFrameId | The ID of the frame. |
bInIsMainFrame | Whether the frame is the main frame. |
InTransitionType | The transition type. |
|
protected |
Handles the load state changed event from the Slate CEF view.
InBrowserId | The ID of the browser. |
bInIsLoading | Whether the browser is currently loading. |
bInCanGoBack | Whether the browser can navigate back. |
bInCanGoForward | Whether the browser can navigate forward. |
|
protected |
Handles the native browser created event from the Slate CEF view.
|
protected |
Handles the query request event from the Slate CEF view.
InBrowserId | The ID of the browser. |
InFrameId | The ID of the frame. |
InQueryId | The ID of the query. |
InRequest | The query request. |
|
protected |
Handles the report javascript result event from the Slate CEF view.
InBrowserId | The ID of the browser. |
InFrameId | The ID of the frame. |
InContext | The context of the JavaScript execution. |
InResult | The result of the JavaScript execution. |
|
protected |
Handles the status message event from the Slate CEF view.
InMessage | The status message. |
|
protected |
Handles the title changed event from the Slate CEF view.
InTitle | The new title. |
|
protected |
Handles the URL request event from the Slate CEF view.
InBrowserId | The ID of the browser. |
InFrameId | The ID of the frame. |
InRequestUrl | The requested URL. |
|
overrideprotectedvirtual |
|
overridevirtual |
bool UCefView::ResponseUCefQuery | ( | const UCefViewQuery * | InCefQuery | ) |
Responses to a CEF query with the provided result.
InCefQuery | The CEF query to respond to. |
void UCefView::SetDisablePopupContextMenu | ( | bool | bInIsDisable | ) |
Sets whether to disable the context menu for pop-up browser.
bInIsDisable | True to disable; otherwise false. |
void UCefView::SetEnableDragAndDrop | ( | bool | bInIsEnable | ) |
Sets whether to enable drag and drop.
bInIsEnable | True to enable; otherwise false. |
This function does not work for OSR mode. There is a problem, when dragging a file to a non dragging area, the content of the file will be displayed. You need to solve the problem yourself.
bool UCefView::SetPreference | ( | const FString & | InPreferenceName, |
const FString & | InPreferenceValue, | ||
FString & | InError ) |
Sets a preference in the CEF browser.
InPreferenceName | The name of the preference to set. |
InPreferenceValue | The value to set the preference to. |
InError | An output parameter that will contain an error message if the preference could not be set. |
void UCefView::ShowDevTools | ( | ) |
Opens the dev-tools dialog.
|
overridevirtual |
bool UCefView::TriggerEventForFrame | ( | const UCefViewEvent * | InCefViewEvent, |
const FCefFrameId & | InFrameId ) |
Triggers an event for a specific frame in the CEF view.
InCefViewEvent | The event to trigger. |
InFrameId | The ID of the frame to trigger the event on. |
bool UCefView::TriggerEventForMainFrame | ( | const UCefViewEvent * | InCefViewEvent | ) |
Triggers an event for the main frame in the CEF view.
InCefViewEvent | The event to trigger. |
FString UCefView::AcceptLanguageList |
The accept language list for the CEF browser.
|
static |
The identifier for all frames.
ECefViewFeatureState UCefView::AllowJavascriptAccessClipboard = ECefViewFeatureState::Default |
Whether JavaScript can access the clipboard in the CEF browser.
ECefViewFeatureState UCefView::AllowJavascriptCloseWindows = ECefViewFeatureState::Default |
Whether JavaScript can close windows in the CEF browser.
ECefViewFeatureState UCefView::AllowJavascriptDomPaste = ECefViewFeatureState::Default |
Whether JavaScript can paste from the DOM in the CEF browser.
TArray<FArchiveFileResourceMapping> UCefView::ArchiveFileResourceMapping |
Mappings for archive files to be used as web resources.
FColor UCefView::BackgroundColor = FColor::White |
The background color of the CEF browser.
FString UCefView::CursiveFontFamily |
The cursive font family for the CEF browser.
ECefViewFeatureState UCefView::Databases = ECefViewFeatureState::Default |
Whether databases are enabled for the CEF browser.
FString UCefView::DefaultEncoding |
The default encoding for the CEF browser.
int32 UCefView::DefaultFixedFontSize |
The default fixed font size for the CEF browser.
int32 UCefView::DefaultFontSize |
The default font size for the CEF browser.
bool UCefView::EnableContextMenu = true |
Enables or disables the context menu in the CEF browser.
bool UCefView::EnableDragAndDrop = false |
Enables or disables drag and drop functionality in the CEF browser.
FString UCefView::FantasyFontFamily |
The fantasy font family for the CEF browser.
FString UCefView::FixedFontFamily |
The fixed font family for the CEF browser.
int32 UCefView::FrameRate = 60 |
The frame rate at which the CEF browser will render.
ECefViewFeatureState UCefView::ImageLoading = ECefViewFeatureState::Default |
Whether images are loading for the CEF browser.
ECefViewFeatureState UCefView::ImageShrinkStandaloneToFit = ECefViewFeatureState::Default |
Whether images shrink standalone to fit for the CEF browser.
ECefViewFeatureState UCefView::Javascript = ECefViewFeatureState::Default |
Whether JavaScript is enabled for the CEF browser.
TArray<FLocalFolderResourceMapping> UCefView::LocalFolderResroucesMapping |
Mappings for local folders to be used as web resources.
ECefViewFeatureState UCefView::LocalStorage = ECefViewFeatureState::Default |
Whether local storage is enabled for the CEF browser.
|
static |
The main frame identity.
int32 UCefView::MinimumFontSize |
The minimum font size for the CEF browser.
int32 UCefView::MinimumLogicalFontSize |
The minimum logical font size for the CEF browser.
FOnAddressChangedEvent UCefView::OnAddressChanged |
FOnConsoleMessageEvent UCefView::OnConsoleMessage |
FOnDraggableRegionChangedEvent UCefView::OnDraggableRegionChanged |
FOnFaviconUrlChangedEvent UCefView::OnFaviconUrlChanged |
FOnFullscreenModeChangedEvent UCefView::OnFullscreenModeChanged |
FOnInvokeMethodEvent UCefView::OnInvokeMethod |
FOnLoadEndEvent UCefView::OnLoadEnd |
FOnLoadErrorEvent UCefView::OnLoadError |
FOnLoadingProgressChangedEvent UCefView::OnLoadingProgressChanged |
FOnLoadStartEvent UCefView::OnLoadStart |
FOnLoadStateChangedEvent UCefView::OnLoadStateChanged |
FOnNativeBrowserCreatedEvent UCefView::OnNativeBrowserCreated |
FOnQueryRequestEvent UCefView::OnQueryRequest |
FOnReportJavascriptResultEvent UCefView::OnReportJavascriptResult |
FOnStatusMessageEvent UCefView::OnStatusMessage |
FOnTitleChangedEvent UCefView::OnTitleChanged |
FOnUrlRequestEvent UCefView::OnUrlRequest |
ECefViewFeatureState UCefView::Plugins = ECefViewFeatureState::Default |
Whether plugins are enabled for the CEF browser.
ECefViewFeatureState UCefView::RemoteFonts |
Whether remote fonts are enabled for the CEF browser.
FString UCefView::SansSerifFontFamily |
The sans-serif font family for the CEF browser.
FString UCefView::SerifFontFamily |
The serif font family for the CEF browser.
|
protected |
FString UCefView::StandardFontFamily |
The standard font family for the CEF browser.
ECefViewFeatureState UCefView::TabToLinks = ECefViewFeatureState::Default |
Whether tabs can be used to navigate links for the CEF browser.
ECefViewFeatureState UCefView::TextAreaResize = ECefViewFeatureState::Default |
Whether text areas can be resized for the CEF browser.
FString UCefView::Url |
The URL to be loaded in the CEF browser.
ECefViewFeatureState UCefView::WebGL = ECefViewFeatureState::Default |
Whether WebGL is enabled for the CEF browser.