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

Issue 1983353002: [Android] Coordinate Infobars and Snackbars (Closed)

Created:
4 years, 7 months ago by Ian Wen
Modified:
4 years, 7 months ago
Reviewers:
jbudorick, gone
CC:
chromium-reviews, tfarina, browser-components-watch_chromium.org, noyau+watch_chromium.org, mikecase+watch_chromium.org, dfalcantara+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Coordinate Infobars and Snackbars CoordinatorLayout in android design support library makes it possible to coordinate views' animation. This CL makes CompositorViewHolder a CoordinatorLayout, and adds several behaviors to control the interaction between snackbars and infobars. After this change, CompositorViewHolder will first check if a touch event is handled by behaviors in the children views, then give the touchevent to fullscreen manager and layout manager afterwards. BUG=581227 Committed: https://crrev.com/87ee877992e41f3037a23a164abf4689c1ba603c Cr-Commit-Position: refs/heads/master@{#395210}

Patch Set 1 #

Total comments: 12

Patch Set 2 : comments #

Patch Set 3 : #

Patch Set 4 : fix test #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -56 lines) Patch
M build/secondary/third_party/android_tools/BUILD.gn View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/res/layout/snackbar.xml View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/banners/SwipableOverlayView.java View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkActivity.java View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java View 8 chunks +18 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java View 5 chunks +4 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/snackbar/SnackbarManager.java View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/snackbar/SnackbarView.java View 1 2 3 5 chunks +93 lines, -29 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/tab/TabContentViewParent.java View 1 1 chunk +77 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tools/android/eclipse/.classpath View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Ian Wen
PTAL. This CL will only be landed after M52 branch point.
4 years, 7 months ago (2016-05-17 23:16:02 UTC) #2
gone
l-g-t-m from a cursory look. Not terribly happy about the need to instanceof everywhere, but ...
4 years, 7 months ago (2016-05-17 23:48:25 UTC) #3
Ian Wen
Thanks for the quick review! All addressed. https://codereview.chromium.org/1983353002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/snackbar/SnackbarView.java File chrome/android/java/src/org/chromium/chrome/browser/snackbar/SnackbarView.java (right): https://codereview.chromium.org/1983353002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/snackbar/SnackbarView.java#newcode69 chrome/android/java/src/org/chromium/chrome/browser/snackbar/SnackbarView.java:69: private Behavior<View> ...
4 years, 7 months ago (2016-05-18 00:23:46 UTC) #4
gone
lgtm
4 years, 7 months ago (2016-05-18 00:30:28 UTC) #5
jbudorick
build/ lgtm
4 years, 7 months ago (2016-05-18 00:32:22 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1983353002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1983353002/40001
4 years, 7 months ago (2016-05-20 20:57:42 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/74482)
4 years, 7 months ago (2016-05-20 21:17:06 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1983353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1983353002/60001
4 years, 7 months ago (2016-05-20 21:32:12 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/9605) mac_chromium_compile_dbg_ng on ...
4 years, 7 months ago (2016-05-20 21:35:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1983353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1983353002/80001
4 years, 7 months ago (2016-05-20 21:52:10 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-20 23:55:31 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 23:56:34 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/87ee877992e41f3037a23a164abf4689c1ba603c
Cr-Commit-Position: refs/heads/master@{#395210}

Powered by Google App Engine
This is Rietveld 408576698