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

Issue 2738843003: [Home] Add a bottom navigation bar for the BottomSheet (Closed)

Created:
3 years, 9 months ago by Theresa
Modified:
3 years, 9 months ago
Reviewers:
mdjones, gone, agrieve
CC:
chromium-reviews, agrieve+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Home] Add a bottom navigation bar for the BottomSheet This adds a basic navigation bar fixed to the bottom of the BottomSheet. Changing BottomSheet content will be done in a follow up CL(s). BUG=699598 Review-Url: https://codereview.chromium.org/2738843003 Cr-Commit-Position: refs/heads/master@{#456833} Committed: https://chromium.googlesource.com/chromium/src/+/4a2aaa37f0366b0a4673fa57867cda86f65118c9

Patch Set 1 #

Total comments: 12

Patch Set 2 : Changes from mdjones@ review #

Patch Set 3 : Add missing file #

Total comments: 5

Patch Set 4 : BottomSheetBottomNav -> BottomSheetContentController #

Total comments: 2

Patch Set 5 : Move proguard exception to different file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -17 lines) Patch
M build/secondary/third_party/android_tools/BUILD.gn View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/proguard.flags View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/android/java/res/color/bottom_nav_tint.xml View 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/android/java/res/drawable-hdpi/ic_file_download_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/ic_home_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-ldrtl-hdpi-v17/ic_history_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-ldrtl-mdpi-v17/ic_history_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-ldrtl-xhdpi-v17/ic_history_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-ldrtl-xxhdpi-v17/ic_history_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-ldrtl-xxxhdpi-v17/ic_history_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/ic_file_download_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/ic_home_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/ic_file_download_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/ic_home_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/ic_file_download_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/ic_home_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/ic_file_download_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/ic_home_grey600_24dp.png View Binary file 0 comments Download
A chrome/android/java/res/layout/bottom_sheet_bottom_nav.xml View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/android/java/res/layout/main.xml View 1 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/android/java/res/menu/bottom_sheet_nav_menu.xml View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java View 1 2 3 4 2 chunks +16 lines, -16 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetContentController.java View 1 2 3 1 chunk +99 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

Messages

Total messages: 32 (18 generated)
Theresa
ptal https://codereview.chromium.org/2738843003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java File chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java (right): https://codereview.chromium.org/2738843003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java#newcode596 chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java:596: public float getMinOffset() { nit: these should be ...
3 years, 9 months ago (2017-03-08 18:05:24 UTC) #4
Theresa
https://codereview.chromium.org/2738843003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetBottomNav.java File chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetBottomNav.java (right): https://codereview.chromium.org/2738843003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetBottomNav.java#newcode36 chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetBottomNav.java:36: public void init(BottomSheet bottomSheet, int controlContainerHeightResId) { This method ...
3 years, 9 months ago (2017-03-08 22:27:00 UTC) #7
mdjones
https://codereview.chromium.org/2738843003/diff/1/chrome/android/java/res/layout/main.xml File chrome/android/java/res/layout/main.xml (right): https://codereview.chromium.org/2738843003/diff/1/chrome/android/java/res/layout/main.xml#newcode74 chrome/android/java/res/layout/main.xml:74: <org.chromium.chrome.browser.widget.BottomSheetBottomNav Since this is on the main layout, should ...
3 years, 9 months ago (2017-03-09 16:52:10 UTC) #8
Theresa
https://codereview.chromium.org/2738843003/diff/1/chrome/android/java/res/layout/main.xml File chrome/android/java/res/layout/main.xml (right): https://codereview.chromium.org/2738843003/diff/1/chrome/android/java/res/layout/main.xml#newcode74 chrome/android/java/res/layout/main.xml:74: <org.chromium.chrome.browser.widget.BottomSheetBottomNav On 2017/03/09 16:52:10, mdjones wrote: > Since this ...
3 years, 9 months ago (2017-03-09 17:55:45 UTC) #10
mdjones
lgtm https://codereview.chromium.org/2738843003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/2738843003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode373 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:373: BottomSheetBottomNav bottomNav = (BottomSheetBottomNav) findViewById(R.id.bottom_nav); I believe bottom_nav ...
3 years, 9 months ago (2017-03-09 19:13:54 UTC) #14
Theresa
+dfalcantara@ for ChromeActivity OWNERS +agrieve@ for base/android and build/ https://codereview.chromium.org/2738843003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/2738843003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode373 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:373: ...
3 years, 9 months ago (2017-03-09 19:19:10 UTC) #16
Theresa
https://codereview.chromium.org/2738843003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetBottomNav.java File chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetBottomNav.java (right): https://codereview.chromium.org/2738843003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetBottomNav.java#newcode27 chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheetBottomNav.java:27: public class BottomSheetBottomNav extends BottomNavigationView Yesterday Matt and I ...
3 years, 9 months ago (2017-03-09 19:36:37 UTC) #17
Theresa
https://codereview.chromium.org/2738843003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java (right): https://codereview.chromium.org/2738843003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java#newcode373 chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java:373: BottomSheetBottomNav bottomNav = (BottomSheetBottomNav) findViewById(R.id.bottom_nav); On 2017/03/09 19:19:10, Theresa ...
3 years, 9 months ago (2017-03-09 23:10:07 UTC) #18
gone
lgtm on ChromeActivity
3 years, 9 months ago (2017-03-10 01:25:28 UTC) #19
Theresa
agrieve@ - ptal. The patchset that's dependent on this is through review and ready to ...
3 years, 9 months ago (2017-03-13 18:46:54 UTC) #20
agrieve
proguard & build changes lgtm /w one nit. Obligatory nag about using vector drawables rather ...
3 years, 9 months ago (2017-03-14 18:06:35 UTC) #21
Theresa
I filed crbug.com/701447 to track potentially moving from PNGs to vector drawables. https://codereview.chromium.org/2738843003/diff/60001/base/android/proguard/chromium_apk.flags File base/android/proguard/chromium_apk.flags ...
3 years, 9 months ago (2017-03-14 18:14:22 UTC) #24
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/2738843003/80001
3 years, 9 months ago (2017-03-14 20:20:16 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 21:18:32 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/4a2aaa37f0366b0a4673fa57867c...

Powered by Google App Engine
This is Rietveld 408576698