Remove unused accessibility IPC.

It appears that AccessibilityMsg_HitTest is no longer used, having been
replaced by calling AccessibilityMsg_PerformAction with an action of
Action::kHitTest.

Bug: 977381
Change-Id: I888cb1767ab5a3fb85e6fdb17f895cee25e87b5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1674344
Reviewed-by: Nasko Oskov <nasko@chromium.org>
Commit-Queue: James MacLean <wjmaclean@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672044}
diff --git a/content/common/accessibility_messages.h b/content/common/accessibility_messages.h
index 2ed10364..1c65537 100644
--- a/content/common/accessibility_messages.h
+++ b/content/common/accessibility_messages.h
@@ -139,18 +139,6 @@
 IPC_MESSAGE_ROUTED1(AccessibilityMsg_PerformAction,
                     ui::AXActionData  /* action parameters */)
 
-// Determine the accessibility object under a given point.
-//
-// If the target is an object with a child frame (like if the hit test
-// 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 |event_to_fire| on the target.
-IPC_MESSAGE_ROUTED3(AccessibilityMsg_HitTest,
-                    gfx::Point /* location to test */,
-                    ax::mojom::Event /* event to fire */,
-                    int /* action request id */)
-
 // Tells the render view that a AccessibilityHostMsg_EventBundle
 // message was processed and it can send additional updates. The argument
 // must be the same as the ack_token passed to
@@ -202,7 +190,7 @@
     AccessibilityHostMsg_FindInPageResult,
     AccessibilityHostMsg_FindInPageResultParams)
 
-// Sent in response to AccessibilityMsg_HitTest.
+// Sent in response to PerformAction with parameter kHitTest.
 IPC_MESSAGE_ROUTED5(AccessibilityHostMsg_ChildFrameHitTestResult,
                     int /* action request id of initial caller */,
                     gfx::Point /* location tested */,
diff --git a/content/renderer/accessibility/render_accessibility_impl.cc b/content/renderer/accessibility/render_accessibility_impl.cc
index dc9228b4..8fc9fa6 100644
--- a/content/renderer/accessibility/render_accessibility_impl.cc
+++ b/content/renderer/accessibility/render_accessibility_impl.cc
@@ -256,7 +256,6 @@
 
     IPC_MESSAGE_HANDLER(AccessibilityMsg_PerformAction, OnPerformAction)
     IPC_MESSAGE_HANDLER(AccessibilityMsg_EventBundle_ACK, OnEventsAck)
-    IPC_MESSAGE_HANDLER(AccessibilityMsg_HitTest, OnHitTest)
     IPC_MESSAGE_HANDLER(AccessibilityMsg_Reset, OnReset)
     IPC_MESSAGE_HANDLER(AccessibilityMsg_FatalError, OnFatalError)
     IPC_MESSAGE_UNHANDLED(handled = false)