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

Unified Diff: ui/views/accessibility/ax_window_obj_wrapper.cc

Issue 779103002: Revert of Various changes required to support ChromeVox Next to read Views and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/accessibility/ax_window_obj_wrapper.cc
diff --git a/ui/views/accessibility/ax_window_obj_wrapper.cc b/ui/views/accessibility/ax_window_obj_wrapper.cc
index ac045826b938c49b68aa17fafdc513d2ebf4fdee..b358de58c917ce4ec7c8a2328d726f83dda29349 100644
--- a/ui/views/accessibility/ax_window_obj_wrapper.cc
+++ b/ui/views/accessibility/ax_window_obj_wrapper.cc
@@ -49,13 +49,8 @@
// TODO(dtseng): Set better states.
out_node_data->state = 0;
out_node_data->location = window_->bounds();
-
- // Root windows currently have a non readable name (e.g. Display1234...);
- // ignore them unless the window is the only node in the tree.
- if (window_->parent() || window_->children().size() == 0) {
- out_node_data->AddStringAttribute(ui::AX_ATTR_NAME,
- base::UTF16ToUTF8(window_->title()));
- }
+ out_node_data->AddStringAttribute(
+ ui::AX_ATTR_NAME, base::UTF16ToUTF8(window_->title()));
}
int32 AXWindowObjWrapper::GetID() {
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698