#include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h"
#include <stddef.h>
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/crash/core/common/crash_key.h"
#include "extensions/browser/api/automation_internal/automation_event_router_interface.h"
#include "ui/accessibility/aura/aura_window_properties.h"
#include "ui/accessibility/ax_action_data.h"
#include "ui/accessibility/ax_action_handler_base.h"
#include "ui/accessibility/ax_action_handler_registry.h"
#include "ui/accessibility/ax_enum_util.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_event.h"
#include "ui/accessibility/ax_tree_source_checker.h"
#include "ui/aura/client/focus_client.h"
#include "ui/aura/env.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/display/screen.h"
#include "ui/views/accessibility/accessibility_alert_window.h"
#include "ui/views/accessibility/ax_aura_obj_wrapper.h"
#include "ui/views/accessibility/ax_event_manager.h"
#include "ui/views/accessibility/ax_root_obj_wrapper.h"
#include "ui/views/accessibility/ax_virtual_view.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
#include "ui/wm/core/coordinate_conversion.h"
#include "ui/wm/public/activation_client.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/crosapi/automation_ash.h"
#include "chrome/browser/ash/crosapi/crosapi_ash.h"
#include "chrome/browser/ash/crosapi/crosapi_manager.h"
#endif
AutomationManagerAura* AutomationManagerAura::GetInstance() { … }
void AutomationManagerAura::Enable() { … }
void AutomationManagerAura::Disable() { … }
void AutomationManagerAura::OnViewEvent(views::View* view,
ax::mojom::Event event_type) { … }
void AutomationManagerAura::OnVirtualViewEvent(
views::AXVirtualView* virtual_view,
ax::mojom::Event event_type) { … }
void AutomationManagerAura::AllAutomationExtensionsGone() { … }
void AutomationManagerAura::ExtensionListenerAdded() { … }
void AutomationManagerAura::HandleEvent(ax::mojom::Event event_type,
bool from_user) { … }
void AutomationManagerAura::HandleAlert(const std::string& text) { … }
void AutomationManagerAura::PerformAction(const ui::AXActionData& data) { … }
void AutomationManagerAura::SetA11yOverrideWindow(
aura::Window* a11y_override_window) { … }
void AutomationManagerAura::OnChildWindowRemoved(
views::AXAuraObjWrapper* parent) { … }
void AutomationManagerAura::OnEvent(views::AXAuraObjWrapper* aura_obj,
ax::mojom::Event event_type) { … }
AutomationManagerAura::AutomationManagerAura()
: … { … }
AutomationManagerAura::~AutomationManagerAura() = default;
void AutomationManagerAura::Reset(bool reset_serializer) { … }
void AutomationManagerAura::PostEvent(int id,
ax::mojom::Event event_type,
int action_request_id,
bool from_user) { … }
void AutomationManagerAura::SendPendingEvents() { … }
void AutomationManagerAura::PerformHitTest(
const ui::AXActionData& original_action) { … }
void AutomationManagerAura::OnSerializeFailure(ax::mojom::Event event_type,
const ui::AXTreeUpdate& update) { … }