[Unified tabstrip] Create unified tab style classes. [chromium/src : main]

0 views
Skip to first unread message

Vince Lugli (Gerrit)

unread,
Jul 23, 2026, 6:13:50 PM (2 days ago) Jul 23
to Caroline Rising, Chromium LUCI CQ, chromium...@chromium.org, jophba...@chromium.org
Attention needed from Caroline Rising

Vince Lugli added 2 comments

Patchset-level comments
File-level comment, Patchset 7:
Vince Lugli . resolved

Sorry for the long review. Most things are copied from the old locations, which will only be removed once we're fully moved to the unified tab strip.

File chrome/browser/ui/views/tabs/horizontal_tab_style.cc
Line 1, Patchset 7:// Copyright 2026 The Chromium Authors
Vince Lugli . resolved

Copied and moved from chrome/browser/ui/views/tabs/tab_style_views.cc and chrome/browser/ui/tabs/tab_style.cc

Open in Gerrit

Related details

Attention is currently required from:
  • Caroline Rising
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ie884f72b4c9ffb49bc89fc2188e4eda08f250b61
Gerrit-Change-Number: 8102718
Gerrit-PatchSet: 11
Gerrit-Owner: Vince Lugli <lu...@google.com>
Gerrit-Reviewer: Caroline Rising <cori...@chromium.org>
Gerrit-Reviewer: Vince Lugli <lu...@google.com>
Gerrit-Attention: Caroline Rising <cori...@chromium.org>
Gerrit-Comment-Date: Thu, 23 Jul 2026 22:13:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Caroline Rising (Gerrit)

unread,
Jul 24, 2026, 10:19:35 AM (18 hours ago) Jul 24
to Vince Lugli, Dominic Austria, Chromium LUCI CQ, chromium...@chromium.org, jophba...@chromium.org
Attention needed from Dominic Austria and Vince Lugli

Caroline Rising added 1 comment

File chrome/browser/ui/views/tabs/tab.cc
File-level comment, Patchset 12 (Latest):
Caroline Rising . unresolved

tab.h/cc isn't used at all when the tabstripunification flag is turned on. It is the legacy implementation that we will be deleting after the feature launch. Can we just leave this class mostly as is for now instead?

Open in Gerrit

Related details

