Chromium Embedded Framework (CEF)  106.0.15+gbb70d04+chromium-106.0.5249.12
CefBrowserViewDelegate Class Reference

Implement this interface to handle BrowserView events. More...

#include "include/views/cef_browser_view_delegate.h"

Inheritance diagram for CefBrowserViewDelegate:
CefViewDelegate CefBaseRefCounted

Public Types

typedef cef_chrome_toolbar_type_t ChromeToolbarType
 

Public Member Functions

virtual void OnBrowserCreated (CefRefPtr< CefBrowserView > browser_view, CefRefPtr< CefBrowser > browser)
 Called when |browser| associated with |browser_view| is created. More...
 
virtual void OnBrowserDestroyed (CefRefPtr< CefBrowserView > browser_view, CefRefPtr< CefBrowser > browser)
 Called when |browser| associated with |browser_view| is destroyed. More...
 
virtual CefRefPtr< CefBrowserViewDelegateGetDelegateForPopupBrowserView (CefRefPtr< CefBrowserView > browser_view, const CefBrowserSettings &settings, CefRefPtr< CefClient > client, bool is_devtools)
 Called before a new popup BrowserView is created. More...
 
virtual bool OnPopupBrowserViewCreated (CefRefPtr< CefBrowserView > browser_view, CefRefPtr< CefBrowserView > popup_browser_view, bool is_devtools)
 Called after |popup_browser_view| is created. More...
 
virtual ChromeToolbarType GetChromeToolbarType ()
 Returns the Chrome toolbar type that will be available via CefBrowserView::GetChromeToolbar(). More...
 
- Public Member Functions inherited from CefViewDelegate
virtual CefSize GetPreferredSize (CefRefPtr< CefView > view)
 Return the preferred size for |view|. More...
 
virtual CefSize GetMinimumSize (CefRefPtr< CefView > view)
 Return the minimum size for |view|. More...
 
virtual CefSize GetMaximumSize (CefRefPtr< CefView > view)
 Return the maximum size for |view|. More...
 
virtual int GetHeightForWidth (CefRefPtr< CefView > view, int width)
 Return the height necessary to display |view| with the provided |width|. More...
 
virtual void OnParentViewChanged (CefRefPtr< CefView > view, bool added, CefRefPtr< CefView > parent)
 Called when the parent of |view| has changed. More...
 
virtual void OnChildViewChanged (CefRefPtr< CefView > view, bool added, CefRefPtr< CefView > child)
 Called when a child of |view| has changed. More...
 
virtual void OnWindowChanged (CefRefPtr< CefView > view, bool added)
 Called when |view| is added or removed from the CefWindow. More...
 
virtual void OnLayoutChanged (CefRefPtr< CefView > view, const CefRect &new_bounds)
 Called when the layout of |view| has changed. More...
 
virtual void OnFocus (CefRefPtr< CefView > view)
 Called when |view| gains focus. More...
 
virtual void OnBlur (CefRefPtr< CefView > view)
 Called when |view| loses focus. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Implement this interface to handle BrowserView events.

The methods of this class will be called on the browser process UI thread unless otherwise indicated.

Member Typedef Documentation

◆ ChromeToolbarType

Member Function Documentation

◆ GetChromeToolbarType()

virtual ChromeToolbarType CefBrowserViewDelegate::GetChromeToolbarType ( )
inlinevirtual

Returns the Chrome toolbar type that will be available via CefBrowserView::GetChromeToolbar().

See that method for related documentation.

◆ GetDelegateForPopupBrowserView()

virtual CefRefPtr<CefBrowserViewDelegate> CefBrowserViewDelegate::GetDelegateForPopupBrowserView ( CefRefPtr< CefBrowserView browser_view,
const CefBrowserSettings settings,
CefRefPtr< CefClient client,
bool  is_devtools 
)
inlinevirtual

Called before a new popup BrowserView is created.

The popup originated from |browser_view|. |settings| and |client| are the values returned from CefLifeSpanHandler::OnBeforePopup(). |is_devtools| will be true if the popup will be a DevTools browser. Return the delegate that will be used for the new popup BrowserView.

◆ OnBrowserCreated()

virtual void CefBrowserViewDelegate::OnBrowserCreated ( CefRefPtr< CefBrowserView browser_view,
CefRefPtr< CefBrowser browser 
)
inlinevirtual

Called when |browser| associated with |browser_view| is created.

This method will be called after CefLifeSpanHandler::OnAfterCreated() is called for |browser| and before OnPopupBrowserViewCreated() is called for |browser|'s parent delegate if |browser| is a popup.

◆ OnBrowserDestroyed()

virtual void CefBrowserViewDelegate::OnBrowserDestroyed ( CefRefPtr< CefBrowserView browser_view,
CefRefPtr< CefBrowser browser 
)
inlinevirtual

Called when |browser| associated with |browser_view| is destroyed.

Release all references to |browser| and do not attempt to execute any methods on |browser| after this callback returns. This method will be called before CefLifeSpanHandler::OnBeforeClose() is called for |browser|.

◆ OnPopupBrowserViewCreated()

virtual bool CefBrowserViewDelegate::OnPopupBrowserViewCreated ( CefRefPtr< CefBrowserView browser_view,
CefRefPtr< CefBrowserView popup_browser_view,
bool  is_devtools 
)
inlinevirtual

Called after |popup_browser_view| is created.

This method will be called after CefLifeSpanHandler::OnAfterCreated() and OnBrowserCreated() are called for the new popup browser. The popup originated from |browser_view|. |is_devtools| will be true if the popup is a DevTools browser. Optionally add |popup_browser_view| to the views hierarchy yourself and return true. Otherwise return false and a default CefWindow will be created for the popup.


The documentation for this class was generated from the following file: