Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: ui/accessibility/ax_serializable_tree.h

Issue 125783002: Add AXTreeDelegate and refactor other AXTree classes slightly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed const issue Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_ACCESSIBILITY_AX_SERIALIZABLE_TREE_H_ 5 #ifndef UI_ACCESSIBILITY_AX_SERIALIZABLE_TREE_H_
6 #define UI_ACCESSIBILITY_AX_SERIALIZABLE_TREE_H_ 6 #define UI_ACCESSIBILITY_AX_SERIALIZABLE_TREE_H_
7 7
8 #include "ui/accessibility/ax_tree.h" 8 #include "ui/accessibility/ax_tree.h"
9 #include "ui/accessibility/ax_tree_source.h" 9 #include "ui/accessibility/ax_tree_source.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 class AX_EXPORT AXSerializableTree : public AXTree { 13 class AX_EXPORT AXSerializableTree : public AXTree {
14 public: 14 public:
15 AXSerializableTree(); 15 AXSerializableTree();
16 explicit AXSerializableTree(const AXTreeUpdate& initial_state); 16 explicit AXSerializableTree(const AXTreeUpdate& initial_state);
17 virtual ~AXSerializableTree(); 17 virtual ~AXSerializableTree();
18 18
19 // Create a TreeSource adapter for this tree. The client gets ownership 19 // Create a TreeSource adapter for this tree. The client gets ownership
20 // of the return value and should delete it when done. 20 // of the return value and should delete it when done.
21 virtual AXTreeSource<AXNode>* CreateTreeSource(); 21 virtual AXTreeSource<const AXNode*>* CreateTreeSource();
22 }; 22 };
23 23
24 } // namespace ui 24 } // namespace ui
25 25
26 #endif // UI_ACCESSIBILITY_AX_TREE_H_ 26 #endif // UI_ACCESSIBILITY_AX_TREE_H_
OLDNEW
« no previous file with comments | « ui/accessibility/ax_generated_tree_unittest.cc ('k') | ui/accessibility/ax_serializable_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698