chromium/ui/accessibility/platform/inspect/ax_event_recorder_auralinux.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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 {

// static
AXEventRecorderAuraLinux* AXEventRecorderAuraLinux::instance_ =;

// static
std::vector<unsigned int>& GetATKListenerIds() {}

// static
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) {}

// This list is composed of the sorted event names taken from the list provided
// in the libatspi documentation at:
// https://developer.gnome.org/libatspi/stable/AtspiEventListener.html#atspi-event-listener-register
const char* const kEventNames[] =;

static void OnATSPIEventReceived(AtspiEvent* event, void* data) {}

void AXEventRecorderAuraLinux::AddATSPIEventListeners() {}

void AXEventRecorderAuraLinux::RemoveATSPIEventListeners() {}

void AXEventRecorderAuraLinux::ProcessATSPIEvent(const AtspiEvent* event) {}

}  // namespace ui