#include "tools/accessibility/inspect/ax_utils.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "build/build_config.h"
char kActiveTabSwitch[] = …;
char kChromeSwitch[] = …;
char kChromiumSwitch[] = …;
char kFirefoxSwitch[] = …;
char kEdgeSwitch[] = …;
char kPatternSwitch[] = …;
char kSafariSwitch[] = …;
char kFiltersSwitch[] = …;
#if BUILDFLAG(IS_OZONE) || BUILDFLAG(IS_MAC)
char kIdSwitch[] = …;
#else
char kIdSwitch[] = "window";
#endif
AXTreeSelector;
gfx::AcceleratedWidget CastToAcceleratedWidget(unsigned int window_id) { … }
bool StringToInt(std::string str, unsigned* result) { … }
namespace tools {
void PrintHelpShared() { … }
void PrintHelpTreeSelectors() { … }
void PrintHelpFilters() { … }
void PrintHelpFooter() { … }
std::optional<AXTreeSelector> TreeSelectorFromCommandLine(
const base::CommandLine& command_line) { … }
std::string DirectivePrefixFromAPIType(ui::AXApiType::Type api) { … }
std::optional<ui::AXInspectScenario> ScenarioFromCommandLine(
const base::CommandLine& command_line,
ui::AXApiType::Type api) { … }
}