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

Unified Diff: ui/views/focus/focus_search.h

Issue 10982007: Merge 157914 - Fix toolbar keyboard accessibility on Views (alternative impl). (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 3 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 | « ui/views/accessible_pane_view_unittest.cc ('k') | ui/views/focus/focus_search.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/focus_search.h
===================================================================
--- ui/views/focus/focus_search.h (revision 158380)
+++ ui/views/focus/focus_search.h (working copy)
@@ -68,6 +68,18 @@
FocusTraversable** focus_traversable,
View** focus_traversable_view);
+ protected:
+ // Get the parent, but stay within the root. Returns NULL if asked for
+ // the parent of |root_|. Subclasses can override this if they need custom
+ // focus search behavior.
+ virtual View* GetParent(View* v);
+
+ // Returns true if |v| is contained within the hierarchy rooted at |root|.
+ // Subclasses can override this if they need custom focus search behavior.
+ virtual bool Contains(View* root, const View* v);
+
+ View* root() const { return root_; }
+
private:
// Convenience method that returns true if a view is focusable and does not
// belong to the specified group.
@@ -82,10 +94,6 @@
// specified view is returned.
View* FindSelectedViewForGroup(View* view);
- // Get the parent, but stay within the root. Returns NULL if asked for
- // the parent of root_.
- View* GetParent(View* view);
-
// Returns the next focusable view or view containing a FocusTraversable
// (NULL if none was found), starting at the starting_view.
// |check_starting_view|, |can_go_up| and |can_go_down| controls the
« no previous file with comments | « ui/views/accessible_pane_view_unittest.cc ('k') | ui/views/focus/focus_search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698