| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void Disable(); | 48 void Disable(); |
| 49 | 49 |
| 50 // Handle an event fired upon a |View|. | 50 // Handle an event fired upon a |View|. |
| 51 void HandleEvent(content::BrowserContext* context, | 51 void HandleEvent(content::BrowserContext* context, |
| 52 views::View* view, | 52 views::View* view, |
| 53 ui::AXEvent event_type); | 53 ui::AXEvent event_type); |
| 54 | 54 |
| 55 void HandleAlert(content::BrowserContext* context, const std::string& text); | 55 void HandleAlert(content::BrowserContext* context, const std::string& text); |
| 56 | 56 |
| 57 // AutomationActionAdapter implementation. | 57 // AutomationActionAdapter implementation. |
| 58 void DoDefault(int32_t id) override; | 58 void PerformAction(const ui::AXActionData& data) override; |
| 59 void Focus(int32_t id) override; | |
| 60 void MakeVisible(int32_t id) override; | |
| 61 void SetSelection(int32_t anchor_id, | |
| 62 int32_t anchor_offset, | |
| 63 int32_t focus_id, | |
| 64 int32_t focus_offset) override; | |
| 65 void ShowContextMenu(int32_t id) override; | |
| 66 | 59 |
| 67 // views::AXAuraObjCache::Delegate implementation. | 60 // views::AXAuraObjCache::Delegate implementation. |
| 68 void OnChildWindowRemoved(views::AXAuraObjWrapper* parent) override; | 61 void OnChildWindowRemoved(views::AXAuraObjWrapper* parent) override; |
| 69 | 62 |
| 70 private: | 63 private: |
| 71 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; | 64 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; |
| 72 | 65 |
| 73 AutomationManagerAura(); | 66 AutomationManagerAura(); |
| 74 virtual ~AutomationManagerAura(); | 67 virtual ~AutomationManagerAura(); |
| 75 | 68 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 93 std::unique_ptr<AuraAXTreeSerializer> current_tree_serializer_; | 86 std::unique_ptr<AuraAXTreeSerializer> current_tree_serializer_; |
| 94 | 87 |
| 95 bool processing_events_; | 88 bool processing_events_; |
| 96 | 89 |
| 97 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; | 90 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; |
| 98 | 91 |
| 99 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); | 92 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); |
| 100 }; | 93 }; |
| 101 | 94 |
| 102 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ | 95 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ |
| OLD | NEW |