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

Issue 2744763005: 🏠 Add pull-handle to bottom toolbar (Closed)

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

Description

[Home] Add pull-handle to bottom toolbar This change adds a pill-shaped handle to the bottom toolbar for Chrome Home indicating that it can be pulled up. To avoid refactoring large sections of code this is done in a relatively unorthodox way. The height of the toolbar needs to increase but the view hierarchy is uncondusive to change. So instead of wrapping the toolbar controls in a bottom-aligned view, a top margin is programmatically added when the views are inflated. The handle itself is programatically drawn and exists as an immediate child of the ViewResourceFrameLayout. This allows it to be captured in the screenshot used by the compositor and for it to be drawn on top of the other toolbar views (particularly the location bar). Both a normal and incognito version of the handle are maintained by the BottomToolbarPhone class. BUG=692865 Review-Url: https://codereview.chromium.org/2744763005 Cr-Commit-Position: refs/heads/master@{#457299} Committed: https://chromium.googlesource.com/chromium/src/+/0f3941c30bdb81dcb934d6a12d84859eedebff0e

Patch Set 1 #

Patch Set 2 : fix shadow and clean up #

Patch Set 3 : correctly apply patch... #

Patch Set 4 : nits #

Total comments: 10

Patch Set 5 : remove toolbar patch dependency #

Total comments: 4

Patch Set 6 : address comments #

Total comments: 6

Patch Set 7 : address comments #

Patch Set 8 : findbugs nit picking #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -17 lines) Patch
M chrome/android/java/res/layout/bottom_control_container.xml View 1 2 3 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/android/java/res/layout/bottom_toolbar_phone.xml View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/res/values/colors.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java View 1 2 3 4 5 6 7 5 chunks +109 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java View 1 2 3 4 5 6 7 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
mdjones
Well, the good news is I have most of the code isolated in BottomToolbarPhone, the ...
3 years, 9 months ago (2017-03-13 20:14:44 UTC) #2
Theresa
https://codereview.chromium.org/2744763005/diff/60001/chrome/android/java/res/values/colors.xml File chrome/android/java/res/values/colors.xml (right): https://codereview.chromium.org/2744763005/diff/60001/chrome/android/java/res/values/colors.xml#newcode30 chrome/android/java/res/values/colors.xml:30: <color name="toolbar_handle_color">#61000000</color> Are the pull handle greys close enough ...
3 years, 9 months ago (2017-03-13 23:08:42 UTC) #4
mdjones
https://codereview.chromium.org/2744763005/diff/60001/chrome/android/java/res/values/colors.xml File chrome/android/java/res/values/colors.xml (right): https://codereview.chromium.org/2744763005/diff/60001/chrome/android/java/res/values/colors.xml#newcode30 chrome/android/java/res/values/colors.xml:30: <color name="toolbar_handle_color">#61000000</color> On 2017/03/13 23:08:42, Theresa wrote: > Are ...
3 years, 9 months ago (2017-03-13 23:43:39 UTC) #5
Theresa
https://codereview.chromium.org/2744763005/diff/60001/chrome/android/java/res/values/colors.xml File chrome/android/java/res/values/colors.xml (right): https://codereview.chromium.org/2744763005/diff/60001/chrome/android/java/res/values/colors.xml#newcode30 chrome/android/java/res/values/colors.xml:30: <color name="toolbar_handle_color">#61000000</color> On 2017/03/13 23:43:39, mdjones wrote: > On ...
3 years, 9 months ago (2017-03-14 00:01:45 UTC) #6
mdjones
https://codereview.chromium.org/2744763005/diff/60001/chrome/android/java/res/values/colors.xml File chrome/android/java/res/values/colors.xml (right): https://codereview.chromium.org/2744763005/diff/60001/chrome/android/java/res/values/colors.xml#newcode30 chrome/android/java/res/values/colors.xml:30: <color name="toolbar_handle_color">#61000000</color> On 2017/03/14 00:01:44, Theresa wrote: > On ...
3 years, 9 months ago (2017-03-14 16:25:28 UTC) #7
gone
Screenshots?
3 years, 9 months ago (2017-03-14 20:02:36 UTC) #8
mdjones
On 2017/03/14 20:02:36, dfalcantara (load balance plz) wrote: > Screenshots? https://bugs.chromium.org/p/chromium/issues/detail?id=692865#c5
3 years, 9 months ago (2017-03-14 20:36:43 UTC) #9
gone
lgtm https://codereview.chromium.org/2744763005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java File chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java (right): https://codereview.chromium.org/2744763005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java#newcode129 chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java:129: // Skip the shadow that sits at the ...
3 years, 9 months ago (2017-03-14 22:38:41 UTC) #10
Theresa
lgtm
3 years, 9 months ago (2017-03-15 15:35:47 UTC) #11
mdjones
https://codereview.chromium.org/2744763005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java File chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java (right): https://codereview.chromium.org/2744763005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java#newcode129 chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java:129: // Skip the shadow that sits at the top ...
3 years, 9 months ago (2017-03-15 17:26:12 UTC) #12
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/2744763005/120001
3 years, 9 months ago (2017-03-15 22:36:07 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/229391)
3 years, 9 months ago (2017-03-15 23:23:13 UTC) #17
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/2744763005/140001
3 years, 9 months ago (2017-03-16 00:08:35 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 01:22:34 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/0f3941c30bdb81dcb934d6a12d84...

Powered by Google App Engine
This is Rietveld 408576698