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

Unified Diff: components/exo/shell_surface.cc

Issue 2640123004: Initial support for native accessibility in ARC (Closed)
Patch Set: address feedback Created 3 years, 11 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: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 40fd30b14503b90eabadc448c3f7b96f2369cece..4f48a31e2a0f89c349611ad2bfb010e612113281 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -22,6 +22,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
+#include "components/exo/ax_tree_source_surface.h"
#include "components/exo/surface.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/cursor_client.h"
@@ -871,6 +872,14 @@ gfx::Size ShellSurface::GetMinimumSize() const {
return gfx::Size(1, 1);
}
+void ShellSurface::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ if (surface_ && surface_->ax_tree_source()) {
+ ui::AXTreeData data;
+ surface_->ax_tree_source()->GetTreeData(&data);
+ node_data->AddIntAttribute(ui::AX_ATTR_CHILD_TREE_ID, data.tree_id);
+ }
+}
+
////////////////////////////////////////////////////////////////////////////////
// ash::wm::WindowStateObserver overrides:

Powered by Google App Engine
This is Rietveld 408576698