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

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: 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 144d5c13dac47d18ad6a6b8c312bb0adfcc8e21b..75b0696ce3a2489f1e8feda1e1dc73bf0394b981 100644
--- a/content/browser/accessibility/browser_accessibility_manager.cc
+++ b/content/browser/accessibility/browser_accessibility_manager.cc
@@ -450,7 +450,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;
@@ -464,6 +465,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);
}
@@ -721,6 +723,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