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

Side by Side Diff: chrome/browser/chromeos/arc/accessibility/ax_tree_source_arc.h

Issue 2700103004: Initial support for accessibility actions on ARC. (Closed)
Patch Set: Use desktop tree id. Created 3 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_AX_TREE_SOURCE_ARC_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_AX_TREE_SOURCE_ARC_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_AX_TREE_SOURCE_ARC_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_AX_TREE_SOURCE_ARC_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 ui::AXTreeSerializer<mojom::AccessibilityNodeInfoData*, 23 ui::AXTreeSerializer<mojom::AccessibilityNodeInfoData*,
24 ui::AXNodeData, 24 ui::AXNodeData,
25 ui::AXTreeData>; 25 ui::AXTreeData>;
26 26
27 // This class represents the accessibility tree from the focused ARC window. 27 // This class represents the accessibility tree from the focused ARC window.
28 class AXTreeSourceArc 28 class AXTreeSourceArc
29 : public ui::AXTreeSource<mojom::AccessibilityNodeInfoData*, 29 : public ui::AXTreeSource<mojom::AccessibilityNodeInfoData*,
30 ui::AXNodeData, 30 ui::AXNodeData,
31 ui::AXTreeData> { 31 ui::AXTreeData> {
32 public: 32 public:
33 AXTreeSourceArc(); 33 explicit AXTreeSourceArc(int32_t tree_id);
34 ~AXTreeSourceArc() override; 34 ~AXTreeSourceArc() override;
35 35
36 // Notify automation of an accessibility event. 36 // Notify automation of an accessibility event.
37 void NotifyAccessibilityEvent(mojom::AccessibilityEventData* event_data); 37 void NotifyAccessibilityEvent(mojom::AccessibilityEventData* event_data);
38 38
39 int32_t tree_id() const { return tree_id_; } 39 int32_t tree_id() const { return tree_id_; }
40 40
41 private: 41 private:
42 // AXTreeSource overrides. 42 // AXTreeSource overrides.
43 bool GetTreeData(ui::AXTreeData* data) const override; 43 bool GetTreeData(ui::AXTreeData* data) const override;
(...skipping 24 matching lines...) Expand all
68 std::unique_ptr<AXTreeArcSerializer> current_tree_serializer_; 68 std::unique_ptr<AXTreeArcSerializer> current_tree_serializer_;
69 int32_t root_id_; 69 int32_t root_id_;
70 int32_t focused_node_id_; 70 int32_t focused_node_id_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(AXTreeSourceArc); 72 DISALLOW_COPY_AND_ASSIGN(AXTreeSourceArc);
73 }; 73 };
74 74
75 } // namespace arc 75 } // namespace arc
76 76
77 #endif // CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_AX_TREE_SOURCE_ARC_H_ 77 #endif // CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_AX_TREE_SOURCE_ARC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698