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

Issue 2853583002: 🏠 Add expand button and flag to enable it (Closed)

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

Description

[Home] Add expand button and flag to enable it This change adds an alternate UI for the Chrome Home bottom sheet. Instead of being able to swipe up when the sheet is peeking, there is the option to have a button that sits to the left of the omnibox that expands the sheet when pressed. The feature name for this UI is "ChromeHomeExpandButton". This flag runs into the same problems as Chrome Home when first being enabled -- native is not ready when UI is initialized. To avoid yet another Chrome restart, the pull-handle version of the UI will appear briefly before switching to the button. BUG=716220 Review-Url: https://codereview.chromium.org/2853583002 Cr-Commit-Position: refs/heads/master@{#468781} Committed: https://chromium.googlesource.com/chromium/src/+/d484eacb1a1016a1f2fda3bc57b8e309fd08df76

Patch Set 1 #

Patch Set 2 : fix screenshot #

Total comments: 3

Patch Set 3 : spec button #

Patch Set 4 : 1dp for side shadow! #

Patch Set 5 : early return #

Patch Set 6 : fix histograms #

Total comments: 8

Patch Set 7 : address comments / nuke square button code #

Patch Set 8 : remove unneeded code after rebase #

Patch Set 9 : fix expanded omnibox state #

Patch Set 10 : metrics #

Total comments: 2

Patch Set 11 : nit #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -12 lines) Patch
M chrome/android/java/res/layout/toolbar_phone_common.xml View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.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 8 9 10 11 11 chunks +98 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheetMetrics.java View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
mdjones
Screenshots in bug; ptal
3 years, 7 months ago (2017-04-28 19:00:47 UTC) #3
Theresa
lgtm https://codereview.chromium.org/2853583002/diff/20001/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/2853583002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java#newcode272 chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java:272: int topMarginForControls = getExtraTopMargin(); Should we return early ...
3 years, 7 months ago (2017-04-28 21:50:32 UTC) #4
mdjones
Did a better job centering the arrow. ptal https://codereview.chromium.org/2853583002/diff/20001/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/2853583002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java#newcode272 chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java:272: int ...
3 years, 7 months ago (2017-04-28 22:15:30 UTC) #5
Theresa
still lgtm
3 years, 7 months ago (2017-04-28 22:16:56 UTC) #6
mdjones
+jwd for histograms
3 years, 7 months ago (2017-04-28 23:24:03 UTC) #10
mdjones
+dfalcantara for owners
3 years, 7 months ago (2017-04-28 23:24:53 UTC) #12
gone
https://codereview.chromium.org/2853583002/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/2853583002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java#newcode225 chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java:225: if (!mUseToolbarHandle && mExpandButton != null && mExpandButton.getVisibility() != ...
3 years, 7 months ago (2017-04-30 01:56:00 UTC) #13
mdjones
https://codereview.chromium.org/2853583002/diff/20001/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/2853583002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java#newcode272 chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java:272: int topMarginForControls = getExtraTopMargin(); On 2017/04/28 21:50:32, Theresa wrote: ...
3 years, 7 months ago (2017-05-01 20:46:08 UTC) #14
jwd
Are there existing metrics for when home is activated? Is there value in having something ...
3 years, 7 months ago (2017-05-01 20:59:11 UTC) #15
mdjones
On 2017/05/01 20:59:11, jwd wrote: > Are there existing metrics for when home is activated? ...
3 years, 7 months ago (2017-05-01 21:21:49 UTC) #16
jwd
Thanks! Metrics LGTM
3 years, 7 months ago (2017-05-01 21:33:56 UTC) #17
gone
lgtm https://codereview.chromium.org/2853583002/diff/180001/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/2853583002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java#newcode322 chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java:322: mBottomSheet.onExpandButtonPressed(); if (mBottomSheet != null) mBottomSheet.onExpandButtonPressed();?
3 years, 7 months ago (2017-05-02 17:25:07 UTC) #18
mdjones
https://codereview.chromium.org/2853583002/diff/180001/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/2853583002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java#newcode322 chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java:322: mBottomSheet.onExpandButtonPressed(); On 2017/05/02 17:25:07, slow (dfalcantara) wrote: > if ...
3 years, 7 months ago (2017-05-02 18:46:10 UTC) #19
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/2853583002/200001
3 years, 7 months ago (2017-05-02 18:47:32 UTC) #22
commit-bot: I haz the power
Failed to apply patch for chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java: While running git apply --index -3 -p1; error: patch ...
3 years, 7 months ago (2017-05-02 19:51:57 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/2853583002/220001
3 years, 7 months ago (2017-05-02 20:31:37 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 21:35:03 UTC) #30
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/d484eacb1a1016a1f2fda3bc57b8...

Powered by Google App Engine
This is Rietveld 408576698