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 UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ |
6 #define UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" | 11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" |
9 | 12 |
10 namespace views { | 13 namespace views { |
11 class View; | 14 class View; |
12 | 15 |
13 // Describes a |View| for use with other AX classes. | 16 // Describes a |View| for use with other AX classes. |
14 class AXViewObjWrapper : public AXAuraObjWrapper { | 17 class AXViewObjWrapper : public AXAuraObjWrapper { |
15 public: | 18 public: |
16 explicit AXViewObjWrapper(View* view); | 19 explicit AXViewObjWrapper(View* view); |
17 ~AXViewObjWrapper() override; | 20 ~AXViewObjWrapper() override; |
18 | 21 |
19 View* view() { return view_; } | 22 View* view() { return view_; } |
20 | 23 |
21 // AXAuraObjWrapper overrides. | 24 // AXAuraObjWrapper overrides. |
22 AXAuraObjWrapper* GetParent() override; | 25 AXAuraObjWrapper* GetParent() override; |
23 void GetChildren(std::vector<AXAuraObjWrapper*>* out_children) override; | 26 void GetChildren(std::vector<AXAuraObjWrapper*>* out_children) override; |
24 void Serialize(ui::AXNodeData* out_node_data) override; | 27 void Serialize(ui::AXNodeData* out_node_data) override; |
25 int32 GetID() override; | 28 int32_t GetID() override; |
26 void DoDefault() override; | 29 void DoDefault() override; |
27 void Focus() override; | 30 void Focus() override; |
28 void MakeVisible() override; | 31 void MakeVisible() override; |
29 void SetSelection(int32 start, int32 end) override; | 32 void SetSelection(int32_t start, int32_t end) override; |
30 void ShowContextMenu() override; | 33 void ShowContextMenu() override; |
31 | 34 |
32 private: | 35 private: |
33 View* view_; | 36 View* view_; |
34 | 37 |
35 DISALLOW_COPY_AND_ASSIGN(AXViewObjWrapper); | 38 DISALLOW_COPY_AND_ASSIGN(AXViewObjWrapper); |
36 }; | 39 }; |
37 | 40 |
38 } // namespace views | 41 } // namespace views |
39 | 42 |
40 #endif // UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ | 43 #endif // UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ |
OLD | NEW |