OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_ |
6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_ | 6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 AXTreeSourceAsh(); | 24 AXTreeSourceAsh(); |
25 virtual ~AXTreeSourceAsh(); | 25 virtual ~AXTreeSourceAsh(); |
26 | 26 |
27 // A set of actions invoked on an Aura view. | 27 // A set of actions invoked on an Aura view. |
28 void DoDefault(int32 id); | 28 void DoDefault(int32 id); |
29 void Focus(int32 id); | 29 void Focus(int32 id); |
30 void MakeVisible(int32 id); | 30 void MakeVisible(int32 id); |
31 void SetSelection(int32 id, int32 start, int32 end); | 31 void SetSelection(int32 id, int32 start, int32 end); |
32 | 32 |
33 // AXTreeSource implementation. | 33 // AXTreeSource implementation. |
34 virtual views::AXAuraObjWrapper* GetRoot() const OVERRIDE; | 34 virtual views::AXAuraObjWrapper* GetRoot() const override; |
35 virtual views::AXAuraObjWrapper* GetFromId(int32 id) const OVERRIDE; | 35 virtual views::AXAuraObjWrapper* GetFromId(int32 id) const override; |
36 virtual int32 GetId(views::AXAuraObjWrapper* node) const OVERRIDE; | 36 virtual int32 GetId(views::AXAuraObjWrapper* node) const override; |
37 virtual void GetChildren(views::AXAuraObjWrapper* node, | 37 virtual void GetChildren(views::AXAuraObjWrapper* node, |
38 std::vector<views::AXAuraObjWrapper*>* out_children) const OVERRIDE; | 38 std::vector<views::AXAuraObjWrapper*>* out_children) const override; |
39 virtual views::AXAuraObjWrapper* GetParent( | 39 virtual views::AXAuraObjWrapper* GetParent( |
40 views::AXAuraObjWrapper* node) const OVERRIDE; | 40 views::AXAuraObjWrapper* node) const override; |
41 virtual bool IsValid(views::AXAuraObjWrapper* node) const OVERRIDE; | 41 virtual bool IsValid(views::AXAuraObjWrapper* node) const override; |
42 virtual bool IsEqual(views::AXAuraObjWrapper* node1, | 42 virtual bool IsEqual(views::AXAuraObjWrapper* node1, |
43 views::AXAuraObjWrapper* node2) const OVERRIDE; | 43 views::AXAuraObjWrapper* node2) const override; |
44 virtual views::AXAuraObjWrapper* GetNull() const OVERRIDE; | 44 virtual views::AXAuraObjWrapper* GetNull() const override; |
45 virtual void SerializeNode( | 45 virtual void SerializeNode( |
46 views::AXAuraObjWrapper* node, ui::AXNodeData* out_data) const OVERRIDE; | 46 views::AXAuraObjWrapper* node, ui::AXNodeData* out_data) const override; |
47 | 47 |
48 // Useful for debugging. | 48 // Useful for debugging. |
49 std::string ToString(views::AXAuraObjWrapper* root, std::string prefix); | 49 std::string ToString(views::AXAuraObjWrapper* root, std::string prefix); |
50 | 50 |
51 private: | 51 private: |
52 scoped_ptr<AXRootObjWrapper> root_; | 52 scoped_ptr<AXRootObjWrapper> root_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(AXTreeSourceAsh); | 54 DISALLOW_COPY_AND_ASSIGN(AXTreeSourceAsh); |
55 }; | 55 }; |
56 | 56 |
57 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_ | 57 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_TREE_SOURCE_ASH_H_ |
OLD | NEW |