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

Unified Diff: ui/views/view.cc

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.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 92223157d4c8671aaa2c55aab4c006d1ee25b265..26d258f589ab8dbc610978aeb83b374431e193a6 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1339,10 +1339,10 @@ bool View::HandleAccessibleAction(const ui::AXActionData& action_data) {
gfx::NativeViewAccessible View::GetNativeViewAccessible() {
if (!native_view_accessibility_)
- native_view_accessibility_ = NativeViewAccessibility::Create(this);
+ native_view_accessibility_ = NativeViewAccessibility::GetOrCreate(this);
if (native_view_accessibility_)
return native_view_accessibility_->GetNativeObject();
- return NULL;
+ return nullptr;
}
void View::NotifyAccessibilityEvent(
@@ -1353,7 +1353,7 @@ void View::NotifyAccessibilityEvent(
if (send_native_event && GetWidget()) {
if (!native_view_accessibility_)
- native_view_accessibility_ = NativeViewAccessibility::Create(this);
+ native_view_accessibility_ = NativeViewAccessibility::GetOrCreate(this);
if (native_view_accessibility_)
native_view_accessibility_->NotifyAccessibilityEvent(event_type);
}

Powered by Google App Engine
This is Rietveld 408576698