#include "chrome/browser/compose/compose_ax_serialization_utils.h"
#include "components/optimization_guide/proto/features/compose.pb.h"
#include "ui/accessibility/ax_enums.mojom-shared.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/accessibility/ax_relative_bounds.h"
#include "ui/accessibility/ax_tree_data.h"
#include "ui/accessibility/ax_tree_update.h"
namespace {
optimization_guide::proto::AXTextAffinity TextAffinityToProto(
ax::mojom::TextAffinity affinity) { … }
optimization_guide::proto::AXRole RoleToProto(ax::mojom::Role role) { … }
optimization_guide::proto::AXStringAttribute StringAttributeToProto(
ax::mojom::StringAttribute attribute) { … }
optimization_guide::proto::AXIntAttribute IntAttributeToProto(
ax::mojom::IntAttribute attribute) { … }
optimization_guide::proto::AXFloatAttribute FloatAttributeToProto(
ax::mojom::FloatAttribute attribute) { … }
optimization_guide::proto::AXBoolAttribute BoolAttributeToProto(
ax::mojom::BoolAttribute attribute) { … }
optimization_guide::proto::AXIntListAttribute IntListAttributeToProto(
ax::mojom::IntListAttribute attribute) { … }
optimization_guide::proto::AXStringListAttribute StringListAttributeToProto(
ax::mojom::StringListAttribute attribute) { … }
void PopulateAXTreeData(const ui::AXTreeData& source,
optimization_guide::proto::AXTreeData* destination) { … }
void PopulateAXRelativeBounds(
const ui::AXRelativeBounds& source,
optimization_guide::proto::AXRelativeBounds* destination) { … }
void PopulateAXNode(const ui::AXNodeData& source,
optimization_guide::proto::AXNodeData* destination) { … }
}
void ComposeAXSerializationUtils::PopulateAXTreeUpdate(
const ui::AXTreeUpdate& source,
optimization_guide::proto::AXTreeUpdate* destination) { … }