Searched refs:submenu_ (Results 1 – 9 of 9) sorted by relevance
/external/chromium_org/ui/views/controls/menu/ |
D | menu_host_root_view.cc | 16 submenu_(submenu), in MenuHostRootView() 27 GetMenuController()->OnMousePressed(submenu_, event); in OnMousePressed() 33 GetMenuController()->OnMouseDragged(submenu_, event); in OnMouseDragged() 43 GetMenuController()->OnMouseReleased(submenu_, event); in OnMouseReleased() 50 GetMenuController()->OnMouseMoved(submenu_, event); in OnMouseMoved() 57 GetMenuController()->OnMouseWheel(submenu_, event); in OnMouseWheel() 63 return submenu_->OnMouseWheel(event); in OnMouseWheel() 75 GetMenuController()->OnGestureEvent(submenu_, event); in DispatchGestureEvent() 79 return submenu_ ? submenu_->GetMenuItem()->GetMenuController() : NULL; in GetMenuController()
|
D | menu_host.cc | 31 : submenu_(submenu), in MenuHost() 47 submenu_->GetMenuItem()->GetMenuController(); in InitMenuHost() 48 const MenuConfig& menu_config = submenu_->GetMenuItem()->GetMenuConfig(); in InitMenuHost() 50 bool bubble_border = submenu_->GetScrollViewContainer() && in InitMenuHost() 51 submenu_->GetScrollViewContainer()->HasBubbleBorder(); in InitMenuHost() 117 return new MenuHostRootView(this, submenu_); in CreateRootView() 124 submenu_->GetMenuItem()->GetMenuController(); in OnMouseCaptureLost() 135 submenu_->MenuHostDestroyed(); in OnNativeWidgetDestroyed() 145 submenu_->GetMenuItem()->GetMenuController(); in OnOwnerClosing()
|
D | menu_item_view.cc | 96 submenu_(NULL), in MenuItemView() 236 if (!submenu_) in AddMenuItemAt() 238 DCHECK_GE(submenu_->child_count(), index); in AddMenuItemAt() 240 submenu_->AddChildViewAt(new MenuSeparator(this, separator_style), index); in AddMenuItemAt() 254 submenu_->AddChildViewAt(item, index); in AddMenuItemAt() 259 DCHECK(submenu_); in RemoveMenuItemAt() 261 DCHECK_GT(submenu_->child_count(), index); in RemoveMenuItemAt() 263 View* item = submenu_->child_at(index); in RemoveMenuItemAt() 265 submenu_->RemoveChildView(item); in RemoveMenuItemAt() 322 const int index = submenu_ ? submenu_->child_count() : 0; in AppendMenuItemImpl() [all …]
|
D | menu_host_root_view.h | 25 void ClearSubmenu() { submenu_ = NULL; } in ClearSubmenu() 45 SubmenuView* submenu_; variable
|
D | menu_host.h | 65 SubmenuView* submenu_; variable
|
D | menu_controller.cc | 181 MenuScrollTask() : submenu_(NULL), is_scrolling_up_(false), start_y_(0) { in MenuScrollTask() 193 if (new_menu == submenu_ && is_scrolling_up_ == new_is_up) in Update() 198 submenu_ = new_menu; in Update() 211 submenu_ = NULL; in StopScrolling() 216 SubmenuView* submenu() const { return submenu_; } in submenu() 220 DCHECK(submenu_); in Run() 221 gfx::Rect vis_rect = submenu_->GetVisibleBounds(); in Run() 227 std::min(submenu_->height() - vis_rect.height(), start_y_ + delta_y)); in Run() 228 submenu_->ScrollRectToVisible(vis_rect); in Run() 232 SubmenuView* submenu_; member in views::MenuController::MenuScrollTask
|
D | menu_item_view.h | 464 SubmenuView* submenu_; variable
|
/external/chromium_org/chrome/browser/ui/views/ |
D | menu_item_view_test.cc | 272 submenu_(NULL), in MenuItemViewTestInsertWithSubmenu() 286 submenu_ = menu->AppendSubMenu(1, ASCIIToUTF16("My Submenu")); in BuildMenu() 287 submenu_->AppendMenuItemWithLabel(101, ASCIIToUTF16("submenu item 1")); in BuildMenu() 288 submenu_->AppendMenuItemWithLabel(101, ASCIIToUTF16("submenu item 2")); in BuildMenu() 300 Click(submenu_, in Step1() 327 views::MenuItemView* submenu_; member in MenuItemViewTestInsertWithSubmenu 425 submenu_(NULL) { in MenuItemViewTestRemoveWithSubmenu() 439 submenu_ = menu->AppendSubMenu(2, ASCIIToUTF16("My Submenu")); in BuildMenu() 440 submenu_->AppendMenuItemWithLabel(101, ASCIIToUTF16("submenu item 1")); in BuildMenu() 441 submenu_->AppendMenuItemWithLabel(102, ASCIIToUTF16("submenu item 2")); in BuildMenu() [all …]
|
/external/chromium_org/ui/views/examples/ |
D | menu_example.cc | 52 scoped_ptr<ui::SimpleMenuModel> submenu_; member in views::examples::__anon94e941410111::ExampleMenuModel 97 submenu_.reset(new ui::SimpleMenuModel(this)); in ExampleMenuModel() 98 submenu_->AddItem(COMMAND_DO_SOMETHING, ASCIIToUTF16("Do Something 2")); in ExampleMenuModel() 99 AddSubMenu(0, ASCIIToUTF16("Submenu"), submenu_.get()); in ExampleMenuModel()
|