# Class TCefBrowserViewDelegateRef

Description
Hierarchy
Methods

## Unit

uCEFBrowserViewDelegate

## Declaration

`type TCefBrowserViewDelegateRef = class(TCefViewDelegateRef, ICefBrowserViewDelegate)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefViewDelegateRef
- TCefBrowserViewDelegateRef

## Overview

### Methods

Protected | `procedure OnBrowserCreated(const browser_view: ICefBrowserView; const browser: ICefBrowser);`
Protected | `procedure OnBrowserDestroyed(const browser_view: ICefBrowserView; const browser: ICefBrowser);`
Protected | `procedure OnGetDelegateForPopupBrowserView(const browser_view: ICefBrowserView; const settings: TCefBrowserSettings; const client: ICefClient; is_devtools: boolean; var aResult : ICefBrowserViewDelegate);`
Protected | `procedure OnPopupBrowserViewCreated(const browser_view, popup_browser_view: ICefBrowserView; is_devtools: boolean; var aResult : boolean);`
Protected | `procedure OnGetChromeToolbarType(const browser_view: ICefBrowserView; var aResult: TCefChromeToolbarType);`
Protected | `procedure OnUseFramelessWindowForPictureInPicture(const browser_view: ICefBrowserView; var aResult: boolean);`
Protected | `procedure OnGestureCommand(const browser_view: ICefBrowserView; gesture_command: TCefGestureCommand; var aResult : boolean);`
Protected | `procedure OnGetBrowserRuntimeStyle(var aResult : TCefRuntimeStyle);`
Protected | `procedure OnAllowMoveForPictureInPicture(const browser_view: ICefBrowserView; var aResult: boolean);`
Protected | `procedure OnAllowPictureInPictureWithoutUserActivation(const browser_view: ICefBrowserView; var aResult: boolean);`
Public | `class function UnWrap(data: Pointer): ICefBrowserViewDelegate;`

## Description

### Methods

Protected | `procedure OnBrowserCreated(const browser_view: ICefBrowserView; const browser: ICefBrowser);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnBrowserCreated. Called when |browser| associated with |browser_view| is created. This function will be called after ICefLifeSpanHandler.OnAfterCreated() is called for |browser| and before OnPopupBrowserViewCreated() is called for |browser|'s parent delegate if |browser| is a popup.

Protected | `procedure OnBrowserDestroyed(const browser_view: ICefBrowserView; const browser: ICefBrowser);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnBrowserDestroyed. Called when |browser| associated with |browser_view| is destroyed. Release all references to |browser| and do not attempt to execute any functions on |browser| after this callback returns. This function will be called before ICefLifeSpanHandler.OnBeforeClose() is called for |browser|.

Protected | `procedure OnGetDelegateForPopupBrowserView(const browser_view: ICefBrowserView; const settings: TCefBrowserSettings; const client: ICefClient; is_devtools: boolean; var aResult : ICefBrowserViewDelegate);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnGetDelegateForPopupBrowserView. Called before a new popup BrowserView is created. The popup originated from |browser_view|. |settings| and |client| are the values returned from ICefLifeSpanHandler.OnBeforePopup(). |is_devtools| will be true (1) if the popup will be a DevTools browser. Return the delegate that will be used for the new popup BrowserView.

Protected | `procedure OnPopupBrowserViewCreated(const browser_view, popup_browser_view: ICefBrowserView; is_devtools: boolean; var aResult : boolean);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnPopupBrowserViewCreated. Called after |popup_browser_view| is created. This function will be called after ICefLifeSpanHandler.OnAfterCreated() and OnBrowserCreated() are called for the new popup browser. The popup originated from |browser_view|. |is_devtools| will be true (1) if the popup is a DevTools browser. Optionally add |popup_browser_view| to the views hierarchy yourself and return true (1). Otherwise return false (0) and a default ICefWindow will be created for the popup.

Protected | `procedure OnGetChromeToolbarType(const browser_view: ICefBrowserView; var aResult: TCefChromeToolbarType);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnGetChromeToolbarType. Returns the Chrome toolbar type that will be available via ICefBrowserView.GetChromeToolbar(). See that function for related documentation.

Protected | `procedure OnUseFramelessWindowForPictureInPicture(const browser_view: ICefBrowserView; var aResult: boolean);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnUseFramelessWindowForPictureInPicture. Return true (1) to create frameless windows for Document picture-in- picture popups. Content in frameless windows should specify draggable regions using "-webkit-app-region: drag" CSS.

Protected | `procedure OnGestureCommand(const browser_view: ICefBrowserView; gesture_command: TCefGestureCommand; var aResult : boolean);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnGestureCommand. Called when |browser_view| receives a gesture command. Return true (1) to handle (or disable) a |gesture_command| or false (0) to propagate the gesture to the browser for default handling. With Chrome style these commands can also be handled via ICefCommandHandler.OnChromeCommand.

Protected | `procedure OnGetBrowserRuntimeStyle(var aResult : TCefRuntimeStyle);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnGetBrowserRuntimeStyle. Optionally change the runtime style for this BrowserView. See TCefRuntimeStyle documentation for details.

Protected | `procedure OnAllowMoveForPictureInPicture(const browser_view: ICefBrowserView; var aResult: boolean);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnAllowMoveForPictureInPicture. Return true (1) to allow the use of JavaScript moveTo/By() and resizeTo/By() (without user activation) with Document picture-in-picture popups.

Protected | `procedure OnAllowPictureInPictureWithoutUserActivation(const browser_view: ICefBrowserView; var aResult: boolean);`
This item has no description. Showing description inherited from ICefBrowserViewDelegate.OnAllowPictureInPictureWithoutUserActivation. Return true (1) to allow opening Document picture-in-picture without user activation. Default is false (0) (user activation required).

Public | `class function UnWrap(data: Pointer): ICefBrowserViewDelegate;`
Returns a ICefBrowserViewDelegate instance using a PCefBrowserViewDelegate data pointer.

Generated by PasDoc 1.0.4.