# Class TCefFrameRef

Description
Hierarchy
Fields
Methods
Properties

## Unit

uCEFFrame

## Declaration

`type TCefFrameRef = class(TCefBaseRefCountedRef, ICefFrame)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefFrameRef

## Overview

### Methods

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

## Description

### Methods

| `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.

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

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

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

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

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

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

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

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

| `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.

| `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.

| `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.

| `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.

| `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.

| `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).

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

| `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.

| `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.

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

| `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.

| `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.

| `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.

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

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

| `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.

| `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.

| `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.

| `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.

| `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.

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

Generated by PasDoc 0.16.0-snapshot.