Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: ui/views/controls/menu/menu_controller.h

Issue 1129203003: Skips disabled menu items when selection is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skips disabled menu items when selection is changed (test) Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller.h
diff --git a/ui/views/controls/menu/menu_controller.h b/ui/views/controls/menu/menu_controller.h
index 76060b0164535417564b6d0e727b01a3dded88dd..1459023180afc3de5427b30e2f17dcc2072a980a 100644
--- a/ui/views/controls/menu/menu_controller.h
+++ b/ui/views/controls/menu/menu_controller.h
@@ -435,9 +435,13 @@ class VIEWS_EXPORT MenuController : public WidgetObserver {
// Selects the next/previous menu item.
void IncrementSelection(int delta);
+ // Returns the first selectable child menu item of |parent|. If there are no
+ // selectable menu items NULL is returned.
+ MenuItemView* FindFirstSelectableMenuItem(MenuItemView* parent);
+
// Returns the next selectable child menu item of |parent| starting at |index|
- // and incrementing index by |delta|. If there are no more selected menu items
- // NULL is returned.
+ // and incrementing index by |delta|. If there are no more selectable menu
+ // items NULL is returned.
MenuItemView* FindNextSelectableMenuItem(MenuItemView* parent,
int index,
int delta);
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698