Home | History | Annotate | Download | only in views

Lines Matching full:model

247       MenuModel* model, int item_index, int accessible_string_id) {
252 if (model->GetAcceleratorAt(item_index, &menu_accelerator)) {
308 // The menu model containing the increment/decrement/reset items.
540 // Index of the fullscreen menu item in the model.
570 void WrenchMenu::Init(ui::MenuModel* model) {
576 PopulateMenu(root_.get(), model, &next_id);
649 MenuModel* model,
651 int index_offset = model->GetFirstItemIndex(NULL);
652 for (int i = 0, max = model->GetItemCount(); i < max; ++i) {
656 AppendMenuItem(parent, model, index, model->GetTypeAt(index), next_id);
658 if (model->GetTypeAt(index) == MenuModel::TYPE_SUBMENU)
659 PopulateMenu(item, model->GetSubmenuModelAt(index), next_id);
661 if (model->GetCommandIdAt(index) == IDC_CUT) {
662 DCHECK_EQ(MenuModel::TYPE_COMMAND, model->GetTypeAt(index));
664 DCHECK_EQ(IDC_COPY, model->GetCommandIdAt(index + 1));
665 DCHECK_EQ(IDC_PASTE, model->GetCommandIdAt(index + 2));
668 new CutCopyPasteView(this, model, index, index + 1, index + 2));
670 } else if (model->GetCommandIdAt(index) == IDC_ZOOM_MINUS) {
671 DCHECK_EQ(MenuModel::TYPE_COMMAND, model->GetTypeAt(index));
672 DCHECK_EQ(IDC_ZOOM_PLUS, model->GetCommandIdAt(index + 1));
673 DCHECK_EQ(IDC_FULLSCREEN, model->GetCommandIdAt(index + 2));
676 new ZoomView(this, model, index, index + 1, index + 2));
683 MenuModel* model,
689 id_to_entry_[id].first = model;
692 MenuItemView* menu_item = parent->AppendMenuItemFromModel(model, index, id);
695 menu_item->SetVisible(model->IsVisibleAt(index));
697 if (menu_type == MenuModel::TYPE_COMMAND && model->HasIcons()) {
699 if (model->GetIconAt(index, &icon))
706 void WrenchMenu::CancelAndEvaluate(MenuModel* model, int index) {
707 selected_menu_model_ = model;