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

Side by Side Diff: trunk/src/ui/views/accessibility/ax_tree_source_views.h

Issue 196953009: Revert 256563 "Reland r256396 Add views implementation for AXTre..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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
(Empty)
1 // Copyright (c) 2014 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_VIEWS_ACCESSIBILITY_AX_TREE_SOURCE_VIEWS_H_
6 #define UI_VIEWS_ACCESSIBILITY_AX_TREE_SOURCE_VIEWS_H_
7
8 #include <map>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/accessibility/ax_tree_source.h"
12 #include "ui/views/view.h"
13 #include "ui/views/widget/widget_observer.h"
14
15 namespace views {
16 class AXViewStore;
17
18 // This class exposes the views hierarchy as an accessibility tree permitting
19 // use with other accessibility classes.
20 class VIEWS_EXPORT AXTreeSourceViews : public ui::AXTreeSource<View*>,
21 public WidgetObserver {
22 public:
23 explicit AXTreeSourceViews(Widget* root);
24 virtual ~AXTreeSourceViews();
25
26 // AXTreeSource implementation.
27 virtual View* GetRoot() const OVERRIDE;
28 virtual View* GetFromId(int32 id) const OVERRIDE;
29 virtual int32 GetId(View* node) const OVERRIDE;
30 virtual void GetChildren(View* node,
31 std::vector<View*>* out_children) const OVERRIDE;
32 virtual View* GetParent(View* node) const OVERRIDE;
33 virtual bool IsValid(View* node) const OVERRIDE;
34 virtual bool IsEqual(View* node1,
35 View* node2) const OVERRIDE;
36 virtual View* GetNull() const OVERRIDE;
37 virtual void SerializeNode(
38 View* node, ui::AXNodeData* out_data) const OVERRIDE;
39
40 // WidgetObserver overrides.
41 virtual void OnViewRemoved(Widget* widget, View* view) OVERRIDE;
42 virtual void OnWidgetDestroyed(Widget* widget) OVERRIDE;
43
44 private:
45 scoped_ptr<AXViewStore> view_store_;
46
47 views::Widget* root_;
48 };
49
50 } // namespace views
51
52 #endif // UI_VIEWS_ACCESSIBILITY_AX_TREE_SOURCE_VIEWS_H_
OLDNEW
« no previous file with comments | « trunk/src/ui/accessibility/ax_tree_source.h ('k') | trunk/src/ui/views/accessibility/ax_tree_source_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698