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

Unified Diff: ui/accessibility/ax_tree_data.cc

Issue 1761633002: One accessibility tree per frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix is-richly-editable test Created 4 years, 9 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
« no previous file with comments | « ui/accessibility/ax_tree_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree_data.cc
diff --git a/ui/accessibility/ax_tree_data.cc b/ui/accessibility/ax_tree_data.cc
index ef7894fbfeae4e8d1c9a3aab4846a528c83ee0ef..274da85f885c1c4df648ba1b393908977a65a1bd 100644
--- a/ui/accessibility/ax_tree_data.cc
+++ b/ui/accessibility/ax_tree_data.cc
@@ -19,6 +19,7 @@ namespace ui {
AXTreeData::AXTreeData()
: tree_id(-1),
parent_tree_id(-1),
+ focused_tree_id(-1),
loaded(false),
loading_progress(0.0),
focus_id(-1),
@@ -42,6 +43,8 @@ std::string AXTreeData::ToString() const {
result += " tree_id=" + IntToString(tree_id);
if (parent_tree_id != -1)
result += " parent_tree_id=" + IntToString(parent_tree_id);
+ if (focused_tree_id != -1)
+ result += " focused_tree_id=" + IntToString(focused_tree_id);
if (!url.empty())
result += " url=" + url;
@@ -75,6 +78,7 @@ std::string AXTreeData::ToString() const {
bool operator==(const AXTreeData& lhs, const AXTreeData& rhs) {
return (lhs.tree_id == rhs.tree_id &&
lhs.parent_tree_id == rhs.parent_tree_id &&
+ lhs.focused_tree_id == rhs.focused_tree_id &&
lhs.url == rhs.url &&
lhs.title == rhs.title &&
lhs.mimetype == rhs.mimetype &&
« no previous file with comments | « ui/accessibility/ax_tree_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698