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

Unified Diff: content/browser/accessibility/browser_accessibility_manager.cc

Issue 2748463003: Generalize the HIT_TEST accessibility action so that it can send any event. (Closed)
Patch Set: Use ParseAXEvent Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility_manager.cc
diff --git a/content/browser/accessibility/browser_accessibility_manager.cc b/content/browser/accessibility/browser_accessibility_manager.cc
index b5a9a5879884d4b37a606e46efab8b81e3c514a8..48c5571f299c26402d13c0720b38f941691324ff 100644
--- a/content/browser/accessibility/browser_accessibility_manager.cc
+++ b/content/browser/accessibility/browser_accessibility_manager.cc
@@ -458,7 +458,8 @@ void BrowserAccessibilityManager::OnFindInPageResult(
void BrowserAccessibilityManager::OnChildFrameHitTestResult(
const gfx::Point& point,
- int hit_obj_id) {
+ int hit_obj_id,
+ ui::AXEvent event_to_fire) {
BrowserAccessibility* obj = GetFromID(hit_obj_id);
if (!obj || !obj->HasIntAttribute(ui::AX_ATTR_CHILD_TREE_ID))
return;
@@ -472,6 +473,7 @@ void BrowserAccessibilityManager::OnChildFrameHitTestResult(
ui::AXActionData action_data;
action_data.target_point = point;
action_data.action = ui::AX_ACTION_HIT_TEST;
+ action_data.hit_test_event_to_fire = event_to_fire;
return child_manager->delegate()->AccessibilityPerformAction(action_data);
}
@@ -729,6 +731,7 @@ void BrowserAccessibilityManager::HitTest(const gfx::Point& point) {
ui::AXActionData action_data;
action_data.action = ui::AX_ACTION_HIT_TEST;
action_data.target_point = point;
+ action_data.hit_test_event_to_fire = ui::AX_EVENT_HOVER;
delegate_->AccessibilityPerformAction(action_data);
}

Powered by Google App Engine
This is Rietveld 408576698