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

Issue 1613513004: Prevent Contextual Search from breaking InfoBarContainer visibility (Closed)

Created:
4 years, 11 months ago by gone
Modified:
4 years, 11 months ago
Reviewers:
newt (away)
CC:
chromium-reviews, dfalcantara+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent bottom-of-the-screen Views from breaking InfoBarContainer visibility * SurfaceViews don't play well with Views on top of them toggling between View.VISIBLE and View.INVISIBLE. Fix this by using View.GONE instead. * Make logic for hiding the InfoBarContainer when other bottom-of-the-screen Views try to take over the screen out of SwipableOverlayView and ContextualSearchManager into the InfoBarContainer itself. * Move logic for hiding the InfoBarContainer when the keyboard is showing from SwipableOverlayView#onLayout into InfoBarContainer and make it so that the InfoBarContainer listens for global layout changes. BUG=563947 Committed: https://crrev.com/e0906ef875c59ab9355e44e506b1e08f223844f2 Cr-Commit-Position: refs/heads/master@{#371094}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments, moved all the things around #

Patch Set 3 : Logs #

Total comments: 2

Patch Set 4 : Add a handler, switch to parent listener #

Total comments: 2

Patch Set 5 : Final comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -73 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java View 1 9 chunks +1 line, -64 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java View 1 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java View 1 2 3 4 11 chunks +87 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
gone
4 years, 11 months ago (2016-01-21 01:23:47 UTC) #2
newt (away)
https://codereview.chromium.org/1613513004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java File chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java (right): https://codereview.chromium.org/1613513004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java#newcode424 chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java:424: protected boolean isAllowedToAutoHide() { will things break if the ...
4 years, 11 months ago (2016-01-21 05:27:51 UTC) #3
gone
https://chromiumcodereview.appspot.com/1613513004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java File chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java (right): https://chromiumcodereview.appspot.com/1613513004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java#newcode424 chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java:424: protected boolean isAllowedToAutoHide() { The translation actually wasn't the ...
4 years, 11 months ago (2016-01-22 02:10:20 UTC) #5
newt (away)
Thanks. I think this is cleaner now -- all the logic for hiding/obscuring/removing the InfoBarContainer ...
4 years, 11 months ago (2016-01-22 21:43:46 UTC) #6
gone
https://chromiumcodereview.appspot.com/1613513004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java (right): https://chromiumcodereview.appspot.com/1613513004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java#newcode84 chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java:84: private OnGlobalLayoutListener mGlobalLayoutListener = new OnGlobalLayoutListener() { On 2016/01/22 ...
4 years, 11 months ago (2016-01-22 22:11:41 UTC) #7
gone
It'd look like this, if we were fine with adding the Handler usage.
4 years, 11 months ago (2016-01-22 22:20:38 UTC) #8
newt (away)
lgtm after commetn https://chromiumcodereview.appspot.com/1613513004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java (right): https://chromiumcodereview.appspot.com/1613513004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java#newcode89 chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java:89: mHandler.post(new Runnable() { No need for ...
4 years, 11 months ago (2016-01-22 22:54:15 UTC) #9
gone
https://codereview.chromium.org/1613513004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java (right): https://codereview.chromium.org/1613513004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java#newcode89 chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java:89: mHandler.post(new Runnable() { On 2016/01/22 22:54:15, newt wrote: > ...
4 years, 11 months ago (2016-01-22 23:05:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1613513004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613513004/80001
4 years, 11 months ago (2016-01-22 23:06:22 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-23 00:10:42 UTC) #15
commit-bot: I haz the power
4 years, 11 months ago (2016-01-23 00:11:42 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e0906ef875c59ab9355e44e506b1e08f223844f2
Cr-Commit-Position: refs/heads/master@{#371094}

Powered by Google App Engine
This is Rietveld 408576698