59 lines
2.6 KiB
Diff
59 lines
2.6 KiB
Diff
From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|
Date: Mon, 18 Oct 2021 20:50:48 +0200
|
|
Subject: Add flag to disable pull to refresh effect
|
|
|
|
---
|
|
chrome/browser/about_flags.cc | 6 ++++++
|
|
chrome/browser/flag_descriptions.cc | 6 ++++++
|
|
chrome/browser/flag_descriptions.h | 3 +++
|
|
3 files changed, 15 insertions(+)
|
|
|
|
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
|
|
--- a/chrome/browser/about_flags.cc
|
|
+++ b/chrome/browser/about_flags.cc
|
|
@@ -7477,6 +7477,12 @@ const FeatureEntry kFeatureEntries[] = {
|
|
flag_descriptions::kPrivacyReviewDescription, kOsDesktop | kOsAndroid,
|
|
FEATURE_VALUE_TYPE(features::kPrivacyReview)},
|
|
|
|
+#if defined(OS_ANDROID)
|
|
+ {switches::kDisablePullToRefreshEffect, flag_descriptions::kDisablePullToRefreshEffectName,
|
|
+ flag_descriptions::kDisablePullToRefreshEffectDescription, kOsAndroid,
|
|
+ SINGLE_VALUE_TYPE(switches::kDisablePullToRefreshEffect)},
|
|
+#endif
|
|
+
|
|
#if defined(OS_ANDROID)
|
|
{"google-mobile-services-passwords",
|
|
flag_descriptions::kUnifiedPasswordManagerAndroidName,
|
|
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
|
|
--- a/chrome/browser/flag_descriptions.cc
|
|
+++ b/chrome/browser/flag_descriptions.cc
|
|
@@ -1451,6 +1451,12 @@ const char kIncognitoClearBrowsingDataDialogForDesktopDescription[] =
|
|
"When enabled, clear browsing data option would be enabled in Incognito "
|
|
"which upon clicking would show a dialog to close all Incognito windows.";
|
|
|
|
+const char kDisablePullToRefreshEffectName[] =
|
|
+ "Disable the pull-to-refresh effect when vertically overscrolling content.";
|
|
+const char kDisablePullToRefreshEffectDescription[] =
|
|
+ "Disable the pull-to-refresh effect with the elastic overscroll feature "
|
|
+ "used to indicate that the user is scrolling beyond the range of the scrollable area.";
|
|
+
|
|
const char kUpdateHistoryEntryPointsInIncognitoName[] =
|
|
"Update history entry points in Incognito.";
|
|
const char kUpdateHistoryEntryPointsInIncognitoDescription[] =
|
|
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
|
|
--- a/chrome/browser/flag_descriptions.h
|
|
+++ b/chrome/browser/flag_descriptions.h
|
|
@@ -564,6 +564,9 @@ extern const char kDiagnosticsAppDescription[];
|
|
extern const char kDiagnosticsAppNavigationName[];
|
|
extern const char kDiagnosticsAppNavigationDescription[];
|
|
|
|
+extern const char kDisablePullToRefreshEffectName[];
|
|
+extern const char kDisablePullToRefreshEffectDescription[];
|
|
+
|
|
extern const char kDisableKeepaliveFetchName[];
|
|
extern const char kDisableKeepaliveFetchDescription[];
|
|
|
|
--
|
|
2.17.1
|
|
|