| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/extensions/api/automation_internal/automation_action_ad
apter.h" | 10 #include "chrome/browser/extensions/api/automation_internal/automation_action_ad
apter.h" |
| 11 #include "chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h" | 11 #include "chrome/browser/ui/aura/accessibility/ax_tree_source_aura.h" |
| 12 #include "ui/accessibility/ax_tree_serializer.h" | 12 #include "ui/accessibility/ax_tree_serializer.h" |
| 13 | 13 |
| 14 namespace base { |
| 14 template <typename T> | 15 template <typename T> |
| 15 struct DefaultSingletonTraits; | 16 struct DefaultSingletonTraits; |
| 17 } // namespace base |
| 16 | 18 |
| 17 namespace content { | 19 namespace content { |
| 18 class BrowserContext; | 20 class BrowserContext; |
| 19 } // namespace content | 21 } // namespace content |
| 20 | 22 |
| 21 namespace views { | 23 namespace views { |
| 22 class AXAuraObjWrapper; | 24 class AXAuraObjWrapper; |
| 23 class View; | 25 class View; |
| 24 } // namespace views | 26 } // namespace views |
| 25 | 27 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 46 void HandleAlert(content::BrowserContext* context, const std::string& text); | 48 void HandleAlert(content::BrowserContext* context, const std::string& text); |
| 47 | 49 |
| 48 // AutomationActionAdapter implementation. | 50 // AutomationActionAdapter implementation. |
| 49 void DoDefault(int32 id) override; | 51 void DoDefault(int32 id) override; |
| 50 void Focus(int32 id) override; | 52 void Focus(int32 id) override; |
| 51 void MakeVisible(int32 id) override; | 53 void MakeVisible(int32 id) override; |
| 52 void SetSelection(int32 id, int32 start, int32 end) override; | 54 void SetSelection(int32 id, int32 start, int32 end) override; |
| 53 void ShowContextMenu(int32 id) override; | 55 void ShowContextMenu(int32 id) override; |
| 54 | 56 |
| 55 private: | 57 private: |
| 56 friend struct DefaultSingletonTraits<AutomationManagerAura>; | 58 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; |
| 57 | 59 |
| 58 AutomationManagerAura(); | 60 AutomationManagerAura(); |
| 59 virtual ~AutomationManagerAura(); | 61 virtual ~AutomationManagerAura(); |
| 60 | 62 |
| 61 // Reset all state in this manager. | 63 // Reset all state in this manager. |
| 62 void ResetSerializer(); | 64 void ResetSerializer(); |
| 63 | 65 |
| 64 void SendEvent(content::BrowserContext* context, | 66 void SendEvent(content::BrowserContext* context, |
| 65 views::AXAuraObjWrapper* aura_obj, | 67 views::AXAuraObjWrapper* aura_obj, |
| 66 ui::AXEvent event_type); | 68 ui::AXEvent event_type); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 78 scoped_ptr<AuraAXTreeSerializer> current_tree_serializer_; | 80 scoped_ptr<AuraAXTreeSerializer> current_tree_serializer_; |
| 79 | 81 |
| 80 bool processing_events_; | 82 bool processing_events_; |
| 81 | 83 |
| 82 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; | 84 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); | 86 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ | 89 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ |
| OLD | NEW |