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

Unified Diff: ui/views/view.h

Issue 2119413004: a11y: Exclude children of nested keyboard accessible controls from a11y tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor to use ui::AX_ROLE_IGNORED for excluding a11y elements from the tree instead of focusabili… Created 4 years 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/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index a6811afca8a5c084b0d81d5ab375e483cc46c006..8ded0e44f49cceb5159e9510923533b0e92f8dd4 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -779,7 +779,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// IMPORTANT NOTE: loops in the focus hierarchy are not supported.
void SetNextFocusableView(View* view);
- // Sets |focus_behavior| and advances focus if necessary.
+ // Gets/sets |focus_behavior|. SetFocusBehavior() advances focus if necessary.
+ FocusBehavior focus_behavior() const { return focus_behavior_; }
void SetFocusBehavior(FocusBehavior focus_behavior);
// Returns true if this view is focusable, |enabled_| and drawn.
@@ -1154,9 +1155,6 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Focus ---------------------------------------------------------------------
- // Returns last set focus behavior.
- FocusBehavior focus_behavior() const { return focus_behavior_; }
-
// Override to be notified when focus has changed either to or from this View.
virtual void OnFocus();
virtual void OnBlur();

Powered by Google App Engine
This is Rietveld 408576698