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

Issue 2623493003: Refactor the view hierarchy of snackbars and infobars (Closed)

Created:
3 years, 11 months ago by Ian Wen
Modified:
3 years, 11 months ago
Reviewers:
mdjones, Ted C, gone
CC:
chromium-reviews, dominickn+watch_chromium.org, dfalcantara+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

Refactor the view hierarchy of snackbars and infobars To make snackbars and infobars animate, snackbars were moved to be child of CompositorViewHolder, and TabContentViewParent was introduced to handle the animation. One side effect of such design is that many Android views in CompositorViewHolder now rely on a behavior to receive touch event. This CL removes such behavior, as it is not the standard Android routine and it makes our view hierarchy no longer extensible. Instead, a parent of CompositorViewHolder is introduced to harbor all Android views that may display on top of content. This CL also moves infobars to be a sibling of snackbar, and their parent will be a new FrameLayout called bottom_container. BUG=640710 Review-Url: https://codereview.chromium.org/2623493003 Cr-Commit-Position: refs/heads/master@{#442733} Committed: https://chromium.googlesource.com/chromium/src/+/7a609035f046b007eb1b0d8302776aeae3b2e174

Patch Set 1 #

Patch Set 2 : fix infobar #

Total comments: 10

Patch Set 3 : comments #

Messages

Total messages: 26 (15 generated)
Ian Wen
3 years, 11 months ago (2017-01-09 18:55:22 UTC) #3
Ian Wen
The regression about InfoBar has been eliminated. PTAL. :)
3 years, 11 months ago (2017-01-09 22:20:01 UTC) #8
mdjones
lgtm!
3 years, 11 months ago (2017-01-09 22:58:25 UTC) #10
gone
The commit message should reflect info about how the InfoBarContainer parent has been changed so ...
3 years, 11 months ago (2017-01-09 23:20:56 UTC) #12
Ted C
lgtm https://codereview.chromium.org/2623493003/diff/20001/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/2623493003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java#newcode99 chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java:99: mTabView.removeOnAttachStateChangeListener(mAttachedStateListener); I don't actually recall if onContentChanged ensures ...
3 years, 11 months ago (2017-01-09 23:35:06 UTC) #13
Ian Wen
Thanks for the prompt review. All addressed. https://codereview.chromium.org/2623493003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java (right): https://codereview.chromium.org/2623493003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java#newcode356 chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java:356: super.onInterceptTouchEvent(e); On ...
3 years, 11 months ago (2017-01-10 02:19:58 UTC) #15
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/2623493003/40001
3 years, 11 months ago (2017-01-10 02:21:21 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/338053)
3 years, 11 months ago (2017-01-10 04:42:38 UTC) #20
gone
lgtm
3 years, 11 months ago (2017-01-10 23:34:38 UTC) #21
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/2623493003/40001
3 years, 11 months ago (2017-01-10 23:41:07 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 23:47:07 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7a609035f046b007eb1b0d830277...

Powered by Google App Engine
This is Rietveld 408576698