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_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ | 5 #ifndef CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ |
6 #define CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ | 6 #define CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; | 71 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; |
72 | 72 |
73 // Reset state in this manager. If |reset_serializer| is true, reset the | 73 // Reset state in this manager. If |reset_serializer| is true, reset the |
74 // serializer to save memory. | 74 // serializer to save memory. |
75 void Reset(bool reset_serializer); | 75 void Reset(bool reset_serializer); |
76 | 76 |
77 void SendEvent(content::BrowserContext* context, | 77 void SendEvent(content::BrowserContext* context, |
78 views::AXAuraObjWrapper* aura_obj, | 78 views::AXAuraObjWrapper* aura_obj, |
79 ui::AXEvent event_type); | 79 ui::AXEvent event_type); |
80 | 80 |
| 81 void PerformHitTest(const ui::AXActionData& data); |
| 82 |
81 // Whether automation support for views is enabled. | 83 // Whether automation support for views is enabled. |
82 bool enabled_; | 84 bool enabled_; |
83 | 85 |
84 // Holds the active views-based accessibility tree. A tree currently consists | 86 // Holds the active views-based accessibility tree. A tree currently consists |
85 // of all views descendant to a |Widget| (see |AXTreeSourceViews|). | 87 // of all views descendant to a |Widget| (see |AXTreeSourceViews|). |
86 // A tree becomes active when an event is fired on a descendant view. | 88 // A tree becomes active when an event is fired on a descendant view. |
87 std::unique_ptr<AXTreeSourceAura> current_tree_; | 89 std::unique_ptr<AXTreeSourceAura> current_tree_; |
88 | 90 |
89 // Serializes incremental updates on the currently active tree | 91 // Serializes incremental updates on the currently active tree |
90 // |current_tree_|. | 92 // |current_tree_|. |
91 std::unique_ptr<AuraAXTreeSerializer> current_tree_serializer_; | 93 std::unique_ptr<AuraAXTreeSerializer> current_tree_serializer_; |
92 | 94 |
93 bool processing_events_; | 95 bool processing_events_; |
94 | 96 |
95 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; | 97 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; |
96 | 98 |
97 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); | 99 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); |
98 }; | 100 }; |
99 | 101 |
100 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ | 102 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ |
OLD | NEW |