Home
last modified time | relevance | path

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

12

/external/chromium/chrome/browser/extensions/
Dextension_context_menu_browsertest.cc21 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/
Dwrench_menu.h31 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_;
Dwrench_menu.cc40 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/
Dmenu_controller.h15 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
Dmenu_controller.mm16 - (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/
Dmenu_gtk.h22 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_;
Dmenu_gtk.cc50 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/
Dstatus_icon.h16 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_;
Dstatus_tray_unittest.cc20 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) {} in UpdatePlatformContextMenu()
28 MOCK_METHOD1(UpdatePlatformContextMenu, void(ui::MenuModel*));
Dstatus_icon.cc32 void StatusIcon::SetContextMenu(ui::MenuModel* menu) { in SetContextMenu()
Dstatus_icon_unittest.cc21 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu) {} in UpdatePlatformContextMenu()
/external/chromium/chrome/browser/chromeos/status/
Dnetwork_menu.h30 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;
Dnetwork_menu.cc201 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 …]
Dinput_method_menu.cc240 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()
Dpower_menu_button.h27 public ui::MenuModel,
36 virtual ui::MenuModel::ItemType GetTypeAt(int index) const;
49 virtual ui::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } in GetSubmenuModelAt()
Dclock_menu_button.h31 public ui::MenuModel,
42 virtual ui::MenuModel::ItemType GetTypeAt(int index) const;
55 virtual ui::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } in GetSubmenuModelAt()
Dinput_method_menu.h31 public ui::MenuModel,
43 virtual ui::MenuModel::ItemType GetTypeAt(int index) const;
54 virtual ui::MenuModel* GetSubmenuModelAt(int index) const;
Dclock_menu_button.cc131 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()
Dpower_menu_button.cc48 ui::MenuModel::ItemType PowerMenuButton::GetTypeAt(int index) const { in GetTypeAt()
49 return ui::MenuModel::TYPE_COMMAND; in GetTypeAt()
/external/chromium/chrome/browser/chromeos/
Dwebui_menu_control.h14 class MenuModel; variable
32 virtual ui::MenuModel* GetMenuModel() = 0;
35 virtual void Activate(ui::MenuModel* model,
/external/chromium/chrome/browser/ui/toolbar/
Dwrench_menu_model_unittest.cc83 if (model.GetTypeAt(i) == ui::MenuModel::TYPE_SUBMENU) { in TEST_F()
89 ui::MenuModel* toolsModel = model.GetSubmenuModelAt(toolsModelIndex); in TEST_F()
Dback_forward_menu_model.h31 class BackForwardMenuModel : public ui::MenuModel {
61 virtual MenuModel* GetSubmenuModelAt(int index) const;
/external/chromium/chrome/browser/ui/gtk/status_icons/
Dstatus_icon_gtk.h33 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu);
/external/chromium/chrome/browser/ui/cocoa/status_icons/
Dstatus_icon_mac.h32 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu);
/external/chromium/chrome/browser/ui/views/status_icons/
Dstatus_icon_win.h46 virtual void UpdatePlatformContextMenu(ui::MenuModel* menu);

12