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

Unified Diff: chrome/browser/extensions/api/automation/automation_apitest.cc

Issue 940753002: accessibility: Simpler AXTree root accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 5 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 | « no previous file | content/browser/accessibility/accessibility_ipc_error_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/automation/automation_apitest.cc
diff --git a/chrome/browser/extensions/api/automation/automation_apitest.cc b/chrome/browser/extensions/api/automation/automation_apitest.cc
index c103439c4ec2860ad3307df854ec354de7a5e890..18d62a77d002bf9ee9d997f0c913056c72fa0833 100644
--- a/chrome/browser/extensions/api/automation/automation_apitest.cc
+++ b/chrome/browser/extensions/api/automation/automation_apitest.cc
@@ -237,10 +237,10 @@ class TreeSerializationState {
int routing_id,
BrowserContext* browser_context) {
ui::AXTreeUpdate update;
- serializer->SerializeChanges(tree->GetRoot(), &update);
+ serializer->SerializeChanges(tree->root(), &update);
SendUpdate(update,
ui::AX_EVENT_LAYOUT_COMPLETE,
- tree->GetRoot()->id(),
+ tree->root()->id(),
routing_id,
browser_context);
}
@@ -398,14 +398,14 @@ void TransformTree(TreeSerializer* source_serializer,
ui::AXEvent event =
is_last_update ? AX_EVENT_ASSERT_EQUAL : AX_EVENT_IGNORE;
state.SendUpdate(
- update, event, target_tree->GetRoot()->id(), kTab0Rid, browser_context);
+ update, event, target_tree->root()->id(), kTab0Rid, browser_context);
}
}
// Helper method to send a no-op tree update to tab 0 with the given event.
void SendEvent(ui::AXEvent event, content::BrowserContext* browser_context) {
ui::AXTreeUpdate update;
- ui::AXNode* root = state.tree0->GetRoot();
+ ui::AXNode* root = state.tree0->root();
state.serializer0->SerializeChanges(root, &update);
state.SendUpdate(update, event, root->id(), kTab0Rid, browser_context);
}
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_ipc_error_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698