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" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void HandleEvent(content::BrowserContext* context, | 44 void HandleEvent(content::BrowserContext* context, |
45 views::View* view, | 45 views::View* view, |
46 ui::AXEvent event_type); | 46 ui::AXEvent event_type); |
47 | 47 |
48 void HandleAlert(content::BrowserContext* context, const std::string& text); | 48 void HandleAlert(content::BrowserContext* context, const std::string& text); |
49 | 49 |
50 // AutomationActionAdapter implementation. | 50 // AutomationActionAdapter implementation. |
51 void DoDefault(int32 id) override; | 51 void DoDefault(int32 id) override; |
52 void Focus(int32 id) override; | 52 void Focus(int32 id) override; |
53 void MakeVisible(int32 id) override; | 53 void MakeVisible(int32 id) override; |
54 void SetSelection(int32 id, int32 start, int32 end) override; | 54 void SetSelection(int32 anchor_id, |
| 55 int32 anchor_offset, |
| 56 int32 focus_id, |
| 57 int32 focus_offset) override; |
55 void ShowContextMenu(int32 id) override; | 58 void ShowContextMenu(int32 id) override; |
56 | 59 |
57 private: | 60 private: |
58 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; | 61 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; |
59 | 62 |
60 AutomationManagerAura(); | 63 AutomationManagerAura(); |
61 virtual ~AutomationManagerAura(); | 64 virtual ~AutomationManagerAura(); |
62 | 65 |
63 // Reset all state in this manager. | 66 // Reset all state in this manager. |
64 void ResetSerializer(); | 67 void ResetSerializer(); |
(...skipping 15 matching lines...) Expand all Loading... |
80 scoped_ptr<AuraAXTreeSerializer> current_tree_serializer_; | 83 scoped_ptr<AuraAXTreeSerializer> current_tree_serializer_; |
81 | 84 |
82 bool processing_events_; | 85 bool processing_events_; |
83 | 86 |
84 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; | 87 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; |
85 | 88 |
86 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); | 89 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); |
87 }; | 90 }; |
88 | 91 |
89 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ | 92 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ |
OLD | NEW |