mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Support top menu switching with mouse and arrow keys (issue #2102)
- cefclient: Add example ViewsMenuBar implementation and show top menu by default (specify `--hide-top-menu` to hide it).
This commit is contained in:
@ -59,6 +59,30 @@ class CefMenuModelDelegate : public virtual CefBaseRefCounted {
|
||||
int command_id,
|
||||
cef_event_flags_t event_flags) =0;
|
||||
|
||||
///
|
||||
// Called when the user moves the mouse outside the menu and over the owning
|
||||
// window.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void MouseOutsideMenu(CefRefPtr<CefMenuModel> menu_model,
|
||||
const CefPoint& screen_point) {}
|
||||
|
||||
///
|
||||
// Called on unhandled open submenu keyboard commands. |is_rtl| will be true
|
||||
// if the menu is displaying a right-to-left language.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void UnhandledOpenSubmenu(CefRefPtr<CefMenuModel> menu_model,
|
||||
bool is_rtl) {}
|
||||
|
||||
///
|
||||
// Called on unhandled close submenu keyboard commands. |is_rtl| will be true
|
||||
// if the menu is displaying a right-to-left language.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void UnhandledCloseSubmenu(CefRefPtr<CefMenuModel> menu_model,
|
||||
bool is_rtl) {}
|
||||
|
||||
///
|
||||
// The menu is about to show.
|
||||
///
|
||||
|
Reference in New Issue
Block a user