|
Select-to-speak event handler
This change implements the key C++ portion of the Select-to-speak feature
by adding an event handler that takes Search plus the mouse button, and
fires accessibility events instead.
In the future we could modify or extend this event handler for use in
ChromeVox too, but for now I think building something specifically for
Select-to-speak makes sense.
Adds new accessibility events for mouse down, mouse up, and so on - allowing
the select-to-speak extension to get not only the mouse events and global
coordinates, but most importantly the proper accessibility object that's hit
for each event.
This change implements support for hit testing in Views. For web,
the extension will get the event fired on the views::WebView and it can do
its own hit testing within the accessibility tree from there. A follow-up
will improve on this by doing native hit testing in the web before firing
the accessibility event.
BUG= 593887
Committed: https://crrev.com/735c79df7859362bd059b5c233286910eff25ef9
Cr-Commit-Position: refs/heads/master@{#434744}
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+539 lines, -20 lines) |
Patch |
 |
M |
ash/test/ash_test_environment.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ash/test/ash_test_environment_content.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/test/ash_test_environment_content.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/test/ash_test_environment_default.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ash/test/ash_test_helper.h
|
View
|
1
2
3
4
|
4 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ash/test/ash_test_views_delegate.h
|
View
|
1
2
3
|
2 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/test/ash_test_views_delegate.cc
|
View
|
1
2
3
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/BUILD.gn
|
View
|
1
2
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/accessibility/accessibility_manager.h
|
View
|
1
2
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/accessibility/accessibility_manager.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/accessibility/select_to_speak_event_handler.h
|
View
|
1
2
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/accessibility/select_to_speak_event_handler.cc
|
View
|
1
|
1 chunk |
+155 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/accessibility/select_to_speak_event_handler_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+252 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/aura/accessibility/automation_manager_aura.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/aura/accessibility/automation_manager_aura.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/automation.idl
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/ash_test_environment_chrome.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/base/ash_test_environment_chrome.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/accessibility/ax_enums.idl
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 35 (21 generated)
|