Class TCefBrowserViewRef

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TCefBrowserViewRef = class(TCefViewRef, ICefBrowserView)

Description

A View hosting a ICefBrowser instance. Methods must be called on the browser process UI thread unless otherwise indicated.

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/views/cef_browser_view_capi.h">CEF source file: /include/capi/views/cef_browser_view_capi.h (cef_browser_view_t))

Hierarchy

Overview

Methods

Protected function GetBrowser: ICefBrowser;
Protected function GetChromeToolbar: ICefView;
Protected procedure SetPreferAccelerators(prefer_accelerators: boolean);
Protected function GetRuntimeStyle: TCefRuntimeStyle;
Public class function UnWrap(data: Pointer): ICefBrowserView;
Public class function CreateBrowserView(const client: ICefClient; const url: ustring; const settings: TCefBrowserSettings; const extra_info: ICefDictionaryValue; const request_context: ICefRequestContext; const delegate: ICefBrowserViewDelegate): ICefBrowserView;
Public class function GetForBrowser(const browser: ICefBrowser): ICefBrowserView;

Description

Methods

Protected function GetBrowser: ICefBrowser;

Returns the ICefBrowser hosted by this BrowserView. Will return NULL if the browser has not yet been created or has already been destroyed.

Protected function GetChromeToolbar: ICefView;

Returns the Chrome toolbar associated with this BrowserView. Only supported when using the Chrome runtime. The ICefBrowserViewDelegate.GetChromeToolbarType function must return a value other than CEF_CTT_NONE and the toolbar will not be available until after this BrowserView is added to a ICefWindow and ICefViewDelegate.OnWindowChanged() has been called.

Protected procedure SetPreferAccelerators(prefer_accelerators: boolean);

Sets whether accelerators registered with ICefWindow.SetAccelerator are triggered before or after the event is sent to the ICefBrowser. If |prefer_accelerators| is true (1) then the matching accelerator will be triggered immediately and the event will not be sent to the ICefBrowser. If |prefer_accelerators| is false (0) then the matching accelerator will only be triggered if the event is not handled by web content or by ICefKeyboardHandler. The default value is false (0).

Protected function GetRuntimeStyle: TCefRuntimeStyle;

Returns the runtime style for this BrowserView (ALLOY or CHROME). See TCefRuntimeStyle documentation for details.

Public class function UnWrap(data: Pointer): ICefBrowserView;

Returns a ICefBrowserView instance using a PCefBrowserView data pointer.

Public class function CreateBrowserView(const client: ICefClient; const url: ustring; const settings: TCefBrowserSettings; const extra_info: ICefDictionaryValue; const request_context: ICefRequestContext; const delegate: ICefBrowserViewDelegate): ICefBrowserView;

Create a new BrowserView. The underlying cef_browser_t will not be created until this view is added to the views hierarchy. The optional |extra_info| parameter provides an opportunity to specify extra information specific to the created browser that will be passed to cef_render_process_handler_t::on_browser_created() in the render process.

Public class function GetForBrowser(const browser: ICefBrowser): ICefBrowserView;

Returns the BrowserView associated with |browser|.


Generated by PasDoc 0.16.0-snapshot.