# Class TCefFrameRef

Description
Hierarchy
Methods

## Unit

uCEFFrame

## Declaration

`type TCefFrameRef = class(TCefBaseRefCountedRef, ICefFrame)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefFrameRef

## Overview

### Methods

Public | `function IsValid: Boolean;`
Public | `procedure Undo;`
Public | `procedure Redo;`
Public | `procedure Cut;`
Public | `procedure Copy;`
Public | `procedure Paste;`
Public | `procedure PasteAndMatchStyle;`
Public | `procedure Del;`
Public | `procedure SelectAll;`
Public | `procedure ViewSource;`
Public | `procedure GetSource(const visitor: ICefStringVisitor);`
Public | `procedure GetSourceProc(const proc: TCefStringVisitorProc);`
Public | `procedure GetText(const visitor: ICefStringVisitor);`
Public | `procedure GetTextProc(const proc: TCefStringVisitorProc);`
Public | `procedure LoadRequest(const request: ICefRequest);`
Public | `procedure LoadUrl(const url: ustring);`
Public | `procedure ExecuteJavaScript(const code, scriptUrl: ustring; startLine: Integer);`
Public | `function IsMain: Boolean;`
Public | `function IsFocused: Boolean;`
Public | `function GetName: ustring;`
Public | `function GetIdentifier: ustring;`
Public | `function GetParent: ICefFrame;`
Public | `function GetUrl: ustring;`
Public | `function GetBrowser: ICefBrowser;`
Public | `function GetV8Context: ICefv8Context;`
Public | `procedure VisitDom(const visitor: ICefDomVisitor);`
Public | `procedure VisitDomProc(const proc: TCefDomVisitorProc);`
Public | `function CreateUrlRequest(const request: ICefRequest; const client: ICefUrlrequestClient): ICefUrlRequest;`
Public | `procedure SendProcessMessage(targetProcess: TCefProcessId; const message_: ICefProcessMessage);`
Public | `class function UnWrap(data: Pointer): ICefFrame;`

## Description

### Methods

Public | `function IsValid: Boolean;`
This item has no description. Showing description inherited from ICefFrame.IsValid. True if this object is currently attached to a valid frame.

Public | `procedure Undo;`
This item has no description. Showing description inherited from ICefFrame.Undo. Execute undo in this frame.

Public | `procedure Redo;`
This item has no description. Showing description inherited from ICefFrame.Redo. Execute redo in this frame.

Public | `procedure Cut;`
This item has no description. Showing description inherited from ICefFrame.Cut. Execute cut in this frame.

Public | `procedure Copy;`
This item has no description. Showing description inherited from ICefFrame.Copy. Execute copy in this frame.

Public | `procedure Paste;`
This item has no description. Showing description inherited from ICefFrame.Paste. Execute paste in this frame.

Public | `procedure PasteAndMatchStyle;`
This item has no description. Showing description inherited from ICefFrame.PasteAndMatchStyle. Execute paste and match style in this frame.

Public | `procedure Del;`
This item has no description. Showing description inherited from ICefFrame.Del. Execute delete in this frame.

Public | `procedure SelectAll;`
This item has no description. Showing description inherited from ICefFrame.SelectAll. Execute select all in this frame.

Public | `procedure ViewSource;`
This item has no description. Showing description inherited from ICefFrame.ViewSource. Save this frame's HTML source to a temporary file and open it in the default text viewing application. This function can only be called from the browser process.

Public | `procedure GetSource(const visitor: ICefStringVisitor);`
This item has no description. Showing description inherited from ICefFrame.GetSource. Retrieve this frame's HTML source as a string sent to the specified visitor.

Public | `procedure GetSourceProc(const proc: TCefStringVisitorProc);`
This item has no description. Showing description inherited from ICefFrame.GetSourceProc. Retrieve this frame's HTML source as a string sent to the specified visitor.

Public | `procedure GetText(const visitor: ICefStringVisitor);`
This item has no description. Showing description inherited from ICefFrame.GetText. Retrieve this frame's display text as a string sent to the specified visitor.

Public | `procedure GetTextProc(const proc: TCefStringVisitorProc);`
This item has no description. Showing description inherited from ICefFrame.GetTextProc. Retrieve this frame's display text as a string sent to the specified visitor.

Public | `procedure LoadRequest(const request: ICefRequest);`
This item has no description. Showing description inherited from ICefFrame.LoadRequest. Load the request represented by the |request| object. WARNING: This function will fail with "bad IPC message" reason INVALID_INITIATOR_ORIGIN (213) unless you first navigate to the request origin using some other mechanism (LoadURL, link click, etc).

Public | `procedure LoadUrl(const url: ustring);`
This item has no description. Showing description inherited from ICefFrame.LoadUrl. Load the specified |url|.

Public | `procedure ExecuteJavaScript(const code, scriptUrl: ustring; startLine: Integer);`
This item has no description. Showing description inherited from ICefFrame.ExecuteJavaScript. Execute a string of JavaScript code in this frame. The |script_url| parameter is the URL where the script in question can be found, if any. The renderer may request this URL to show the developer the source of the error. The |start_line| parameter is the base line number to use for error reporting.

Public | `function IsMain: Boolean;`
This item has no description. Showing description inherited from ICefFrame.IsMain. Returns true (1) if this is the main (top-level) frame.

Public | `function IsFocused: Boolean;`
This item has no description. Showing description inherited from ICefFrame.IsFocused. Returns true (1) if this is the focused frame.

Public | `function GetName: ustring;`
This item has no description. Showing description inherited from ICefFrame.GetName. Returns the name for this frame. If the frame has an assigned name (for example, set via the iframe "name" attribute) then that value will be returned. Otherwise a unique name will be constructed based on the frame parent hierarchy. The main (top-level) frame will always have an NULL name value.

Public | `function GetIdentifier: ustring;`
This item has no description. Showing description inherited from ICefFrame.GetIdentifier. Returns the globally unique identifier for this frame or empty if the underlying frame does not yet exist.

Public | `function GetParent: ICefFrame;`
This item has no description. Showing description inherited from ICefFrame.GetParent. Returns the parent of this frame or NULL if this is the main (top-level) frame.

Public | `function GetUrl: ustring;`
This item has no description. Showing description inherited from ICefFrame.GetUrl. Returns the URL currently loaded in this frame.

Public | `function GetBrowser: ICefBrowser;`
This item has no description. Showing description inherited from ICefFrame.GetBrowser. Returns the browser that this frame belongs to.

Public | `function GetV8Context: ICefv8Context;`
This item has no description. Showing description inherited from ICefFrame.GetV8Context. Get the V8 context associated with the frame. This function can only be called from the render process.

Public | `procedure VisitDom(const visitor: ICefDomVisitor);`
This item has no description. Showing description inherited from ICefFrame.VisitDom. Visit the DOM document. This function can only be called from the render process.

Public | `procedure VisitDomProc(const proc: TCefDomVisitorProc);`
This item has no description. Showing description inherited from ICefFrame.VisitDomProc. Visit the DOM document. This function can only be called from the render process.

Public | `function CreateUrlRequest(const request: ICefRequest; const client: ICefUrlrequestClient): ICefUrlRequest;`
This item has no description. Showing description inherited from ICefFrame.CreateUrlRequest. Create a new URL request that will be treated as originating from this frame and the associated browser. Use TCustomCefUrlrequestClient.Create instead if you do not want the request to have this association, in which case it may be handled differently (see documentation on that function). A request created with this function may only originate from the browser process, and will behave as follows: - It may be intercepted by the client via CefResourceRequestHandler or CefSchemeHandlerFactory. - POST data may only contain a single element of type PDE_TYPE_FILE or PDE_TYPE_BYTES. The |request| object will be marked as read-only after calling this function.

Public | `procedure SendProcessMessage(targetProcess: TCefProcessId; const message_: ICefProcessMessage);`
This item has no description. Showing description inherited from ICefFrame.SendProcessMessage. Send a message to the specified |target_process|. Ownership of the message contents will be transferred and the |message| reference will be invalidated. Message delivery is not guaranteed in all cases (for example, if the browser is closing, navigating, or if the target process crashes). Send an ACK message back from the target process if confirmation is required.

Public | `class function UnWrap(data: Pointer): ICefFrame;`
This item has no description.

Generated by PasDoc 1.0.4.