mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6305ef215f | |||
| 58f6aa1135 | |||
| dbe7963624 | |||
| 47bc6ecca7 | |||
| ebb0cb88e4 | |||
| 71cd486eaf | |||
| bf26fa3e96 | |||
| e1f2182e90 | |||
| 058dbdb229 | |||
| c9a7f5b1b3 | |||
| 1d5f225b08 | |||
| d9213991cc | |||
| a6484f3d3f | |||
| 6271d50506 | |||
| dbb383d84e |
@@ -1 +1 @@
|
||||
137.0.7151.69
|
||||
137.0.7151.104
|
||||
|
||||
@@ -4503,6 +4503,7 @@ media/audio/android/audio_track_output_stream.cc
|
||||
media/audio/android/opensles_util.cc
|
||||
media/audio/cras/cras_util.cc
|
||||
media/audio/ios/audio_session_manager_ios.mm
|
||||
media/audio/win/audio_low_latency_input_win.cc
|
||||
media/audio/win/audio_low_latency_output_win.h
|
||||
media/audio/win/core_audio_util_win.cc
|
||||
media/audio/win/core_audio_util_win.h
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -3694,8 +3694,6 @@ static_library("browser") {
|
||||
@@ -3696,8 +3696,6 @@ static_library("browser") {
|
||||
"download/download_auto_open_policy_handler.cc",
|
||||
"download/download_auto_open_policy_handler.h",
|
||||
"download/download_commands.cc",
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -761,10 +761,6 @@ static_library("browser") {
|
||||
@@ -763,10 +763,6 @@ static_library("browser") {
|
||||
"navigation_predictor/navigation_predictor_metrics_document_data.h",
|
||||
"navigation_predictor/navigation_predictor_preconnect_client.cc",
|
||||
"navigation_predictor/navigation_predictor_preconnect_client.h",
|
||||
@@ -41,7 +41,7 @@
|
||||
"navigation_predictor/search_engine_preconnector_keyed_service_factory.cc",
|
||||
"navigation_predictor/search_engine_preconnector_keyed_service_factory.h",
|
||||
"net/cert_verifier_service_time_updater.cc",
|
||||
@@ -3560,10 +3556,6 @@ static_library("browser") {
|
||||
@@ -3562,10 +3558,6 @@ static_library("browser") {
|
||||
} else {
|
||||
#!is_android
|
||||
sources += [
|
||||
@@ -52,7 +52,7 @@
|
||||
"accessibility/caption_bubble_context_browser.h",
|
||||
"accessibility/embedded_a11y_extension_loader.cc",
|
||||
"accessibility/embedded_a11y_extension_loader.h",
|
||||
@@ -4283,8 +4275,6 @@ static_library("browser") {
|
||||
@@ -4285,8 +4277,6 @@ static_library("browser") {
|
||||
"//chrome/app:command_ids",
|
||||
"//chrome/app/theme:chrome_unscaled_resources_grit",
|
||||
"//chrome/app/vector_icons",
|
||||
@@ -61,7 +61,7 @@
|
||||
"//chrome/browser/apps/app_service",
|
||||
"//chrome/browser/apps/link_capturing",
|
||||
"//chrome/browser/contextual_cueing",
|
||||
@@ -4305,10 +4295,6 @@ static_library("browser") {
|
||||
@@ -4307,10 +4297,6 @@ static_library("browser") {
|
||||
"//chrome/browser/new_tab_page/chrome_colors",
|
||||
"//chrome/browser/policy:path_parser",
|
||||
"//chrome/browser/resources:component_extension_resources",
|
||||
@@ -72,7 +72,7 @@
|
||||
"//chrome/browser/search/background",
|
||||
"//chrome/browser/smart_card",
|
||||
"//chrome/browser/themes",
|
||||
@@ -4442,9 +4428,6 @@ static_library("browser") {
|
||||
@@ -4444,9 +4430,6 @@ static_library("browser") {
|
||||
"//components/webauthn/core/browser",
|
||||
"//components/webauthn/core/browser:passkey_model",
|
||||
"//services/device/public/cpp/hid",
|
||||
@@ -82,7 +82,7 @@
|
||||
"//third_party/crashpad/crashpad/client:common",
|
||||
"//third_party/zxcvbn-cpp",
|
||||
"//ui/views",
|
||||
@@ -4544,8 +4527,6 @@ static_library("browser") {
|
||||
@@ -4546,8 +4529,6 @@ static_library("browser") {
|
||||
sources += [
|
||||
"accessibility/soda_installer_impl.cc",
|
||||
"accessibility/soda_installer_impl.h",
|
||||
@@ -91,7 +91,7 @@
|
||||
"device_identity/device_oauth2_token_store_desktop.cc",
|
||||
"device_identity/device_oauth2_token_store_desktop.h",
|
||||
"device_notifications/device_status_icon_renderer.cc",
|
||||
@@ -4584,8 +4565,6 @@ static_library("browser") {
|
||||
@@ -4586,8 +4567,6 @@ static_library("browser") {
|
||||
"profiles/profile_activity_metrics_recorder.h",
|
||||
"profiles/profile_list_desktop.cc",
|
||||
"profiles/profile_list_desktop.h",
|
||||
@@ -100,7 +100,7 @@
|
||||
"signin/force_signin_verifier.cc",
|
||||
"signin/force_signin_verifier.h",
|
||||
"signin/signin_manager.cc",
|
||||
@@ -5386,7 +5365,6 @@ static_library("browser") {
|
||||
@@ -5388,7 +5367,6 @@ static_library("browser") {
|
||||
"//chrome/browser/policy:system_features_disable_list",
|
||||
"//chrome/browser/push_notification:push_notification",
|
||||
"//chrome/browser/resources:app_icon_resources",
|
||||
@@ -108,7 +108,7 @@
|
||||
"//chrome/browser/support_tool/ash",
|
||||
"//chrome/browser/ui/ash/accelerator",
|
||||
"//chrome/browser/ui/ash/accessibility",
|
||||
@@ -5651,7 +5629,6 @@ static_library("browser") {
|
||||
@@ -5653,7 +5631,6 @@ static_library("browser") {
|
||||
"//remoting/host/chromeos:browser_interop",
|
||||
"//remoting/host/chromeos:features",
|
||||
"//services/device/public/cpp/geolocation",
|
||||
@@ -116,7 +116,7 @@
|
||||
"//third_party/nearby:rpc_resources_proto",
|
||||
"//third_party/nearby:wire_format_proto",
|
||||
"//ui/chromeos",
|
||||
@@ -7893,12 +7870,6 @@ static_library("browser") {
|
||||
@@ -7895,12 +7872,6 @@ static_library("browser") {
|
||||
}
|
||||
|
||||
if (enable_pdf) {
|
||||
@@ -597,7 +597,7 @@
|
||||
${this.showErrorDialog ? html`<viewer-error-dialog id="error-dialog">
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -1722,8 +1722,6 @@ static_library("ui") {
|
||||
@@ -1723,8 +1723,6 @@ static_library("ui") {
|
||||
"//chrome/browser/regional_capabilities",
|
||||
"//chrome/browser/safe_browsing",
|
||||
"//chrome/browser/safe_browsing:advanced_protection",
|
||||
@@ -606,7 +606,7 @@
|
||||
"//chrome/browser/smart_card:smart_card",
|
||||
"//chrome/browser/tab_group_sync:utils",
|
||||
"//chrome/browser/themes",
|
||||
@@ -2415,7 +2413,6 @@ static_library("ui") {
|
||||
@@ -2416,7 +2414,6 @@ static_library("ui") {
|
||||
"//chrome/browser/policy:onc",
|
||||
"//chrome/browser/policy:system_features_disable_list",
|
||||
"//chrome/browser/push_notification:push_notification",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"invalidation/profile_invalidation_provider_factory.cc",
|
||||
"invalidation/profile_invalidation_provider_factory.h",
|
||||
"k_anonymity_service/k_anonymity_service_client.cc",
|
||||
@@ -2313,7 +2311,6 @@ static_library("browser") {
|
||||
@@ -2315,7 +2313,6 @@ static_library("browser") {
|
||||
"//components/resources",
|
||||
"//components/safe_browsing/content/browser",
|
||||
"//components/safe_browsing/content/browser:safe_browsing_service",
|
||||
@@ -19,7 +19,7 @@
|
||||
"//components/safe_browsing/content/browser/password_protection",
|
||||
"//components/safe_browsing/content/browser/web_ui",
|
||||
"//components/safe_browsing/content/common/proto:download_file_types_proto",
|
||||
@@ -3903,10 +3900,6 @@ static_library("browser") {
|
||||
@@ -3905,10 +3902,6 @@ static_library("browser") {
|
||||
"new_tab_page/modules/modules_switches.h",
|
||||
"new_tab_page/modules/new_tab_page_modules.cc",
|
||||
"new_tab_page/modules/new_tab_page_modules.h",
|
||||
@@ -30,7 +30,7 @@
|
||||
"new_tab_page/modules/v2/authentication/microsoft_auth_page_handler.cc",
|
||||
"new_tab_page/modules/v2/authentication/microsoft_auth_page_handler.h",
|
||||
"new_tab_page/modules/v2/calendar/calendar_fake_data_helper.cc",
|
||||
@@ -8515,7 +8508,6 @@ static_library("browser_generated_files"
|
||||
@@ -8517,7 +8510,6 @@ static_library("browser_generated_files"
|
||||
"//chrome/browser/new_tab_page/chrome_colors:generate_chrome_colors_info",
|
||||
"//chrome/browser/new_tab_page/chrome_colors:generate_colors_info",
|
||||
"//chrome/browser/new_tab_page/modules/file_suggestion:mojo_bindings",
|
||||
@@ -38,7 +38,7 @@
|
||||
"//chrome/browser/new_tab_page/modules/v2/authentication:mojo_bindings",
|
||||
"//chrome/browser/new_tab_page/modules/v2/calendar:mojo_bindings",
|
||||
"//chrome/browser/new_tab_page/modules/v2/most_relevant_tab_resumption:mojo_bindings",
|
||||
@@ -9005,8 +8997,6 @@ static_library("test_support") {
|
||||
@@ -9007,8 +8999,6 @@ static_library("test_support") {
|
||||
"//components/reporting/util:status",
|
||||
"//components/reporting/util:status_macros",
|
||||
"//components/reporting/util:task_runner_context",
|
||||
@@ -788,18 +788,19 @@
|
||||
force_installed_tracker_(registry_, profile_),
|
||||
force_installed_metrics_(registry_, profile_, &force_installed_tracker_),
|
||||
corrupted_extension_reinstaller_(
|
||||
@@ -358,10 +354,6 @@ void ExtensionService::Init() {
|
||||
extensions_features::kDisableLoadExtensionCommandLineSwitch)) {
|
||||
LOG(WARNING)
|
||||
@@ -404,11 +400,6 @@ void ExtensionService::LoadExtensionsFro
|
||||
<< "--load-extension is not allowed in Google Chrome, ignoring.";
|
||||
- } else if (safe_browsing::IsEnhancedProtectionEnabled(
|
||||
- *profile_->GetPrefs())) {
|
||||
return;
|
||||
}
|
||||
- if (safe_browsing::IsEnhancedProtectionEnabled(*profile_->GetPrefs())) {
|
||||
- VLOG(1) << "--load-extension is not allowed for users opted into "
|
||||
- << "Enhanced Safe Browsing, ignoring.";
|
||||
} else if (ShouldBlockCommandLineExtension(*profile_)) {
|
||||
- return;
|
||||
- }
|
||||
if (ShouldBlockCommandLineExtension(*profile_)) {
|
||||
// TODO(crbug.com/401529219): Deprecate this restriction once
|
||||
// --load-extension switch is restricted on Chrome builds.
|
||||
@@ -440,17 +432,6 @@ void ExtensionService::LoadSigninProfile
|
||||
// --load-extension removal on Chrome builds is fully launched.
|
||||
@@ -456,17 +447,6 @@ void ExtensionService::LoadSigninProfile
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -838,7 +839,7 @@
|
||||
// Performs action based on verdicts received from the Extension Telemetry
|
||||
// server. Currently, these verdicts are limited to off-store extensions.
|
||||
void PerformActionBasedOnExtensionTelemetryServiceVerdicts(
|
||||
@@ -371,8 +366,6 @@ class ExtensionService : public Extensio
|
||||
@@ -386,8 +381,6 @@ class ExtensionService : public Extensio
|
||||
ExtensionTelemetryServiceVerdictHandler
|
||||
extension_telemetry_service_verdict_handler_;
|
||||
|
||||
@@ -1338,7 +1339,7 @@
|
||||
// certificate. So, when users click proceed on an interstitial, move the tab
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -4585,8 +4585,6 @@ static_library("ui") {
|
||||
@@ -4586,8 +4586,6 @@ static_library("ui") {
|
||||
"views/safe_browsing/prompt_for_scanning_modal_dialog.h",
|
||||
"views/safe_browsing/tailored_security_desktop_dialog_manager.cc",
|
||||
"views/safe_browsing/tailored_security_desktop_dialog_manager.h",
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2530,6 +2530,7 @@ static_library("browser") {
|
||||
@@ -2532,6 +2532,7 @@ static_library("browser") {
|
||||
"//third_party/libyuv",
|
||||
"//third_party/metrics_proto",
|
||||
"//third_party/re2",
|
||||
|
||||
@@ -17,7 +17,7 @@ with limited CPU/memory resources and it is disabled by default.
|
||||
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2207,6 +2207,7 @@ static_library("browser") {
|
||||
@@ -2209,6 +2209,7 @@ static_library("browser") {
|
||||
"//components/net_log",
|
||||
"//components/network_hints/common:mojo_bindings",
|
||||
"//components/network_session_configurator/browser",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/ui/tab_helpers.cc
|
||||
+++ b/chrome/browser/ui/tab_helpers.cc
|
||||
@@ -541,7 +541,9 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
@@ -543,7 +543,9 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
profile, web_contents);
|
||||
#endif // BUILDFLAG(SAFE_BROWSING_AVAILABLE)
|
||||
SafetyTipWebContentsObserver::CreateForWebContents(web_contents);
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
|
||||
--- a/chrome/browser/ui/views/frame/browser_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/browser_view.cc
|
||||
@@ -5197,6 +5197,7 @@ void BrowserView::AddedToWidget() {
|
||||
@@ -5200,6 +5200,7 @@ void BrowserView::AddedToWidget() {
|
||||
|
||||
toolbar_->Init();
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -2216,7 +2216,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
|
||||
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
|
||||
AppendLiveCaptionItem();
|
||||
- AppendMediaRouterItem();
|
||||
if (IsRegionSearchEnabled()) {
|
||||
AppendRegionSearchItem();
|
||||
}
|
||||
@@ -2344,8 +2343,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
void RenderViewContextMenu::AppendReadingModeItem() {
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
- if (GetBrowser() && GetBrowser()->is_type_normal() &&
|
||||
- !IsReadAnythingEntryShowing(GetBrowser())) {
|
||||
+ if ((false)) {
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
|
||||
IDS_CONTENT_CONTEXT_READING_MODE);
|
||||
}
|
||||
@@ -3976,6 +3974,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
|
||||
bool draw_icon,
|
||||
bool add_separator) {
|
||||
+ return false;
|
||||
+
|
||||
if (!IsQRCodeGeneratorEnabled()) {
|
||||
return false;
|
||||
}
|
||||
--- a/chrome/browser/ui/browser_tab_strip_model_delegate.cc
|
||||
+++ b/chrome/browser/ui/browser_tab_strip_model_delegate.cc
|
||||
@@ -304,6 +304,7 @@ void BrowserTabStripModelDelegate::AddTo
|
||||
}
|
||||
|
||||
bool BrowserTabStripModelDelegate::SupportsReadLater() {
|
||||
+ return false;
|
||||
return !browser_->profile()->IsGuestSession() && !IsForWebApp();
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
# START ios/ section.
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8496,6 +8496,7 @@ static_library("browser_generated_files"
|
||||
@@ -8498,6 +8498,7 @@ static_library("browser_generated_files"
|
||||
"//chrome/browser/ui/webui/user_education_internals:mojo_bindings",
|
||||
"//chrome/browser/v8_compile_hints/proto",
|
||||
"//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -8068,6 +8068,8 @@ static_library("browser") {
|
||||
@@ -8070,6 +8070,8 @@ static_library("browser") {
|
||||
deps += [
|
||||
"//components/spellcheck/browser",
|
||||
"//components/spellcheck/common",
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -2344,8 +2344,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
void RenderViewContextMenu::AppendReadingModeItem() {
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
- if (GetBrowser() && GetBrowser()->is_type_normal() &&
|
||||
- !IsReadAnythingEntryShowing(GetBrowser())) {
|
||||
+ if ((false)) {
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
|
||||
IDS_CONTENT_CONTEXT_READING_MODE);
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
--- a/chrome/browser/ui/ui_features.cc
|
||||
+++ b/chrome/browser/ui/ui_features.cc
|
||||
@@ -131,7 +131,7 @@ BASE_FEATURE(KScrimForTabModal,
|
||||
"ScrimForTabModal",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
-BASE_FEATURE(kSideBySide, "SideBySide", base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+BASE_FEATURE(kSideBySide, "SideBySide", base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
BASE_FEATURE(kSidePanelResizing,
|
||||
"SidePanelResizing",
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_resize_area.cc
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_resize_area.cc
|
||||
@@ -21,8 +21,8 @@
|
||||
namespace {
|
||||
const int kHandleCornerRadius = 2;
|
||||
const int kHandleHeight = 24;
|
||||
-const int kHandlePadding = 6;
|
||||
-const int kHandleWidth = 4;
|
||||
+const int kHandlePadding = 3;
|
||||
+const int kHandleWidth = 2;
|
||||
} // namespace
|
||||
|
||||
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(MultiContentsResizeHandle,
|
||||
--- a/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
+++ b/chrome/browser/ui/views/frame/multi_contents_view.h
|
||||
@@ -126,11 +126,11 @@ class MultiContentsView : public views::
|
||||
private:
|
||||
static constexpr int kMinWebContentsWidth = 200;
|
||||
static constexpr double kMinWebContentsWidthPercentage = 0.1;
|
||||
- static constexpr int kContentCornerRadius = 6;
|
||||
+ static constexpr int kContentCornerRadius = 5;
|
||||
static constexpr int kContentOutlineCornerRadius = 8;
|
||||
static constexpr int kContentOutlineThickness = 1;
|
||||
- static constexpr int kSplitViewContentInset = 8;
|
||||
- static constexpr int kSplitViewContentPadding = 4;
|
||||
+ static constexpr int kSplitViewContentInset = 3;
|
||||
+ static constexpr int kSplitViewContentPadding = 2;
|
||||
|
||||
// ContentsContainerView holds the ContentsWebView and the outlines and
|
||||
// minitoolbar when in split view.
|
||||
--- a/chrome/browser/resources/tab_search/split_view/app.css
|
||||
+++ b/chrome/browser/resources/tab_search/split_view/app.css
|
||||
@@ -27,6 +27,7 @@
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
margin-top: 4px;
|
||||
+ color: var(--cr-secondary-text-color);
|
||||
}
|
||||
|
||||
.contents {
|
||||
--- a/chrome/browser/ui/tabs/split_tab_menu_model.cc
|
||||
+++ b/chrome/browser/ui/tabs/split_tab_menu_model.cc
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "chrome/app/vector_icons/vector_icons.h"
|
||||
#include "chrome/browser/ui/tabs/split_tab_data.h"
|
||||
#include "chrome/browser/ui/tabs/split_tab_visual_data.h"
|
||||
+#include "chrome/browser/ui/tabs/tab_enums.h"
|
||||
#include "chrome/browser/ui/tabs/tab_model.h"
|
||||
#include "chrome/browser/ui/tabs/tab_strip_model.h"
|
||||
#include "chrome/grit/generated_resources.h"
|
||||
@@ -23,12 +24,10 @@
|
||||
#include "ui/menus/simple_menu_model.h"
|
||||
|
||||
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(SplitTabMenuModel, kSwapPositionMenuItem);
|
||||
-DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(SplitTabMenuModel, kSwapLayoutMenuItem);
|
||||
|
||||
SplitTabMenuModel::SplitTabMenuModel(TabStripModel* tab_strip_model)
|
||||
: ui::SimpleMenuModel(this), tab_strip_model_(tab_strip_model) {
|
||||
AddItem(static_cast<int>(CommandId::kSwapPosition), std::u16string());
|
||||
- AddItem(static_cast<int>(CommandId::kSwapLayout), std::u16string());
|
||||
AddSeparator(ui::MenuSeparatorType::NORMAL_SEPARATOR);
|
||||
AddItemWithStringIdAndIcon(
|
||||
static_cast<int>(CommandId::kClose), IDS_SPLIT_TAB_CLOSE,
|
||||
@@ -43,9 +42,6 @@ SplitTabMenuModel::SplitTabMenuModel(Tab
|
||||
SetElementIdentifierAt(
|
||||
GetIndexOfCommandId(static_cast<int>(CommandId::kSwapPosition)).value(),
|
||||
kSwapPositionMenuItem);
|
||||
- SetElementIdentifierAt(
|
||||
- GetIndexOfCommandId(static_cast<int>(CommandId::kSwapLayout)).value(),
|
||||
- kSwapLayoutMenuItem);
|
||||
}
|
||||
|
||||
SplitTabMenuModel::~SplitTabMenuModel() = default;
|
||||
@@ -86,7 +82,32 @@ ui::ImageModel SplitTabMenuModel::GetIco
|
||||
ui::SimpleMenuModel::kDefaultIconSize);
|
||||
}
|
||||
|
||||
-void SplitTabMenuModel::ExecuteCommand(int command_id, int event_flags) {}
|
||||
+void SplitTabMenuModel::ExecuteCommand(int command_id, int event_flags) {
|
||||
+ split_tabs::SplitTabId split_id = GetSplitTabId();
|
||||
+ switch (static_cast<CommandId>(command_id)) {
|
||||
+ case CommandId::kSwapPosition:
|
||||
+ tab_strip_model_->SwapTabsInSplit(split_id);
|
||||
+ break;
|
||||
+ case CommandId::kClose:
|
||||
+ tab_strip_model_->CloseWebContentsAt(
|
||||
+ tab_strip_model_->active_index(),
|
||||
+ TabCloseTypes::CLOSE_USER_GESTURE |
|
||||
+ TabCloseTypes::CLOSE_CREATE_HISTORICAL_TAB);
|
||||
+ break;
|
||||
+ case CommandId::kExitSplit:
|
||||
+ tab_strip_model_->RemoveSplit(split_id);
|
||||
+ break;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+split_tabs::SplitTabId SplitTabMenuModel::GetSplitTabId() const {
|
||||
+ tabs::TabInterface* const tab =
|
||||
+ split_tab_index_.has_value()
|
||||
+ ? tab_strip_model_->GetTabAtIndex(split_tab_index_.value())
|
||||
+ : tab_strip_model_->GetActiveTab();
|
||||
+ CHECK(tab->IsSplit());
|
||||
+ return tab->GetSplit().value();
|
||||
+}
|
||||
|
||||
const gfx::VectorIcon& SplitTabMenuModel::GetSwapPositionIcon(
|
||||
split_tabs::SplitTabActiveLocation active_split_tab_location) const {
|
||||
--- a/chrome/browser/ui/tabs/split_tab_menu_model.h
|
||||
+++ b/chrome/browser/ui/tabs/split_tab_menu_model.h
|
||||
@@ -40,6 +40,7 @@ class SplitTabMenuModel : public ui::Sim
|
||||
void ExecuteCommand(int command_id, int event_flags) override;
|
||||
|
||||
private:
|
||||
+ split_tabs::SplitTabId GetSplitTabId() const;
|
||||
const gfx::VectorIcon& GetSwapPositionIcon(
|
||||
split_tabs::SplitTabActiveLocation active_split_tab_location) const;
|
||||
const gfx::VectorIcon& GetSwapLayoutIcon(
|
||||
@@ -47,6 +48,10 @@ class SplitTabMenuModel : public ui::Sim
|
||||
std::u16string GetSwapLayoutString() const;
|
||||
|
||||
raw_ptr<TabStripModel> tab_strip_model_ = nullptr;
|
||||
+
|
||||
+ // This represents the tab that this menu model should be operating on. If
|
||||
+ // nothing is provided, use the currently active tab.
|
||||
+ std::optional<int> split_tab_index_;
|
||||
};
|
||||
|
||||
#endif // CHROME_BROWSER_UI_TABS_SPLIT_TAB_MENU_MODEL_H_
|
||||
@@ -0,0 +1,22 @@
|
||||
--- a/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_utils.h
|
||||
+++ b/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_frame_toolbar_utils.h
|
||||
@@ -11,7 +11,7 @@ class ToolbarButton;
|
||||
class ToolbarButtonProvider;
|
||||
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
-constexpr int kWebAppMenuMargin = 7;
|
||||
+constexpr int kWebAppMenuMargin = 4;
|
||||
#endif
|
||||
|
||||
// Makes adjustments to |toolbar_button| for display in a web app frame.
|
||||
--- a/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_toolbar_button_container.cc
|
||||
+++ b/chrome/browser/ui/views/web_apps/frame_toolbar/web_app_toolbar_button_container.cc
|
||||
@@ -85,7 +85,7 @@ WebAppToolbarButtonContainer::WebAppTool
|
||||
.SetDefault(
|
||||
views::kMarginsKey,
|
||||
gfx::Insets::VH(
|
||||
- 0, HorizontalPaddingBetweenPageActionsAndAppMenuButtons()))
|
||||
+ 0, 9))
|
||||
.SetCollapseMargins(true)
|
||||
.SetIgnoreDefaultMainAxisMargins(true)
|
||||
.SetCrossAxisAlignment(views::LayoutAlignment::kCenter)
|
||||
@@ -56,7 +56,7 @@
|
||||
case TAB_SEPARATOR_HEIGHT:
|
||||
return touch_ui ? 24 : 20;
|
||||
case TAB_PRE_TITLE_PADDING:
|
||||
@@ -110,14 +110,9 @@ int GetLayoutConstant(LayoutConstant con
|
||||
@@ -110,28 +110,23 @@ int GetLayoutConstant(LayoutConstant con
|
||||
case TAB_STACK_DISTANCE:
|
||||
return touch_ui ? 4 : 6;
|
||||
case TABSTRIP_TOOLBAR_OVERLAP:
|
||||
@@ -73,20 +73,22 @@
|
||||
case TOOLBAR_DIVIDER_CORNER_RADIUS:
|
||||
return 1;
|
||||
case TOOLBAR_DIVIDER_HEIGHT:
|
||||
@@ -125,13 +120,13 @@ int GetLayoutConstant(LayoutConstant con
|
||||
return touch_ui ? 20 : 16;
|
||||
case TOOLBAR_DIVIDER_SPACING:
|
||||
return 9;
|
||||
- return 9;
|
||||
+ return 6;
|
||||
case TOOLBAR_DIVIDER_WIDTH:
|
||||
- return 2;
|
||||
+ return 1;
|
||||
case TOOLBAR_ELEMENT_PADDING:
|
||||
return touch_ui ? 0 : 4;
|
||||
- return touch_ui ? 0 : 4;
|
||||
+ return touch_ui ? 0 : 3;
|
||||
case TOOLBAR_ICON_DEFAULT_MARGIN:
|
||||
- return touch_ui ? 0 : 2;
|
||||
+ return touch_ui ? 0 : 4;
|
||||
+ return touch_ui ? 0 : 3;
|
||||
case TOOLBAR_STANDARD_SPACING:
|
||||
- return touch_ui ? 12 : 9;
|
||||
+ return touch_ui ? 12 : 8;
|
||||
+ return touch_ui ? 12 : 6;
|
||||
case PAGE_INFO_ICON_SIZE:
|
||||
return 20;
|
||||
case DOWNLOAD_ICON_SIZE:
|
||||
@@ -122,7 +124,7 @@
|
||||
|
||||
case TOOLBAR_INTERIOR_MARGIN:
|
||||
- return touch_ui ? gfx::Insets() : gfx::Insets::VH(6, 5);
|
||||
+ return touch_ui ? gfx::Insets() : gfx::Insets::VH(3, 8);
|
||||
+ return touch_ui ? gfx::Insets() : gfx::Insets::VH(3, 6);
|
||||
|
||||
case WEBUI_TAB_STRIP_TOOLBAR_INTERIOR_MARGIN:
|
||||
return gfx::Insets::VH(4, 0);
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
||||
@@ -76,7 +76,7 @@ class FrameGrabHandle : public views::Vi
|
||||
// is full.
|
||||
// TODO(tbergquist): Define this relative to the NTB insets again.
|
||||
if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-grab-handle")) return gfx::Size(0, 0);
|
||||
- return gfx::Size(42, 0);
|
||||
+ return gfx::Size(29, 0);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
// Thickness in DIPs of the separator painted on the left and right edges of
|
||||
// the tab.
|
||||
-constexpr int kChromeRefreshSeparatorThickness = 2;
|
||||
-constexpr int kChromeRefreshSeparatorHorizontalMargin = 2;
|
||||
+constexpr int kChromeRefreshSeparatorThickness = 1;
|
||||
constexpr int kChromeRefreshSeparatorHorizontalMargin = 2;
|
||||
+constexpr int kChromeRefreshSeparatorHorizontalMargin = 1;
|
||||
// TODO (crbug.com/1451400): This constant should be in LayoutConstants.
|
||||
constexpr int kChromeRefreshSeparatorHeight = 16;
|
||||
|
||||
|
||||
+4
-1
@@ -135,13 +135,14 @@ helium/core/update-credits.patch
|
||||
helium/core/disable-user-education-nags.patch
|
||||
helium/core/replace-default-profile-name.patch
|
||||
helium/core/disable-live-caption-completely.patch
|
||||
helium/core/remove-read-anything-context-menu-entry.patch
|
||||
helium/core/unthemify-onboarding-favicon.patch
|
||||
helium/core/spoof-extension-downloader-platform.patch
|
||||
helium/core/add-helium-versioning.patch
|
||||
helium/core/enable-tab-search-toolbar-button.patch
|
||||
helium/core/hide-avatar-via-toolbar-prefs.patch
|
||||
helium/core/hide-extensions-via-toolbar-prefs.patch
|
||||
helium/core/clean-context-menu.patch
|
||||
helium/core/split-view.patch
|
||||
|
||||
helium/settings/move-search-suggest.patch
|
||||
helium/settings/remove-autofill.patch
|
||||
@@ -194,3 +195,5 @@ helium/ui/bangs-ui.patch
|
||||
helium/ui/thinner-infobar.patch
|
||||
helium/ui/reduce-text-button-height.patch
|
||||
helium/ui/fix-omnibox-tabs-icon.patch
|
||||
helium/ui/smaller-window-grab-handle.patch
|
||||
helium/ui/fix-pwa-toolbar.patch
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
2
|
||||
5
|
||||
|
||||
Reference in New Issue
Block a user