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

Side by Side Diff: ui/views/accessibility/ax_view_obj_wrapper.h

Issue 2795843002: Move implementation of accessibility actions to views::View (Closed)
Patch Set: Fix win compile Created 3 years, 8 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 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> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h" 11 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
12 12
13 namespace views { 13 namespace views {
14 class View; 14 class View;
15 15
16 // Describes a |View| for use with other AX classes. 16 // Describes a |View| for use with other AX classes.
17 class AXViewObjWrapper : public AXAuraObjWrapper { 17 class AXViewObjWrapper : public AXAuraObjWrapper {
18 public: 18 public:
19 explicit AXViewObjWrapper(View* view); 19 explicit AXViewObjWrapper(View* view);
20 ~AXViewObjWrapper() override; 20 ~AXViewObjWrapper() override;
21 21
22 View* view() { return view_; } 22 View* view() { return view_; }
23 23
24 // AXAuraObjWrapper overrides. 24 // AXAuraObjWrapper overrides.
25 AXAuraObjWrapper* GetParent() override; 25 AXAuraObjWrapper* GetParent() override;
26 void GetChildren(std::vector<AXAuraObjWrapper*>* out_children) override; 26 void GetChildren(std::vector<AXAuraObjWrapper*>* out_children) override;
27 void Serialize(ui::AXNodeData* out_node_data) override; 27 void Serialize(ui::AXNodeData* out_node_data) override;
28 int32_t GetID() override; 28 int32_t GetID() override;
29 void DoDefault() override;
30 void Focus() override;
31 void MakeVisible() override;
32 void SetSelection(int32_t start, int32_t end) override;
33 void ShowContextMenu() override;
34 bool HandleAccessibleAction(const ui::AXActionData& action) override; 29 bool HandleAccessibleAction(const ui::AXActionData& action) override;
35 30
36 private: 31 private:
37 View* view_; 32 View* view_;
38 33
39 DISALLOW_COPY_AND_ASSIGN(AXViewObjWrapper); 34 DISALLOW_COPY_AND_ASSIGN(AXViewObjWrapper);
40 }; 35 };
41 36
42 } // namespace views 37 } // namespace views
43 38
44 #endif // UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ 39 #endif // UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/views/accessibility/ax_aura_obj_wrapper.h ('k') | ui/views/accessibility/ax_view_obj_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698