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

Issue 2662613003: [Android] Mark infobars as gone when they are off the screen (Closed)

Created:
3 years, 10 months ago by Ian Wen
Modified:
3 years, 10 months ago
Reviewers:
Ted C
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Mark infobars as gone when they are off the screen Infobars are translated off the screen when users scroll up. Yet they still are thought as non-transparent regions on top of surface view. This CL optimizes this case by setting the visibility to gone when infobars are not visible. BUG=661560 Review-Url: https://codereview.chromium.org/2662613003 Cr-Commit-Position: refs/heads/master@{#446869} Committed: https://chromium.googlesource.com/chromium/src/+/45d5cd05e3c01ddbaef79b0d469f34d1c50215f9

Patch Set 1 #

Patch Set 2 : include snap animation #

Total comments: 1

Patch Set 3 : comments #

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

Messages

Total messages: 10 (5 generated)
Ian Wen
PTAL
3 years, 10 months ago (2017-01-27 22:00:03 UTC) #2
Ted C
lgtm https://codereview.chromium.org/2662613003/diff/20001/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/2662613003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java#newcode329 chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java:329: if (translationY >= getHeight()) { any reason we ...
3 years, 10 months ago (2017-01-27 23:57:14 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2662613003/40001
3 years, 10 months ago (2017-01-28 00:07:06 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/45d5cd05e3c01ddbaef79b0d469f34d1c50215f9
3 years, 10 months ago (2017-01-28 01:31:44 UTC) #9
dgn
3 years, 10 months ago (2017-01-30 14:47:52 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2665663003/ by dgn@chromium.org.

The reason for reverting is: Suspected for causing failures on testers:

org.chromium.chrome.browser.infobar.InfoBarContainerTest#testAddAndDismissSurfaceFlingerOverlays
(run #2):
java.util.concurrent.TimeoutException: InfoBar not added.
	at
org.chromium.base.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:183)
	at
org.chromium.base.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:211)
	at
org.chromium.chrome.test.util.InfoBarTestAnimationListener.addInfoBarAnimationFinished(InfoBarTestAnimationListener.java:50)

BUG=686734.

Powered by Google App Engine
This is Rietveld 408576698