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

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

Issue 2767143007: Try |View::HandleAccessibleAction| before falling back to fixed actions. (Closed)
Patch Set: fix build 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
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/accessibility/ax_aura_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_AURA_OBJ_WRAPPER_H_ 5 #ifndef UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_
6 #define UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_ 6 #define UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "ui/gfx/geometry/point.h" 14 #include "ui/gfx/geometry/point.h"
15 #include "ui/views/views_export.h" 15 #include "ui/views/views_export.h"
16 16
17 namespace ui { 17 namespace ui {
18 struct AXActionData;
18 struct AXNodeData; 19 struct AXNodeData;
19 } // namespace ui 20 } // namespace ui
20 21
21 namespace views { 22 namespace views {
22 23
23 // An interface abstraction for Aura views that exposes the view-tree formed 24 // An interface abstraction for Aura views that exposes the view-tree formed
24 // by the implementing view types. 25 // by the implementing view types.
25 class VIEWS_EXPORT AXAuraObjWrapper { 26 class VIEWS_EXPORT AXAuraObjWrapper {
26 public: 27 public:
27 virtual ~AXAuraObjWrapper() {} 28 virtual ~AXAuraObjWrapper() {}
28 29
29 // Traversal and serialization. 30 // Traversal and serialization.
30 virtual AXAuraObjWrapper* GetParent() = 0; 31 virtual AXAuraObjWrapper* GetParent() = 0;
31 virtual void GetChildren( 32 virtual void GetChildren(
32 std::vector<AXAuraObjWrapper*>* out_children) = 0; 33 std::vector<AXAuraObjWrapper*>* out_children) = 0;
33 virtual void Serialize(ui::AXNodeData* out_node_data) = 0; 34 virtual void Serialize(ui::AXNodeData* out_node_data) = 0;
34 virtual int32_t GetID() = 0; 35 virtual int32_t GetID() = 0;
35 36
36 // Actions. 37 // Actions.
37 virtual void DoDefault() {} 38 virtual void DoDefault() {}
38 virtual void Focus() {} 39 virtual void Focus() {}
39 virtual void MakeVisible() {} 40 virtual void MakeVisible() {}
40 virtual void SetSelection(int32_t start, int32_t end) {} 41 virtual void SetSelection(int32_t start, int32_t end) {}
41 virtual void ShowContextMenu() {} 42 virtual void ShowContextMenu() {}
43 virtual bool HandleAccessibleAction(const ui::AXActionData& action);
42 }; 44 };
43 45
44 } // namespace views 46 } // namespace views
45 47
46 #endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_ 48 #endif // UI_VIEWS_ACCESSIBILITY_AX_AURA_OBJ_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/views/BUILD.gn ('k') | ui/views/accessibility/ax_aura_obj_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698