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

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: Fix compile error and final test in NativeWidgetMacTest. Created 4 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/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 55cc02bb54da4eaa205df9f8adc17d5f84245279..86e38768bcc054f5d2261474897a245562e4149e 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -774,6 +774,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// IMPORTANT NOTE: loops in the focus hierarchy are not supported.
void SetNextFocusableView(View* view);
+ // Returns last set focus behavior.
+ FocusBehavior focus_behavior() const { return focus_behavior_; }
// Sets |focus_behavior| and advances focus if necessary.
void SetFocusBehavior(FocusBehavior focus_behavior);
@@ -940,6 +942,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Accessibility -------------------------------------------------------------
+ // Gets the NativeViewAccessibility instance for this view, and creates one if
+ // it doesn't yet exist.
+ NativeViewAccessibility* GetNativeViewAccessibility();
+
// Modifies |state| to reflect the current accessible state of this view.
virtual void GetAccessibleState(ui::AXViewState* state) { }
@@ -1139,9 +1145,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