-
Notifications
You must be signed in to change notification settings - Fork 894
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
base: master
Are you sure you want to change the base?
Add a option for toggling vertical tabs in tabstrip/toolbar #26108
Conversation
@simonhong Could you kindly review this PR? |
chromium_src/chrome/browser/ui/views/frame/system_menu_model_builder.h
Outdated
Show resolved
Hide resolved
2a7fbf7
to
71e9017
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ with one comment 👍🏼
71e9017
to
5509cf2
Compare
Running CI - #26270 |
Got all green from CI - #26270 |
5509cf2
to
8946dcd
Compare
cc: @iefremov |
8946dcd
to
a94ff8d
Compare
…ommand in tab_strip/toolbar.
a94ff8d
to
2c1ea72
Compare
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); |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Resolves brave/brave-browser#41721
OutCome
brave_vertical_option_in_toolbar.webm
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: