Class TEmbeddedChromium

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TEmbeddedChromium = class(TChromium)

Description

TEmbeddedChromium

1) TEmbeddedChromium keeps track of the browser while it is created. This allows for CloseBrowser to function, even if the Browser object is not yet known. Also calls to "LoadUrl" are cached until the browser object is created.

2) TEmbeddedChromium adds InternalEvents that can be hooked by the component that owns the TEmbeddedChromium. This means the default published events are available to the end user. Published events that should not be available are hidden via THiddenPropertyEditor * Hidden event properties must not be assigned by any end user code. *

Hierarchy

Overview

Methods

Protected function GetHasBrowser: boolean; reintroduce;
Protected procedure doOnBeforeClose(const ABrowser: ICefBrowser); override;
Protected procedure doOnAfterCreated(const ABrowser: ICefBrowser); override;
Protected procedure doOnGotFocus(const Abrowser: ICefBrowser); override;
Protected function MustCreateFocusHandler: boolean; override;
Protected procedure DoCreated(Data: PtrInt);
Protected procedure DoOnClosed(Data: PtrInt);
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function CreateBrowser(const aBrowserParent: TWinControl = nil; const aWindowName: ustring = ''; const aContext: ICefRequestContext = nil; const aExtraInfo: ICefDictionaryValue = nil): boolean; overload; override;
Public function CreateBrowser(aParentHandle: TCefWindowHandle; aParentRect: TRect; const aWindowName: ustring = ''; const aContext: ICefRequestContext = nil; const aExtraInfo: ICefDictionaryValue = nil; aForceAsPopup : boolean = False): boolean; overload; override;
Public function CreateBrowser(const aURL: ustring; const aBrowserViewComp: TCEFBrowserViewComponent; const aContext: ICefRequestContext = nil; const aExtraInfo: ICefDictionaryValue = nil): boolean; overload; override;
Public procedure CloseBrowser(aForceClose: boolean); reintroduce;
Public procedure LoadURL(const aURL: ustring; const aFrameName: ustring = ''); overload;

Properties

Public property HasBrowser: Boolean read GetHasBrowser;
Public property IsClosing : Boolean read GetIsClosing;
Public property InternalOnBrowserCreated : TNotifyEvent read FInternalOnBrowserCreated write FInternalOnBrowserCreated;
Public property InternalOnBrowserClosed : TNotifyEvent read FInternalOnBrowserClosed write FInternalOnBrowserClosed;
Public property InternalOnGotFocus : TOnGotFocus read FInternalOnGotFocus write FInternalOnGotFocus;

Description

Methods

Protected function GetHasBrowser: boolean; reintroduce;

This item has no description.

Protected procedure doOnBeforeClose(const ABrowser: ICefBrowser); override;

This item has no description.

Protected procedure doOnAfterCreated(const ABrowser: ICefBrowser); override;

This item has no description.

Protected procedure doOnGotFocus(const Abrowser: ICefBrowser); override;

This item has no description.

Protected function MustCreateFocusHandler: boolean; override;

This item has no description.

Protected procedure DoCreated(Data: PtrInt);

This item has no description.

Protected procedure DoOnClosed(Data: PtrInt);

This item has no description.

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function CreateBrowser(const aBrowserParent: TWinControl = nil; const aWindowName: ustring = ''; const aContext: ICefRequestContext = nil; const aExtraInfo: ICefDictionaryValue = nil): boolean; overload; override;

This item has no description. Showing description inherited from TChromium.CreateBrowser.

Used to create the browser after the global request context has been initialized. You need to set all properties and events before calling this function because it will only create the internal handlers needed for those events and the property values will be used in the browser initialization. The browser will be fully initialized when the TChromiumCore.OnAfterCreated event is triggered.

Public function CreateBrowser(aParentHandle: TCefWindowHandle; aParentRect: TRect; const aWindowName: ustring = ''; const aContext: ICefRequestContext = nil; const aExtraInfo: ICefDictionaryValue = nil; aForceAsPopup : boolean = False): boolean; overload; override;

This item has no description. Showing description inherited from TChromiumCore.CreateBrowser.

Used to create the browser after the global request context has been initialized. You need to set all properties and events before calling this function because it will only create the internal handlers needed for those events and the property values will be used in the browser initialization.

The browser will be fully initialized when the TChromiumCore.OnAfterCreated event is triggered.

Public function CreateBrowser(const aURL: ustring; const aBrowserViewComp: TCEFBrowserViewComponent; const aContext: ICefRequestContext = nil; const aExtraInfo: ICefDictionaryValue = nil): boolean; overload; override;

This item has no description. Showing description inherited from TChromiumCore.CreateBrowser.

Used to create the browser after the global request context has been initialized. You need to set all properties and events before calling this function because it will only create the internal handlers needed for those events and the property values will be used in the browser initialization.

The browser will be fully initialized when the TChromiumCore.OnAfterCreated event is triggered.

Public procedure CloseBrowser(aForceClose: boolean); reintroduce;

CloseBrowser will work, even if the browser is still in creation, and Initialized is still false

Public procedure LoadURL(const aURL: ustring; const aFrameName: ustring = ''); overload;

LoadURL will work, even if the browser is still in creation, and Initialized is still false

Properties

Public property HasBrowser: Boolean read GetHasBrowser;

This item has no description.

Public property IsClosing : Boolean read GetIsClosing;

Includes browser in creation

Public property InternalOnBrowserCreated : TNotifyEvent read FInternalOnBrowserCreated write FInternalOnBrowserCreated;

- Events for use by the Owning component ONLY - Events are called in main thread - OnBrowserCreated: the parent event may be called when procedure Initialized is still false. - OnBrowserCreated: may not be called, if the CloseBrowser has already been called

Public property InternalOnBrowserClosed : TNotifyEvent read FInternalOnBrowserClosed write FInternalOnBrowserClosed;

This item has no description.

Public property InternalOnGotFocus : TOnGotFocus read FInternalOnGotFocus write FInternalOnGotFocus;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.