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

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

Issue 667713006: Implement automatic load of composed/embedded automation trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Fix UAF Created 6 years, 1 month 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
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | ui/views/accessibility/ax_view_obj_wrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/views/accessibility/ax_aura_obj_wrapper.h" 8 #include "ui/views/accessibility/ax_aura_obj_wrapper.h"
9 9
10 namespace views { 10 namespace views {
11 class View; 11 class View;
12 12
13 // Describes a |View| for use with other AX classes. 13 // Describes a |View| for use with other AX classes.
14 class AXViewObjWrapper : public AXAuraObjWrapper { 14 class AXViewObjWrapper : public AXAuraObjWrapper {
15 public: 15 public:
16 explicit AXViewObjWrapper(View* view); 16 explicit AXViewObjWrapper(View* view);
17 virtual ~AXViewObjWrapper(); 17 virtual ~AXViewObjWrapper();
18 18
19 View* view() { return view_; }
20
19 // AXAuraObjWrapper overrides. 21 // AXAuraObjWrapper overrides.
20 virtual AXAuraObjWrapper* GetParent() override; 22 virtual AXAuraObjWrapper* GetParent() override;
21 virtual void GetChildren( 23 virtual void GetChildren(
22 std::vector<AXAuraObjWrapper*>* out_children) override; 24 std::vector<AXAuraObjWrapper*>* out_children) override;
23 virtual void Serialize(ui::AXNodeData* out_node_data) override; 25 virtual void Serialize(ui::AXNodeData* out_node_data) override;
24 virtual int32 GetID() override; 26 virtual int32 GetID() override;
25 virtual void DoDefault() override; 27 virtual void DoDefault() override;
26 virtual void Focus() override; 28 virtual void Focus() override;
27 virtual void MakeVisible() override; 29 virtual void MakeVisible() override;
28 virtual void SetSelection(int32 start, int32 end) override; 30 virtual void SetSelection(int32 start, int32 end) override;
29 31
30 private: 32 private:
31 View* view_; 33 View* view_;
32 34
33 DISALLOW_COPY_AND_ASSIGN(AXViewObjWrapper); 35 DISALLOW_COPY_AND_ASSIGN(AXViewObjWrapper);
34 }; 36 };
35 37
36 } // namespace views 38 } // namespace views
37 39
38 #endif // UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_ 40 #endif // UI_VIEWS_ACCESSIBILITY_AX_VIEW_OBJ_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | ui/views/accessibility/ax_view_obj_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698