Chromium Embedded Framework (CEF)  128.4.2+g5c235a2+chromium-128.0.6613.18
CefMenuButtonDelegate Class Referenceabstract

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

#include "include/views/cef_menu_button_delegate.h"

Inheritance diagram for CefMenuButtonDelegate:
CefButtonDelegate CefViewDelegate CefBaseRefCounted

Public Member Functions

virtual void OnMenuButtonPressed (CefRefPtr< CefMenuButton > menu_button, const CefPoint &screen_point, CefRefPtr< CefMenuButtonPressedLock > button_pressed_lock)=0
 Called when |button| is pressed. More...
 
- Public Member Functions inherited from CefButtonDelegate
virtual void OnButtonPressed (CefRefPtr< CefButton > button)=0
 Called when |button| is pressed. More...
 
virtual void OnButtonStateChanged (CefRefPtr< CefButton > button)
 Called when the state of |button| changes. 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...
 
virtual void OnThemeChanged (CefRefPtr< CefView > view)
 Called when the theme for |view| has changed, after the new theme colors have already been applied. 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 MenuButton events.

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

Member Function Documentation

◆ OnMenuButtonPressed()

virtual void CefMenuButtonDelegate::OnMenuButtonPressed ( CefRefPtr< CefMenuButton menu_button,
const CefPoint screen_point,
CefRefPtr< CefMenuButtonPressedLock button_pressed_lock 
)
pure virtual

Called when |button| is pressed.

Call CefMenuButton::ShowMenu() to show a popup menu at |screen_point|. When showing a custom popup such as a window keep a reference to |button_pressed_lock| until the popup is hidden to maintain the pressed button state.


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