[Home] Allow bottom sheet content to update handle color

Desktop / Chromium - mdjones [chromium.org] - 20 April 2017 18:28 EDT

This change adds some plumbing to allow the toolbars of the bottom sheet to update the handle color based on their state. The BottomSheetContent interface has been updated to allow the bottom sheet to query the current handle color if a custom toolbar is showing and each toolbar has a reference to the bottom sheet to request an update.

BUG=712689

Review-Url: https://codereview.chromium.org/2833573002 Cr-Commit-Position: refs/heads/master@{#466164}

3de25d5 [Home] Allow bottom sheet content to update handle color
.../chrome/browser/bookmarks/BookmarkManager.java | 4 +-
.../browser/bookmarks/BookmarkSheetContent.java | 17 +++++++--
.../browser/download/DownloadSheetContent.java | 19 ++++++++--
.../browser/download/ui/DownloadManagerUi.java | 4 +-
.../chrome/browser/history/HistoryManager.java | 4 +-
.../browser/history/HistorySheetContent.java | 17 +++++++--
.../browser/ntp/IncognitoBottomSheetContent.java | 5 +++
.../suggestions/SuggestionsBottomSheetContent.java | 5 +++
.../chrome/browser/toolbar/BottomToolbarPhone.java | 18 ++++++++-
.../browser/widget/bottomsheet/BottomSheet.java | 26 ++++++++++++-
.../widget/selection/SelectableListLayout.java | 3 +-
.../widget/selection/SelectableListToolbar.java | 44 ++++++++++++++++++++++
12 files changed, 144 insertions(+), 22 deletions(-)

Upstream: git.chromium.org


  • Share