Compare commits

...

18 Commits

Author SHA1 Message Date
jj b4155a7858 revision: bump to 4 (#1752) 2026-05-20 18:39:56 +00:00
jj 75bb363f0b merge: update to chromium 148.0.7778.178 (#1751) 2026-05-20 20:31:45 +02:00
jj 9b257a50cc flags.gn: remove drumbrake enablement
ungoogled-chromium introduced a flag to disable JIT, which also
enables building with drumbrake, because disabling JIT also disables
all wasm functionality.

i want to drop the patch and these flags temporarily before i have more
time to see if there are any size, security, or other drawbacks of
building with drumbrake before adding it in
2026-05-20 16:46:56 +00:00
jj 64322bef7f patches: refresh for chromium 148.0.7778.178 2026-05-20 16:45:45 +00:00
jj 56a15e4d5d merge: update ungoogled-chromium to 148.0.7778.178 2026-05-20 16:42:06 +00:00
Blaise 7c07c452ea Update to Chromium 148.0.7778.178 2026-05-19 16:25:51 -05:00
Blaise 5e207628bf Fallback string enum for older python 2026-05-19 16:25:05 -05:00
jj c44f96e128 helium/kb-shortcuts: don't modify close tab/window actions (#1736)
⌘W maps to different commands depending on whether we have tabs or not.
somehow the mac shortcut handler persists the mapping "close window"
command. let's just avoid that altogether

fixes imputnet/helium-macos#241
2026-05-19 19:19:21 +02:00
Kirill A. Korinsky 65369b1a54 Added OpenBSD package (#3783) 2026-05-19 07:28:09 -05:00
Kevin Hamer d99402c696 Check hide tab close buttons on vertical tabs (#3782) 2026-05-19 07:24:51 -05:00
dot-gov 0ca51e8b59 Add patch for disabling JIT (#3775) 2026-05-19 07:20:40 -05:00
jj d14e214a34 revision: bump to 3 (#1682) 2026-05-14 09:43:10 +03:00
jj 48eb96f4a3 helium/zen: fix zen vts not displaying on windows (#1681)
fixes imputnet/helium-windows#259
2026-05-14 06:42:43 +00:00
wukko 549f912f82 merge: update to chromium 148.0.7778.167 (#1679) 2026-05-14 12:17:38 +06:00
wukko b304a82afb patches: refresh for chromium 148.0.7778.167 2026-05-13 15:26:49 +03:00
wukko 4f53b3ce3e merge: update ungoogled-chromium to 148.0.7778.167 2026-05-13 15:09:12 +03:00
Blaise dca3530bdd Update to Chromium 148.0.7778.167 2026-05-12 14:29:13 -05:00
Blaise d195bfc940 Update to Chromium 148.0.7778.96 2026-05-05 15:23:22 -05:00
39 changed files with 311 additions and 239 deletions
+1 -1
View File
@@ -1 +1 @@
148.0.7778.96
148.0.7778.178
+1 -1
View File
@@ -244,7 +244,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
}
--- a/chrome/common/pref_names.h
+++ b/chrome/common/pref_names.h
@@ -3601,6 +3601,9 @@ inline constexpr char kSharedWorkerBlobU
@@ -3607,6 +3607,9 @@ inline constexpr char kSharedWorkerBlobU
inline constexpr char kSharedWorkerExtendedLifetimeEnabled[] =
"worker.shared_worker_extended_lifetime_enabled";
+3 -3
View File
@@ -117,7 +117,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -314,7 +314,10 @@
@@ -315,7 +315,10 @@
#include "ui/compositor/paint_recorder.h"
#include "ui/content_accelerators/accelerator_util.h"
#include "ui/display/screen.h"
@@ -128,7 +128,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "ui/gfx/animation/animation_runner.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
@@ -332,6 +335,7 @@
@@ -333,6 +336,7 @@
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/controls/webview/webview.h"
@@ -136,7 +136,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/view.h"
@@ -838,6 +842,83 @@ class BrowserView::ExclusiveAccessContex
@@ -839,6 +843,83 @@ class BrowserView::ExclusiveAccessContex
base::WeakPtrFactory<ExclusiveAccessContextImpl> weak_ptr_factory_{this};
};
@@ -101,7 +101,7 @@ with limited CPU/memory resources and it is disabled by default.
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -2908,6 +2908,10 @@ inline constexpr char kLogJsConsoleMessa
@@ -2920,6 +2920,10 @@ inline constexpr char kLogJsConsoleMessa
"Enable logging JS console messages in system logs, please note that they "
"may contain PII.";
@@ -1824,7 +1824,7 @@
+#endif // CHROME_BROWSER_UI_BROWSER_SHORTCUTS_BROWSER_SHORTCUT_PLATFORM_MAC_H_
--- /dev/null
+++ b/chrome/browser/ui/browser_shortcuts/browser_shortcut_platform_mac.mm
@@ -0,0 +1,250 @@
@@ -0,0 +1,265 @@
+// Copyright 2026 The Helium Authors
+// You can use, redistribute, and/or modify this source code under
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
@@ -1924,9 +1924,20 @@
+ return *command_ids;
+}
+
+bool IsDynamicCloseCommand(int command_id) {
+ // AppController swaps Cmd+W/Cmd+Shift+W between Close Tab and Close Window at
+ // runtime based on the active window. Helium can expose these commands for
+ // additional shortcuts, but should not rewrite their menu-owned defaults.
+ return command_id == IDC_CLOSE_TAB || command_id == IDC_CLOSE_WINDOW;
+}
+
+bool IsMenuCommandHeliumModifiable(
+ int command_id,
+ const std::optional<ui::Accelerator>& accelerator) {
+ if (IsDynamicCloseCommand(command_id)) {
+ return false;
+ }
+
+ const ui::Accelerator* default_accelerator =
+ AcceleratorsCocoa::GetInstance()->GetAcceleratorForCommand(command_id);
+ if (!default_accelerator) {
@@ -1987,6 +1998,10 @@
+}
+
+bool ShouldManageMenuItem(NSMenuItem* item, int command_id) {
+ if (IsDynamicCloseCommand(command_id)) {
+ return false;
+ }
+
+ if (HeliumManagedMenuCommandIds().contains(command_id)) {
+ return true;
+ }
+1 -1
View File
@@ -1,6 +1,6 @@
--- a/components/search/ntp_features.cc
+++ b/components/search/ntp_features.cc
@@ -197,7 +197,7 @@ BASE_FEATURE(kNtpNextFeatures, base::FEA
@@ -206,7 +206,7 @@ BASE_FEATURE(kNtpNextCanvasChip, base::F
BASE_FEATURE(kNtpOneGoogleBarAsyncBarParts, base::FEATURE_DISABLED_BY_DEFAULT);
// If enabled, a footer will show on the NTP.
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -13066,11 +13066,395 @@ const FeatureEntry kFeatureEntries[] = {
@@ -13113,11 +13113,395 @@ const FeatureEntry kFeatureEntries[] = {
// AboutFlagsHistogramTest unit test to verify this process).
};
@@ -397,7 +397,7 @@
FlagsStateSingleton(const FlagsStateSingleton&) = delete;
FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete;
~FlagsStateSingleton() override = default;
@@ -13089,7 +13473,7 @@ class FlagsStateSingleton : public flags
@@ -13136,7 +13520,7 @@ class FlagsStateSingleton : public flags
void RestoreDefaultState() {
flags_state_ =
@@ -406,7 +406,7 @@
}
private:
@@ -13416,7 +13800,7 @@ base::span<const FeatureEntry> GetFeatur
@@ -13463,7 +13847,7 @@ base::span<const FeatureEntry> GetFeatur
!entries_for_testing->empty()) {
return *entries_for_testing;
}
+1 -1
View File
@@ -15,7 +15,7 @@
#endif // USE_AURA
#if defined(USE_AURA)
@@ -4651,11 +4651,13 @@ const FeatureEntry::FeatureVariation
@@ -4682,11 +4682,13 @@ const FeatureEntry::FeatureVariation
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
+2 -2
View File
@@ -1075,7 +1075,7 @@
std::optional<SkColor> main_document_theme_color_;
--- a/content/browser/renderer_host/render_frame_host_impl.cc
+++ b/content/browser/renderer_host/render_frame_host_impl.cc
@@ -12867,6 +12867,22 @@ void RenderFrameHostImpl::CommitNavigati
@@ -12889,6 +12889,22 @@ void RenderFrameHostImpl::CommitNavigati
}
}
@@ -1098,7 +1098,7 @@
bool is_srcdoc = common_params->url.IsAboutSrcdoc();
if (is_srcdoc) {
// TODO(wjmaclean): initialize this in NavigationRequest's constructor
@@ -16423,6 +16439,15 @@ bool RenderFrameHostImpl::DidCommitNavig
@@ -16445,6 +16461,15 @@ bool RenderFrameHostImpl::DidCommitNavig
document_associated_data_->owned_page()->set_last_main_document_source_id(
ukm::ConvertToSourceId(navigation_request->GetNavigationId(),
ukm::SourceIdType::NAVIGATION_ID));
+10 -10
View File
@@ -363,7 +363,7 @@
theme_: {type: Object},
showCustomize_: {type: Boolean},
showCustomizeChromeText_: {type: Boolean},
@@ -353,9 +321,6 @@ export class AppElement extends AppEleme
@@ -356,9 +324,6 @@ export class AppElement extends AppEleme
loadTimeData.getBoolean('searchboxShowComposebox');
protected accessor composeboxState_: ComposeboxState|null = null;
@@ -373,7 +373,7 @@
protected accessor theme_: Theme|null = null;
protected accessor showCustomize_: boolean = false;
protected accessor showCustomizeChromeText_: boolean = false;
@@ -474,13 +439,6 @@ export class AppElement extends AppEleme
@@ -480,13 +445,6 @@ export class AppElement extends AppEleme
this.shouldPrintPerformance_ =
new URLSearchParams(location.search).has('print_perf');
@@ -387,7 +387,7 @@
this.showCustomize_ =
WindowProxy.getInstance().url.searchParams.has(CUSTOMIZE_URL_PARAM);
@@ -581,30 +539,12 @@ export class AppElement extends AppEleme
@@ -587,30 +545,12 @@ export class AppElement extends AppEleme
this.setCustomizeChromeSidePanelVisible_(this.showCustomize_);
recordCustomizeChromeOpen(NtpCustomizeChromeEntryPoint.URL);
}
@@ -418,7 +418,7 @@
if (loadTimeData.getString('backgroundImageUrl')) {
this.backgroundManager_.getBackgroundImageLoadTime().then(
time => {
@@ -734,12 +674,6 @@ export class AppElement extends AppEleme
@@ -740,12 +680,6 @@ export class AppElement extends AppEleme
if (!this.modulesEnabled_) {
this.recordBrowserPromoMetrics_();
}
@@ -431,7 +431,7 @@
}
override updated(changedProperties: PropertyValues<this>) {
@@ -781,31 +715,12 @@ export class AppElement extends AppEleme
@@ -787,31 +721,12 @@ export class AppElement extends AppEleme
composeboxDialog.showModal();
}
@@ -463,7 +463,7 @@
private computeShowCustomizeChromeText_(): boolean {
if (this.showWallpaperSearchButton_) {
return false;
@@ -898,26 +813,15 @@ export class AppElement extends AppEleme
@@ -904,26 +819,15 @@ export class AppElement extends AppEleme
const composebox =
this.shadowRoot.querySelector<ComposeboxElement>('#composebox');
assert(composebox);
@@ -492,7 +492,7 @@
const composebox =
this.shadowRoot.querySelector<ComposeboxElement>('#composebox');
assert(composebox);
@@ -929,7 +833,6 @@ export class AppElement extends AppEleme
@@ -935,7 +839,6 @@ export class AppElement extends AppEleme
this.toggleComposebox_();
this.logoColor_ = this.computeLogoColor_();
this.singleColoredLogo_ = this.computeSingleColoredLogo_();
@@ -500,7 +500,7 @@
}
protected onOpenVoiceSearch_() {
@@ -1125,101 +1028,6 @@ export class AppElement extends AppEleme
@@ -1131,101 +1034,6 @@ export class AppElement extends AppEleme
return !!this.theme_ && (!!this.theme_.logoColor || this.theme_.isDark);
}
@@ -602,7 +602,7 @@
protected onNtpMiddleSlotPromoLoaded_() {
this.middleSlotPromoLoaded_ = true;
}
@@ -1334,23 +1142,6 @@ export class AppElement extends AppEleme
@@ -1340,23 +1148,6 @@ export class AppElement extends AppEleme
}
private onWindowClick_(e: Event) {
@@ -626,7 +626,7 @@
if (e.composedPath() && e.composedPath()[0] === $$(this, '#content')) {
recordClick(NtpElement.BACKGROUND);
return;
@@ -1508,33 +1299,14 @@ export class AppElement extends AppEleme
@@ -1514,33 +1305,14 @@ export class AppElement extends AppEleme
* multiple toasts at the same time. Otherwise, the first pending toast is
* popped and shown.
*/
@@ -19,7 +19,7 @@
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/browser_window_state.h"
@@ -1170,6 +1175,15 @@ BrowserView::BrowserView(Browser* browse
@@ -1171,6 +1176,15 @@ BrowserView::BrowserView(Browser* browse
focus_manager_observation_.Observe(GetFocusManager());
}
@@ -35,7 +35,7 @@
#if BUILDFLAG(IS_CHROMEOS)
on_locked_task_subscription_ =
ash::boca::OnTaskLockedController::From(browser_)
@@ -1179,6 +1193,11 @@ BrowserView::BrowserView(Browser* browse
@@ -1180,6 +1194,11 @@ BrowserView::BrowserView(Browser* browse
}
BrowserView::~BrowserView() {
@@ -47,7 +47,7 @@
// Remove the layout manager to avoid dangling. This needs to be earlier than
// other cleanups that destroy views referenced in the layout manager.
SetLayoutManager(nullptr);
@@ -4388,6 +4407,10 @@ void BrowserView::OnWidgetActivationChan
@@ -4404,6 +4423,10 @@ void BrowserView::OnWidgetActivationChan
browser_->GetFeatures()
.extension_keybinding_registry()
->OnHostActivationChanged(active);
@@ -58,7 +58,7 @@
}
void BrowserView::OnWidgetBoundsChanged(views::Widget* widget,
@@ -5878,7 +5901,20 @@ void BrowserView::LoadAccelerators() {
@@ -5894,7 +5917,20 @@ void BrowserView::LoadAccelerators() {
browser_->GetProfile()->IsOffTheRecord() &&
browser_->GetProfile()->GetOTRProfileID().IsCaptivePortal();
#endif
@@ -80,7 +80,7 @@
for (const auto& entry : accelerator_list) {
// In app mode, only allow accelerators of allowlisted commands to pass
// through.
@@ -5905,14 +5941,43 @@ void BrowserView::LoadAccelerators() {
@@ -5921,14 +5957,43 @@ void BrowserView::LoadAccelerators() {
#endif
ui::Accelerator accelerator(entry.keycode, entry.modifiers);
@@ -220,7 +220,7 @@
HeliumLayoutType GetBrowserLayout() const;
--- a/chrome/browser/ui/tabs/tab_strip_prefs.cc
+++ b/chrome/browser/ui/tabs/tab_strip_prefs.cc
@@ -48,6 +48,9 @@ void RegisterProfilePrefs(user_prefs::Pr
@@ -50,6 +50,9 @@ void RegisterProfilePrefs(user_prefs::Pr
registry->RegisterIntegerPref(prefs::kHeliumLayout,
std::to_underlying(HeliumLayoutType::kClassic));
registry->RegisterBooleanPref(prefs::kHeliumVerticalRightAligned, false);
+38 -26
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -322,6 +322,7 @@
@@ -323,6 +323,7 @@
#include "ui/events/event_handler.h"
#include "ui/events/event_utils.h"
#include "ui/events/keycodes/keyboard_codes.h"
@@ -8,7 +8,7 @@
#include "ui/gfx/animation/animation_runner.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
@@ -415,6 +416,14 @@ namespace {
@@ -416,6 +417,14 @@ namespace {
// The visible height of the shadow above the tabs. Clicks in this area are
// treated as clicks to the frame, rather than clicks to the tab.
const int kTabShadowSize = 2;
@@ -23,7 +23,7 @@
#if BUILDFLAG(IS_CHROMEOS)
// UMA histograms that record animation smoothness for tab loading animation.
@@ -960,7 +969,9 @@ BrowserView::BrowserView(Browser* browse
@@ -961,7 +970,9 @@ BrowserView::BrowserView(Browser* browse
std::make_unique<ExclusiveAccessContextImpl>(*this)),
browser_(browser),
accessibility_mode_observer_(
@@ -34,7 +34,7 @@
if (auto* manager = InitialWebUIWindowMetricsManager::From(browser_.get())) {
manager->OnBrowserWindowCreated();
}
@@ -988,6 +999,14 @@ BrowserView::BrowserView(Browser* browse
@@ -989,6 +1000,14 @@ BrowserView::BrowserView(Browser* browse
}
SetProperty(views::kElementIdentifierKey, kBrowserViewElementId);
@@ -49,7 +49,7 @@
browser_->tab_strip_model()->AddObserver(this);
@@ -1131,6 +1150,14 @@ BrowserView::BrowserView(Browser* browse
@@ -1132,6 +1151,14 @@ BrowserView::BrowserView(Browser* browse
prefs::kFullscreenAllowed,
base::BindRepeating(&BrowserView::UpdateFullscreenAllowedFromPolicy,
base::Unretained(this), CanFullscreen()));
@@ -64,7 +64,7 @@
UpdateFullscreenAllowedFromPolicy(CanFullscreen());
WebUIContentsPreloadManager::GetInstance()->WarmupForBrowser(browser_.get());
@@ -1196,6 +1223,8 @@ BrowserView::~BrowserView() {
@@ -1197,6 +1224,8 @@ BrowserView::~BrowserView() {
// Stop the animation timer explicitly here to avoid running it in a nested
// message loop, which may run by Browser destructor.
loading_animation_timer_.Stop();
@@ -73,7 +73,7 @@
// Reset autofill bubble handler to make sure it does not out-live toolbar,
// since it is responsible for showing autofill related bubbles from toolbar's
@@ -1414,6 +1443,13 @@ bool BrowserView::GetTabStripVisible() c
@@ -1415,6 +1444,13 @@ bool BrowserView::GetTabStripVisible() c
return false;
}
@@ -87,7 +87,7 @@
// In non-fullscreen the tabstrip should always be visible.
auto* const immersive_mode_controller =
ImmersiveModeController::From(browser());
@@ -1605,6 +1641,56 @@ float BrowserView::GetTopControlsSlideBe
@@ -1606,6 +1642,56 @@ float BrowserView::GetTopControlsSlideBe
return 1.f;
}
@@ -144,7 +144,7 @@
views::Widget* BrowserView::GetWidgetForAnchoring() {
#if BUILDFLAG(IS_MAC)
if (UsesImmersiveFullscreenMode()) {
@@ -1639,6 +1725,7 @@ void BrowserView::OnVerticalTabStripMode
@@ -1640,6 +1726,7 @@ void BrowserView::OnVerticalTabStripMode
const bool should_be_vertical = controller->ShouldDisplayVerticalTabs();
if (vertical_initialized == should_be_vertical) {
// Mode is unchanged; just re-layout so alignment-dependent views update.
@@ -152,7 +152,7 @@
InvalidateLayout();
return;
}
@@ -1678,10 +1765,409 @@ void BrowserView::OnToolbarTabStripState
@@ -1679,10 +1766,409 @@ void BrowserView::OnToolbarTabStripState
toolbar_->UpdateToolbarLayout();
}
@@ -562,7 +562,7 @@
void BrowserView::OnProjectsPanelStateChanged(
ProjectsPanelStateController* controller) {
projects_panel_container_->OnProjectsPanelStateChanged(controller);
@@ -2436,10 +2922,17 @@ void BrowserView::FullscreenStateChanged
@@ -2437,10 +2923,17 @@ void BrowserView::FullscreenStateChanged
!GetFocusManager()->GetFocusedView());
}
}
@@ -580,7 +580,7 @@
// Recreate the autofill bubble handler when toolbar button provider changes.
autofill_bubble_handler_ =
std::make_unique<autofill::AutofillBubbleHandlerImpl>(
@@ -2488,6 +2981,13 @@ void BrowserView::SetFocusToLocationBar(
@@ -2489,6 +2982,13 @@ void BrowserView::SetFocusToLocationBar(
return;
}
@@ -594,7 +594,7 @@
LocationBar* location_bar = GetLocationBar();
location_bar->FocusLocation(is_user_initiated,
/*clear_focus_if_failed=*/true);
@@ -3241,7 +3741,7 @@ bool BrowserView::IsToolbarVisible() con
@@ -3245,7 +3745,7 @@ bool BrowserView::IsToolbarVisible() con
}
bool BrowserView::IsToolbarShowing() const {
@@ -603,7 +603,7 @@
}
bool BrowserView::IsLocationBarVisible() const {
@@ -4433,6 +4933,11 @@ void BrowserView::OnWidgetActivationChan
@@ -4449,6 +4949,11 @@ void BrowserView::OnWidgetActivationChan
}
}
@@ -615,7 +615,7 @@
browser_->GetFeatures()
.extension_keybinding_registry()
->OnHostActivationChanged(active);
@@ -5278,6 +5783,8 @@ void BrowserView::AddedToWidget() {
@@ -5294,6 +5799,8 @@ void BrowserView::AddedToWidget() {
base::BindRepeating(&BrowserView::OnToolbarTabStripStateChanged,
base::Unretained(this)));
OnToolbarTabStripStateChanged(helium_layout_controller);
@@ -624,7 +624,7 @@
}
UpdateTabSearchBubbleHost();
@@ -5427,6 +5934,7 @@ void BrowserView::AddedToWidget() {
@@ -5443,6 +5950,7 @@ void BrowserView::AddedToWidget() {
}
void BrowserView::RemovedFromWidget() {
@@ -632,7 +632,7 @@
CHECK(GetFocusManager());
focus_manager_observation_.Reset();
}
@@ -5455,6 +5963,14 @@ void BrowserView::OnThemeChanged() {
@@ -5471,6 +5979,14 @@ void BrowserView::OnThemeChanged() {
}
FrameColorsChanged();
@@ -647,7 +647,7 @@
}
bool BrowserView::GetDropFormats(
@@ -5793,6 +6309,9 @@ void BrowserView::UpdateFastResizeForCon
@@ -5809,6 +6325,9 @@ void BrowserView::UpdateFastResizeForCon
}
int BrowserView::GetClientAreaTop() {
@@ -657,7 +657,7 @@
views::View* top_view = toolbar_;
#if BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
// If webui_tab_strip is displayed, the client area starts at its top,
@@ -6390,6 +6909,55 @@ void BrowserView::OnWillChangeFocus(View
@@ -6406,6 +6925,55 @@ void BrowserView::OnWillChangeFocus(View
}
void BrowserView::OnDidChangeFocus(View* focused_before, View* focused_now) {
UpdateAccessibleNameForRootView();
@@ -929,6 +929,18 @@
#include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h"
#include "chrome/browser/ui/views/frame/custom_corners_background.h"
#include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
@@ -86,10 +87,10 @@ void BrowserViewLayoutImpl::ProposedLayo
// results in a potential double-layout, or in extreme cases, bugs like
// https://crbug.com/464220949
std::move(it->second).ApplyLayout(child, set_view_visibility);
- child->SetBoundsRect(it->second.bounds);
if (it->second.visibility) {
set_view_visibility(child, *it->second.visibility);
}
+ child->SetBoundsRect(it->second.bounds);
children.erase(it);
}
}
@@ -285,9 +286,27 @@ void BrowserViewLayoutImpl::ConfigureTop
// When in immersive mode, top container is painted with the toolbar theme.
background->SetVisible(true);
@@ -1601,7 +1613,7 @@
+}
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -1935,6 +1935,16 @@ void ToolbarView::UpdateToolbarLayout()
@@ -1979,6 +1979,16 @@ void ToolbarView::UpdateToolbarLayout()
InvalidateLayout();
}
@@ -1618,7 +1630,7 @@
bool ToolbarView::IsCompactLayout() const {
auto* controller =
HeliumLayoutStateController::From(browser_view_->browser());
@@ -1972,8 +1982,11 @@ void ToolbarView::UpdateVerticalTabsColl
@@ -2016,8 +2026,11 @@ void ToolbarView::UpdateVerticalTabsColl
auto* controller =
tabs::VerticalTabStripStateController::From(browser_view_->browser());
@@ -1885,7 +1897,7 @@
raw_ptr<VerticalTabStripBottomContainer> bottom_button_container_ = nullptr;
--- a/chrome/browser/ui/views/frame/contents_container_view.cc
+++ b/chrome/browser/ui/views/frame/contents_container_view.cc
@@ -186,16 +186,22 @@ void ContentsContainerView::UpdateBorder
@@ -189,16 +189,22 @@ void ContentsContainerView::UpdateBorder
bool should_round_contents,
bool is_active,
bool is_highlighted,
@@ -1909,7 +1921,7 @@
round_bottom_left_window_corner_ = round_bottom_left;
round_bottom_right_window_corner_ = round_bottom_right;
@@ -220,8 +226,7 @@ void ContentsContainerView::UpdateBorder
@@ -221,8 +227,7 @@ void ContentsContainerView::UpdateBorder
SetBorder(nullptr);
}
}
@@ -1919,7 +1931,7 @@
UpdateBorderRoundedCorners();
}
@@ -257,17 +262,24 @@ void ContentsContainerView::UpdateBorder
@@ -255,17 +260,24 @@ void ContentsContainerView::UpdateBorder
round_bottom_left_window_corner_ ? frame_radius : generic_radius;
const int lower_right_radius =
round_bottom_right_window_corner_ ? frame_radius : generic_radius;
@@ -1946,7 +1958,7 @@
inner_lower_right_radius, inner_lower_left_radius);
container_outline_->SetCornerRadii(container_rounded_corners);
@@ -299,20 +311,19 @@ void ContentsContainerView::UpdateBorder
@@ -295,20 +307,19 @@ void ContentsContainerView::UpdateBorder
const gfx::RoundedCornersF content_upper_rounded_corners =
gfx::RoundedCornersF{
@@ -1985,7 +1997,7 @@
bool round_bottom_left_window_corner,
bool round_bottom_right_window_corner);
@@ -161,6 +163,8 @@ class ContentsContainerView : public vie
@@ -160,6 +162,8 @@ class ContentsContainerView : public vie
bool is_in_split_ = false;
bool should_round_contents_ = false;
+1 -1
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -1738,8 +1738,7 @@ AppMenuButton* ToolbarView::GetAppMenuBu
@@ -1782,8 +1782,7 @@ AppMenuButton* ToolbarView::GetAppMenuBu
}
gfx::Rect ToolbarView::GetFindBarBoundingBox(int contents_bottom) {
@@ -37,7 +37,7 @@
void OnTouchUiChanged();
void NewTabButtonPressed(const ui::Event& event);
@@ -457,6 +462,8 @@ class ToolbarView : public views::Access
@@ -459,6 +464,8 @@ class ToolbarView : public views::Access
BooleanPrefMember show_media_button_;
@@ -118,7 +118,7 @@
} // namespace
@@ -674,6 +730,11 @@ void ToolbarView::Init() {
@@ -685,6 +741,11 @@ void ToolbarView::Init() {
OnShowMediaButtonChanged();
}
@@ -130,7 +130,7 @@
InitLayout();
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
@@ -1562,7 +1623,11 @@ void ToolbarView::InitLayout() {
@@ -1606,7 +1667,11 @@ void ToolbarView::InitLayout() {
views::MaximumFlexSizeRule::kUnbounded)
.WithOrder(kLocationBarFlexOrder);
@@ -143,7 +143,7 @@
layout_manager_->SetOrientation(views::LayoutOrientation::kHorizontal)
.SetCrossAxisAlignment(views::LayoutAlignment::kCenter)
@@ -1919,6 +1984,46 @@ void ToolbarView::OnShowMediaButtonChang
@@ -1963,6 +2028,46 @@ void ToolbarView::OnShowMediaButtonChang
InvalidateLayout();
}
+10 -10
View File
@@ -88,7 +88,7 @@
std::unique_ptr<tabs::VerticalTabStripStateController::ScopedEnableStateLock>
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1509,7 +1509,8 @@ bool BrowserView::ShouldDrawTabStrip() c
@@ -1510,7 +1510,8 @@ bool BrowserView::ShouldDrawTabStrip() c
// since callers may otherwise try to access it. Note that we can't just check
// this alone, as the tabstrip is created unconditionally even for windows
// that won't display it.
@@ -98,7 +98,7 @@
}
bool BrowserView::ShouldDrawVerticalTabStrip() const {
@@ -1523,6 +1524,11 @@ bool BrowserView::ShouldDrawWebAppFrameT
@@ -1524,6 +1525,11 @@ bool BrowserView::ShouldDrawWebAppFrameT
GetFrameView()->ShouldShowWebAppFrameToolbar();
}
@@ -110,7 +110,7 @@
bool BrowserView::IsVerticalTabStripCollapsed() const {
if (auto* const controller =
tabs::VerticalTabStripStateController::From(browser_)) {
@@ -1654,6 +1660,31 @@ void BrowserView::OnVerticalTabStripMode
@@ -1655,6 +1661,31 @@ void BrowserView::OnVerticalTabStripMode
InvalidateLayout();
}
@@ -142,7 +142,7 @@
void BrowserView::OnProjectsPanelStateChanged(
ProjectsPanelStateController* controller) {
projects_panel_container_->OnProjectsPanelStateChanged(controller);
@@ -4108,9 +4139,10 @@ void BrowserView::ReparentTabStripAndWeb
@@ -4112,9 +4143,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.
@@ -5221,6 +5253,16 @@ void BrowserView::AddedToWidget() {
@@ -5237,6 +5269,16 @@ void BrowserView::AddedToWidget() {
toolbar_->Init();
@@ -191,7 +191,7 @@
constexpr int kToolbarFlexOrderOffset = 1000;
constexpr int kLocationBarFlexOrder = kToolbarFlexOrderOffset + 1;
constexpr int kToolbarActionsFlexOrder = kToolbarFlexOrderOffset + 2;
@@ -1337,6 +1339,22 @@ bool ToolbarView::IsRectInWindowCaption(
@@ -1381,6 +1383,22 @@ bool ToolbarView::IsRectInWindowCaption(
return gfx::ToEnclosingRect(rect_in_target_coords_f);
};
@@ -214,7 +214,7 @@
// Check each child view to see if the rect intersects with
// any clickable elements. If it does, check if the click is actually on that
// element. False if on a clickable element, true if not on a clickable element.
@@ -1716,6 +1734,30 @@ void ToolbarView::LayoutCommon() {
@@ -1760,6 +1778,30 @@ void ToolbarView::LayoutCommon() {
// Cast button visibility is controlled externally.
}
@@ -245,7 +245,7 @@
void ToolbarView::UpdateToolbarLayout() {
if (!location_bar_) {
return;
@@ -1726,7 +1768,10 @@ void ToolbarView::UpdateToolbarLayout()
@@ -1770,7 +1812,10 @@ void ToolbarView::UpdateToolbarLayout()
views::MaximumFlexSizeRule::kPreferred);
const int location_bar_margin =
GetLayoutConstant(LayoutConstant::kLocationBarMargin);
@@ -257,7 +257,7 @@
const views::FlexSpecification location_bar_flex_rule =
views::FlexSpecification(min_location_bar_flex,
views::MaximumFlexSizeRule::kUnbounded)
@@ -2043,7 +2088,7 @@ void ToolbarView::OnLocationBarCenteredC
@@ -2087,7 +2132,7 @@ void ToolbarView::OnLocationBarCenteredC
gfx::Rect ToolbarView::GetCenteredLocationBarBounds(gfx::Rect bounds,
int toolbar_width) const {
@@ -286,7 +286,7 @@
// Accessors.
Browser* browser() const { return browser_; }
views::Button* GetChromeLabsButton() const;
@@ -423,6 +427,7 @@ class ToolbarView : public views::Access
@@ -425,6 +429,7 @@ class ToolbarView : public views::Access
raw_ptr<BrowserAppMenuButton> app_menu_button_ = nullptr;
raw_ptr<views::View> new_tab_button_ = nullptr;
raw_ptr<PinnedActionToolbarButton> tab_search_button_ = nullptr;
+4 -4
View File
@@ -68,8 +68,8 @@
#include "chrome/browser/ui/tab_search_feature.h"
#include "chrome/browser/ui/tabs/features.h"
#include "chrome/browser/ui/tabs/vertical_tab_strip_state.h"
@@ -43,11 +44,11 @@ void RegisterProfilePrefs(user_prefs::Pr
prefs::kTabSearchPinnedToTabstripMigrationComplete, false);
@@ -45,11 +46,11 @@ void RegisterProfilePrefs(user_prefs::Pr
prefs::kTabSearchPinnedToTabstripMigrationComplete2, false);
registry->RegisterBooleanPref(prefs::kProjectsPanelPinnedToTabstrip, true);
registry->RegisterBooleanPref(prefs::kEverythingMenuPinnedToTabstrip, true);
- registry->RegisterBooleanPref(prefs::kVerticalTabsEnabled, false);
@@ -275,7 +275,7 @@
// A boolean pref set to true if a Home button to open the Home pages should be
// visible on the toolbar.
inline constexpr char kShowHomeButton[] = "browser.show_home_button";
@@ -1492,18 +1499,6 @@ inline constexpr char kProjectsPanelPinn
@@ -1498,18 +1505,6 @@ inline constexpr char kProjectsPanelPinn
inline constexpr char kEverythingMenuPinnedToTabstrip[] =
"everything_menu.pinned_to_tabstrip";
@@ -771,7 +771,7 @@
void StartPasswordManagerTutorial();
--- a/chrome/browser/glic/suggestions/contextual_cueing_helper.cc
+++ b/chrome/browser/glic/suggestions/contextual_cueing_helper.cc
@@ -472,10 +472,6 @@ ContextualCueingHelper::AutoOpenGlicSide
@@ -476,10 +476,6 @@ ContextualCueingHelper::AutoOpenGlicSide
Profile* profile =
Profile::FromBrowserContext(web_contents()->GetBrowserContext());
bool vertical_tabs_enabled = false;
+36 -31
View File
@@ -162,7 +162,7 @@
if (!features::IsWebUIBackForwardButtonEnabled()) {
back_ = AddChildView(std::make_unique<BackForwardButton>(
BackForwardButton::Direction::kBack,
@@ -488,9 +514,22 @@ void ToolbarView::Init() {
@@ -488,6 +514,21 @@ void ToolbarView::Init() {
location_bar_ = toolbar_webview_->GetLocationBar();
}
@@ -181,25 +181,11 @@
+ vertical_tab_strip_state_controller->ShouldDisplayVerticalTabs();
+ }
+
if (glic::GlicEnabling::IsProfileEligible(browser_view_->GetProfile())) {
- auto* vertical_tab_strip_state_controller =
- tabs::VerticalTabStripStateController::From(browser_view_->browser());
if (base::FeatureList::IsEnabled(features::kGlicActorUi) &&
features::kGlicActorUiTaskIcon.Get()) {
glic_actor_button_container_ =
@@ -508,17 +547,28 @@ void ToolbarView::Init() {
views::kMarginsKey,
gfx::Insets::VH(
bool is_glic_left_of_profile =
features::kGlicToolbarButtonLocationParam.Get() ==
features::GlicToolbarButtonLocation::kLeftOfProfileChip ||
@@ -507,6 +548,25 @@ void ToolbarView::Init() {
0, GetLayoutConstant(LayoutConstant::kToolbarDividerSpacing)));
- if (vertical_tab_strip_state_controller) {
- vertical_tab_subscription_ =
- vertical_tab_strip_state_controller->RegisterOnModeChanged(
- base::BindRepeating(&ToolbarView::OnVerticalTabStripModeChanged,
- base::Unretained(this)));
- should_display_vertical_tabs_ =
- vertical_tab_strip_state_controller->ShouldDisplayVerticalTabs();
- }
UpdateGlicButtonVisibility();
}
+ std::unique_ptr<ToolbarButton> dynamic_new_tab_button =
@@ -224,7 +210,24 @@
if (extensions_container) {
extensions_container_ = AddChildView(std::move(extensions_container));
extensions_toolbar_coordinator_ =
@@ -701,6 +751,16 @@ void ToolbarView::Init() {
@@ -685,16 +745,6 @@ void ToolbarView::Init() {
}
if (glic::GlicEnabling::IsProfileEligible(browser_view_->GetProfile())) {
- auto* vertical_tab_strip_state_controller =
- tabs::VerticalTabStripStateController::From(browser_view_->browser());
- if (vertical_tab_strip_state_controller) {
- vertical_tab_subscription_ =
- vertical_tab_strip_state_controller->RegisterOnModeChanged(
- base::BindRepeating(&ToolbarView::OnVerticalTabStripModeChanged,
- base::Unretained(this)));
- should_display_vertical_tabs_ =
- vertical_tab_strip_state_controller->ShouldDisplayVerticalTabs();
- }
UpdateGlicButtonVisibility();
}
@@ -712,6 +762,16 @@ void ToolbarView::Init() {
reload_->SetVisible(show_reload_button_.GetValue());
@@ -241,7 +244,7 @@
show_avatar_button_.Init(
prefs::kShowAvatarButton, prefs,
base::BindRepeating(&ToolbarView::OnShowAvatarButtonChanged,
@@ -749,8 +809,9 @@ void ToolbarView::Init() {
@@ -760,8 +820,9 @@ void ToolbarView::Init() {
views::FlexSpecification(views::MinimumFlexSizeRule::kPreferred,
views::MaximumFlexSizeRule::kPreferred);
@@ -253,7 +256,7 @@
if (button) {
button->set_tag(GetViewCommandMap().at(button->GetID()));
button->SetProperty(views::kFlexBehaviorKey, flex_preferred);
@@ -765,6 +826,12 @@ void ToolbarView::OnVerticalTabStripMode
@@ -788,6 +849,12 @@ void ToolbarView::OnVerticalTabStripMode
should_display_vertical_tabs_ = controller->ShouldDisplayVerticalTabs();
UpdateGlicButtonVisibility();
UpdateGlicActorVisibility();
@@ -266,7 +269,7 @@
}
std::unique_ptr<GlicAndActorButtonsContainer>
@@ -1608,6 +1675,16 @@ void ToolbarView::NewTabButtonPressed(co
@@ -1652,6 +1719,16 @@ void ToolbarView::NewTabButtonPressed(co
NewTabTypes::kNewTabButtonInToolbarForTouch);
}
@@ -283,7 +286,7 @@
bool ToolbarView::AcceleratorPressed(const ui::Accelerator& accelerator) {
const views::View* focused_view = focus_manager()->GetFocusedView();
if (focused_view && (focused_view->GetID() == VIEW_ID_OMNIBOX)) {
@@ -1724,13 +1801,35 @@ void ToolbarView::LayoutCommon() {
@@ -1768,13 +1845,35 @@ void ToolbarView::LayoutCommon() {
browser_->window() &&
(browser_->window()->IsMaximized() || browser_->window()->IsFullscreen());
const int margin = extend_buttons_to_edge ? interior_margin.left() : 0;
@@ -324,7 +327,7 @@
// Cast button visibility is controlled externally.
}
@@ -1785,6 +1884,19 @@ void ToolbarView::UpdateToolbarLayout()
@@ -1829,6 +1928,19 @@ void ToolbarView::UpdateToolbarLayout()
.WithOrder(order);
};
@@ -344,7 +347,7 @@
if (location_bar_view_) {
location_bar_view_->SetProperty(views::kFlexBehaviorKey,
location_bar_flex_rule);
@@ -1829,6 +1941,67 @@ bool ToolbarView::IsCompactLayout() cons
@@ -1873,6 +1985,67 @@ bool ToolbarView::IsCompactLayout() cons
return controller && controller->IsCompactLayout();
}
@@ -435,12 +438,14 @@
// AppMenuIconController::Delegate:
void UpdateTypeAndSeverity(
@@ -360,9 +367,12 @@ class ToolbarView : public views::Access
@@ -360,11 +367,14 @@ class ToolbarView : public views::Access
void OnTouchUiChanged();
void NewTabButtonPressed(const ui::Event& event);
+ void VerticalTabsCollapseButtonPressed(const ui::Event& event);
void InitGlicContainer();
void OnVerticalTabStripModeChanged(
tabs::VerticalTabStripStateController* controller);
+ void OnVerticalTabStripCollapseChanged(
@@ -448,7 +453,7 @@
void SetForwardButtonVisibility(bool visible);
@@ -400,6 +410,7 @@ class ToolbarView : public views::Access
@@ -402,6 +412,7 @@ class ToolbarView : public views::Access
// Controls. Most of these can be null, e.g. in popup windows. Only
// |location_bar_| is guaranteed to exist. These pointers are owned by the
// view hierarchy.
@@ -456,7 +461,7 @@
raw_ptr<ToolbarButton> back_ = nullptr;
raw_ptr<ToolbarButton> forward_ = nullptr;
raw_ptr<ReloadButton> reload_ = nullptr;
@@ -423,6 +434,7 @@ class ToolbarView : public views::Access
@@ -425,6 +436,7 @@ class ToolbarView : public views::Access
// `toolbar_webview_->GetPinnedActionsContainer()`.
raw_ptr<PinnedToolbarActions> pinned_toolbar_actions_ = nullptr;
raw_ptr<AvatarToolbarButton> avatar_ = nullptr;
@@ -464,7 +469,7 @@
raw_ptr<MediaToolbarButtonView> media_button_ = nullptr;
raw_ptr<BrowserAppMenuButton> app_menu_button_ = nullptr;
raw_ptr<views::View> new_tab_button_ = nullptr;
@@ -465,6 +477,10 @@ class ToolbarView : public views::Access
@@ -467,6 +479,10 @@ class ToolbarView : public views::Access
BooleanPrefMember show_reload_button_;
@@ -475,7 +480,7 @@
BooleanPrefMember show_avatar_button_;
BooleanPrefMember show_extensions_button_;
@@ -495,8 +511,8 @@ class ToolbarView : public views::Access
@@ -497,8 +513,8 @@ class ToolbarView : public views::Access
// `toolbar_controller_`.
raw_ptr<OverflowButton> overflow_button_ = nullptr;
@@ -80,7 +80,7 @@
// Gets the display mode for a given browser.
ToolbarView::DisplayMode GetDisplayMode(Browser* browser) {
// Checked in this order because even tabbed PWAs use the CUSTOM_TAB
@@ -737,10 +743,15 @@ void ToolbarView::Init() {
@@ -748,10 +754,15 @@ void ToolbarView::Init() {
InitLayout();
@@ -96,7 +96,7 @@
}
}
@@ -1607,21 +1618,6 @@ views::View* ToolbarView::GetDefaultFocu
@@ -1651,21 +1662,6 @@ views::View* ToolbarView::GetDefaultFocu
void ToolbarView::InitLayout() {
const int default_margin =
GetLayoutConstant(LayoutConstant::kToolbarIconDefaultMargin);
@@ -118,7 +118,7 @@
layout_manager_ =
SetLayoutManager(std::make_unique<CenteredLocationBarLayout>(
@@ -1634,16 +1630,7 @@ void ToolbarView::InitLayout() {
@@ -1678,16 +1674,7 @@ void ToolbarView::InitLayout() {
.SetCollapseMargins(true)
.SetDefault(views::kMarginsKey, gfx::Insets::VH(0, default_margin));
@@ -136,7 +136,7 @@
if (extensions_container_) {
const views::FlexSpecification extensions_flex_rule =
@@ -1682,9 +1669,7 @@ void ToolbarView::LayoutCommon() {
@@ -1726,9 +1713,7 @@ void ToolbarView::LayoutCommon() {
DCHECK(display_mode_ == DisplayMode::kNormal);
gfx::Insets interior_margin =
@@ -147,7 +147,7 @@
if (!browser_view_->webui_tab_strip()) {
if (app_menu_button_->IsLabelPresentAndVisible()) {
@@ -1731,6 +1716,74 @@ void ToolbarView::LayoutCommon() {
@@ -1775,6 +1760,74 @@ void ToolbarView::LayoutCommon() {
// Cast button visibility is controlled externally.
}
+12 -12
View File
@@ -673,7 +673,7 @@
bool VerticalTabStripRegionView::IsFrameActive() const {
--- a/chrome/browser/ui/views/tabs/vertical/vertical_tab_view.cc
+++ b/chrome/browser/ui/views/tabs/vertical/vertical_tab_view.cc
@@ -84,7 +84,7 @@
@@ -85,7 +85,7 @@
namespace {
constexpr int kIconDesignWidth = 16;
constexpr int kTitleMinWidth = 10;
@@ -682,7 +682,7 @@
constexpr int kDefaultPadding = 4;
constexpr int kFocusRingInset = 0.0f;
@@ -166,12 +166,12 @@ VerticalTabView::VerticalTabView(TabColl
@@ -167,12 +167,12 @@ VerticalTabView::VerticalTabView(TabColl
TabChildConfig(close_button_, kIconDesignWidth, kDefaultPadding,
/*align_leading=*/false,
/*expand=*/false),
@@ -698,7 +698,7 @@
TabChildConfig(title_, kTitleMinWidth, kDefaultPadding,
/*align_leading=*/true,
/*expand=*/true)};
@@ -661,6 +661,7 @@ void VerticalTabView::OnBlur() {
@@ -662,6 +662,7 @@ void VerticalTabView::OnBlur() {
void VerticalTabView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
SetClipPath(GetPath());
@@ -706,7 +706,7 @@
}
void VerticalTabView::OnThemeChanged() {
@@ -724,7 +725,8 @@ bool VerticalTabView::IsChildVisible(con
@@ -725,7 +726,8 @@ bool VerticalTabView::IsChildVisible(con
}
if (child_view == icon_) {
@@ -1038,7 +1038,7 @@
#include "chrome/browser/ui/tabs/alert/tab_alert_controller.h"
#include "chrome/browser/ui/tabs/features.h"
#include "chrome/browser/ui/tabs/projects/projects_panel_state_controller.h"
@@ -153,7 +154,6 @@
@@ -154,7 +155,6 @@
#include "chrome/browser/ui/views/frame/contents_container_view.h"
#include "chrome/browser/ui/views/frame/contents_layout_manager.h"
#include "chrome/browser/ui/views/frame/contents_separator.h"
@@ -1046,7 +1046,7 @@
#include "chrome/browser/ui/views/frame/horizontal_tab_strip_region_view.h"
#include "chrome/browser/ui/views/frame/layout/browser_view_layout.h"
#include "chrome/browser/ui/views/frame/layout/browser_view_layout_delegate_impl.h"
@@ -1088,25 +1088,6 @@ BrowserView::BrowserView(Browser* browse
@@ -1089,25 +1089,6 @@ BrowserView::BrowserView(Browser* browse
vertical_tab_strip_region_view_ =
AddChildView(std::move(vertical_tab_strip_container));
@@ -1072,7 +1072,7 @@
} else {
horizontal_tab_strip_region_view_->InitializeTabStrip();
}
@@ -1243,8 +1224,6 @@ BrowserView::~BrowserView() {
@@ -1244,8 +1225,6 @@ BrowserView::~BrowserView() {
window_scrim_view_ = nullptr;
contents_container_ = nullptr;
vertical_tab_strip_region_view_ = nullptr;
@@ -1081,7 +1081,7 @@
projects_panel_container_ = nullptr;
toolbar_height_side_panel_ = nullptr;
contents_height_side_panel_ = nullptr;
@@ -1519,6 +1498,11 @@ bool BrowserView::ShouldDrawVerticalTabS
@@ -1520,6 +1499,11 @@ bool BrowserView::ShouldDrawVerticalTabS
controller->ShouldDisplayVerticalTabs() && browser_->is_type_normal();
}
@@ -1093,7 +1093,7 @@
bool BrowserView::ShouldDrawWebAppFrameToolbar() const {
return !IsUnframedModeEnabled() &&
GetFrameView()->ShouldShowWebAppFrameToolbar();
@@ -1646,7 +1630,20 @@ void BrowserView::OnVerticalTabStripMode
@@ -1647,7 +1631,20 @@ void BrowserView::OnVerticalTabStripMode
std::move(selection_state));
}
@@ -1115,7 +1115,7 @@
horizontal_tab_strip_region_view_->ResetTabStrip();
vertical_tab_strip_region_view_->InitializeTabStrip();
} else {
@@ -4505,13 +4502,23 @@ void BrowserView::CreateTabSearchBubble(
@@ -4521,13 +4518,23 @@ void BrowserView::CreateTabSearchBubble(
}
#endif // BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
@@ -1141,7 +1141,7 @@
tab_search_host->CloseTabSearchBubble();
}
}
@@ -4551,34 +4558,44 @@ void BrowserView::UpdateTabSearchBubbleH
@@ -4567,34 +4574,44 @@ void BrowserView::UpdateTabSearchBubbleH
return;
}
@@ -1206,7 +1206,7 @@
}
}
@@ -5339,9 +5356,6 @@ void BrowserView::AddedToWidget() {
@@ -5355,9 +5372,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_;
+20 -20
View File
@@ -85,7 +85,7 @@
// layout loop.
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2373,6 +2373,7 @@ void BrowserView::FullscreenStateChanged
@@ -2374,6 +2374,7 @@ void BrowserView::FullscreenStateChanged
#endif // BUILDFLAG(IS_MAC)
browser_->WindowFullscreenStateChanged();
@@ -116,7 +116,7 @@
void ShowCaptureContentsBorder();
void HideCaptureContentsBorder();
@@ -158,6 +159,8 @@ class ContentsContainerView : public vie
@@ -157,6 +158,8 @@ class ContentsContainerView : public vie
const views::SizeBounds& size_bounds) const override;
bool is_in_split_ = false;
@@ -163,7 +163,7 @@
auto devtools_web_view =
std::make_unique<views::WebView>(browser_view->GetProfile());
@@ -184,9 +184,16 @@ std::vector<views::View*> ContentsContai
@@ -187,9 +187,16 @@ std::vector<views::View*> ContentsContai
void ContentsContainerView::UpdateBorderAndOverlay(bool is_in_split,
bool is_active,
@@ -181,7 +181,7 @@
if (!is_in_split) {
if (split_changed) {
@@ -204,6 +211,8 @@ void ContentsContainerView::UpdateBorder
@@ -205,6 +212,8 @@ void ContentsContainerView::UpdateBorder
if (split_changed) {
SetBorder(views::CreateEmptyBorder(gfx::Insets(
kSplitViewContentPadding + ContentsContainerOutline::kThickness)));
@@ -190,7 +190,7 @@
UpdateBorderRoundedCorners();
}
@@ -225,10 +234,38 @@ void ContentsContainerView::UpdateBorder
@@ -224,10 +233,38 @@ void ContentsContainerView::UpdateBorder
}
void ContentsContainerView::UpdateBorderRoundedCorners() {
@@ -231,7 +231,7 @@
const bool devtools_in_upper_left =
devtools_web_view_->GetVisible() &&
@@ -246,18 +283,21 @@ void ContentsContainerView::UpdateBorder
@@ -245,18 +282,21 @@ void ContentsContainerView::UpdateBorder
current_devtools_docked_placement_ == DevToolsDockedPlacement::kRight);
const gfx::RoundedCornersF content_upper_rounded_corners =
@@ -263,7 +263,7 @@
auto radii = new_tab_footer_view_ && new_tab_footer_view_->GetVisible()
? content_upper_rounded_corners
@@ -265,7 +305,7 @@ void ContentsContainerView::UpdateBorder
@@ -264,7 +304,7 @@ void ContentsContainerView::UpdateBorder
contents_view_->SetBackgroundRadii(radii);
contents_view_->holder()->SetCornerRadii(radii);
@@ -408,36 +408,36 @@
#include "ui/views/view.h"
#include "ui/views/view_observer.h"
@@ -24,6 +25,7 @@ class ContentsCaptureBorderView : public
@@ -26,6 +27,7 @@ class ContentsCaptureBorderView : public
static constexpr int kContentsBorderThickness = 5;
void SetIsInSplit(bool is_in_split);
+ void SetCornerRadii(const gfx::RoundedCornersF& radii);
// views::View:
void OnPaint(gfx::Canvas* canvas) override;
@@ -37,6 +39,7 @@ class ContentsCaptureBorderView : public
void SetCaptureContentsBorderLocation(std::optional<gfx::Rect> location);
@@ -45,6 +47,7 @@ class ContentsCaptureBorderView : public
void OnViewIsDeleting(views::View* observed_view) override;
bool is_in_split_ = false;
+ gfx::RoundedCornersF corner_radii_;
std::optional<gfx::Rect> capture_location_;
raw_ptr<BrowserView> browser_view_ = nullptr;
base::ScopedObservation<views::View, views::ViewObserver>
view_bounds_observer_{this};
};
--- a/chrome/browser/ui/views/frame/contents_capture_border_view.cc
+++ b/chrome/browser/ui/views/frame/contents_capture_border_view.cc
@@ -14,7 +14,8 @@
@@ -19,7 +19,8 @@
#include "ui/views/view_class_properties.h"
ContentsCaptureBorderView::ContentsCaptureBorderView(
- views::View* /*mini_toolbar*/) {
+ views::View* /*mini_toolbar*/)
+ : corner_radii_(ContentsContainerOutline::kCornerRadius) {
SetProperty(views::kElementIdentifierKey, kContentsCaptureBorder);
SetBorder(views::CreateSolidBorder(kContentsBorderThickness,
kColorCapturedTabContentsBorder));
@@ -36,6 +37,15 @@ void ContentsCaptureBorderView::SetIsInS
}
SetPaintToLayer();
layer()->SetFillsBoundsOpaquely(false);
layer()->SetOpacity(0.50f);
@@ -58,6 +59,15 @@ void ContentsCaptureBorderView::SetCaptu
InvalidateLayout();
}
+void ContentsCaptureBorderView::SetCornerRadii(
@@ -452,7 +452,7 @@
void ContentsCaptureBorderView::OnViewBoundsChanged(
views::View* observed_view) {
SchedulePaint();
@@ -69,11 +79,15 @@ void ContentsCaptureBorderView::OnPaint(
@@ -91,11 +101,15 @@ void ContentsCaptureBorderView::OnPaint(
gfx::RectF local_bounds(GetLocalBounds());
const float half_thickness = kContentsBorderThickness / 2.0f;
local_bounds.Inset(half_thickness);
+1 -1
View File
@@ -258,7 +258,7 @@
// smaller than this bounds; they'll be centered within the bounds.
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_view_views.cc
@@ -694,14 +694,7 @@ gfx::Rect OmniboxPopupViewViews::GetTarg
@@ -725,14 +725,7 @@ gfx::Rect OmniboxPopupViewViews::GetTarg
// added if the results section has no height (result set is empty or all
// results are hidden). See https://crbug.com/1076646 for additional context.
if (popup_height != 0) {
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -156,7 +156,6 @@
@@ -157,7 +157,6 @@
#include "chrome/browser/ui/views/frame/multi_contents_view.h"
#include "chrome/browser/ui/views/frame/multi_contents_view_delegate.h"
#include "chrome/browser/ui/views/frame/multi_contents_view_drop_target_controller.h"
@@ -8,7 +8,7 @@
#include "chrome/browser/ui/views/frame/scrim_view.h"
#include "chrome/browser/ui/views/frame/shadow_overlay_view.h"
#include "chrome/browser/ui/views/frame/tab_modal_dialog_host.h"
@@ -2460,10 +2459,6 @@ void BrowserView::UpdateToolbar(content:
@@ -2461,10 +2460,6 @@ void BrowserView::UpdateToolbar(content:
if (toolbar_) {
toolbar_->Update(contents);
}
@@ -21,8 +21,8 @@
bool BrowserView::UpdateToolbarSecurityState() {
--- a/chrome/browser/ui/views/frame/contents_container_view.h
+++ b/chrome/browser/ui/views/frame/contents_container_view.h
@@ -19,7 +19,6 @@
class BrowserView;
@@ -20,7 +20,6 @@ class BrowserView;
class ContentsCaptureBorderView;
class ContentsContainerOutline;
class ContentsWebView;
-class MultiContentsViewMiniToolbar;
@@ -37,7 +37,7 @@
ScrimView* contents_scrim_view() { return contents_scrim_view_; }
views::WebView* devtools_web_view() { return devtools_web_view_; }
ScrimView* devtools_scrim_view() { return devtools_scrim_view_; }
@@ -206,8 +204,6 @@ class ContentsContainerView : public vie
@@ -205,8 +203,6 @@ class ContentsContainerView : public vie
// The glic browser view that renders around the web contents area.
raw_ptr<glic::ContextSharingBorderView> glic_border_ = nullptr;
@@ -45,7 +45,7 @@
-
raw_ptr<ContentsContainerOutline> container_outline_ = nullptr;
std::unique_ptr<views::Widget> capture_contents_border_widget_;
raw_ptr<ContentsCaptureBorderView> capture_contents_border_view_ = nullptr;
--- a/chrome/browser/ui/views/frame/contents_container_view.cc
+++ b/chrome/browser/ui/views/frame/contents_container_view.cc
@@ -25,7 +25,6 @@
@@ -56,7 +56,7 @@
#include "chrome/browser/ui/views/frame/scrim_view.h"
#include "chrome/browser/ui/views/frame/tab_modal_dialog_host.h"
#include "chrome/browser/ui/views/frame/top_container_view.h"
@@ -153,11 +152,8 @@ ContentsContainerView::ContentsContainer
@@ -153,14 +152,11 @@ ContentsContainerView::ContentsContainer
.Build());
}
@@ -67,36 +67,31 @@
- AddChildView(std::make_unique<ContentsContainerOutline>(mini_toolbar_));
+ AddChildView(std::make_unique<ContentsContainerOutline>(nullptr));
capture_contents_border_view_ =
- AddChildView(std::make_unique<ContentsCaptureBorderView>(mini_toolbar_));
+ AddChildView(std::make_unique<ContentsCaptureBorderView>(nullptr));
view_bounds_observer_.Observe(contents_view_);
}
@@ -197,7 +193,6 @@ void ContentsContainerView::UpdateBorder
@@ -200,7 +196,6 @@ void ContentsContainerView::UpdateBorder
SetBorder(nullptr);
ClearBorderRoundedCorners();
- mini_toolbar_->SetVisible(false);
container_outline_->SetVisible(false);
if (capture_contents_border_widget_) {
static_cast<ContentsCaptureBorderView*>(
@@ -213,9 +208,6 @@ void ContentsContainerView::UpdateBorder
if (capture_contents_border_view_) {
capture_contents_border_view_->SetIsInSplit(false);
@@ -214,9 +209,6 @@ void ContentsContainerView::UpdateBorder
}
container_outline_->UpdateState(is_active, is_highlighted);
- // Mini toolbar should only be visible for the inactive contents
- // container view or both depending on configuration.
- mini_toolbar_->UpdateState(is_active, is_highlighted);
if (capture_contents_border_widget_) {
static_cast<ContentsCaptureBorderView*>(
capture_contents_border_widget_->GetContentsView())
@@ -478,7 +470,7 @@ void ContentsContainerView::CreateCaptur
capture_contents_border_widget_->Init(std::move(params));
auto contents_capture_border_view =
- std::make_unique<ContentsCaptureBorderView>(mini_toolbar_);
+ std::make_unique<ContentsCaptureBorderView>(nullptr);
capture_contents_border_widget_->SetContentsView(
std::move(contents_capture_border_view));
capture_contents_border_widget_->SetVisibilityChangedAnimationsEnabled(false);
@@ -681,24 +673,6 @@ views::ProposedLayout ContentsContainerV
if (capture_contents_border_view_) {
capture_contents_border_view_->SetIsInSplit(true);
}
@@ -608,24 +600,6 @@ views::ProposedLayout ContentsContainerV
non_devtools_contents_bounds, size_bounds);
}
@@ -345,7 +340,7 @@
BEGIN_METADATA(ContentsContainerOutline)
--- a/chrome/browser/ui/views/frame/contents_capture_border_view.h
+++ b/chrome/browser/ui/views/frame/contents_capture_border_view.h
@@ -15,7 +15,7 @@ class ContentsCaptureBorderView : public
@@ -17,7 +17,7 @@ class ContentsCaptureBorderView : public
public views::ViewObserver {
METADATA_HEADER(ContentsCaptureBorderView, views::View)
public:
@@ -354,17 +349,17 @@
ContentsCaptureBorderView(const ContentsCaptureBorderView&) = delete;
ContentsCaptureBorderView& operator=(const ContentsCaptureBorderView&) =
delete;
@@ -37,7 +37,6 @@ class ContentsCaptureBorderView : public
void OnViewIsDeleting(views::View* observed_view) override;
@@ -47,7 +47,6 @@ class ContentsCaptureBorderView : public
bool is_in_split_ = false;
std::optional<gfx::Rect> capture_location_;
raw_ptr<BrowserView> browser_view_ = nullptr;
- raw_ptr<views::View> mini_toolbar_ = nullptr;
base::ScopedObservation<views::View, views::ViewObserver>
view_bounds_observer_{this};
};
--- a/chrome/browser/ui/views/frame/contents_capture_border_view.cc
+++ b/chrome/browser/ui/views/frame/contents_capture_border_view.cc
@@ -13,15 +13,11 @@
@@ -18,8 +18,8 @@
#include "ui/views/border.h"
#include "ui/views/view_class_properties.h"
@@ -372,6 +367,10 @@
- : mini_toolbar_(mini_toolbar) {
+ContentsCaptureBorderView::ContentsCaptureBorderView(
+ views::View* /*mini_toolbar*/) {
SetPaintToLayer();
layer()->SetFillsBoundsOpaquely(false);
layer()->SetOpacity(0.50f);
@@ -31,10 +31,6 @@ ContentsCaptureBorderView::ContentsCaptu
SetProperty(views::kElementIdentifierKey, kContentsCaptureBorder);
SetBorder(views::CreateSolidBorder(kContentsBorderThickness,
kColorCapturedTabContentsBorder));
@@ -382,7 +381,7 @@
}
ContentsCaptureBorderView::~ContentsCaptureBorderView() = default;
@@ -54,7 +50,6 @@ void ContentsCaptureBorderView::OnViewVi
@@ -76,7 +72,6 @@ void ContentsCaptureBorderView::OnViewVi
void ContentsCaptureBorderView::OnViewIsDeleting(views::View* observed_view) {
view_bounds_observer_.Reset();
@@ -390,7 +389,7 @@
}
void ContentsCaptureBorderView::OnPaint(gfx::Canvas* canvas) {
@@ -77,15 +72,8 @@ void ContentsCaptureBorderView::OnPaint(
@@ -99,15 +94,8 @@ void ContentsCaptureBorderView::OnPaint(
const float corner_radius =
ContentsContainerOutline::kCornerRadius - half_thickness;
@@ -15,7 +15,7 @@
}
std::unique_ptr<MediaToolbarButtonView> media_button;
@@ -496,10 +493,6 @@ void ToolbarView::Init() {
@@ -484,10 +481,6 @@ void ToolbarView::Init() {
extensions_container_);
}
@@ -26,7 +26,7 @@
if (!features::IsWebUIPinnedToolbarActionsEnabled()) {
pinned_toolbar_actions_container_ = AddChildView(
std::make_unique<PinnedToolbarActionsContainer>(browser_view_, this));
@@ -1555,13 +1548,6 @@ void ToolbarView::InitLayout() {
@@ -1599,13 +1592,6 @@ void ToolbarView::InitLayout() {
.WithOrder(kToolbarActionsFlexOrder));
}
@@ -40,7 +40,7 @@
constexpr int kToolbarFlexOrderStart = 1;
// TODO(crbug.com/40929989): Ignore containers till issue addressed.
@@ -1625,11 +1611,6 @@ void ToolbarView::LayoutCommon() {
@@ -1669,11 +1655,6 @@ void ToolbarView::LayoutCommon() {
}
app_menu_button_->SetTrailingMargin(
extend_buttons_to_edge ? interior_margin.right() : 0);
+21 -27
View File
@@ -80,7 +80,7 @@
bool is_active,
bool is_highlighted,
bool round_bottom_left_window_corner,
@@ -159,6 +160,7 @@ class ContentsContainerView : public vie
@@ -158,6 +159,7 @@ class ContentsContainerView : public vie
const views::SizeBounds& size_bounds) const override;
bool is_in_split_ = false;
@@ -90,7 +90,7 @@
--- a/chrome/browser/ui/views/frame/contents_container_view.cc
+++ b/chrome/browser/ui/views/frame/contents_container_view.cc
@@ -183,20 +183,24 @@ std::vector<views::View*> ContentsContai
@@ -186,20 +186,24 @@ std::vector<views::View*> ContentsContai
}
void ContentsContainerView::UpdateBorderAndOverlay(bool is_in_split,
@@ -117,7 +117,7 @@
SetBorder(nullptr);
ClearBorderRoundedCorners();
@@ -208,15 +212,27 @@ void ContentsContainerView::UpdateBorder
@@ -209,22 +213,33 @@ void ContentsContainerView::UpdateBorder
}
}
} else {
@@ -146,11 +146,9 @@
+ } else {
+ container_outline_->SetVisible(false);
+ }
+
if (capture_contents_border_widget_) {
static_cast<ContentsCaptureBorderView*>(
capture_contents_border_widget_->GetContentsView())
@@ -225,7 +241,7 @@ void ContentsContainerView::UpdateBorder
if (capture_contents_border_view_) {
capture_contents_border_view_->SetIsInSplit(true);
}
}
#if BUILDFLAG(IS_CHROMEOS)
@@ -159,7 +157,7 @@
// Ensures correct window rounded corners after updating contents rounded
// corners in UpdateBorderRoundedCorners()/ClearBorderRoundedCorners().
GetWidget()->non_client_view()->frame_view()->UpdateWindowRoundedCorners();
@@ -245,11 +261,10 @@ void ContentsContainerView::UpdateBorder
@@ -244,21 +259,18 @@ void ContentsContainerView::UpdateBorder
const gfx::RoundedCornersF container_rounded_corners(
generic_radius, generic_radius, lower_right_radius, lower_left_radius);
@@ -175,7 +173,19 @@
const gfx::RoundedCornersF inner_rounded_corners(
inner_generic_radius, inner_generic_radius,
@@ -367,7 +382,7 @@ void ContentsContainerView::ClearBorderR
inner_lower_right_radius, inner_lower_left_radius);
container_outline_->SetCornerRadii(container_rounded_corners);
- if (capture_contents_border_widget_) {
- static_cast<ContentsCaptureBorderView*>(
- capture_contents_border_widget_->GetContentsView())
- ->SetCornerRadii(container_rounded_corners);
+ if (capture_contents_border_view_) {
+ capture_contents_border_view_->SetCornerRadii(container_rounded_corners);
}
// Update devtools rounded corners. Note, devtools exists behind the contents
@@ -366,7 +378,7 @@ void ContentsContainerView::ClearBorderR
void ContentsContainerView::ChildVisibilityChanged(View* child) {
if ((child == new_tab_footer_view_ || child == devtools_web_view_) &&
@@ -184,7 +194,7 @@
UpdateBorderRoundedCorners();
}
}
@@ -385,7 +400,7 @@ void ContentsContainerView::Layout(PassK
@@ -391,7 +403,7 @@ views::View::Views ContentsContainerView
void ContentsContainerView::OnViewBoundsChanged(View* observed_view) {
if (observed_view == contents_view_) {
UpdateDevToolsDockedPlacement();
@@ -193,22 +203,6 @@
UpdateBorderRoundedCorners();
}
}
@@ -511,10 +526,15 @@ void ContentsContainerView::CreateCaptur
capture_contents_border_widget_->Init(std::move(params));
auto contents_capture_border_view =
std::make_unique<ContentsCaptureBorderView>(nullptr);
+ auto* contents_capture_border_view_ptr = contents_capture_border_view.get();
capture_contents_border_widget_->SetContentsView(
std::move(contents_capture_border_view));
capture_contents_border_widget_->SetVisibilityChangedAnimationsEnabled(false);
capture_contents_border_widget_->SetOpacity(0.50f);
+ contents_capture_border_view_ptr->SetIsInSplit(should_round_contents_);
+ if (should_round_contents_) {
+ UpdateBorderRoundedCorners();
+ }
}
void ContentsContainerView::UpdateCaptureContentsBorderLocation() {
--- a/chrome/browser/ui/views/frame/multi_contents_view.h
+++ b/chrome/browser/ui/views/frame/multi_contents_view.h
@@ -169,6 +169,7 @@ class MultiContentsView
+5 -5
View File
@@ -172,7 +172,7 @@
#include "chrome/browser/ui/intent_picker_tab_helper.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/omnibox/omnibox_view.h"
@@ -547,8 +548,7 @@ void ToolbarView::Init() {
@@ -544,8 +545,7 @@ void ToolbarView::Init() {
#else
// DevTools profiles are OffTheRecord, so hide it there.
show_avatar_toolbar_button = browser_->profile()->IsIncognitoProfile() ||
@@ -182,8 +182,8 @@
#endif
const std::string sab_value = base::CommandLine::ForCurrentProcess()->
@@ -623,6 +623,57 @@ void ToolbarView::Init() {
home_->SetVisible(show_home_button_.GetValue());
@@ -634,6 +634,57 @@ void ToolbarView::Init() {
UpdateGlicButtonVisibility();
}
+ show_back_button_.Init(
@@ -240,7 +240,7 @@
InitLayout();
for (auto* button : std::array<views::Button*, 5>{back_, forward_, reload_,
@@ -1840,6 +1891,35 @@ void ToolbarView::OnShowHomeButtonChange
@@ -1884,6 +1935,35 @@ void ToolbarView::OnShowHomeButtonChange
}
}
@@ -297,7 +297,7 @@
void OnTouchUiChanged();
void NewTabButtonPressed(const ui::Event& event);
@@ -433,6 +445,18 @@ class ToolbarView : public views::Access
@@ -435,6 +447,18 @@ class ToolbarView : public views::Access
// Controls whether or not a home button should be shown on the toolbar.
BooleanPrefMember show_home_button_;
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -4928,6 +4928,18 @@ int BrowserView::NonClientHitTest(const
@@ -4944,6 +4944,18 @@ int BrowserView::NonClientHitTest(const
}
}
@@ -60,7 +60,7 @@
} // namespace
////////////////////////////////////////////////////////////////////////////////
@@ -1233,6 +1201,44 @@ bool ToolbarView::GetAppMenuFocused() co
@@ -1277,6 +1245,44 @@ bool ToolbarView::GetAppMenuFocused() co
return app_menu_button_ && app_menu_button_->HasFocus();
}
@@ -105,7 +105,7 @@
void ToolbarView::ShowIntentPickerBubble(
std::vector<IntentPickerBubbleView::AppInfo> app_info,
bool show_stay_in_chrome,
@@ -1269,11 +1275,6 @@ void ToolbarView::ShowBookmarkBubble(con
@@ -1313,11 +1319,6 @@ void ToolbarView::ShowBookmarkBubble(con
already_bookmarked);
}
@@ -7,8 +7,8 @@
+#include "base/command_line.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/defaults.h"
#include "chrome/browser/extensions/extension_url_overrides.h"
@@ -143,6 +144,10 @@ void BookmarkBarController::OnSplitTabCh
#include "chrome/browser/profiles/profile.h"
@@ -138,6 +139,10 @@ void BookmarkBarController::OnSplitTabCh
}
bool BookmarkBarController::ShouldShowBookmarkBar() const {
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -744,6 +744,9 @@ class BrowserView::ExclusiveAccessContex
@@ -745,6 +745,9 @@ class BrowserView::ExclusiveAccessContex
void UpdateExclusiveAccessBubble(
const ExclusiveAccessBubbleParams& params,
ExclusiveAccessBubbleHideCallback first_hide_callback) override {
@@ -20,6 +20,27 @@
#if BUILDFLAG(IS_CHROMEOS)
should_show_close_button &&
#endif
--- a/chrome/browser/ui/views/tabs/vertical/vertical_tab_view.cc
+++ b/chrome/browser/ui/views/tabs/vertical/vertical_tab_view.cc
@@ -7,6 +7,7 @@
#include <optional>
#include <string>
+#include "base/command_line.h"
#include "base/functional/callback_helpers.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/user_metrics.h"
@@ -732,6 +733,10 @@ bool VerticalTabView::IsChildVisible(con
return false;
}
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-tab-close-buttons")) {
+ return false;
+ }
+
// When uncollapsing the tabstrip, intentionally start showing the close
// button on active non-hovered tabs a little bit sooner than reaching the
// uncollapsed min width, because otherwise the close buttons in a grouped
--- a/chrome/browser/ungoogled_flag_entries.h
+++ b/chrome/browser/ungoogled_flag_entries.h
@@ -72,4 +72,8 @@
@@ -1,6 +1,6 @@
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
@@ -589,6 +589,17 @@ void ToolbarView::Init() {
@@ -586,6 +586,17 @@ void ToolbarView::Init() {
browser_->profile()->IsGuestSession() ||
browser_->profile()->IsRegularProfile();
#endif
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4654,10 +4654,12 @@ const FeatureEntry::FeatureVariation
@@ -4685,10 +4685,12 @@ const FeatureEntry::FeatureVariation
#include "chrome/browser/ungoogled_flag_choices.h"
#include "chrome/browser/bromite_flag_choices.h"
#include "chrome/browser/ungoogled_platform_flag_choices.h"
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4650,7 +4650,13 @@ const FeatureEntry::FeatureVariation
@@ -4681,7 +4681,13 @@ const FeatureEntry::FeatureVariation
// calculate and verify checksum.
//
// When adding a new choice, add it to the end of the list.
@@ -1616,7 +1616,7 @@
scoped_refptr<network::SharedURLLoaderFactory>
--- a/chrome/browser/site_protection/site_familiarity_utils.cc
+++ b/chrome/browser/site_protection/site_familiarity_utils.cc
@@ -39,10 +39,6 @@ bool AreV8OptimizationsDisabledOnUnfamil
@@ -41,10 +41,6 @@ bool AreV8OptimizationsDisabledOnUnfamil
}
bool CanEnableBlockingJavascriptOptimizersForUnfamiliarSites(Profile* profile) {
@@ -1853,7 +1853,7 @@
// Current tab has been removed from the group.
--- a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
+++ b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
@@ -167,7 +167,7 @@ bool ChromeWebContentsViewDelegateViews:
@@ -183,7 +183,7 @@ bool ChromeWebContentsViewDelegateViews:
void ChromeWebContentsViewDelegateViews::OnPerformingDrop(
const content::DropData& drop_data,
DropCompletionCallback callback) {
@@ -1864,7 +1864,7 @@
std::unique_ptr<content::WebContentsViewDelegate> CreateWebContentsViewDelegate(
--- a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views_mac.mm
+++ b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views_mac.mm
@@ -148,7 +148,7 @@ bool ChromeWebContentsViewDelegateViewsM
@@ -165,7 +165,7 @@ bool ChromeWebContentsViewDelegateViewsM
void ChromeWebContentsViewDelegateViewsMac::OnPerformingDrop(
const content::DropData& drop_data,
DropCompletionCallback callback) {
@@ -2277,7 +2277,7 @@
--- a/components/enterprise/browser/reporting/chrome_profile_request_generator.cc
+++ b/components/enterprise/browser/reporting/chrome_profile_request_generator.cc
@@ -311,18 +311,12 @@ void ChromeProfileRequestGenerator::OnAg
@@ -313,18 +313,12 @@ void ChromeProfileRequestGenerator::OnAg
profile_signals.built_in_dns_client_enabled);
profile_signals_report->set_chrome_remote_desktop_app_blocked(
profile_signals.chrome_remote_desktop_app_blocked);
@@ -13,14 +13,14 @@
using extensions::api::settings_private::PrefObject;
--- a/chrome/browser/site_protection/site_familiarity_utils.cc
+++ b/chrome/browser/site_protection/site_familiarity_utils.cc
@@ -9,6 +9,7 @@
@@ -10,6 +10,7 @@
#include "components/content_settings/browser/ui/javascript_optimizer_setting.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/features.h"
+#include "components/content_settings/core/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/features.h"
#include "content/public/browser/render_frame_host.h"
#include "components/search_engines/template_url_service.h"
--- a/components/content_settings/core/browser/content_settings_pref_provider.cc
+++ b/components/content_settings/core/browser/content_settings_pref_provider.cc
@@ -98,6 +98,7 @@ void PrefProvider::RegisterProfilePrefs(
@@ -2863,14 +2863,14 @@
#include "components/signin/public/identity_manager/primary_account_mutator.h"
--- a/chrome/browser/site_protection/site_familiarity_utils.cc
+++ b/chrome/browser/site_protection/site_familiarity_utils.cc
@@ -11,7 +11,6 @@
@@ -12,7 +12,6 @@
#include "components/content_settings/core/common/features.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/features.h"
-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/search_engines/template_url_service.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/site_instance.h"
--- a/chrome/browser/ssl/sct_reporting_service.cc
+++ b/chrome/browser/ssl/sct_reporting_service.cc
@@ -18,7 +18,6 @@
@@ -40,7 +40,7 @@
# Disallow depending on content.
--- a/components/contextual_tasks/internal/BUILD.gn
+++ b/components/contextual_tasks/internal/BUILD.gn
@@ -50,6 +50,7 @@ source_set("internal") {
@@ -51,6 +51,7 @@ source_set("internal") {
"//components/sync/model",
"//components/url_formatter",
"//net",
+1 -1
View File
@@ -1 +1 @@
2
4
+36 -10
View File
@@ -8,6 +8,7 @@
# ensure shallow fetches
# allow using newer httplib2 with pysocks
# utilize a newer version of gsutil to support later versions of python
# allow StrEnum-equivalent functionality on older python
--- a/gclient.bat
+++ b/gclient.bat
@@ -20,4 +20,4 @@ IF %ERRORLEVEL% NEQ 0 (
@@ -18,7 +19,7 @@
+call python3 "%~dp0gclient.py" %*
--- a/gclient.py
+++ b/gclient.py
@@ -126,8 +126,8 @@ DEPOT_TOOLS_DIR = os.path.dirname(os.pat
@@ -128,8 +128,8 @@ DEPOT_TOOLS_DIR = os.path.dirname(os.pat
# one, e.g. if a spec explicitly says `cache_dir = None`.)
UNSET_CACHE_DIR = object()
@@ -29,7 +30,7 @@
PREVIOUS_SYNC_COMMITS = 'GCLIENT_PREVIOUS_SYNC_COMMITS'
@@ -424,6 +424,7 @@ class Dependency(gclient_utils.WorkItem,
@@ -426,6 +426,7 @@ class Dependency(gclient_utils.WorkItem,
protocol='https',
git_dependencies_state=gclient_eval.DEPS,
print_outbuf=False):
@@ -37,7 +38,7 @@
gclient_utils.WorkItem.__init__(self, name)
DependencySettings.__init__(self, parent, url, managed, custom_deps,
custom_vars, custom_hooks, deps_file,
@@ -769,6 +770,7 @@ class Dependency(gclient_utils.WorkItem,
@@ -771,6 +772,7 @@ class Dependency(gclient_utils.WorkItem,
condition = dep_value.get('condition')
dep_type = dep_value.get('dep_type')
@@ -45,7 +46,7 @@
if not self._get_option('process_all_deps', False):
should_process = should_process and _should_process(condition)
@@ -820,6 +822,12 @@ class Dependency(gclient_utils.WorkItem,
@@ -822,6 +824,12 @@ class Dependency(gclient_utils.WorkItem,
should_process_object = should_process and _should_process(
merged_condition)
@@ -58,7 +59,7 @@
gcs_deps.append(
GcsDependency(parent=self,
name=name,
@@ -930,6 +938,8 @@ class Dependency(gclient_utils.WorkItem,
@@ -932,6 +940,8 @@ class Dependency(gclient_utils.WorkItem,
self._gn_args_from = local_scope.get('gclient_gn_args_from')
self._gn_args_file = local_scope.get('gclient_gn_args_file')
@@ -67,7 +68,7 @@
self._gn_args = local_scope.get('gclient_gn_args', [])
# It doesn't make sense to set all of these, since setting gn_args_from
# to another DEPS will make gclient ignore any other local gn_args*
@@ -3996,6 +4006,7 @@ def CMDsync(parser, args):
@@ -4028,6 +4038,7 @@ def CMDsync(parser, args):
default=[],
help='Specify to skip processing of a certain type of '
'dep.')
@@ -77,7 +78,7 @@
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -979,8 +979,7 @@ class GitWrapper(SCMWrapper):
@@ -995,8 +995,7 @@ class GitWrapper(SCMWrapper):
self._SetFetchConfig(options)
# Fetch upstream if we don't already have |revision|.
@@ -87,7 +88,7 @@
self._Fetch(options, prune=options.force)
if not scm.GIT.IsValidRevision(
@@ -996,7 +995,7 @@ class GitWrapper(SCMWrapper):
@@ -1012,7 +1011,7 @@ class GitWrapper(SCMWrapper):
# This is a big hammer, debatable if it should even be here...
if options.force or options.reset:
@@ -96,7 +97,7 @@
if options.upstream and upstream_branch:
target = upstream_branch
self._Scrub(target, options)
@@ -1011,7 +1010,6 @@ class GitWrapper(SCMWrapper):
@@ -1027,7 +1026,6 @@ class GitWrapper(SCMWrapper):
# to the checkout step.
if not (options.force or options.reset):
self._CheckClean(revision)
@@ -104,7 +105,7 @@
if not current_revision:
current_revision = self._Capture(
@@ -1708,8 +1706,7 @@ class GitWrapper(SCMWrapper):
@@ -1724,8 +1722,7 @@ class GitWrapper(SCMWrapper):
fetch_cmd.append('--no-tags')
elif quiet:
fetch_cmd.append('--quiet')
@@ -139,3 +140,28 @@
# Google OAuth Context required by gsutil.
LUCI_AUTH_SCOPES = [
--- a/metrics_utils.py
+++ b/metrics_utils.py
@@ -7,13 +7,20 @@ import os
import re
import sys
import urllib.parse
-from enum import StrEnum
+try:
+ from enum import StrEnum
+ class StringEnum(StrEnum):
+ pass
+except ImportError:
+ from enum import Enum
+ class StringEnum(str, Enum):
+ pass
import scm
import subprocess2
-class EditMonitorState(StrEnum):
+class EditMonitorState(StringEnum):
"""The telemetry state for the Edit Monitor.
Attributes: