Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: chrome/browser/ui/aura/accessibility/automation_manager_aura.h

Issue 2827103003: Revert of Finish implementation of automation API hit testing for the desktop. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; 71 friend struct base::DefaultSingletonTraits<AutomationManagerAura>;
72 72
73 // Reset state in this manager. If |reset_serializer| is true, reset the 73 // Reset state in this manager. If |reset_serializer| is true, reset the
74 // serializer to save memory. 74 // serializer to save memory.
75 void Reset(bool reset_serializer); 75 void Reset(bool reset_serializer);
76 76
77 void SendEvent(content::BrowserContext* context, 77 void SendEvent(content::BrowserContext* context,
78 views::AXAuraObjWrapper* aura_obj, 78 views::AXAuraObjWrapper* aura_obj,
79 ui::AXEvent event_type); 79 ui::AXEvent event_type);
80 80
81 void PerformHitTest(const ui::AXActionData& data);
82
83 // Whether automation support for views is enabled. 81 // Whether automation support for views is enabled.
84 bool enabled_; 82 bool enabled_;
85 83
86 // Holds the active views-based accessibility tree. A tree currently consists 84 // Holds the active views-based accessibility tree. A tree currently consists
87 // of all views descendant to a |Widget| (see |AXTreeSourceViews|). 85 // of all views descendant to a |Widget| (see |AXTreeSourceViews|).
88 // A tree becomes active when an event is fired on a descendant view. 86 // A tree becomes active when an event is fired on a descendant view.
89 std::unique_ptr<AXTreeSourceAura> current_tree_; 87 std::unique_ptr<AXTreeSourceAura> current_tree_;
90 88
91 // Serializes incremental updates on the currently active tree 89 // Serializes incremental updates on the currently active tree
92 // |current_tree_|. 90 // |current_tree_|.
93 std::unique_ptr<AuraAXTreeSerializer> current_tree_serializer_; 91 std::unique_ptr<AuraAXTreeSerializer> current_tree_serializer_;
94 92
95 bool processing_events_; 93 bool processing_events_;
96 94
97 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; 95 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_;
98 96
99 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); 97 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura);
100 }; 98 };
101 99
102 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ 100 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698