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:
Marshall Greenblatt
2017-02-22 13:05:27 -05:00
parent fbc8b983d5
commit 6eaf11f07a
42 changed files with 1055 additions and 152 deletions

View File

@@ -36,6 +36,20 @@ CefRefPtr<CefMenuModel> CefMenuModel::CreateMenuModel(
// VIRTUAL METHODS - Body may be edited by hand.
bool CefMenuModelCToCpp::IsSubMenu() {
cef_menu_model_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, is_sub_menu))
return false;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
int _retval = _struct->is_sub_menu(_struct);
// Return type: bool
return _retval?true:false;
}
bool CefMenuModelCToCpp::Clear() {
cef_menu_model_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, clear))