DescriptionWrap ContentView in a parent view to fix infobar accessibility.
Previously, it was impossible to select infobars when using explore by
touch and traversing through the views using forward and backward
swipes. The problem was that ContentView contained both the
InfoBarContainer (a real View) as well as virtual views for all the
elements in the webpage -- but Android doesn't support ViewGroups that
contain both real and virtual views.
The fix is to add a FrameLayout, which is now a common parent of both
the ContentView and the InfoBarContainer. Here's the new view hierarchy:
CompositorViewHolder
|
FrameLayout
| \
ContentView InfoBarContainer
Tab.getView() now returns the parent FrameLayout, rather than the
ContentView itself.
BUG=416663
Committed: https://crrev.com/2f93e319a2c8b6a047d1ec6fd974b381681a916d
Cr-Commit-Position: refs/heads/master@{#310125}
Patch Set 1 #
Total comments: 1
Patch Set 2 : #Patch Set 3 : don't reuse mContentViewParent #
Total comments: 1
Patch Set 4 : be more cautious #Patch Set 5 : satisfy findbugs #Messages
Total messages: 13 (4 generated)
|