#include "content/renderer/accessibility/annotations/ax_main_node_annotator.h"
#include <utility>
#include "base/metrics/histogram_functions.h"
#include "base/time/time.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
namespace content {
WebAXObject;
WebDocument;
namespace {
const char kHistogramsName[] = …;
enum class MainNodeAnnotationResult { … };
}
AXMainNodeAnnotator::AXMainNodeAnnotator(
RenderAccessibilityImpl* const render_accessibility)
: … { … }
AXMainNodeAnnotator::~AXMainNodeAnnotator() = default;
void AXMainNodeAnnotator::EnableAnnotations() { … }
void AXMainNodeAnnotator::CancelAnnotations() { … }
uint32_t AXMainNodeAnnotator::GetAXModeToEnableAnnotations() { … }
bool AXMainNodeAnnotator::HasAXActionToEnableAnnotations() { … }
ax::mojom::Action AXMainNodeAnnotator::GetAXActionToEnableAnnotations() { … }
void AXMainNodeAnnotator::Annotate(const WebDocument& document,
ui::AXTreeUpdate* update,
bool load_complete) { … }
void AXMainNodeAnnotator::ProcessScreen2xResult(const WebDocument& document,
ui::AXNodeID main_node_id) { … }
void AXMainNodeAnnotator::ComputeAuthorStatus(ui::AXTreeUpdate* update) { … }
void AXMainNodeAnnotator::BindAnnotatorForTesting(
mojo::PendingRemote<screen_ai::mojom::Screen2xMainContentExtractor>
annotator) { … }
}