/external/chromium/chrome/browser/extensions/ |
D | extension_context_menu_browsertest.cc | 21 using ui::MenuModel; 56 MenuModel* model = NULL; in GetItemLabel() 69 MenuModel** found_model, in GetMenuModelAndItemIndex() 71 std::vector<MenuModel*> models_to_search; in GetMenuModelAndItemIndex() 75 MenuModel* model = models_to_search.back(); in GetMenuModelAndItemIndex() 82 } else if (model->GetTypeAt(i) == MenuModel::TYPE_SUBMENU) { in GetMenuModelAndItemIndex() 280 MenuModel::ItemType expected_type, in ExpectLabelAndType() 281 const MenuModel& menu, in ExpectLabelAndType() 289 static void VerifyMenuForSeparatorsTest(const MenuModel& menu) { in VerifyMenuForSeparatorsTest() 305 ExpectLabelAndType("radio1", MenuModel::TYPE_RADIO, menu, index++); in VerifyMenuForSeparatorsTest() [all …]
|
/external/chromium/chrome/browser/ui/views/ |
D | wrench_menu.h | 31 void Init(ui::MenuModel* model); 48 typedef std::pair<ui::MenuModel*,int> Entry; 57 ui::MenuModel* model, 63 ui::MenuModel* model, 65 ui::MenuModel::ItemType menu_type, 70 void CancelAndEvaluate(ui::MenuModel* model, int index); 86 ui::MenuModel* selected_menu_model_;
|
D | wrench_menu.cc | 40 using ui::MenuModel; 247 MenuModel* model, int item_index, int accessible_string_id) { in GetAccessibleNameForWrenchMenuItem() 265 WrenchMenuView(WrenchMenu* menu, MenuModel* menu_model) in WrenchMenuView() 309 MenuModel* menu_model_; 323 MenuModel* menu_model, in CutCopyPasteView() 384 MenuModel* menu_model, in ZoomView() 570 void WrenchMenu::Init(ui::MenuModel* model) { in Init() 649 MenuModel* model, in PopulateMenu() 658 if (model->GetTypeAt(index) == MenuModel::TYPE_SUBMENU) in PopulateMenu() 662 DCHECK_EQ(MenuModel::TYPE_COMMAND, model->GetTypeAt(index)); in PopulateMenu() [all …]
|
/external/chromium/chrome/browser/ui/cocoa/ |
D | menu_controller.h | 15 class MenuModel; variable 26 ui::MenuModel* model_; // weak 31 @property(nonatomic, assign) ui::MenuModel* model; 46 - (id)initWithModel:(ui::MenuModel*)model 64 fromModel:(ui::MenuModel*)model
|
D | menu_controller.mm | 16 - (NSMenu*)menuFromModel:(ui::MenuModel*)model; argument 31 - (id)initWithModel:(ui::MenuModel*)model 48 - (NSMenu*)menuFromModel:(ui::MenuModel*)model { argument 59 if (model->GetTypeAt(modelIndex) == ui::MenuModel::TYPE_SEPARATOR) { 83 fromModel:(ui::MenuModel*)model 101 ui::MenuModel::ItemType type = model->GetTypeAt(modelIndex); 102 if (type == ui::MenuModel::TYPE_SUBMENU) { 106 ui::MenuModel* submenuModel = model->GetSubmenuModelAt(modelIndex); 111 // The MenuModel works on indexes so we can't just set the command id as the 138 ui::MenuModel* model = [all …]
|
/external/chromium/chrome/browser/ui/gtk/ |
D | menu_gtk.h | 22 class MenuModel; variable 57 MenuGtk(MenuGtk::Delegate* delegate, ui::MenuModel* model); 73 ui::MenuModel* model, 139 void BuildSubmenuFromModel(ui::MenuModel* model, GtkWidget* menu); 144 void ExecuteCommand(ui::MenuModel* model, int id); 174 ui::MenuModel* model_;
|
D | menu_gtk.cc | 50 ui::MenuModel* ModelForMenuItem(GtkMenuItem* menu_item) { in ModelForMenuItem() 51 return reinterpret_cast<ui::MenuModel*>( in ModelForMenuItem() 278 ui::MenuModel* model) in MenuGtk() 346 ui::MenuModel* model, in AppendMenuItemToMenu() 437 void MenuGtk::BuildSubmenuFromModel(ui::MenuModel* model, GtkWidget* menu) { in BuildSubmenuFromModel() 448 case ui::MenuModel::TYPE_SEPARATOR: in BuildSubmenuFromModel() 452 case ui::MenuModel::TYPE_CHECK: in BuildSubmenuFromModel() 456 case ui::MenuModel::TYPE_RADIO: { in BuildSubmenuFromModel() 470 case ui::MenuModel::TYPE_BUTTON_ITEM: { in BuildSubmenuFromModel() 477 case ui::MenuModel::TYPE_SUBMENU: in BuildSubmenuFromModel() [all …]
|
/external/chromium/chrome/browser/status_icons/ |
D | status_icon.h | 16 class MenuModel; variable 39 void SetContextMenu(ui::MenuModel* menu); 70 virtual void UpdatePlatformContextMenu(ui::MenuModel* model) = 0; 75 scoped_ptr<ui::MenuModel> context_menu_contents_;
|
D | status_tray_unittest.cc | 20 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) {} in UpdatePlatformContextMenu() 28 MOCK_METHOD1(UpdatePlatformContextMenu, void(ui::MenuModel*));
|
D | status_icon.cc | 32 void StatusIcon::SetContextMenu(ui::MenuModel* menu) { in SetContextMenu()
|
D | status_icon_unittest.cc | 21 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) {} in UpdatePlatformContextMenu()
|
/external/chromium/chrome/browser/chromeos/status/ |
D | network_menu.h | 30 class NetworkMenuModel : public ui::MenuModel { 71 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; 85 virtual ui::MenuModel* GetSubmenuModelAt(int index) const; 114 : type(ui::MenuModel::TYPE_SEPARATOR), in MenuItem() 117 MenuItem(ui::MenuModel::ItemType type, string16 label, SkBitmap icon, in MenuItem() 125 MenuItem(ui::MenuModel::ItemType type, string16 label, SkBitmap icon, in MenuItem() 133 ui::MenuModel::ItemType type;
|
D | network_menu.cc | 201 ui::MenuModel::ItemType NetworkMenuModel::GetTypeAt(int index) const { in GetTypeAt() 232 ui::MenuModel* NetworkMenuModel::GetSubmenuModelAt(int index) const { in GetSubmenuModelAt() 332 MenuItem(ui::MenuModel::TYPE_COMMAND, in InitMenuItems() 364 MenuItem(ui::MenuModel::TYPE_COMMAND, label, in InitMenuItems() 412 MenuItem(ui::MenuModel::TYPE_COMMAND, label, in InitMenuItems() 419 ui::MenuModel::TYPE_COMMAND, in InitMenuItems() 487 MenuItem(ui::MenuModel::TYPE_COMMAND, label, in InitMenuItems() 503 MenuItem(ui::MenuModel::TYPE_COMMAND, in InitMenuItems() 529 ui::MenuModel::TYPE_COMMAND, in InitMenuItems() 542 ui::MenuModel::TYPE_COMMAND, in InitMenuItems() [all …]
|
D | input_method_menu.cc | 240 ui::MenuModel* InputMethodMenu::GetSubmenuModelAt(int index) const { in GetSubmenuModelAt() 266 ui::MenuModel::ItemType InputMethodMenu::GetTypeAt(int index) const { in GetTypeAt() 270 return ui::MenuModel::TYPE_COMMAND; // "Customize language and input" in GetTypeAt() 275 ui::MenuModel::TYPE_COMMAND : ui::MenuModel::TYPE_RADIO; in GetTypeAt() 282 return ui::MenuModel::TYPE_RADIO; in GetTypeAt() 284 return ui::MenuModel::TYPE_COMMAND; in GetTypeAt() 287 return ui::MenuModel::TYPE_SEPARATOR; in GetTypeAt() 529 return ((model_->GetTypeAt(index) == ui::MenuModel::TYPE_RADIO) && in IndexIsInInputMethodList() 543 if ((model_->GetTypeAt(index) == ui::MenuModel::TYPE_RADIO) && in GetPropertyIndex() 563 return ((model_->GetTypeAt(index) == ui::MenuModel::TYPE_RADIO) && in IndexPointsToConfigureImeMenuItem()
|
D | power_menu_button.h | 27 public ui::MenuModel, 36 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; 49 virtual ui::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } in GetSubmenuModelAt()
|
D | clock_menu_button.h | 31 public ui::MenuModel, 42 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; 55 virtual ui::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } in GetSubmenuModelAt()
|
D | input_method_menu.h | 31 public ui::MenuModel, 43 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; 54 virtual ui::MenuModel* GetSubmenuModelAt(int index) const;
|
D | clock_menu_button.cc | 131 ui::MenuModel::ItemType ClockMenuButton::GetTypeAt(int index) const { in GetTypeAt() 134 return index == 1 ? ui::MenuModel::TYPE_SEPARATOR: in GetTypeAt() 135 ui::MenuModel::TYPE_COMMAND; in GetTypeAt()
|
D | power_menu_button.cc | 48 ui::MenuModel::ItemType PowerMenuButton::GetTypeAt(int index) const { in GetTypeAt() 49 return ui::MenuModel::TYPE_COMMAND; in GetTypeAt()
|
/external/chromium/chrome/browser/chromeos/ |
D | webui_menu_control.h | 14 class MenuModel; variable 32 virtual ui::MenuModel* GetMenuModel() = 0; 35 virtual void Activate(ui::MenuModel* model,
|
/external/chromium/chrome/browser/ui/toolbar/ |
D | wrench_menu_model_unittest.cc | 83 if (model.GetTypeAt(i) == ui::MenuModel::TYPE_SUBMENU) { in TEST_F() 89 ui::MenuModel* toolsModel = model.GetSubmenuModelAt(toolsModelIndex); in TEST_F()
|
D | back_forward_menu_model.h | 31 class BackForwardMenuModel : public ui::MenuModel { 61 virtual MenuModel* GetSubmenuModelAt(int index) const;
|
/external/chromium/chrome/browser/ui/gtk/status_icons/ |
D | status_icon_gtk.h | 33 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu);
|
/external/chromium/chrome/browser/ui/cocoa/status_icons/ |
D | status_icon_mac.h | 32 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu);
|
/external/chromium/chrome/browser/ui/views/status_icons/ |
D | status_icon_win.h | 46 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu);
|