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

Unified Diff: ui/views/accessible_pane_view.h

Issue 10949005: Fix toolbar keyboard accessibility on Views (alternative impl). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos compile 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
Index: ui/views/accessible_pane_view.h
diff --git a/ui/views/accessible_pane_view.h b/ui/views/accessible_pane_view.h
index 0d563d7c726d60523f6894e02420dba0648556db..181608ef208ebabf5a4657ac40335ae19fc6665c 100644
--- a/ui/views/accessible_pane_view.h
+++ b/ui/views/accessible_pane_view.h
@@ -62,6 +62,15 @@ class VIEWS_EXPORT AccessiblePaneView : public View,
// other than the first focusable child.
virtual View* GetDefaultFocusableChild();
+ // Returns the parent of |v|. Subclasses can override this if
+ // they need custom focus search behavior.
+ virtual View* GetParentForFocusSearch(View* v);
+
+ // Returns true if |v| is contained within the hierarchy rooted at |root|
+ // for the purpose of focus searching. Subclasses can override this if
+ // they need custom focus search behavior.
+ virtual bool ContainsForFocusSearch(View* root, const View* v);
+
// Remove pane focus.
virtual void RemovePaneFocus();
@@ -90,6 +99,8 @@ class VIEWS_EXPORT AccessiblePaneView : public View,
ui::Accelerator left_key_;
ui::Accelerator right_key_;
+ friend class AccessiblePaneViewFocusSearch;
+
DISALLOW_COPY_AND_ASSIGN(AccessiblePaneView);
};

Powered by Google App Engine
This is Rietveld 408576698