Home
last modified time | relevance | path

Searched refs:MenuModel (Results 1 – 9 of 9) sorted by relevance

/third_party/cef/libcef/browser/native/
Dmenu_2.h19 class MenuModel; variable
41 explicit Menu2(ui::MenuModel* model);
74 ui::MenuModel* model() const { return model_; } in model()
80 ui::MenuModel* model_;
Dnative_menu_win.h18 class MenuModel; variable
31 CefNativeMenuWin(ui::MenuModel* model, HWND system_menu_for);
113 ui::MenuModel* model_;
Dnative_menu_win.cc193 ui::MenuModel* model = menu_win->model_; in OnMenuCommand()
291 ui::MenuModel::ItemType type = in OnDrawItem()
312 DCHECK(type != ui::MenuModel::TYPE_CHECK); in OnDrawItem()
323 } else if (type == ui::MenuModel::TYPE_CHECK && in OnDrawItem()
441 CefNativeMenuWin::CefNativeMenuWin(ui::MenuModel* model, HWND system_menu_for) in CefNativeMenuWin()
523 if (model_->GetTypeAt(model_index) == ui::MenuModel::TYPE_SEPARATOR) in Rebuild()
658 ui::MenuModel::ItemType type = model_->GetTypeAt(model_index); in AddMenuItemAt()
659 if (type == ui::MenuModel::TYPE_SUBMENU) { in AddMenuItemAt()
665 if (type == ui::MenuModel::TYPE_RADIO) in AddMenuItemAt()
725 ui::MenuModel::ItemType type = model_->GetTypeAt(model_index); in UpdateMenuItemInfoForString()
[all …]
Dmenu_wrapper.h15 class MenuModel; variable
36 static MenuWrapper* CreateWrapper(ui::MenuModel* model);
Dmenu_2.cc11 Menu2::Menu2(ui::MenuModel* model) in Menu2()
/third_party/cef/libcef/browser/
Dsimple_menu_model_impl.cc20 cef_menu_item_type_t GetCefItemType(ui::MenuModel::ItemType type) { in GetCefItemType()
22 case ui::MenuModel::TYPE_COMMAND: in GetCefItemType()
24 case ui::MenuModel::TYPE_CHECK: in GetCefItemType()
26 case ui::MenuModel::TYPE_RADIO: in GetCefItemType()
28 case ui::MenuModel::TYPE_SEPARATOR: in GetCefItemType()
30 case ui::MenuModel::TYPE_SUBMENU: in GetCefItemType()
Dmenu_model_impl.h182 ui::MenuModel* model() const { return model_.get(); } in model()
223 std::unique_ptr<ui::MenuModel> model_;
Dmenu_model_impl.cc30 class CefSimpleMenuModel : public ui::MenuModel {
133 MenuModel* GetSubmenuModelAt(int index) const override { in GetSubmenuModelAt()
/third_party/cef/patch/patches/
Dviews_1749_2102.patch17 @@ -147,6 +150,27 @@ class COMPONENT_EXPORT(UI_BASE) MenuModel
358 + const std::map<MenuItemView*, ui::MenuModel*>::const_iterator map_iterator =
372 + const std::map<MenuItemView*, ui::MenuModel*>::const_iterator map_iterator =
385 + const std::map<MenuItemView*, ui::MenuModel*>::const_iterator map_iterator =
399 + ui::MenuModel* model = menu_model_;
401 + if (ui::MenuModel::GetModelAndIndexForCommandId(command_id, &model, &index))
414 + ui::MenuModel* model = menu_model_;
416 + if (ui::MenuModel::GetModelAndIndexForCommandId(command_id, &model, &index))
425 const std::map<MenuItemView*, ui::MenuModel*>::const_iterator map_iterator =