Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Issue 821393004: Wrap ContentView in a parent view to fix infobar accessibility. (Closed)

Created:
5 years, 11 months ago by newt (away)
Modified:
5 years, 11 months ago
CC:
chromium-reviews, David Trainor- moved to gerrit, avayvod+watch_chromium.org, dmazzoni
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wrap 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/Tab.java View 1 2 3 4 5 chunks +20 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
newt (away)
PTAL
5 years, 11 months ago (2015-01-06 03:40:53 UTC) #2
newt (away)
https://codereview.chromium.org/821393004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/Tab.java (right): https://codereview.chromium.org/821393004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/Tab.java#newcode1120 chrome/android/java/src/org/chromium/chrome/browser/Tab.java:1120: will remove this random empty line
5 years, 11 months ago (2015-01-06 03:44:43 UTC) #3
Ted C
lgtm
5 years, 11 months ago (2015-01-06 17:20:20 UTC) #4
Ted C
https://codereview.chromium.org/821393004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/Tab.java File chrome/android/java/src/org/chromium/chrome/browser/Tab.java (right): https://codereview.chromium.org/821393004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/Tab.java#newcode1295 chrome/android/java/src/org/chromium/chrome/browser/Tab.java:1295: mContentViewParent = new FrameLayout(mContext); do we want to assert ...
5 years, 11 months ago (2015-01-06 18:13:40 UTC) #5
newt (away)
On 2015/01/06 18:13:40, Ted C wrote: > https://codereview.chromium.org/821393004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/Tab.java > File chrome/android/java/src/org/chromium/chrome/browser/Tab.java (right): > > https://codereview.chromium.org/821393004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/Tab.java#newcode1295 ...
5 years, 11 months ago (2015-01-06 18:15:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821393004/60001
5 years, 11 months ago (2015-01-06 18:19:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821393004/80001
5 years, 11 months ago (2015-01-06 19:20:53 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-06 20:11:11 UTC) #12
commit-bot: I haz the power
5 years, 11 months ago (2015-01-06 20:13:44 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2f93e319a2c8b6a047d1ec6fd974b381681a916d
Cr-Commit-Position: refs/heads/master@{#310125}

Powered by Google App Engine
This is Rietveld 408576698