ax_serializable_tree.h 825 B

123456789101112131415161718192021222324252627
  1. // Copyright 2013 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_SERIALIZABLE_TREE_H_
  5. #define UI_ACCESSIBILITY_AX_SERIALIZABLE_TREE_H_
  6. #include "ui/accessibility/ax_tree.h"
  7. #include "ui/accessibility/ax_tree_source.h"
  8. namespace ui {
  9. class AX_EXPORT AXSerializableTree : public AXTree {
  10. public:
  11. AXSerializableTree();
  12. explicit AXSerializableTree(
  13. const AXTreeUpdate& initial_state);
  14. ~AXSerializableTree() override;
  15. // Create a TreeSource adapter for this tree. The client gets ownership
  16. // of the return value and should delete it when done.
  17. virtual AXTreeSource<const AXNode*>* CreateTreeSource();
  18. };
  19. } // namespace ui
  20. #endif // UI_ACCESSIBILITY_AX_SERIALIZABLE_TREE_H_