Home
last modified time | relevance | path

Searched refs:MenuItemView (Results 1 – 25 of 89) sorted by relevance

1234

/external/chromium_org/ui/views/controls/menu/
Dmenu_item_view.cc39 class EmptyMenuMenuItem : public MenuItemView {
41 explicit EmptyMenuMenuItem(MenuItemView* parent) in EmptyMenuMenuItem()
42 : MenuItemView(parent, 0, EMPTY) { in EmptyMenuMenuItem()
67 const int MenuItemView::kMenuItemViewID = 1001;
70 const int MenuItemView::kEmptyMenuItemViewID =
71 MenuItemView::kMenuItemViewID + 1;
74 int MenuItemView::icon_area_width_ = 0;
77 int MenuItemView::label_start_;
80 int MenuItemView::item_right_margin_;
83 int MenuItemView::pref_menu_height_;
[all …]
Dmenu_controller.h73 MenuItemView* Run(Widget* parent,
75 MenuItemView* root,
77 MenuItemView::AnchorPosition position,
88 MenuItemView::AnchorPosition GetAnchorPosition() { return state_.anchor; } in GetAnchorPosition()
147 friend class MenuItemView; variable
188 MenuItemView* item;
197 MenuItemView::AnchorPosition anchor;
233 MenuItemView* menu;
237 MenuItemView* parent;
250 void SetSelection(MenuItemView* menu_item, int types);
[all …]
Dmenu_delegate.h99 virtual bool ShowContextMenu(MenuItemView* source,
131 virtual bool IsTriggerableEvent(MenuItemView* view, const ui::Event& e);
147 virtual bool CanDrop(MenuItemView* menu, const OSExchangeData& data);
151 MenuItemView* menu,
156 virtual bool AreDropTypesRequired(MenuItemView* menu);
164 virtual int GetDropOperation(MenuItemView* item,
173 virtual int OnPerformDrop(MenuItemView* menu,
179 virtual bool CanDrag(MenuItemView* menu);
183 virtual void WriteDragData(MenuItemView* sender, OSExchangeData* data);
187 virtual int GetDragOperations(MenuItemView* sender);
[all …]
Dmenu_model_adapter.h17 class MenuItemView; variable
30 virtual void BuildMenu(MenuItemView* menu);
34 MenuItemView* CreateMenu();
43 static MenuItemView* AddMenuItemFromModelAt(ui::MenuModel* model,
45 MenuItemView* menu,
51 static MenuItemView* AppendMenuItemFromModel(ui::MenuModel* model,
53 MenuItemView* menu,
60 virtual MenuItemView* AppendMenuItem(MenuItemView* menu,
67 virtual bool IsTriggerableEvent(MenuItemView* source,
75 virtual void SelectionChanged(MenuItemView* menu) OVERRIDE;
[all …]
Dmenu_delegate.cc45 bool MenuDelegate::ShowContextMenu(MenuItemView* source, in ShowContextMenu()
77 bool MenuDelegate::IsTriggerableEvent(MenuItemView* source, in IsTriggerableEvent()
85 bool MenuDelegate::CanDrop(MenuItemView* menu, const OSExchangeData& data) { in CanDrop()
90 MenuItemView* menu, in GetDropFormats()
96 bool MenuDelegate::AreDropTypesRequired(MenuItemView* menu) { in AreDropTypesRequired()
100 int MenuDelegate::GetDropOperation(MenuItemView* item, in GetDropOperation()
107 int MenuDelegate::OnPerformDrop(MenuItemView* menu, in OnPerformDrop()
114 bool MenuDelegate::CanDrag(MenuItemView* menu) { in CanDrag()
118 void MenuDelegate::WriteDragData(MenuItemView* sender, OSExchangeData* data) { in WriteDragData()
122 int MenuDelegate::GetDragOperations(MenuItemView* sender) { in GetDragOperations()
[all …]
Dmenu_item_view.h62 class VIEWS_EXPORT MenuItemView : public View {
131 explicit MenuItemView(MenuDelegate* delegate);
146 static bool IsBubble(MenuItemView::AnchorPosition anchor);
158 MenuItemView* AddMenuItemAt(int index,
179 MenuItemView* AppendMenuItem(int item_id,
185 MenuItemView* AppendSubMenu(int item_id,
190 MenuItemView* AppendSubMenuWithIcon(int item_id,
196 MenuItemView* AppendMenuItemWithLabel(int item_id,
201 MenuItemView* AppendDelegateMenuItem(int item_id);
209 MenuItemView* AppendMenuItemWithIcon(int item_id,
[all …]
Dmenu_model_adapter.cc26 void MenuModelAdapter::BuildMenu(MenuItemView* menu) { in BuildMenu()
48 MenuItemView* MenuModelAdapter::CreateMenu() { in CreateMenu()
49 MenuItemView* item = new MenuItemView(this); in CreateMenu()
55 MenuItemView* MenuModelAdapter::AddMenuItemFromModelAt(ui::MenuModel* model, in AddMenuItemFromModelAt()
57 MenuItemView* menu, in AddMenuItemFromModelAt()
64 MenuItemView::Type type; in AddMenuItemFromModelAt()
69 type = MenuItemView::NORMAL; in AddMenuItemFromModelAt()
75 type = MenuItemView::CHECKBOX; in AddMenuItemFromModelAt()
81 type = MenuItemView::RADIO; in AddMenuItemFromModelAt()
88 type = MenuItemView::SEPARATOR; in AddMenuItemFromModelAt()
[all …]
Dmenu_runner.cc33 explicit MenuRunnerImpl(MenuItemView* menu);
35 MenuItemView* menu() { return menu_; } in menu()
46 MenuItemView::AnchorPosition anchor,
55 virtual void DropMenuClosed(NotifyType type, MenuItemView* menu) OVERRIDE;
56 virtual void SiblingMenuCreated(MenuItemView* menu) OVERRIDE;
63 MenuRunner::RunResult MenuDone(MenuItemView* result, int mouse_event_flags);
70 MenuItemView* menu_;
73 std::set<MenuItemView*> sibling_menus_;
105 MenuRunnerImpl::MenuRunnerImpl(MenuItemView* menu) in MenuRunnerImpl()
147 MenuItemView::AnchorPosition anchor, in RunMenuAt()
[all …]
Dsubmenu_view.h18 class MenuItemView; variable
43 explicit SubmenuView(MenuItemView* parent);
51 MenuItemView* GetMenuItemAt(int index);
114 MenuItemView* GetMenuItem() const;
117 void SetDropMenuItem(MenuItemView* item,
123 bool GetShowSelection(MenuItemView* item);
163 MenuItemView* item,
166 void SchedulePaintForDropIndicator(MenuItemView* item,
170 gfx::Rect CalculateDropIndicatorBounds(MenuItemView* item,
177 MenuItemView* parent_menu_item_;
[all …]
Dmenu_controller.cc90 bool MatchesMnemonic(MenuItemView* menu, char16 key) { in MatchesMnemonic()
96 bool TitleMatchesMnemonic(MenuItemView* menu, char16 key) { in TitleMatchesMnemonic()
182 pixels_per_second_ = MenuItemView::pref_menu_height() * 20; in MenuScrollTask()
282 anchor(MenuItemView::TOPLEFT), in State()
297 MenuItemView* MenuController::Run(Widget* parent, in Run()
299 MenuItemView* root, in Run()
301 MenuItemView::AnchorPosition position, in Run()
421 MenuItemView* result = result_; in Run()
466 MenuItemView* selected = state_.item; in Cancel()
505 MenuItemView* mouse_menu = NULL; in OnMouseDragged()
[all …]
Dmenu_model_adapter_unittest.cc207 MenuItemView* menu = new views::MenuItemView(&delegate); in TEST_F()
222 MenuItemView* item = menu->GetMenuItemByID(id); in TEST_F()
234 EXPECT_EQ(views::MenuItemView::NORMAL, item->GetType()); in TEST_F()
237 EXPECT_EQ(views::MenuItemView::CHECKBOX, item->GetType()); in TEST_F()
240 EXPECT_EQ(views::MenuItemView::RADIO, item->GetType()); in TEST_F()
246 EXPECT_EQ(views::MenuItemView::SUBMENU, item->GetType()); in TEST_F()
257 views::MenuItemView* submenu = menu->GetMenuItemByID(103); in TEST_F()
269 MenuItemView* item = menu->GetMenuItemByID(id); in TEST_F()
281 EXPECT_EQ(views::MenuItemView::NORMAL, item->GetType()); in TEST_F()
284 EXPECT_EQ(views::MenuItemView::CHECKBOX, item->GetType()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_menu_delegate.h31 class MenuItemView; variable
62 views::MenuItemView* parent,
81 views::MenuItemView* menu() { return menu_; } in menu()
84 views::MenuItemView* context_menu() { in context_menu()
97 bool IsTriggerableEvent(views::MenuItemView* menu,
102 views::MenuItemView* menu,
105 bool AreDropTypesRequired(views::MenuItemView* menu);
106 bool CanDrop(views::MenuItemView* menu, const ui::OSExchangeData& data);
107 int GetDropOperation(views::MenuItemView* item,
110 int OnPerformDrop(views::MenuItemView* menu,
[all …]
Dbookmark_menu_controller_views.h64 views::MenuItemView* menu() const;
67 views::MenuItemView* context_menu() const;
79 virtual bool IsTriggerableEvent(views::MenuItemView* view,
86 views::MenuItemView* menu,
89 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE;
90 virtual bool CanDrop(views::MenuItemView* menu,
92 virtual int GetDropOperation(views::MenuItemView* item,
95 virtual int OnPerformDrop(views::MenuItemView* menu,
98 virtual bool ShowContextMenu(views::MenuItemView* source,
102 virtual void DropMenuClosed(views::MenuItemView* menu) OVERRIDE;
[all …]
Dbookmark_menu_controller_views.cc29 using views::MenuItemView;
54 MenuItemView::AnchorPosition anchor; in RunMenuAt()
76 MenuItemView* BookmarkMenuController::menu() const { in menu()
80 MenuItemView* BookmarkMenuController::context_menu() const { in context_menu()
93 bool BookmarkMenuController::IsTriggerableEvent(views::MenuItemView* menu, in IsTriggerableEvent()
108 MenuItemView* menu, in GetDropFormats()
114 bool BookmarkMenuController::AreDropTypesRequired(MenuItemView* menu) { in AreDropTypesRequired()
118 bool BookmarkMenuController::CanDrop(MenuItemView* menu, in CanDrop()
124 MenuItemView* item, in GetDropOperation()
130 int BookmarkMenuController::OnPerformDrop(MenuItemView* menu, in OnPerformDrop()
[all …]
Dbookmark_bar_view_test.cc263 views::MenuItemView* menu = bb_view_->GetMenu(); in Step2()
274 views::MenuItemView* menu_to_select = in Step2()
290 views::MenuItemView* menu = bb_view_->GetMenu(); in Step3()
314 views::MenuItemView* menu = bb_view_->GetMenu(); in Step2()
339 views::MenuItemView* menu = bb_view_->GetMenu(); in Step4()
375 views::MenuItemView* menu = bb_view_->GetMenu(); in Step2()
379 views::MenuItemView* child_menu = in Step2()
391 views::MenuItemView* menu = bb_view_->GetMenu(); in Step3()
393 views::MenuItemView* child_menu = in Step3()
408 views::MenuItemView* menu = bb_view_->GetMenu(); in Step4()
[all …]
Dbookmark_menu_delegate.cc35 using views::MenuItemView;
65 MenuItemView* parent, in Init()
125 bool BookmarkMenuDelegate::IsTriggerableEvent(views::MenuItemView* menu, in IsTriggerableEvent()
153 MenuItemView* menu, in GetDropFormats()
161 bool BookmarkMenuDelegate::AreDropTypesRequired(MenuItemView* menu) { in AreDropTypesRequired()
165 bool BookmarkMenuDelegate::CanDrop(MenuItemView* menu, in CanDrop()
199 MenuItemView* item, in GetDropOperation()
239 MenuItemView* menu, in OnPerformDrop()
277 bool BookmarkMenuDelegate::ShowContextMenu(MenuItemView* source, in ShowContextMenu()
302 bool BookmarkMenuDelegate::CanDrag(MenuItemView* menu) { in CanDrag()
[all …]
/external/chromium/chrome/browser/ui/views/bookmarks/
Dbookmark_menu_controller_views.h67 views::MenuItemView::AnchorPosition position,
77 views::MenuItemView* menu() const { return menu_; } in menu()
80 views::MenuItemView* context_menu() const { in context_menu()
91 views::MenuItemView* menu,
94 virtual bool AreDropTypesRequired(views::MenuItemView* menu);
95 virtual bool CanDrop(views::MenuItemView* menu,
97 virtual int GetDropOperation(views::MenuItemView* item,
100 virtual int OnPerformDrop(views::MenuItemView* menu,
103 virtual bool ShowContextMenu(views::MenuItemView* source,
107 virtual void DropMenuClosed(views::MenuItemView* menu);
[all …]
Dbookmark_menu_controller_views.cc28 using views::MenuItemView;
58 MenuItemView::AnchorPosition anchor; in RunMenuAt()
67 MenuItemView::AnchorPosition position, in RunMenuAt()
122 MenuItemView* menu, in GetDropFormats()
130 bool BookmarkMenuController::AreDropTypesRequired(MenuItemView* menu) { in AreDropTypesRequired()
134 bool BookmarkMenuController::CanDrop(MenuItemView* menu, in CanDrop()
162 MenuItemView* item, in GetDropOperation()
182 int BookmarkMenuController::OnPerformDrop(MenuItemView* menu, in OnPerformDrop()
207 bool BookmarkMenuController::ShowContextMenu(MenuItemView* source, in ShowContextMenu()
227 void BookmarkMenuController::DropMenuClosed(MenuItemView* menu) { in DropMenuClosed()
[all …]
Dbookmark_bar_view_test.cc287 views::MenuItemView* menu = bb_view_->GetMenu(); in Step2()
298 views::MenuItemView* menu_to_select = in Step2()
315 views::MenuItemView* menu = bb_view_->GetMenu(); in Step3()
341 views::MenuItemView* menu = bb_view_->GetMenu(); in Step2()
358 views::MenuItemView* menu = bb_view_->GetMenu(); in Step3()
391 views::MenuItemView* menu = bb_view_->GetMenu(); in Step2()
395 views::MenuItemView* child_menu = in Step2()
407 views::MenuItemView* menu = bb_view_->GetMenu(); in Step3()
408 views::MenuItemView* child_menu = in Step3()
423 views::MenuItemView* menu = bb_view_->GetMenu(); in Step4()
[all …]
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dwrench_menu.h30 class MenuItemView; variable
68 virtual bool IsTriggerableEvent(views::MenuItemView* menu,
71 views::MenuItemView* menu,
74 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE;
75 virtual bool CanDrop(views::MenuItemView* menu,
77 virtual int GetDropOperation(views::MenuItemView* item,
80 virtual int OnPerformDrop(views::MenuItemView* menu,
83 virtual bool ShowContextMenu(views::MenuItemView* source,
87 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE;
88 virtual void WriteDragData(views::MenuItemView* sender,
[all …]
/external/chromium/chrome/browser/ui/views/extensions/
Dbrowser_action_overflow_menu_controller.h51 virtual bool ShowContextMenu(views::MenuItemView* source,
55 virtual void DropMenuClosed(views::MenuItemView* menu);
59 views::MenuItemView* menu,
62 virtual bool AreDropTypesRequired(views::MenuItemView* menu);
63 virtual bool CanDrop(views::MenuItemView* menu, const ui::OSExchangeData& data);
64 virtual int GetDropOperation(views::MenuItemView* item,
67 virtual int OnPerformDrop(views::MenuItemView* menu,
72 virtual bool CanDrag(views::MenuItemView* menu);
73 virtual void WriteDragData(views::MenuItemView* sender, ui::OSExchangeData* data);
74 virtual int GetDragOperations(views::MenuItemView* sender);
[all …]
Dbrowser_action_overflow_menu_controller.cc30 menu_.reset(new views::MenuItemView(this)); in BrowserActionOverflowMenuController()
67 views::MenuItemView::AnchorPosition anchor = base::i18n::IsRTL() ? in RunMenu()
68 views::MenuItemView::TOPLEFT : views::MenuItemView::TOPRIGHT; in RunMenu()
91 views::MenuItemView* source, in ShowContextMenu()
116 views::MenuItemView* menu) { in DropMenuClosed()
121 views::MenuItemView* menu, in GetDropFormats()
129 views::MenuItemView* menu) { in AreDropTypesRequired()
134 views::MenuItemView* menu, const OSExchangeData& data) { in CanDrop()
142 views::MenuItemView* item, in GetDropOperation()
162 views::MenuItemView* menu, in OnPerformDrop()
[all …]
/external/chromium_org/chrome/browser/ui/views/extensions/
Dbrowser_action_overflow_menu_controller.h54 virtual bool ShowContextMenu(views::MenuItemView* source,
58 virtual void DropMenuClosed(views::MenuItemView* menu) OVERRIDE;
62 views::MenuItemView* menu,
65 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE;
66 virtual bool CanDrop(views::MenuItemView* menu,
68 virtual int GetDropOperation(views::MenuItemView* item,
71 virtual int OnPerformDrop(views::MenuItemView* menu,
76 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE;
77 virtual void WriteDragData(views::MenuItemView* sender,
79 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE;
[all …]
Dbrowser_action_overflow_menu_controller.cc38 menu_ = new views::MenuItemView(this); in BrowserActionOverflowMenuController()
76 views::MenuItemView::AnchorPosition anchor = views::MenuItemView::TOPRIGHT; in RunMenu()
103 views::MenuItemView* source, in ShowContextMenu()
119 NULL, gfx::Rect(p, gfx::Size()), views::MenuItemView::TOPLEFT, in ShowContextMenu()
132 views::MenuItemView* menu) { in DropMenuClosed()
137 views::MenuItemView* menu, in GetDropFormats()
145 views::MenuItemView* menu) { in AreDropTypesRequired()
150 views::MenuItemView* menu, const OSExchangeData& data) { in CanDrop()
158 views::MenuItemView* item, in GetDropOperation()
178 views::MenuItemView* menu, in OnPerformDrop()
[all …]
/external/chromium_org/chrome/browser/ui/views/
Dmenu_item_view_test.cc52 menu_ = new views::MenuItemView(this); in SetUp()
83 views::MenuItemView::TOPLEFT, in OnMenuButtonClicked()
98 virtual void BuildMenu(views::MenuItemView* menu) { in BuildMenu()
102 views::MenuItemView* menu_;
125 virtual void BuildMenu(views::MenuItemView* menu) OVERRIDE { in BuildMenu()
147 views::MenuItemView* item = submenu->GetMenuItemAt(INDEX); in Step1()
189 virtual void BuildMenu(views::MenuItemView* menu) OVERRIDE { in BuildMenu()
214 views::MenuItemView::NORMAL, in Step1()
220 views::MenuItemView* item = submenu->GetMenuItemAt(SELECT_INDEX); in Step1()
246 views::MenuItemView* inserted_item_;
[all …]

1234