[email protected] | 4b02bbca | 2013-11-22 08:59:03 | [diff] [blame] | 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 | |
| 5 | #ifndef UI_ACCESSIBILITY_AX_SERIALIZABLE_TREE_H_ |
| 6 | #define UI_ACCESSIBILITY_AX_SERIALIZABLE_TREE_H_ |
| 7 | |
| 8 | #include "ui/accessibility/ax_tree.h" |
| 9 | #include "ui/accessibility/ax_tree_source.h" |
| 10 | |
| 11 | namespace ui { |
| 12 | |
| 13 | class AX_EXPORT AXSerializableTree : public AXTree { |
| 14 | public: |
| 15 | AXSerializableTree(); |
dmazzoni | 329fd01 | 2015-10-22 20:05:35 | [diff] [blame] | 16 | explicit AXSerializableTree( |
| 17 | const AXTreeUpdate& initial_state); |
dcheng | 0803879 | 2014-10-21 10:53:26 | [diff] [blame] | 18 | ~AXSerializableTree() override; |
[email protected] | 4b02bbca | 2013-11-22 08:59:03 | [diff] [blame] | 19 | |
| 20 | // Create a TreeSource adapter for this tree. The client gets ownership |
| 21 | // of the return value and should delete it when done. |
dmazzoni | 329fd01 | 2015-10-22 20:05:35 | [diff] [blame] | 22 | virtual AXTreeSource<const AXNode*, AXNodeData, AXTreeData>* |
| 23 | CreateTreeSource(); |
[email protected] | 4b02bbca | 2013-11-22 08:59:03 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | } // namespace ui |
| 27 | |
| 28 | #endif // UI_ACCESSIBILITY_AX_TREE_H_ |