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_ROOT_OBJ_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ |
6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ | 6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" | 9 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" |
10 | 10 |
11 class AXRootObjWrapper : public views::AXAuraObjWrapper { | 11 class AXRootObjWrapper : public views::AXAuraObjWrapper { |
12 public: | 12 public: |
13 explicit AXRootObjWrapper(int32 id); | 13 explicit AXRootObjWrapper(int32 id); |
14 virtual ~AXRootObjWrapper(); | 14 virtual ~AXRootObjWrapper(); |
15 | 15 |
16 // Convenience method to check for existence of a child. | 16 // Convenience method to check for existence of a child. |
17 bool HasChild(views::AXAuraObjWrapper* child); | 17 bool HasChild(views::AXAuraObjWrapper* child); |
18 | 18 |
19 // views::AXAuraObjWrapper overrides. | 19 // views::AXAuraObjWrapper overrides. |
20 virtual views::AXAuraObjWrapper* GetParent() OVERRIDE; | 20 virtual views::AXAuraObjWrapper* GetParent() override; |
21 virtual void GetChildren( | 21 virtual void GetChildren( |
22 std::vector<views::AXAuraObjWrapper*>* out_children) OVERRIDE; | 22 std::vector<views::AXAuraObjWrapper*>* out_children) override; |
23 virtual void Serialize(ui::AXNodeData* out_node_data) OVERRIDE; | 23 virtual void Serialize(ui::AXNodeData* out_node_data) override; |
24 virtual int32 GetID() OVERRIDE; | 24 virtual int32 GetID() override; |
25 | 25 |
26 private: | 26 private: |
27 int32 id_; | 27 int32 id_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper); | 29 DISALLOW_COPY_AND_ASSIGN(AXRootObjWrapper); |
30 }; | 30 }; |
31 | 31 |
32 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ | 32 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AX_ROOT_OBJ_WRAPPER_H_ |
OLD | NEW |