Attention is currently required from:
  • Dominic Austria
  • Vince Lugli
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ie884f72b4c9ffb49bc89fc2188e4eda08f250b61
    Gerrit-Change-Number: 8102718
    Gerrit-PatchSet: 12
    Gerrit-Owner: Vince Lugli <lu...@google.com>
    Gerrit-Reviewer: Caroline Rising <cori...@chromium.org>
    Gerrit-Reviewer: Dominic Austria <dominic...@google.com>
    Gerrit-Reviewer: Vince Lugli <lu...@google.com>
    Gerrit-Attention: Dominic Austria <dominic...@google.com>
    Gerrit-Attention: Vince Lugli <lu...@google.com>
    Gerrit-Comment-Date: Fri, 24 Jul 2026 14:19:22 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vince Lugli (Gerrit)

    unread,
    Jul 24, 2026, 1:35:25 PM (15 hours ago) Jul 24
    to Dominic Austria, Caroline Rising, Chromium LUCI CQ, chromium...@chromium.org, jophba...@chromium.org
    Attention needed from Caroline Rising and Dominic Austria

    Vince Lugli added 1 comment

    File chrome/browser/ui/views/tabs/tab.cc
    File-level comment, Patchset 12:
    Caroline Rising . resolved

    tab.h/cc isn't used at all when the tabstripunification flag is turned on. It is the legacy implementation that we will be deleting after the feature launch. Can we just leave this class mostly as is for now instead?

    Vince Lugli

    Yup, removed!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Caroline Rising
    • Dominic Austria
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ie884f72b4c9ffb49bc89fc2188e4eda08f250b61
      Gerrit-Change-Number: 8102718
      Gerrit-PatchSet: 13
      Gerrit-Owner: Vince Lugli <lu...@google.com>
      Gerrit-Reviewer: Caroline Rising <cori...@chromium.org>
      Gerrit-Reviewer: Dominic Austria <dominic...@google.com>
      Gerrit-Reviewer: Vince Lugli <lu...@google.com>
      Gerrit-Attention: Dominic Austria <dominic...@google.com>
      Gerrit-Attention: Caroline Rising <cori...@chromium.org>
      Gerrit-Comment-Date: Fri, 24 Jul 2026 17:34:55 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Caroline Rising <cori...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Caroline Rising (Gerrit)

      unread,
      Jul 24, 2026, 5:10:50 PM (11 hours ago) Jul 24
      to Vince Lugli, Dominic Austria, Chromium LUCI CQ, chromium...@chromium.org, jophba...@chromium.org
      Attention needed from Dominic Austria and Vince Lugli

      Caroline Rising added 9 comments

      Patchset-level comments
      File-level comment, Patchset 13 (Latest):
      Caroline Rising . resolved

      overall looking good! this could be broken up to have horizontal and vertical implemented separately to make the cl smaller but since it is all behind the flag I don't think there is any risk of reverts here so I'm not worried.

      File chrome/browser/ui/tabs/tab_style.h
      Line 230, Patchset 13 (Latest):class TabStyleNew {
      Caroline Rising . unresolved

      Could you add a comment explaining that this will replace TabStyle and be renamed after the tabstripunification launch?

      File chrome/browser/ui/views/tabs/common/tab_view.h
      Line 224, Patchset 13 (Latest): std::optional<SkColor> GetGroupColor() const;
      Caroline Rising . unresolved

      What is this going to be used for?

      Line 223, Patchset 13 (Latest): const TabView* GetAdjacentTab(bool leading) const;
      Caroline Rising . unresolved

      this looks unused for now, is it meant to be used for separators eventually?

      File chrome/browser/ui/views/tabs/common/tab_view.cc
      Line 624, Patchset 13 (Latest): (selection_state == TabStyle::TabSelectionState::kActive &&
      orientation_ == TabStripOrientation::kHorizontal)
      ? TabStyle::PathType::kActiveTab
      : TabStyle::PathType::kHighlight,
      Caroline Rising . unresolved

      This is done in a couple places can this go into a helper method in an unnamed namespace or in some GetPathType in tabstyle?

      Line 848, Patchset 13 (Latest): width = tab_styling()->GetPinnedWidth(split());
      Caroline Rising . unresolved

      does this and other references in this method need an if(tab_styling()) check?

      Line 1363, Patchset 13 (Latest):const TabView* TabView::GetAdjacentTab(bool leading) const {
      Caroline Rising . unresolved

      If this tab is the last tab in a tab group and there are more tabs after it will this work to get those tabs?

      File chrome/browser/ui/views/tabs/horizontal_tab_style.h
      Line 80, Patchset 13 (Latest): const raw_ptr<const Tab> tab_;
      Caroline Rising . unresolved

      Is this still needed? Since it is no longer being created in tab.cc removing this could simplify horizontal_tab_style.cc quite a bit

      File chrome/browser/ui/views/tabs/tab_style_views.h
      Line 32, Patchset 13 (Parent):struct TabPathFlags {
      TabStyle::RenderUnits render_units = TabStyle::RenderUnits::kPixels;
      bool should_paint_extension = true;
      };
      Caroline Rising . unresolved

      are these not needed for GetPath? Or is it just no longer needed here since it is also in chrome/browser/ui/tabs/tab_style.h?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Dominic Austria
      • Vince Lugli
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ie884f72b4c9ffb49bc89fc2188e4eda08f250b61
        Gerrit-Change-Number: 8102718
        Gerrit-PatchSet: 13
        Gerrit-Owner: Vince Lugli <lu...@google.com>
        Gerrit-Reviewer: Caroline Rising <cori...@chromium.org>
        Gerrit-Reviewer: Dominic Austria <dominic...@google.com>
        Gerrit-Reviewer: Vince Lugli <lu...@google.com>
        Gerrit-Attention: Dominic Austria <dominic...@google.com>
        Gerrit-Attention: Vince Lugli <lu...@google.com>
        Gerrit-Comment-Date: Fri, 24 Jul 2026 21:10:42 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Eshwar Stalin (Gerrit)

        unread,
        Jul 24, 2026, 11:19:28 PM (5 hours ago) Jul 24
        to Vince Lugli, Dominic Austria, Caroline Rising, Chromium LUCI CQ, chromium...@chromium.org, jophba...@chromium.org
        Attention needed from Dominic Austria and Vince Lugli

        Eshwar Stalin added 1 comment

        Patchset-level comments
        Eshwar Stalin . unresolved

        Discussed on some improvements to the design of this with Vince

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dominic Austria
        • Vince Lugli
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ie884f72b4c9ffb49bc89fc2188e4eda08f250b61
        Gerrit-Change-Number: 8102718
        Gerrit-PatchSet: 13
        Gerrit-Owner: Vince Lugli <lu...@google.com>
        Gerrit-Reviewer: Caroline Rising <cori...@chromium.org>
        Gerrit-Reviewer: Dominic Austria <dominic...@google.com>
        Gerrit-Reviewer: Vince Lugli <lu...@google.com>
        Gerrit-CC: Eshwar Stalin <est...@chromium.org>
        Gerrit-Attention: Dominic Austria <dominic...@google.com>
        Gerrit-Attention: Vince Lugli <lu...@google.com>
        Gerrit-Comment-Date: Sat, 25 Jul 2026 03:18:47 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages