Home
last modified time | relevance | path

Searched refs:menu_index (Results 1 – 15 of 15) sorted by relevance

/external/chromium_org/chrome/browser/profiles/
Dprofile_list_desktop_unittest.cc107 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
111 EXPECT_EQ(1U, item2.menu_index); in TEST_F()
128 EXPECT_EQ(0u, item1.menu_index); in TEST_F()
133 EXPECT_EQ(1u, item2.menu_index); in TEST_F()
138 EXPECT_EQ(2u, item3.menu_index); in TEST_F()
143 EXPECT_EQ(3u, item4.menu_index); in TEST_F()
170 EXPECT_EQ(0u, item1.menu_index); in TEST_F()
175 EXPECT_EQ(1u, item2.menu_index); in TEST_F()
180 EXPECT_EQ(2u, item3.menu_index); in TEST_F()
185 EXPECT_EQ(3u, item4.menu_index); in TEST_F()
[all …]
Davatar_menu.cc84 AvatarMenu::Item::Item(size_t menu_index, in Item() argument
91 menu_index(menu_index), in Item()
Davatar_menu.h48 Item(size_t menu_index, size_t profile_index, const gfx::Image& icon);
76 size_t menu_index; member
/external/chromium_org/chrome/browser/chromeos/profiles/
Dprofile_list_chromeos_unittest.cc129 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
149 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
153 EXPECT_EQ(1U, item3.menu_index); in TEST_F()
175 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
235 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
239 EXPECT_EQ(1U, item2.menu_index); in TEST_F()
250 EXPECT_EQ(0U, item1next.menu_index); in TEST_F()
254 EXPECT_EQ(1U, item2next.menu_index); in TEST_F()
279 EXPECT_EQ(0U, item1.menu_index); in TEST_F()
283 EXPECT_EQ(1U, item2.menu_index); in TEST_F()
[all …]
Dprofile_list_chromeos.cc78 items_[i]->menu_index = i; in RebuildMenu()
84 size_t menu_index = 0; in MenuIndexFromProfileIndex() local
88 menu_index = i; in MenuIndexFromProfileIndex()
93 return menu_index; in MenuIndexFromProfileIndex()
/external/chromium_org/ui/views/controls/menu/
Dnative_menu_win.h62 bool IsSeparatorItemAt(int menu_index) const;
65 void AddMenuItemAt(int menu_index, int model_index);
66 void AddSeparatorItemAt(int menu_index, int model_index);
69 void SetMenuItemState(int menu_index,
75 void SetMenuItemLabel(int menu_index,
Dnative_menu_win.cc480 for (int menu_index = first_item_index_; in Rebuild() local
481 menu_index < first_item_index_ + model_->GetItemCount(); ++menu_index) { in Rebuild()
482 int model_index = menu_index - first_item_index_; in Rebuild()
484 AddSeparatorItemAt(menu_index, model_index); in Rebuild()
486 AddMenuItemAt(menu_index, model_index); in Rebuild()
495 int menu_index = model_index + first_item_index_; in UpdateStates() local
496 SetMenuItemState(menu_index, model_->IsEnabledAt(model_index), in UpdateStates()
500 SetMenuItemLabel(menu_index, model_index, in UpdateStates()
613 bool NativeMenuWin::IsSeparatorItemAt(int menu_index) const { in IsSeparatorItemAt()
617 GetMenuItemInfo(menu_, menu_index, MF_BYPOSITION, &mii); in IsSeparatorItemAt()
[all …]
Dmenu_model_adapter.cc58 int menu_index, in AddMenuItemFromModelAt() argument
104 menu_index, in AddMenuItemFromModelAt()
119 const int menu_index = menu->HasSubmenu() ? in AppendMenuItemFromModel() local
121 return AddMenuItemFromModelAt(model, model_index, menu, menu_index, item_id); in AppendMenuItemFromModel()
Dmenu_model_adapter.h46 int menu_index,
/external/chromium_org/ui/app_list/
Dapp_list_menu.cc37 int menu_index = menu_model_.GetIndexOfCommandId(SELECT_PROFILE + i); in InitMenu()
38 menu_model_.SetSublabel(menu_index, users_[i].email); in InitMenu()
42 menu_model_.SetIcon(menu_index, gfx::Image(*rb.GetImageSkiaNamed( in InitMenu()
/external/chromium_org/content/shell/browser/
Dshell_web_contents_view_delegate_win.cc40 int menu_index, in MakeContextMenuItem() argument
52 InsertMenuItem(menu, menu_index, TRUE, &mii); in MakeContextMenuItem()
/external/chromium_org/chrome/browser/ui/cocoa/profiles/
Dprofile_menu_controller.mm130 [item setTag:itemData.menu_index];
168 return [menuItem tag] == static_cast<NSInteger>(itemData.menu_index);
232 size_t tag = menu_->GetItemAt(i).menu_index;
Dprofile_chooser_controller.mm1696 AvatarMenu::Item guestItem(std::string::npos, /* menu_index, not used */
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dwrench_menu.h132 int menu_index,
Dwrench_menu.cc1094 int menu_index = parent->HasSubmenu() ? in PopulateMenu() local
1097 AddMenuItem(parent, menu_index, model, i, model->GetTypeAt(i)); in PopulateMenu()
1175 int menu_index, in AddMenuItem() argument
1197 model, model_index, parent, menu_index, command_id); in AddMenuItem()