![]() |
UCefView 1.0.10
Install On Fab
![]() World's highest-performance WebView plugin for Unreal Engine. UCefView delivers GPU-accelerated rendering, seamless cross-platform integration and both C++ code and Blueprint development approaches.
|
A Slate widget that embeds a Chromium Embedded Framework (CEF) browser. More...
#include <SCefView.h>
Classes | |
struct | FArguments |
Represents the construction arguments of SCefView. More... | |
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& InOutFailedUrl , bool& InOutHandled ) |
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& InUrl ) |
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 bInIsFullscreen ) |
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& InQuery ) |
The callback type of built-in scheme URL access. | |
using | FOnQueryRequestEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const int64& InQueryId , const FString& InRequest ) |
The callback type of new UCefQuery request. | |
using | FOnInvokeMethodEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InMethod , const TArray<TSharedPtr<FJsonValue>>& InArguments ) |
The callback type of invoking method request from web content (JavaScript). | |
using | FOnReportJavascriptResultEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InContext , const TSharedPtr<FJsonValue>& 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 callback does not work for OSR mode. | |
using | FOnCreateNewBrowserEvent = void(*)( const FCefFrameId& InSourceFrameId , const FString& InUrl , const FString& InName , const ECefWindowOpenDisposition& InTargetDisposition , const FIntRect& InRect ) |
The callback type when new browser is requested to be created. | |
Public Member Functions | |
SCefView () | |
Default constructor for SCefView. | |
~SCefView () | |
Destructor for SCefView. | |
void | Construct (const FArguments &InArgs) |
Constructs the widget with the specified arguments. | |
void | SetUrl (const FString &InUrl) |
Sets the URL to be loaded in the browser. | |
FString | GetUrl () const |
Gets the current URL loaded in the browser. | |
void | SetFrameRate (int32 InFrameRate) |
Sets the frame rate for browser rendering. When set to 0, SCefView will use the current engine frame rate limit retrieved from the Console Variable t.MaxFPS as the target frame rate and SCefView also install a listener on this value to sync the frame rate limit anytime it changes Set to other positive value rather than 0 to specified the fixed target frame limit. | |
int32 | GetFrameRate () const |
Gets the current frame rate for browser rendering. | |
void | SetEnableContextMenu (bool bInEnableContextMenu) |
Enables or disables the context menu in the browser. | |
bool | IsContextMenuEnabled () const |
Checks if the context menu is enabled. | |
void | SetAcceptDrops (bool bInAcceptDrops) |
Enables or disables accepting drag-and-drop operations. | |
bool | IsAcceptDrops () const |
Checks if drag-and-drop is accepted. | |
void | SetAllowDrag (bool bInAllowDrag) |
Enables or disables allowing drag operations. | |
bool | IsAllowDrag () const |
Checks if drag operations are allowed. | |
void | AddLocalFolderResource (const FString &InFolderPath, const FString &InTargetUrl, int32 InPriority=0) |
Adds a local folder as a web resource mapping. | |
void | AddArchiveFileResource (const FString &InArchivePath, const FString &InTargetUrl, const FString &InPassword="", int32 InPriority=0) |
Adds an archive file (.zip) as a web resource mapping. | |
int64 | GetBrowserId () const |
Gets the unique browser ID. | |
void | NavigateToUrl (const FString &InTargetUrl) |
Navigates the browser to the specified URL. | |
bool | BrowserCanGoBack () |
Checks if the browser can navigate back in its history. | |
bool | BrowserCanGoForward () |
Checks if the browser can navigate forward in its history. | |
void | BrowserGoBack () |
Navigates the browser back in its history. | |
void | BrowserGoForward () |
Navigates the browser forward in its history. | |
bool | IsBrowserLoading () |
Checks if the browser is currently loading a page. | |
void | BrowserReload () |
Reloads the current page in the browser. | |
void | BrowserStopLoad () |
Stops the current page load in the browser. | |
bool | TriggerEventForFrame (const FString &InName, const TArray< TSharedPtr< FJsonValue > > &InArgs, const FCefFrameId &InFrameId) |
Triggers a custom event for a specific frame in the browser. | |
bool | TriggerEventForMainFrame (const FString &InName, const TArray< TSharedPtr< FJsonValue > > &InArgs) |
Triggers a custom event for the main frame in the browser. | |
bool | BroadcastEvent (const FString &InName, const TArray< TSharedPtr< FJsonValue > > &InArgs) |
Broadcasts a custom event to all frames in the browser. | |
bool | ResponseUCefQuery (const int64 InQueryId, const bool bInIsSuccess, const FString &InResponse, const int32 InError) |
Responds to a UCefQuery request from the browser. | |
bool | ExecuteJavascript (const FCefFrameId &InFrameId, const FString &InJavascriptCode, const FString &InTargetUrl) |
Executes JavaScript code in a specific frame. | |
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 &OutError) |
Sets a browser preference. | |
void | SetDisablePopupContextMenu (bool bInIsDisable) |
Sets whether to disable the context menu for pop-up browsers. | |
bool | IsPopupContextMenuDisabled () |
Checks if the context menu is disabled for pop-up browsers. | |
bool | HasDevTools () |
Checks if the browser's developer tools are open. | |
void | ShowDevTools () |
Opens the browser's developer tools dialog. | |
void | CloseDevTools () |
Closes the browser's developer tools dialog. | |
Static Public Attributes | |
static const FCefFrameId | MainFrameID |
The main frame identity. | |
static const FCefFrameId | AllFrameID |
The identifier for all frames. | |
Protected Member Functions | |
void | CreateNativeBrowser (const FSlateCefViewSettings &InCefViewSettings) |
Creates the native CEF browser instance with the specified settings. | |
void | DestroyNativeBrowser () |
Destroys the native CEF browser instance. | |
void | OnNewBrowser (const FCefFrameId &InSourceFrameId, const FString &InTargetUrl, const FString &InFrameName, const ECefWindowOpenDisposition &InTargetDisposition, const FIntRect &InDesiredRect) |
Called when a new browser is created (e.g., via window.open). | |
bool | OnNewPopup (const FCefFrameId &InSourceFrameId, const FString &InTargetUrl, FString &InFrameName, ECefWindowOpenDisposition InTargetDisposition, FIntRect &InDesiredRect, FSlateCefViewSettings &InBrowserSettings, bool &bInDisableJavascriptAccess) |
Called before a pop-up browser is created (only for browser created by JavaScript). | |
bool | OnRequestCloseFromWeb () |
Called when a close request is received from the web content. | |
void | SetVisibility (TAttribute< EVisibility > InVisibility) override |
Sets the visibility. | |
void | Tick (const FGeometry &InAllottedGeometry, const double InCurrentTime, const float InDeltaTime) override |
Tick function. | |
FChildren * | GetChildren () override |
GetChildren function. | |
void | OnArrangeChildren (const FGeometry &InAllottedGeometry, FArrangedChildren &InArrangedChildren) const override |
OnArrangeChildren function. | |
FVector2D | ComputeDesiredSize (float InLayoutScaleMultiplier) const override |
ComputeDesiredSize function. | |
int32 | OnPaint (const FPaintArgs &InArgs, const FGeometry &InAllottedGeometry, const FSlateRect &InMyCullingRect, FSlateWindowElementList &InOutDrawElements, int32 InLayerId, const FWidgetStyle &InWidgetStyle, bool bInParentEnabled) const override |
OnPaint function. | |
TOptional< TSharedRef< SWidget > > | OnMapCursor (const FCursorReply &InCursorReply) const |
OnMapCursor function. | |
bool | SupportsKeyboardFocus () const override |
SupportsKeyboardFocus function. | |
FReply | OnFocusReceived (const FGeometry &InGeometry, const FFocusEvent &InFocusEvent) override |
OnFocusReceived function. | |
void | OnFocusLost (const FFocusEvent &InFocusEvent) override |
OnFocusLost function. | |
FNavigationReply | OnNavigation (const FGeometry &InGeometry, const FNavigationEvent &InNavigationEvent) override |
OnNavigation function. | |
void | OnMouseEnter (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
OnMouseEnter function. | |
void | OnMouseLeave (const FPointerEvent &InMouseEvent) override |
OnMouseLeave function. | |
FReply | OnMouseMove (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
OnMouseMove function. | |
FReply | OnPreviewMouseButtonDown (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
OnPreviewMouseButtonDown function. | |
FReply | OnMouseButtonDown (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
OnMouseButtonDown function. | |
FReply | OnMouseButtonUp (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
OnMouseButtonUp function. | |
FReply | OnMouseButtonDoubleClick (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
OnMouseButtonDoubleClick function. | |
FReply | OnMouseWheel (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
OnMouseWheel function. | |
FReply | OnPreviewKeyDown (const FGeometry &InGeometry, const FKeyEvent &InKeyEvent) override |
OnPreviewKeyDown function. | |
FReply | OnKeyDown (const FGeometry &InGeometry, const FKeyEvent &InKeyEvent) override |
OnKeyDown function. | |
FReply | OnKeyChar (const FGeometry &InGeometry, const FCharacterEvent &InCharacterEvent) override |
OnKeyChar function. | |
FReply | OnKeyUp (const FGeometry &InGeometry, const FKeyEvent &InKeyEvent) override |
OnKeyUp function. | |
void | OnDragEnter (const FGeometry &InGeometry, const FDragDropEvent &InDragDropEvent) override |
FReply | OnDragOver (const FGeometry &InGeometry, const FDragDropEvent &InDragDropEvent) override |
FReply | OnDrop (const FGeometry &InGeometry, const FDragDropEvent &InDragDropEvent) override |
void | OnDragLeave (const FDragDropEvent &DragDropEvent) override |
FReply | OnDragDetected (const FGeometry &InGeometry, const FPointerEvent &InMouseEvent) override |
A Slate widget that embeds a Chromium Embedded Framework (CEF) browser.
This widget provides methods to control browser navigation, execute JavaScript, handle browser events, and manage resource mappings for local and archive files. It exposes a variety of delegates for browser state changes, navigation, and communication between the browser and the host application.
using SCefView::FOnAddressChangedEvent = void(*)( const FCefFrameId& InFrameId , const FString& InUrl ) |
The callback type of the address changed.
InFrameId | The frame ID. |
InUrl | The address. |
using SCefView::FOnConsoleMessageEvent = void(*)( const FString& InMessage , int32 InLevel ) |
The callback type of console message from the web content.
InMessage | The message. |
InLevel | The level. |
using SCefView::FOnCreateNewBrowserEvent = void(*)( const FCefFrameId& InSourceFrameId , const FString& InUrl , const FString& InName , const ECefWindowOpenDisposition& InTargetDisposition , const FIntRect& InRect ) |
The callback type when new browser is requested to be created.
InSourceFrameId | The frame id which requests to create a new browser. |
InUrl | The URL of the new browser. |
InName | The name of the new browser. |
InTargetDisposition | The target disposition of the new browser. |
InRect | The rect of the new browser. |
using SCefView::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 SCefView::FOnFaviconUrlChangedEvent = void(*)( const TArray<FString>& InUrls ) |
The callback type of favicon URL changed.
InUrls | The URLs. |
using SCefView::FOnFullscreenModeChangedEvent = void(*)( bool bInIsFullscreen ) |
The callback type of fullscreen mode changed.
bInIsFullscreen | The current fullscreen mode. |
using SCefView::FOnInvokeMethodEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InMethod , const TArray<TSharedPtr<FJsonValue>>& 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 SCefView::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 whether this is the main frame. |
InHttpStatusCode | The HTTP status code. |
using SCefView::FOnLoadErrorEvent = void(*)( const int64& InBrowserId , const FCefFrameId& InFrameId , bool bInIsMainFrame , int InErrorCode , const FString& InErrorMsg , const FString& InOutFailedUrl , bool& InOutHandled ) |
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 that caused the failure. |
InOutHandled | Whether this error was handled or not. |
using SCefView::FOnLoadingProgressChangedEvent = void(*)( double InProgress ) |
The callback type of loading progress changed.
InProgress | Current progress. |
using SCefView::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 whether this is the main frame. |
InTransitionType | Transition type. |
using SCefView::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 SCefView::FOnNativeBrowserCreatedEvent = void(*)() |
The callback type of the native browser window created event. This callback does not work for OSR mode.
using SCefView::FOnQueryRequestEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const int64& InQueryId , const FString& InRequest ) |
The callback type of new UCefQuery request.
InBrowserId | The browser ID. |
InFrameId | The frame ID. |
InQueryId | The query ID. |
InRequest | The query request. |
using SCefView::FOnReportJavascriptResultEvent = (*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InContext , const TSharedPtr<FJsonValue>& 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 SCefView::FOnStatusMessageEvent = void(*)( const FString& InMessage ) |
The callback type of status message changed.
InMessage | The status message. |
using SCefView::FOnTitleChangedEvent = void(*)( const FString& InTitle ) |
The callback type of title changed.
InTitle | The title. |
using SCefView::FOnUrlRequestEvent = void(*)( const int64& InBrowserId , const FCefFrameId& InFrameId , const FString& InQuery ) |
The callback type of built-in scheme URL access.
InBrowserId | The browser ID. |
InFrameId | The frame ID. |
InQuery | The full URL. |
SCefView::SCefView | ( | ) |
Default constructor for SCefView.
SCefView::~SCefView | ( | ) |
Destructor for SCefView.
void SCefView::AddArchiveFileResource | ( | const FString & | InArchivePath, |
const FString & | InTargetUrl, | ||
const FString & | InPassword = "", | ||
int32 | InPriority = 0 ) |
Adds an archive file (.zip) as a web resource mapping.
InArchivePath | Path to the archive file. |
InTargetUrl | URL to map the archive to. |
InPassword | Password for the archive (default: empty). |
InPriority | Priority of the mapping (default: 0). |
void SCefView::AddLocalFolderResource | ( | const FString & | InFolderPath, |
const FString & | InTargetUrl, | ||
int32 | InPriority = 0 ) |
Adds a local folder as a web resource mapping.
InFolderPath | Path to the local folder. |
InTargetUrl | URL to map the folder to. |
InPriority | Priority of the mapping (default: 0). |
bool SCefView::BroadcastEvent | ( | const FString & | InName, |
const TArray< TSharedPtr< FJsonValue > > & | InArgs ) |
Broadcasts a custom event to all frames in the browser.
InName | Name of the event. |
InArgs | Arguments to pass to the event. |
bool SCefView::BrowserCanGoBack | ( | ) |
Checks if the browser can navigate back in its history.
bool SCefView::BrowserCanGoForward | ( | ) |
Checks if the browser can navigate forward in its history.
void SCefView::BrowserGoBack | ( | ) |
Navigates the browser back in its history.
void SCefView::BrowserGoForward | ( | ) |
Navigates the browser forward in its history.
void SCefView::BrowserReload | ( | ) |
Reloads the current page in the browser.
void SCefView::BrowserStopLoad | ( | ) |
Stops the current page load in the browser.
void SCefView::CloseDevTools | ( | ) |
Closes the browser's developer tools dialog.
|
overrideprotected |
ComputeDesiredSize function.
InLayoutScaleMultiplier | The layout scale multiplier. |
void SCefView::Construct | ( | const FArguments & | InArgs | ) |
Constructs the widget with the specified arguments.
InArgs | The construction arguments. |
|
protected |
Creates the native CEF browser instance with the specified settings.
InCefViewSettings | The CEF browser settings. |
|
protected |
Destroys the native CEF browser instance.
bool SCefView::ExecuteJavascript | ( | const FCefFrameId & | InFrameId, |
const FString & | InJavascriptCode, | ||
const FString & | InTargetUrl ) |
Executes JavaScript code in a specific frame.
InFrameId | Frame ID to execute the code in. |
InJavascriptCode | JavaScript code to execute. |
InTargetUrl | URL to associate with the code. |
bool SCefView::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 | Frame ID to execute the code in. |
InJavascriptCode | JavaScript code to execute. |
InTargetUrl | URL to associate with the code. |
InExecuteContext | Context in which to execute the code. |
int64 SCefView::GetBrowserId | ( | ) | const |
Gets the unique browser ID.
|
overrideprotected |
GetChildren function.
int32 SCefView::GetFrameRate | ( | ) | const |
Gets the current frame rate for browser rendering.
FString SCefView::GetUrl | ( | ) | const |
Gets the current URL loaded in the browser.
bool SCefView::HasDevTools | ( | ) |
Checks if the browser's developer tools are open.
bool SCefView::IsAcceptDrops | ( | ) | const |
Checks if drag-and-drop is accepted.
bool SCefView::IsAllowDrag | ( | ) | const |
Checks if drag operations are allowed.
bool SCefView::IsBrowserLoading | ( | ) |
Checks if the browser is currently loading a page.
bool SCefView::IsContextMenuEnabled | ( | ) | const |
Checks if the context menu is enabled.
bool SCefView::IsPopupContextMenuDisabled | ( | ) |
Checks if the context menu is disabled for pop-up browsers.
void SCefView::NavigateToUrl | ( | const FString & | InTargetUrl | ) |
Navigates the browser to the specified URL.
InTargetUrl | The URL to navigate to. |
|
overrideprotected |
OnArrangeChildren function.
InAllottedGeometry | The allotted geometry. |
InArrangedChildren | The arranged children. |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
OnFocusLost function.
InFocusEvent | The focus event. |
|
overrideprotected |
OnFocusReceived function.
InGeometry | The geometry. |
InFocusEvent | The focus event. |
|
overrideprotected |
OnKeyChar function.
InGeometry | The geometry. |
InCharacterEvent | The character event. |
|
overrideprotected |
OnKeyDown function.
InGeometry | The geometry. |
InKeyEvent | The key event. |
|
overrideprotected |
OnKeyUp function.
InGeometry | The geometry. |
InKeyEvent | The key event. |
|
protected |
OnMapCursor function.
InCursorReply | The cursor reply. |
|
overrideprotected |
OnMouseButtonDoubleClick function.
InGeometry | The geometry. |
InMouseEvent | The mouse event. |
|
overrideprotected |
OnMouseButtonDown function.
InGeometry | The geometry. |
InMouseEvent | The mouse event. |
|
overrideprotected |
OnMouseButtonUp function.
InGeometry | The geometry. |
InMouseEvent | The mouse event. |
|
overrideprotected |
OnMouseEnter function.
InGeometry | The geometry. |
InMouseEvent | The mouse event. |
|
overrideprotected |
OnMouseLeave function.
InMouseEvent | The mouse event. |
|
overrideprotected |
OnMouseMove function.
InGeometry | The geometry. |
InMouseEvent | The mouse event. |
|
overrideprotected |
OnMouseWheel function.
InGeometry | The geometry. |
InMouseEvent | The mouse event. |
|
overrideprotected |
OnNavigation function.
InGeometry | The geometry. |
InNavigationEvent | The navigation event. |
|
protected |
Called when a new browser is created (e.g., via window.open).
InSourceFrameId | ID of the source frame. |
InTargetUrl | URL of the new browser. |
InFrameName | Name of the new browser frame. |
InTargetDisposition | Disposition of the new browser window. |
InDesiredRect | Desired rectangle for the new browser window. |
|
protected |
Called before a pop-up browser is created (only for browser created by JavaScript).
InSourceFrameId | Source frame ID. |
InTargetUrl | Target URL. |
InFrameName | Target frame name. |
InTargetDisposition | Target window open method. |
InDesiredRect | Rectangle for the popup. |
InBrowserSettings | Settings for the popup browser. |
bInDisableJavascriptAccess | Whether to disable JavaScript access. |
|
overrideprotected |
OnPaint function.
InArgs | The paint arguments. |
InAllottedGeometry | The allotted geometry. |
InMyCullingRect | The my culling rectangle. |
InOutDrawElements | The out draw elements. |
InLayerId | The layer ID. |
InWidgetStyle | The widget style. |
bInParentEnabled | Whether the parent is enabled. |
|
overrideprotected |
OnPreviewKeyDown function.
InGeometry | The geometry. |
InKeyEvent | The key event. |
|
overrideprotected |
OnPreviewMouseButtonDown function.
InGeometry | The geometry. |
InMouseEvent | The mouse event. |
|
protected |
Called when a close request is received from the web content.
bool SCefView::ResponseUCefQuery | ( | const int64 | InQueryId, |
const bool | bInIsSuccess, | ||
const FString & | InResponse, | ||
const int32 | InError ) |
Responds to a UCefQuery request from the browser.
InQueryId | ID of the query to respond to. |
bInIsSuccess | True if the query was successful. |
InResponse | Response string. |
InError | Error code, if any. |
void SCefView::SetAcceptDrops | ( | bool | bInAcceptDrops | ) |
Enables or disables accepting drag-and-drop operations.
bInAcceptDrops | True to accept drops, false otherwise. |
void SCefView::SetAllowDrag | ( | bool | bInAllowDrag | ) |
Enables or disables allowing drag operations.
bInAllowDrag | True to allow drag, false otherwise. |
void SCefView::SetDisablePopupContextMenu | ( | bool | bInIsDisable | ) |
Sets whether to disable the context menu for pop-up browsers.
bInIsDisable | True to disable, false otherwise. |
void SCefView::SetEnableContextMenu | ( | bool | bInEnableContextMenu | ) |
Enables or disables the context menu in the browser.
bInEnableContextMenu | True to enable, false to disable. |
void SCefView::SetFrameRate | ( | int32 | InFrameRate | ) |
Sets the frame rate for browser rendering. When set to 0, SCefView will use the current engine frame rate limit retrieved from the Console Variable t.MaxFPS as the target frame rate and SCefView also install a listener on this value to sync the frame rate limit anytime it changes Set to other positive value rather than 0 to specified the fixed target frame limit.
InFrameRate | The desired frame rate. |
bool SCefView::SetPreference | ( | const FString & | InPreferenceName, |
const FString & | InPreferenceValue, | ||
FString & | OutError ) |
Sets a browser preference.
InPreferenceName | Name of the preference. |
InPreferenceValue | Value to set. |
OutError | Error message, if any. |
void SCefView::SetUrl | ( | const FString & | InUrl | ) |
Sets the URL to be loaded in the browser.
InUrl | The URL to load. |
|
overrideprotected |
Sets the visibility.
InVisibility | The visibility. |
void SCefView::ShowDevTools | ( | ) |
Opens the browser's developer tools dialog.
|
overrideprotected |
SupportsKeyboardFocus function.
|
overrideprotected |
Tick function.
InAllottedGeometry | The allotted geometry. |
InCurrentTime | The current time. |
InDeltaTime | The delta time. |
bool SCefView::TriggerEventForFrame | ( | const FString & | InName, |
const TArray< TSharedPtr< FJsonValue > > & | InArgs, | ||
const FCefFrameId & | InFrameId ) |
Triggers a custom event for a specific frame in the browser.
InName | Name of the event. |
InArgs | Arguments to pass to the event. |
InFrameId | Frame ID to trigger the event on. |
bool SCefView::TriggerEventForMainFrame | ( | const FString & | InName, |
const TArray< TSharedPtr< FJsonValue > > & | InArgs ) |
Triggers a custom event for the main frame in the browser.
InName | Name of the event. |
InArgs | Arguments to pass to the event. |
|
static |
The identifier for all frames.
|
static |
The main frame identity.
|
protected |
On address changed event.
|
protected |
On console message event.
|
protected |
On new browser request event.
|
protected |
On draggable region changed event.
|
protected |
On favicon URL changed event.
|
protected |
On fullscreen mode changed event.
|
protected |
On invoke method event.
|
protected |
On load end event.
|
protected |
On load error event.
|
protected |
On loading progress changed event.
|
protected |
On load start event.
|
protected |
On load state changed event.
|
protected |
On native browser created event.
|
protected |
On query request event.
|
protected |
On report JavaScript result event.
|
protected |
On status message event.
|
protected |
On title changed event.
|
protected |
On URL request event.