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

Unified Diff: content/browser/accessibility/browser_accessibility_win_unittest.cc

Issue 222073002: Revert of Refactor content/renderer/accessibility to use AXTreeSerializer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: content/browser/accessibility/browser_accessibility_win_unittest.cc
diff --git a/content/browser/accessibility/browser_accessibility_win_unittest.cc b/content/browser/accessibility/browser_accessibility_win_unittest.cc
index 42b211b249698ee012b2fe6173a2739bcd79ed6a..83edae7f9e12dfdb937d187ffd0b9f352b2d17c6 100644
--- a/content/browser/accessibility/browser_accessibility_win_unittest.cc
+++ b/content/browser/accessibility/browser_accessibility_win_unittest.cc
@@ -235,7 +235,7 @@
text2.SetName("old text");
AccessibilityHostMsg_EventParams param;
param.event_type = ui::AX_EVENT_CHILDREN_CHANGED;
- param.update.nodes.push_back(text2);
+ param.nodes.push_back(text2);
param.id = text2.id;
std::vector<AccessibilityHostMsg_EventParams> events;
events.push_back(param);
@@ -307,7 +307,7 @@
root.child_ids.clear();
AccessibilityHostMsg_EventParams param;
param.event_type = ui::AX_EVENT_CHILDREN_CHANGED;
- param.update.nodes.push_back(root);
+ param.nodes.push_back(root);
param.id = root.id;
std::vector<AccessibilityHostMsg_EventParams> events;
events.push_back(param);
@@ -637,8 +637,8 @@
params.push_back(AccessibilityHostMsg_EventParams());
AccessibilityHostMsg_EventParams* msg = &params[0];
msg->event_type = ui::AX_EVENT_LOAD_COMPLETE;
- msg->update.nodes.push_back(tree1_1);
- msg->update.nodes.push_back(tree1_2);
+ msg->nodes.push_back(tree1_1);
+ msg->nodes.push_back(tree1_2);
msg->id = tree1_1.id;
manager->OnAccessibilityEvents(params);
@@ -662,9 +662,9 @@
tree2_2.id = 3;
tree2_2.role = ui::AX_ROLE_BUTTON;
- msg->update.nodes.clear();
- msg->update.nodes.push_back(tree2_1);
- msg->update.nodes.push_back(tree2_2);
+ msg->nodes.clear();
+ msg->nodes.push_back(tree2_1);
+ msg->nodes.push_back(tree2_2);
msg->id = tree2_1.id;
// Fire another load complete.

Powered by Google App Engine
This is Rietveld 408576698