Commit de0ac456 authored by Sara Kato's avatar Sara Kato Committed by Commit Bot

Rename BuildImportaceTable to BuildImportanceTable

Fix Typo in "importance"

Test: None (build passes)
Bug: None (fix typo)
Change-Id: I47997140d94d50c633a02b22f6d7c96741a5e0fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2093973Reviewed-by: default avatarSara Kato <sarakato@chromium.org>
Reviewed-by: default avatarHiroki Sato <hirokisato@chromium.org>
Commit-Queue: Sara Kato <sarakato@chromium.org>
Commit-Queue: Hiroki Sato <hirokisato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748507}
parent 4fd51504
......@@ -109,7 +109,8 @@ void AXTreeSourceArc::NotifyAccessibilityEvent(AXEventData* event_data) {
}
}
std::vector<bool> is_important(event_data->node_data.size());
BuildImportaceTable(event_data->node_data, node_data_index_map, is_important);
BuildImportanceTable(event_data->node_data, node_data_index_map,
is_important);
for (int i = event_data->node_data.size() - 1; i >= 0; --i) {
int32_t id = event_data->node_data[i]->id;
AXNodeInfoData* node = event_data->node_data[i].get();
......@@ -391,7 +392,7 @@ bool AXTreeSourceArc::ComputeIsClickableLeaf(
return true;
}
void AXTreeSourceArc::BuildImportaceTable(
void AXTreeSourceArc::BuildImportanceTable(
const std::vector<AXNodeInfoDataPtr>& nodes,
const std::map<int32_t, int32_t>& node_id_to_nodes_index,
std::vector<bool>& out_values) const {
......
......@@ -111,7 +111,7 @@ class AXTreeSourceArc : public ui::AXTreeSource<AccessibilityInfoDataWrapper*,
// Builds a mapping from index in |nodes| to whether ignored state should be
// applied to the node in chrome accessibility.
// Assuming that |nodes[0]| is a root of the tree.
void BuildImportaceTable(
void BuildImportanceTable(
const std::vector<mojom::AccessibilityNodeInfoDataPtr>& nodes,
const std::map<int32_t, int32_t>& node_id_to_nodes_index,
std::vector<bool>& out_node) const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment