Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a option for toggling vertical tabs in tabstrip/toolbar #26108

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jagadeshjai
Copy link
Collaborator

@jagadeshjai jagadeshjai commented Oct 19, 2024

Resolves brave/brave-browser#41721

OutCome

brave_vertical_option_in_toolbar.webm

Submitter Checklist:

  • I confirm that no security/privacy review is needed and no other type of reviews are needed, or that I have requested them
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

@jagadeshjai jagadeshjai requested a review from a team as a code owner October 19, 2024 18:50
@jagadeshjai
Copy link
Collaborator Author

@simonhong Could you kindly review this PR?

@jagadeshjai jagadeshjai force-pushed the feature_add_vertical_tabs_option_in_toolbar branch from 2a7fbf7 to 71e9017 Compare October 25, 2024 16:58
@jagadeshjai jagadeshjai requested a review from simonhong October 25, 2024 16:59
Copy link
Member

@simonhong simonhong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++ with one comment 👍🏼

@jagadeshjai jagadeshjai force-pushed the feature_add_vertical_tabs_option_in_toolbar branch from 71e9017 to 5509cf2 Compare October 28, 2024 02:59
@simonhong
Copy link
Member

Running CI - #26270

@simonhong
Copy link
Member

Got all green from CI - #26270

@jagadeshjai jagadeshjai force-pushed the feature_add_vertical_tabs_option_in_toolbar branch from 5509cf2 to 8946dcd Compare November 10, 2024 15:24
@bsclifton
Copy link
Member

cc: @iefremov

@jagadeshjai jagadeshjai requested a review from goodov November 18, 2024 13:33
@bsclifton bsclifton force-pushed the feature_add_vertical_tabs_option_in_toolbar branch from 8946dcd to a94ff8d Compare December 4, 2024 06:02
@bsclifton bsclifton requested a review from bridiver as a code owner December 4, 2024 06:02
@jagadeshjai jagadeshjai force-pushed the feature_add_vertical_tabs_option_in_toolbar branch from a94ff8d to 2c1ea72 Compare December 18, 2024 19:37
    Chromium change:
    https://chromium.googlesource.com/chromium/src/+/f1147f74e2db4891bd99bd6a5d0feffe8b453ab2

    commit f1147f74e2db4891bd99bd6a5d0feffe8b453ab2
    Author: Joseph Park <[email protected]>
    Date:   Fri Oct 18 17:39:17 2024 +0000

        Move SimpleMenuModel out of ui/base

        This is a precursor CL to allow SimpleMenuModel to include actions.h, in order to be able to create menu items from action items.
        Currently, simple_menu_model cannot include actions, as doing so creates a dependency cycle from ui/base -> ui/actions -> ui/base.

        Many of the changes here are simply renaming include paths from ui/base/models -> ui/menus/models. The only significant changes here that need to be reviewed are changes in BUILD.gn and DEPS files.

        Change-Id: I345efc6c42bbf2d7fdd539c0b312a8f5db338382
ui::SimpleMenuModel* model) {
if (tabs::utils::SupportsVerticalTabs(browser())) {
std::optional<size_t> task_manager_index =
model->GetIndexOfCommandId(IDC_TASK_MANAGER);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't seem right to insert after IDC_TASK_MANAGER since that is gated on CanOpenTaskManager. We don't want this to just coincidentally line up with SupportsVerticalTabs for desktop. Why aren't we just appending it to the end? Or placing it after something like IDC_BOOKMARK_ALL_TABS where it seems to make more sense (grouping all tab items together)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I feel it might be better to place it after IDC_BOOKMARK_ALL_TABS(i.e "Bookmark All tabs..).

@rebron Could you kindly confirm?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After IDC_BOOKMARK_ALL_TABS works for me. Let's do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Vertical tabs option to context menu
6 participants