|
Implement web content hit testing in win aura.
NativeViewAccessibilityWin needs to do hit testing in
web content as well as views. While implementing this,
I realized that it isn't necessary to have a special
interface to a RWHV to get an object by child id - we
can just rely on WebView overriding
GetNativeViewAccessible and do the lookup using a
native call.
The same trick works for hit testing - we check if
the point is inside a child's bounding rect, and if so
we call accHitTest on that child's native view
accessible - and since WebView overrides
GetNativeViewAccessible, the recursive call to
accHitTest will return the correct result from inside
the web content.
We still need AccessibleWebViewRegistry (because
looking up objects from child ids gets called A LOT,
but it's much simpler now, just a set of Views.
BUG= 284803
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221744
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+87 lines, -113 lines) |
Patch |
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_guest.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_guest.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/test_render_view_host.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/test_render_view_host.cc
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/render_widget_host_view.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/views/accessibility/native_view_accessibility.h
|
View
|
1
2
|
2 chunks |
+5 lines, -10 lines |
0 comments
|
Download
|
 |
M |
ui/views/accessibility/native_view_accessibility.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/accessibility/native_view_accessibility_win.cc
|
View
|
1
2
|
10 chunks |
+78 lines, -27 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/webview/webview.h
|
View
|
|
2 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/webview/webview.cc
|
View
|
|
2 chunks |
+1 line, -22 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|