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

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

#include "ui/accessibility/platform/inspect/ax_api_type.h"

#include <string_view>

#include "base/containers/fixed_flat_map.h"
#include "base/notreached.h"

namespace ui {

namespace {

// These strings are stored in prefs for chrome://accessibility, do not rename.
// When adding a new type, add a new entry here and then update the methods that
// convert to/from string.
static constexpr std::string_view kAndroidString{};
static constexpr std::string_view kAndroidExternalString{};
static constexpr std::string_view kBlinkString{};
static constexpr std::string_view kFuchsiaString{};
static constexpr std::string_view kMacString{};
static constexpr std::string_view kLinuxString{};
static constexpr std::string_view kWinIA2String{};
static constexpr std::string_view kWinUIAString{};

}  // Namespace

operator basic_string_view()

operator basic_string()

// static
AXApiType::Type AXApiType::From(const std::string& type_str) {}

}  // namespace ui