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

Issue 2640223002: Attach NTP to Chrome Home bottom sheet (Closed)

Created:
3 years, 11 months ago by mdjones
Modified:
3 years, 11 months ago
Reviewers:
Ian Wen, PEConn, gone
CC:
chromium-reviews, agrieve+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Attach NTP to Chrome Home bottom sheet This change attaches the NTP to the bottom sheet as it's only form of content. This is done when the user first scrolls up on the toolbar. As a result, changes also needed to be made to the touch event handling to allow the sheet and its content to be scrolled correctly. The sheet's scrolling now uses the following rules: - If the sheet is not in it's full state, any scroll will move the sheet. - In the full state, if the user scrolls the sheet from the toolbar, the sheet will always move regardless of the state of the content. - In the full state, if the sheet's content has 0 scroll, a scroll down on any part of the sheet will move the sheet down. - In the full state, if the user scrolls the content, the content will move rather than the sheet. BUG=671361 Review-Url: https://codereview.chromium.org/2640223002 Cr-Commit-Position: refs/heads/master@{#446133} Committed: https://chromium.googlesource.com/chromium/src/+/f00c656f579d31ce878b8e472417cd163ddbee95

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Total comments: 22

Patch Set 3 : address comments #

Total comments: 2

Patch Set 4 : address comment #

Total comments: 1

Patch Set 5 : nit #

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -12 lines) Patch
M chrome/android/java/res/layout/bottom_control_container.xml View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/MathUtils.java View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java View 1 2 3 4 5 12 chunks +136 lines, -9 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (8 generated)
mdjones
ptal
3 years, 11 months ago (2017-01-19 02:02:05 UTC) #2
mdjones
+dfalcantara
3 years, 11 months ago (2017-01-20 21:22:25 UTC) #5
gone
https://codereview.chromium.org/2640223002/diff/20001/chrome/android/java/res/layout/bottom_control_container.xml File chrome/android/java/res/layout/bottom_control_container.xml (right): https://codereview.chromium.org/2640223002/diff/20001/chrome/android/java/res/layout/bottom_control_container.xml#newcode49 chrome/android/java/res/layout/bottom_control_container.xml:49: android:layout_height="match_parent"> nit: space before > to match the rest ...
3 years, 11 months ago (2017-01-23 19:48:40 UTC) #6
mdjones
https://codereview.chromium.org/2640223002/diff/20001/chrome/android/java/res/layout/bottom_control_container.xml File chrome/android/java/res/layout/bottom_control_container.xml (right): https://codereview.chromium.org/2640223002/diff/20001/chrome/android/java/res/layout/bottom_control_container.xml#newcode49 chrome/android/java/res/layout/bottom_control_container.xml:49: android:layout_height="match_parent"> On 2017/01/23 19:48:39, dfalcantara (load balance plz) wrote: ...
3 years, 11 months ago (2017-01-24 01:37:25 UTC) #7
PEConn
https://codereview.chromium.org/2640223002/diff/40001/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/2640223002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java#newcode345 chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java:345: private static boolean areFloatsEqual(float f1, float f2) { Can ...
3 years, 11 months ago (2017-01-24 10:38:23 UTC) #9
mdjones
https://codereview.chromium.org/2640223002/diff/40001/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/2640223002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java#newcode345 chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java:345: private static boolean areFloatsEqual(float f1, float f2) { On ...
3 years, 11 months ago (2017-01-24 16:38:13 UTC) #10
gone
lgtm % comment https://codereview.chromium.org/2640223002/diff/60001/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/2640223002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java#newcode164 chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java:164: // Instead, allow the sheet's content ...
3 years, 11 months ago (2017-01-25 19:19:10 UTC) #11
Ian Wen
lgtm! https://codereview.chromium.org/2640223002/diff/1/chrome/android/java/res/layout/bottom_control_container.xml File chrome/android/java/res/layout/bottom_control_container.xml (right): https://codereview.chromium.org/2640223002/diff/1/chrome/android/java/res/layout/bottom_control_container.xml#newcode53 chrome/android/java/res/layout/bottom_control_container.xml:53: android:layout_width="match_parent" SetWillDraw() can help you draw white background ...
3 years, 11 months ago (2017-01-25 19:55:44 UTC) #12
Ian Wen
On 2017/01/25 19:55:44, Ian Wen wrote: > lgtm! > > https://codereview.chromium.org/2640223002/diff/1/chrome/android/java/res/layout/bottom_control_container.xml > File chrome/android/java/res/layout/bottom_control_container.xml (right): ...
3 years, 11 months ago (2017-01-25 19:56:05 UTC) #13
mdjones
https://codereview.chromium.org/2640223002/diff/1/chrome/android/java/res/layout/bottom_control_container.xml File chrome/android/java/res/layout/bottom_control_container.xml (right): https://codereview.chromium.org/2640223002/diff/1/chrome/android/java/res/layout/bottom_control_container.xml#newcode53 chrome/android/java/res/layout/bottom_control_container.xml:53: android:layout_width="match_parent" On 2017/01/25 19:55:44, Ian Wen wrote: > SetWillDraw() ...
3 years, 11 months ago (2017-01-25 19:57:25 UTC) #14
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/2640223002/100001
3 years, 11 months ago (2017-01-25 19:58:35 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 21:58:58 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/f00c656f579d31ce878b8e472417...

Powered by Google App Engine
This is Rietveld 408576698