#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/accessibility/platform/inspect/ax_event_recorder_auralinux.h"
#include <atk/atk.h>
#include <atk/atkutil.h>
#include <atspi/atspi.h>
#include "base/no_destructor.h"
#include "base/process/process_handle.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "ui/accessibility/platform/ax_platform_tree_manager.h"
#include "ui/accessibility/platform/inspect/ax_inspect_utils_auralinux.h"
namespace ui {
AXEventRecorderAuraLinux* AXEventRecorderAuraLinux::instance_ = …;
std::vector<unsigned int>& GetATKListenerIds() { … }
gboolean AXEventRecorderAuraLinux::OnATKEventReceived(
GSignalInvocationHint* hint,
unsigned int n_params,
const GValue* params,
gpointer data) { … }
bool AXEventRecorderAuraLinux::ShouldUseATSPI() { … }
AXEventRecorderAuraLinux::AXEventRecorderAuraLinux(
base::WeakPtr<AXPlatformTreeManager> manager,
base::ProcessId pid,
const AXTreeSelector& selector)
: … { … }
AXEventRecorderAuraLinux::~AXEventRecorderAuraLinux() { … }
void AXEventRecorderAuraLinux::AddATKEventListener(const char* event_name) { … }
void AXEventRecorderAuraLinux::AddATKEventListeners() { … }
void AXEventRecorderAuraLinux::RemoveATKEventListeners() { … }
std::string AXEventRecorderAuraLinux::AtkObjectToString(AtkObject* obj,
bool include_name) { … }
void AXEventRecorderAuraLinux::ProcessATKEvent(const char* event,
unsigned int n_params,
const GValue* params) { … }
const char* const kEventNames[] = …;
static void OnATSPIEventReceived(AtspiEvent* event, void* data) { … }
void AXEventRecorderAuraLinux::AddATSPIEventListeners() { … }
void AXEventRecorderAuraLinux::RemoveATSPIEventListeners() { … }
void AXEventRecorderAuraLinux::ProcessATSPIEvent(const AtspiEvent* event) { … }
}