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

Issue 1557803002: [Custom Tabs] Implement Bottombar (Closed)

Created:
4 years, 11 months ago by Ian Wen
Modified:
4 years, 11 months ago
Reviewers:
Yusuf, gone
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Custom Tabs] Implement Bottombar This CL adds several extras to CustomTabsIntent so that clients are able to customize a new UI component of Chrome Custom Tabs: bottombar. Adding a button to bottombar is very similar to adding an action button, except that an ID is required. UMA stats, updateVisuals() related work will be added shortly. BUG=573683 Committed: https://crrev.com/ab809fd870ffbed0e6b8e686bef61df30d0f8d9a Cr-Commit-Position: refs/heads/master@{#368288}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Simplify APIs #

Total comments: 14

Patch Set 3 : actionbutton->custombutton #

Patch Set 4 : #

Total comments: 15

Patch Set 5 : respond to comments #

Patch Set 6 : #

Patch Set 7 : Make findbug happy #

Total comments: 34

Patch Set 8 : respond to dfalcantara@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -250 lines) Patch
A + chrome/android/java/res/layout/custom_tabs_bottombar.xml View 1 chunk +5 lines, -4 lines 0 comments Download
A chrome/android/java/res/layout/custom_tabs_bottombar_item.xml View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/android/java/res/layout/main.xml View 1 2 3 4 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/android/java/res/values/colors.xml View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java View 1 2 3 chunks +51 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java View 1 2 1 chunk +0 lines, -143 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomButtonParams.java View 1 2 3 4 5 6 7 1 chunk +249 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 5 6 7 9 chunks +53 lines, -13 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java View 1 2 3 4 5 6 7 8 chunks +60 lines, -60 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/enhancedbookmarks/EnhancedBookmarkContentView.java View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/IntentUtils.java View 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/FadingShadowView.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java View 1 2 3 4 5 6 7 7 chunks +55 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (8 generated)
Ian Wen
PTAL. :) https://codereview.chromium.org/1557803002/diff/1/chrome/android/java/res/layout/main.xml File chrome/android/java/res/layout/main.xml (right): https://codereview.chromium.org/1557803002/diff/1/chrome/android/java/res/layout/main.xml#newcode32 chrome/android/java/res/layout/main.xml:32: android:layout_marginTop="-2dp" -2dp top margin prevents the shadow ...
4 years, 11 months ago (2016-01-02 14:20:39 UTC) #2
Yusuf
I will go through details soon, but I think there should be a corresponding API ...
4 years, 11 months ago (2016-01-04 22:28:42 UTC) #3
Ian Wen
Dear yusufo@, please take a look at the second patchset. Our side-by-side diff behaves weirdly ...
4 years, 11 months ago (2016-01-06 05:50:15 UTC) #4
Yusuf
https://codereview.chromium.org/1557803002/diff/20001/chrome/android/java/res/layout/main.xml File chrome/android/java/res/layout/main.xml (right): https://codereview.chromium.org/1557803002/diff/20001/chrome/android/java/res/layout/main.xml#newcode36 chrome/android/java/res/layout/main.xml:36: android:id="@+id/buttombar_stub" bottombar https://codereview.chromium.org/1557803002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java (right): https://codereview.chromium.org/1557803002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java#newcode118 chrome/android/java/src/org/chromium/chrome/browser/customtabs/ActionButtonParams.java:118: // ...
4 years, 11 months ago (2016-01-06 06:51:14 UTC) #5
Yusuf
Another question is what happens when the keyboard comes up with a bottom bar on ...
4 years, 11 months ago (2016-01-06 07:31:22 UTC) #6
Ian Wen
Thanks for reading the CL in the late night!! Comments are mostly addressed. https://chromiumcodereview.appspot.com/1557803002/diff/20001/chrome/android/java/res/layout/main.xml File ...
4 years, 11 months ago (2016-01-06 10:51:00 UTC) #7
Yusuf
Another general question: Right now although we are careful about the toolbar button being too ...
4 years, 11 months ago (2016-01-06 23:02:55 UTC) #8
Ian Wen
https://chromiumcodereview.appspot.com/1557803002/diff/60001/chrome/android/java/res/layout/main.xml File chrome/android/java/res/layout/main.xml (right): https://chromiumcodereview.appspot.com/1557803002/diff/60001/chrome/android/java/res/layout/main.xml#newcode36 chrome/android/java/res/layout/main.xml:36: android:id="@+id/buttombar_stub" On 2016/01/06 23:02:55, Yusuf wrote: > bottombar_stub Done. ...
4 years, 11 months ago (2016-01-07 03:09:50 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1557803002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1557803002/100001
4 years, 11 months ago (2016-01-07 03:10:42 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/4870)
4 years, 11 months ago (2016-01-07 03:47:30 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1557803002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1557803002/120001
4 years, 11 months ago (2016-01-07 04:10:35 UTC) #15
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/5197)
4 years, 11 months ago (2016-01-07 04:54:27 UTC) #17
Yusuf
lgtm
4 years, 11 months ago (2016-01-07 07:55:24 UTC) #18
Yusuf
onto dfalcantara@ for final approval
4 years, 11 months ago (2016-01-07 18:24:38 UTC) #19
gone
Mostly nits. Will lgtm to prevent another world rotation, but please address the comments. https://chromiumcodereview.appspot.com/1557803002/diff/120001/chrome/android/java/res/values/colors.xml ...
4 years, 11 months ago (2016-01-07 20:16:33 UTC) #20
Ian Wen
Except for changes in the public APIs in CustomTabsIntent.java, all comments addressed. :) https://chromiumcodereview.appspot.com/1557803002/diff/120001/chrome/android/java/res/values/colors.xml File ...
4 years, 11 months ago (2016-01-08 05:54:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1557803002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1557803002/140001
4 years, 11 months ago (2016-01-08 05:57:41 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 11 months ago (2016-01-08 06:56:20 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2016-01-08 06:57:13 UTC) #27
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ab809fd870ffbed0e6b8e686bef61df30d0f8d9a
Cr-Commit-Position: refs/heads/master@{#368288}

Powered by Google App Engine
This is Rietveld 408576698