Skip to content

Commit

Permalink
Add should_show_sync_icon parameter to TabGroupStyle::GetInsetsForHea…
Browse files Browse the repository at this point in the history
…derChip

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d5ce2ff0aa7c0d44514a37330b7c722b9f9d7222

commit d5ce2ff0aa7c0d44514a37330b7c722b9f9d7222
Author: Shibalik Mohapatra <shibalik@chromium.org>
Date:   Thu Aug 31 16:59:41 2023 +0000

    [SavedTabGroup] Add correct padding in tab group header with sync icon.

    Change-Id: I42111a67c8fe404486af978a6b82ece946f16c57
  • Loading branch information
emerick authored and cdesouza-chromium committed Sep 27, 2023
1 parent 1b6a16f commit 438a3eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions chromium_src/chrome/browser/ui/views/tabs/tab_group_style.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ SkPath TabGroupStyle::GetUnderlinePath(gfx::Rect local_bounds) const {
return path;
}

gfx::Insets TabGroupStyle::GetInsetsForHeaderChip() const {
auto insets = TabGroupStyle_ChromiumImpl::GetInsetsForHeaderChip();
gfx::Insets TabGroupStyle::GetInsetsForHeaderChip(
bool should_show_sync_icon) const {
auto insets =
TabGroupStyle_ChromiumImpl::GetInsetsForHeaderChip(should_show_sync_icon);
if (!tabs::features::HorizontalTabsUpdateEnabled()) {
return insets;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TabGroupStyle : public TabGroupStyle_ChromiumImpl {

SkPath GetUnderlinePath(gfx::Rect local_bounds) const override;

gfx::Insets GetInsetsForHeaderChip() const override;
gfx::Insets GetInsetsForHeaderChip(bool should_show_sync_icon) const override;

float GetEmptyChipSize() const override;

Expand Down

0 comments on commit 438a3eb

Please sign in to comment.