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

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

Issue 2430473003: Revert of Create AXAction and AXActionData as a way to simplify accessibility actions (Closed)
Patch Set: Created 4 years, 2 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 PerformAction(const ui::AXActionData& data) override; 58 void DoDefault(int32_t id) 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;
59 66
60 // views::AXAuraObjCache::Delegate implementation. 67 // views::AXAuraObjCache::Delegate implementation.
61 void OnChildWindowRemoved(views::AXAuraObjWrapper* parent) override; 68 void OnChildWindowRemoved(views::AXAuraObjWrapper* parent) override;
62 69
63 private: 70 private:
64 friend struct base::DefaultSingletonTraits<AutomationManagerAura>; 71 friend struct base::DefaultSingletonTraits<AutomationManagerAura>;
65 72
66 AutomationManagerAura(); 73 AutomationManagerAura();
67 virtual ~AutomationManagerAura(); 74 virtual ~AutomationManagerAura();
68 75
(...skipping 17 matching lines...) Expand all
86 std::unique_ptr<AuraAXTreeSerializer> current_tree_serializer_; 93 std::unique_ptr<AuraAXTreeSerializer> current_tree_serializer_;
87 94
88 bool processing_events_; 95 bool processing_events_;
89 96
90 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_; 97 std::vector<std::pair<views::AXAuraObjWrapper*, ui::AXEvent>> pending_events_;
91 98
92 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura); 99 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAura);
93 }; 100 };
94 101
95 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_ 102 #endif // CHROME_BROWSER_UI_AURA_ACCESSIBILITY_AUTOMATION_MANAGER_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698