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

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

Issue 2640123004: Initial support for native accessibility in ARC (Closed)
Patch Set: m Created 3 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_HELPER_AX_TREE_SOURCE_ARC_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_HELPER_AX_TREE_SOURCE_ARC_H_
7
8 #include "components/exo/ax_tree_source_surface.h"
yawano 2017/01/20 07:47:49 Is this file already landed? I've quickly checked
David Tseng 2017/01/20 23:00:56 Nope not yet. Added!
9 #include "components/exo/wm_helper.h"
10 #include "ui/accessibility/ax_node.h"
11 #include "ui/accessibility/ax_node_data.h"
12 #include "ui/accessibility/ax_tree_data.h"
13
14 namespace arc {
15
16 // This class represents the accessibility tree from the focused ARC window.
dmazzoni 2017/01/19 19:48:16 Just curious, why "the focused" ARC window? Could
David Tseng 2017/01/20 23:00:56 I'm thinking we can reuse the same source tree for
17 class AXTreeSourceArc : public exo::AXTreeSourceSurface,
18 public exo::WMHelper::FocusObserver {
19 public:
20 // AXTreeSource overrides.
21 bool GetTreeData(ui::AXTreeData* data) const override;
22 ui::AXNode* GetRoot() const override;
23 ui::AXNode* GetFromId(int32_t id) const override;
24 int32_t GetId(ui::AXNode* node) const override;
25 void GetChildren(ui::AXNode* node,
26 std::vector<ui::AXNode*>* out_children) const override;
27 ui::AXNode* GetParent(ui::AXNode* node) const override;
28 bool IsValid(ui::AXNode* node) const override;
29 bool IsEqual(ui::AXNode* node1, ui::AXNode* node2) const override;
30 ui::AXNode* GetNull() const override;
31 void SerializeNode(ui::AXNode* node, ui::AXNodeData* out_data) const override;
32
33 protected:
34 void Reset() override;
35
36 // exo::WMHelper::FocusObserver overrides.
37 void OnWindowFocused(aura::Window* gained_focus,
38 aura::Window* lost_focus) override;
39 };
40
41 } // namespace arc
42
43 #endif // CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_HELPER_AX_TREE_SOURCE_ARC_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698