DescriptionGeneralize the HIT_TEST accessibility action so that it can send any event.
To determine what object is under a certain location on the screen we
have an accessibility action from the browser to renderer and then a
response event fired on the correct accessibility object. It gets more
complicated and bounces around a few times if there are out-of-process
iframes.
For historical reasons we fire a HOVER event on the hit object, but
this is somewhat arbitrary. Generalize this by letting the caller
specify what event to fire. That will be useful in improving the
select-to-speak feature on Chrome OS.
In this change, just generalize the HIT_TEST to fire any specified event
and add test coverage.
BUG=699617
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation;master.tryserver.chromium.linux:linux_site_isolation
Review-Url: https://codereview.chromium.org/2748463003
Cr-Commit-Position: refs/heads/master@{#460192}
Committed: https://chromium.googlesource.com/chromium/src/+/7a44adcc7ca0d47f73d8cbc286f540cbc65e5859
Patch Set 1 #
Total comments: 6
Patch Set 2 : Add automation API binding and test #
Total comments: 2
Patch Set 3 : Use ParseAXEvent #Messages
Total messages: 27 (14 generated)
|