ax_enum_localization_util.h 660 B

123456789101112131415161718192021
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_ACCESSIBILITY_AX_ENUM_LOCALIZATION_UTIL_H_
  5. #define UI_ACCESSIBILITY_AX_ENUM_LOCALIZATION_UTIL_H_
  6. #include <string>
  7. #include "ui/accessibility/ax_base_export.h"
  8. #include "ui/accessibility/ax_enums.mojom-forward.h"
  9. namespace ui {
  10. // Returns a localized string that corresponds to the name of the given action.
  11. AX_BASE_EXPORT std::string ToLocalizedString(
  12. ax::mojom::DefaultActionVerb action_verb);
  13. } // namespace ui
  14. #endif // UI_ACCESSIBILITY_AX_ENUM_LOCALIZATION_UTIL_H_