Compare commits

...

5 Commits

Author SHA1 Message Date
wukko 8a83377c3f revision: bump to 3 (#2047) 2026-07-03 20:40:29 +00:00
wukko 7079bcbe30 helium/ui/cab: invalidate toolbar layout on window state change (#2046)
fixes the stale alignment issue on Windows by invalidating toolbar
layout after maximize/restore so the centered address bar recomputes
against the new frame width

fixes #1958
2026-07-03 19:35:48 +00:00
wukko 9d129c636f helium/ui/vertical: fix incorrect tab alert indicator position (#2045)
fixes #1994
2026-07-03 19:12:03 +00:00
wukko e33c394d1d helium/core: enable bookmark bar visibility options (#2038)
enables kNtpSimplificationBookmarkBar, which includes proper visibility
options for the bookmark bar

closes #1349 (for real this time)
2026-07-03 21:13:28 +06:00
jj ec0adbe698 helium/zen: fix bookmark items being offset when vts is hidden (#2035) 2026-07-03 21:12:46 +06:00
7 changed files with 61 additions and 26 deletions
@@ -0,0 +1,11 @@
--- a/components/search/ntp_features.cc
+++ b/components/search/ntp_features.cc
@@ -285,7 +285,7 @@ BASE_FEATURE(kNtpShortcutsRedesign, base
// If enabled, the bookmark bar may be auto-removed on the NTP and new
// visibility settings are added.
-BASE_FEATURE(kNtpSimplificationBookmarkBar, base::FEATURE_DISABLED_BY_DEFAULT);
+BASE_FEATURE(kNtpSimplificationBookmarkBar, base::FEATURE_ENABLED_BY_DEFAULT);
// If enabled, the bookmark bar time interval and number of times it's shown on
// the NTP before auto-hiding is decreased for testing.
@@ -252,3 +252,16 @@
</div>
<div
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2916,6 +2916,10 @@ void BrowserView::NotifyWidgetSizeConstr
}
void BrowserView::OnWidgetShowStateChanged(views::Widget* widget) {
+ if (toolbar_) {
+ toolbar_->InvalidateLayout();
+ }
+
// `display-state` @media feature value in renderer needs to be updated.
SynchronizeRenderWidgetHostVisualPropertiesForMainFrame();
}
+2 -2
View File
@@ -142,7 +142,7 @@
void BrowserView::OnProjectsPanelStateChanged(
ProjectsPanelStateController* controller) {
projects_panel_container_->OnProjectsPanelStateChanged(controller);
@@ -3831,9 +3862,10 @@ void BrowserView::ReparentTabStripAndWeb
@@ -3835,9 +3866,10 @@ void BrowserView::ReparentTabStripAndWeb
// The TabStrip must be placed in the same position before the reparenting
// to maintain the correct Z-order to ensure it can receive mouse events.
// See crbug.com/454852658.
@@ -156,7 +156,7 @@
// Reparent PWA views that were moved for immersive and ChromeOS tablet
// mode.
@@ -4979,6 +5011,16 @@ void BrowserView::AddedToWidget() {
@@ -4983,6 +5015,16 @@ void BrowserView::AddedToWidget() {
}
}
+4 -4
View File
@@ -676,7 +676,7 @@
/*align_leading=*/true,
/*expand=*/false),
+ TabChildConfig(alert_indicator_, kIconDesignWidth, kDefaultPadding,
+ /*align_leading=*/false,
+ /*align_leading=*/true,
+ /*expand=*/false, /*decorate_on_collapse=*/true),
TabChildConfig(title_, kTitleMinWidth, kDefaultPadding,
/*align_leading=*/true,
@@ -1049,7 +1049,7 @@
horizontal_tab_strip_region_view_->ResetTabStrip();
vertical_tab_strip_region_view_->InitializeTabStrip();
} else {
@@ -4230,13 +4229,23 @@ const views::Widget* BrowserView::GetWid
@@ -4234,13 +4233,23 @@ const views::Widget* BrowserView::GetWid
}
void BrowserView::CreateTabSearchBubble() {
@@ -1075,7 +1075,7 @@
tab_search_host->CloseTabSearchBubble();
}
}
@@ -4276,34 +4285,21 @@ void BrowserView::UpdateTabSearchBubbleH
@@ -4280,34 +4289,21 @@ void BrowserView::UpdateTabSearchBubbleH
return;
}
@@ -1125,7 +1125,7 @@
}
}
@@ -5084,9 +5080,6 @@ void BrowserView::AddedToWidget() {
@@ -5088,9 +5084,6 @@ void BrowserView::AddedToWidget() {
layout_views.horizontal_tab_strip_region_view =
horizontal_tab_strip_region_view_;
layout_views.vertical_tab_strip_region_view = vertical_tab_strip_region_view_;
+29 -19
View File
@@ -608,7 +608,7 @@
LocationBar* location_bar = GetLocationBar();
location_bar->FocusLocation(is_user_initiated,
/*clear_focus_if_failed=*/true);
@@ -3079,7 +3590,7 @@ bool BrowserView::IsToolbarVisible() con
@@ -3083,7 +3594,7 @@ bool BrowserView::IsToolbarVisible() con
}
bool BrowserView::IsToolbarShowing() const {
@@ -617,7 +617,7 @@
}
bool BrowserView::IsLocationBarVisible() const {
@@ -4167,6 +4678,11 @@ void BrowserView::OnWidgetActivationChan
@@ -4171,6 +4682,11 @@ void BrowserView::OnWidgetActivationChan
}
}
@@ -629,7 +629,7 @@
browser_->GetFeatures()
.extension_keybinding_registry()
->OnHostActivationChanged(active);
@@ -5015,6 +5531,8 @@ void BrowserView::AddedToWidget() {
@@ -5019,6 +5535,8 @@ void BrowserView::AddedToWidget() {
base::BindRepeating(&BrowserView::OnToolbarTabStripStateChanged,
base::Unretained(this)));
OnToolbarTabStripStateChanged(helium_layout_controller);
@@ -638,7 +638,7 @@
}
UpdateTabSearchBubbleHost();
@@ -5099,6 +5617,9 @@ void BrowserView::AddedToWidget() {
@@ -5103,6 +5621,9 @@ void BrowserView::AddedToWidget() {
// once per browser instance.
auto* toolbar_button_provider = ToolbarButtonProvider::From(browser_);
CHECK(toolbar_button_provider);
@@ -648,7 +648,7 @@
// `AutofillBubbleHandlerImpl` depends on the ToolbarButtonProvider so it must
// be constructed following the check above.
@@ -5155,6 +5676,8 @@ void BrowserView::AddedToWidget() {
@@ -5159,6 +5680,8 @@ void BrowserView::AddedToWidget() {
}
void BrowserView::RemovedFromWidget() {
@@ -657,7 +657,7 @@
CHECK(GetFocusManager());
focus_manager_observation_.Reset();
}
@@ -5183,6 +5706,14 @@ void BrowserView::OnThemeChanged() {
@@ -5187,6 +5710,14 @@ void BrowserView::OnThemeChanged() {
}
FrameColorsChanged();
@@ -672,7 +672,7 @@
}
bool BrowserView::GetDropFormats(
@@ -5446,6 +5977,9 @@ void BrowserView::UpdateFastResizeForCon
@@ -5450,6 +5981,9 @@ void BrowserView::UpdateFastResizeForCon
}
int BrowserView::GetClientAreaTop() {
@@ -682,7 +682,7 @@
views::View* top_view = toolbar_;
// Get the top of the top view in browser view coordinates.
@@ -6057,6 +6591,56 @@ void BrowserView::OnWillChangeFocus(View
@@ -6061,6 +6595,56 @@ void BrowserView::OnWillChangeFocus(View
}
void BrowserView::OnDidChangeFocus(View* focused_before, View* focused_now) {
UpdateAccessibleNameForRootView();
@@ -1228,7 +1228,17 @@
}
// TODO(crbug.com/469425263): Ensure correct layout calculations for the
@@ -900,15 +1006,40 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -878,7 +984,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
top_container_layout.bounds = GetTopContainerBoundsInParent(
top_container_local_bounds, parent_params);
- if (layout_data_->tab_strip_type == TabStripType::kVertical) {
+ if (layout_data_->tab_strip_type == TabStripType::kVertical &&
+ !zen.floating_vertical_tab_strip) {
auto& top_container_children = top_container_layout.children;
auto bookmarks_child = top_container_children.find(views().bookmark_bar);
if (bookmarks_child != top_container_children.end() &&
@@ -900,15 +1007,40 @@ BrowserViewTabbedLayoutImpl::CalculatePr
if (const auto* toolbar_layout =
top_container_layout.GetLayoutFor(views().toolbar);
toolbar_layout && !toolbar_layout->bounds.IsEmpty()) {
@@ -1271,7 +1281,7 @@
}
if (dynamic_tab_strip) {
@@ -916,15 +1047,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -916,15 +1048,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
const int tabstrip_height =
views().horizontal_tab_strip_region_view->GetPreferredSize().height();
@@ -1301,7 +1311,7 @@
}
// Lay out the main area background.
@@ -1059,7 +1196,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -1059,7 +1197,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
params.SetTop(top_container_layout.bounds.bottom());
}
@@ -1311,7 +1321,7 @@
if (delegate().IsVerticalTabStripRightAligned()) {
trailing_side_chrome_attached = true;
} else {
@@ -1102,14 +1240,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -1102,14 +1241,21 @@ BrowserViewTabbedLayoutImpl::CalculatePr
const auto& separator_info = layout_data_->separator_info;
views().multi_contents_view->SetTopChromeAttachmentState(
infobar_visible && should_use_rounded_frame,
@@ -1336,7 +1346,7 @@
const bool include_leading_inset =
separator_info.shadow_box ||
!(horizontal_layout.has_side_panel() && side_panel_leading);
@@ -1121,7 +1266,7 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -1121,7 +1267,7 @@ BrowserViewTabbedLayoutImpl::CalculatePr
base::ClampRound((1.0 - side_panel_reveal_amount) * default_inset);
const gfx::Insets contents_insets = gfx::Insets::TLBR(
@@ -1345,7 +1355,7 @@
include_leading_inset ? default_inset : panel_side_inset, default_inset,
include_trailing_inset ? default_inset : panel_side_inset);
@@ -1235,6 +1380,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
@@ -1235,6 +1381,8 @@ BrowserViewTabbedLayoutImpl::CalculatePr
views().vertical_tab_strip_region_view->SetHasLeadingExclusionForLayout(
has_leading_exclusion);
@@ -1354,7 +1364,7 @@
const int padding =
GetLayoutConstant(LayoutConstant::kVerticalTabStripHorizontalPadding);
@@ -1263,6 +1410,8 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1263,6 +1411,8 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
IsDynamicTabStrip(layout_data_->tab_strip_type);
const bool show_dynamic_tab_strip =
ShowDynamicTabStrip(layout_data_->tab_strip_type);
@@ -1363,7 +1373,7 @@
if (IsParentedTo(views().horizontal_tab_strip_region_view,
views().top_container)) {
@@ -1271,12 +1420,19 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1271,12 +1421,19 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
const int leading_margin = GetHorizontalTabStripLeadingMargin(params);
tabstrip_bounds = GetBoundsWithExclusion(
params, views().horizontal_tab_strip_region_view, leading_margin);
@@ -1386,7 +1396,7 @@
}
// Lay out toolbar. If toolbar is in the top-most row, it will go into the
@@ -1297,21 +1453,26 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1297,21 +1454,26 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
params.visual_client_area.y(),
params.visual_client_area.width(),
views().toolbar->GetPreferredSize().height());
@@ -1417,7 +1427,7 @@
}
// Lay out the bookmarks bar if one is present.
@@ -1320,24 +1481,33 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1320,24 +1482,33 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
const gfx::Rect bookmarks_bounds(
params.visual_client_area.x(), params.visual_client_area.y(),
params.visual_client_area.width(),
@@ -1458,7 +1468,7 @@
}
return gfx::Rect(params.visual_client_area.x(), original_top,
@@ -1345,13 +1515,60 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
@@ -1345,13 +1516,60 @@ gfx::Rect BrowserViewTabbedLayoutImpl::C
params.visual_client_area.y() - original_top);
}
+1
View File
@@ -195,6 +195,7 @@ helium/core/simplify-context-menu.patch
helium/core/disable-pdf-infobar.patch
helium/core/enable-screenshots.patch
helium/core/enable-glow-up-features.patch
helium/core/enable-bookmark-bar-settings.patch
helium/settings/settings-page-icons.patch
helium/settings/move-search-suggest.patch
+1 -1
View File
@@ -1 +1 @@
2
3