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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 views::View* view, | 55 views::View* view, |
56 ui::AXEvent event_type); | 56 ui::AXEvent event_type); |
57 | 57 |
58 void HandleAlert(content::BrowserContext* context, const std::string& text); | 58 void HandleAlert(content::BrowserContext* context, const std::string& text); |
59 | 59 |
60 // AXHostDelegate implementation. | 60 // AXHostDelegate implementation. |
61 void PerformAction(const ui::AXActionData& data) override; | 61 void PerformAction(const ui::AXActionData& data) override; |
62 | 62 |
63 // views::AXAuraObjCache::Delegate implementation. | 63 // views::AXAuraObjCache::Delegate implementation. |
64 void OnChildWindowRemoved(views::AXAuraObjWrapper* parent) override; | 64 void OnChildWindowRemoved(views::AXAuraObjWrapper* parent) override; |
| 65 void OnEvent(views::AXAuraObjWrapper* aura_obj, |
| 66 ui::AXEvent event_type) override; |
65 | 67 |
66 protected: | 68 protected: |
67 AutomationManagerAura(); | 69 AutomationManagerAura(); |
68 ~AutomationManagerAura() override; | 70 ~AutomationManagerAura() override; |
69 | 71 |
70 private: | 72 private: |
71 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; | 73 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; |
72 | 74 |
73 // Reset state in this manager. If |reset_serializer| is true, reset the | 75 // Reset state in this manager. If |reset_serializer| is true, reset the |
74 // serializer to save memory. | 76 // serializer to save memory. |
(...skipping 16 matching lines...) Expand all Loading... |
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 |