ax_utils.h 719 B

12345678910111213141516171819202122
  1. // Copyright 2020 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 TOOLS_ACCESSIBILITY_INSPECT_AX_UTILS_H_
  5. #define TOOLS_ACCESSIBILITY_INSPECT_AX_UTILS_H_
  6. #include "content/public/browser/accessibility_tree_formatter.h"
  7. namespace tools {
  8. using TreeSelector = content::AccessibilityTreeFormatter::TreeSelector;
  9. // Prints help for tree selectors like --pattern, --chromium etc.
  10. void PrintHelpForTreeSelectors();
  11. // Returns tree selector from command line arguments.
  12. TreeSelector TreeSelectorFromCommandLine(const base::CommandLine*);
  13. } // namespace tools
  14. #endif // TOOLS_ACCESSIBILITY_INSPECT_AX_UTILS_H_