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

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

Issue 10949005: Fix toolbar keyboard accessibility on Views (alternative impl). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test on linux_chromeos 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
diff --git a/ui/views/focus/focus_search.h b/ui/views/focus/focus_search.h
index 345a6cc4d60a49c2abe12bea2da0885cc94cad12..76b367f59eecc26d06b98c8dedfff77789301c69 100644
--- a/ui/views/focus/focus_search.h
+++ b/ui/views/focus/focus_search.h
@@ -68,6 +68,18 @@ class VIEWS_EXPORT FocusSearch {
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 @@ class VIEWS_EXPORT FocusSearch {
// 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