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

Unified Diff: ui/accessibility/ax_tree_data.cc

Issue 1705853002: NOT FOR REVIEW. ax tree focus with debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crash Created 4 years, 10 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') | ui/accessibility/ax_tree_unittest.cc » ('j') | 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 9475a597ff5df7471e3ff10b2fb55efba700198b..5094c3b9890dfed05ed62ef64c5c35f7c4ba9b98 100644
--- a/ui/accessibility/ax_tree_data.cc
+++ b/ui/accessibility/ax_tree_data.cc
@@ -21,6 +21,7 @@ AXTreeData::AXTreeData()
parent_tree_id(-1),
loaded(false),
loading_progress(0.0),
+ focus_id(-1),
sel_anchor_object_id(-1),
sel_anchor_offset(-1),
sel_focus_object_id(-1),
@@ -54,6 +55,9 @@ std::string AXTreeData::ToString() const {
if (loading_progress != 0.0)
result += " loading_progress=" + DoubleToString(loading_progress);
+ if (focus_id != -1)
+ result += " focus_id=" + IntToString(focus_id);
+
if (sel_anchor_object_id != -1) {
result += " sel_anchor_object_id=" + IntToString(sel_anchor_object_id);
result += " sel_anchor_offset=" + IntToString(sel_anchor_offset);
@@ -75,6 +79,7 @@ bool operator==(const AXTreeData& lhs, const AXTreeData& rhs) {
lhs.doctype == rhs.doctype &&
lhs.loaded == rhs.loaded &&
lhs.loading_progress == rhs.loading_progress &&
+ lhs.focus_id == rhs.focus_id &&
lhs.sel_anchor_object_id == rhs.sel_anchor_object_id &&
lhs.sel_anchor_offset == rhs.sel_anchor_offset &&
lhs.sel_focus_object_id == rhs.sel_focus_object_id &&
« no previous file with comments | « ui/accessibility/ax_tree_data.h ('k') | ui/accessibility/ax_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698