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 namespace base { |
15 template <typename T> | 15 template <typename T> |
16 struct DefaultSingletonTraits; | 16 struct DefaultSingletonTraits; |
17 } // namespace base | 17 } // namespace base |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class BrowserContext; | 20 class BrowserContext; |
21 } // namespace content | 21 } // namespace content |
22 | 22 |
23 namespace views { | 23 namespace views { |
24 class AXAuraObjWrapper; | 24 class AXAuraObjWrapper; |
25 class View; | 25 class View; |
26 } // namespace views | 26 } // namespace views |
27 | 27 |
28 using AuraAXTreeSerializer = | 28 using AuraAXTreeSerializer = |
29 ui::AXTreeSerializer<views::AXAuraObjWrapper*, ui::AXNodeData>; | 29 ui::AXTreeSerializer<views::AXAuraObjWrapper*, |
| 30 ui::AXNodeData, |
| 31 ui::AXTreeData>; |
30 | 32 |
31 // Manages a tree of automation nodes. | 33 // Manages a tree of automation nodes. |
32 class AutomationManagerAura : public extensions::AutomationActionAdapter { | 34 class AutomationManagerAura : public extensions::AutomationActionAdapter { |
33 public: | 35 public: |
34 // Get the single instance of this class. | 36 // Get the single instance of this class. |
35 static AutomationManagerAura* GetInstance(); | 37 static AutomationManagerAura* GetInstance(); |
36 | 38 |
37 // Enable automation support for views. | 39 // Enable automation support for views. |
38 void Enable(content::BrowserContext* context); | 40 void Enable(content::BrowserContext* context); |
39 | 41 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 scoped_ptr<AuraAXTreeSerializer> current_tree_serializer_; | 85 scoped_ptr<AuraAXTreeSerializer> current_tree_serializer_; |
84 | 86 |
85 bool processing_events_; | 87 bool processing_events_; |
86 | 88 |
87 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; | 89 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; |
88 | 90 |
89 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); | 91 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); |
90 }; | 92 }; |
91 | 93 |
92 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ | 94 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ |
OLD | NEW |