Lines Matching refs:Item
45 ContextMenuModel::Item::Item()
80 ContextMenuModel::Item item;
81 if (!ReadParam(m, iter, &item.type))
83 if (!ReadParam(m, iter, &item.item_id))
85 if (!ReadParam(m, iter, &item.label))
87 if (!ReadParam(m, iter, &item.checked))
89 if (!ReadParam(m, iter, &item.enabled))
92 if (item.type == static_cast<int>(ui::MenuModel::TYPE_SUBMENU)) {
93 item.submenu = new ContextMenuModel;
94 if (!Read(m, iter, item.submenu)) {
95 delete item.submenu;
96 item.submenu = NULL;
101 p->items.push_back(item);
111 const ContextMenuModel::Item& item = p.items[i];
115 LogParam(item.type, l);
117 LogParam(item.item_id, l);
119 LogParam(item.label, l);
121 LogParam(item.checked, l);
123 LogParam(item.enabled, l);
124 if (item.type == ui::MenuModel::TYPE_SUBMENU) {
126 Log(*item.submenu, l);