Lines Matching refs:SUBMENU
179 DCHECK(part.submenu);
180 SubmenuView* new_menu = part.submenu;
186 start_y_ = part.submenu->GetVisibleBounds().y();
205 SubmenuView* submenu() const { return submenu_; }
487 part.submenu->child_count() == 1 &&
488 part.submenu->child_at(0)->id()
545 return part.submenu && part.submenu->OnMouseWheel(event);
578 // current menu is unset. Make sure the submenu remains open by sending the
588 if (!part.submenu)
590 part.submenu->OnGestureEvent(event);
659 // If the menu has a submenu, schedule the submenu to open.
723 part.submenu = source;
738 void MenuController::UpdateSubmenuSelection(SubmenuView* submenu) {
739 if (submenu->IsShowing()) {
742 submenu->GetMenuItem()->GetRootMenuItem()->GetSubmenu();
745 HandleMouseLocation(submenu, point);
786 current_path[i]->GetType() == MenuItemView::SUBMENU) {
820 menu_item->GetType() != MenuItemView::SUBMENU)) {
888 // On a press we immediately commit the selection, that way a submenu
909 // Points are in the coordinates of the submenu, need to map to that of
1262 // It is currently not possible to show a submenu recursively in a bubble.
1280 // Set the selection immediately, making sure the submenu is only open
1393 part->submenu = menu;
1403 part->submenu = menu;
1415 bool MenuController::DoesSubmenuContainLocation(SubmenuView* submenu,
1418 View::ConvertPointToTarget(NULL, submenu, &view_loc);
1419 gfx::Rect vis_rect = submenu->GetVisibleBounds();
1472 // The submenu should be open, open the submenu if the item has a submenu.
1483 if (scroll_task_.get() && scroll_task_->submenu()) {
1490 item->GetSubmenu() == scroll_task_->submenu());
1620 SubmenuView* submenu = item->GetSubmenu();
1621 DCHECK(submenu);
1623 gfx::Size pref = submenu->GetScrollViewContainer()->GetPreferredSize();
1802 SubmenuView* submenu = item->GetSubmenu();
1803 DCHECK(submenu);
1805 gfx::Size pref = submenu->GetScrollViewContainer()->GetPreferredSize();
1852 submenu->GetScrollViewContainer()->SetBubbleArrowOffset(
1867 submenu->GetScrollViewContainer()->SetBubbleArrowOffset(
1985 SubmenuView* submenu = parent->GetSubmenu();
1986 DCHECK(submenu);
1989 for (int i = 0, menu_item_count = submenu->GetMenuItemCount();
1991 MenuItemView* child = submenu->GetMenuItemAt(i);
2014 SubmenuView* submenu = parent->GetSubmenu();
2015 DCHECK(submenu);
2017 // There's only one match, activate it (or open if it has a submenu).
2018 if (submenu->GetMenuItemAt(details.first_match)->HasSubmenu()) {
2019 SetSelection(submenu->GetMenuItemAt(details.first_match),
2022 Accept(submenu->GetMenuItemAt(details.first_match), 0);
2026 SetSelection(submenu->GetMenuItemAt(details.first_match),
2029 SetSelection(submenu->GetMenuItemAt(details.next_match),
2077 SubmenuView* submenu = state_.item->GetRootMenuItem()->GetSubmenu();
2078 submenu->ReleaseCapture();
2080 if (submenu->GetWidget()->GetNativeView() &&
2082 views::HWNDForNativeView(submenu->GetWidget()->GetNativeView()),
2291 // On exit if the user hasn't selected an item with a submenu, move the