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

Unified Diff: content/common/accessibility_messages.h

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/common/accessibility_messages.h
diff --git a/content/common/accessibility_messages.h b/content/common/accessibility_messages.h
index 261efd4c0d24e7601d0f39571373b31a7d3286cd..19ea0fdfae81ee65241e4a8d587aa98fc584ec2e 100644
--- a/content/common/accessibility_messages.h
+++ b/content/common/accessibility_messages.h
@@ -39,6 +39,7 @@ IPC_STRUCT_TRAITS_BEGIN(ui::AXActionData)
IPC_STRUCT_TRAITS_MEMBER(target_rect)
IPC_STRUCT_TRAITS_MEMBER(target_point)
IPC_STRUCT_TRAITS_MEMBER(value)
+ IPC_STRUCT_TRAITS_MEMBER(hit_test_event_to_fire)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(content::AXContentNodeData)
@@ -142,9 +143,10 @@ IPC_MESSAGE_ROUTED1(AccessibilityMsg_PerformAction,
// result is an iframe element), it responds with
// AccessibilityHostMsg_ChildFrameHitTestResult so that the
// hit test can be performed recursively on the child frame. Otherwise
-// it fires an accessibility event of type ui::AX_EVENT_HOVER on the target.
-IPC_MESSAGE_ROUTED1(AccessibilityMsg_HitTest,
- gfx::Point /* location to test */)
+// it fires an accessibility event of type |event_to_fire| on the target.
+IPC_MESSAGE_ROUTED2(AccessibilityMsg_HitTest,
+ gfx::Point /* location to test */,
+ ui::AXEvent /* event to fire */)
// Relay a request from assistive technology to set accessibility focus
// to a given node. On platforms where this is used (currently Android),
@@ -205,9 +207,10 @@ IPC_MESSAGE_ROUTED1(
AccessibilityHostMsg_FindInPageResultParams)
// Sent in response to AccessibilityMsg_HitTest.
-IPC_MESSAGE_ROUTED2(AccessibilityHostMsg_ChildFrameHitTestResult,
+IPC_MESSAGE_ROUTED3(AccessibilityHostMsg_ChildFrameHitTestResult,
gfx::Point /* location tested */,
- int /* node id of result */)
+ int /* node id of result */,
+ ui::AXEvent /* event to fire */)
// Sent in response to AccessibilityMsg_SnapshotTree. The callback id that was
// passed to the request will be returned in |callback_id|, along with

Powered by Google App Engine
This is Rietveld 408576698