Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1753)

Unified Diff: chrome/browser/about_flags.cc

Issue 2184543005: [ash-md] Improves smoothness with many windows in overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 88dc0771567ba2df23938fadcca5e82f9edbeb8a..142a997c49f56c91007d3cd019799a3ac2c69476 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -379,6 +379,34 @@ const FeatureEntry::Choice kAshMaterialDesignChoices[] = {
ash::switches::kAshMaterialDesignExperimental},
};
+const FeatureEntry::Choice kAshMaxWindowsToUseMaskInOverviewChoices[] = {
+ {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_MASK_UNLIMITED,
+ ash::switches::kAshMaxWindowsToUseMaskInOverview, "-1"},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_MASK_ZERO,
+ ash::switches::kAshMaxWindowsToUseMaskInOverview, "0"},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_MASK_FIVE,
+ ash::switches::kAshMaxWindowsToUseMaskInOverview, "5"},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_MASK_TEN,
+ ash::switches::kAshMaxWindowsToUseMaskInOverview, "10"},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_MASK_FIFTEEN,
+ ash::switches::kAshMaxWindowsToUseMaskInOverview, "15"},
+};
+
+const FeatureEntry::Choice kAshMaxWindowsToUseShapeInOverviewChoices[] = {
+ {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_SHAPE_UNLIMITED,
+ ash::switches::kAshMaxWindowsToUseShapeInOverview, "-1"},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_SHAPE_ZERO,
+ ash::switches::kAshMaxWindowsToUseShapeInOverview, "0"},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_SHAPE_FIVE,
+ ash::switches::kAshMaxWindowsToUseShapeInOverview, "5"},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_SHAPE_TEN,
+ ash::switches::kAshMaxWindowsToUseShapeInOverview, "10"},
+ {IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_SHAPE_FIFTEEN,
+ ash::switches::kAshMaxWindowsToUseShapeInOverview, "15"},
+};
+
const FeatureEntry::Choice kAshMaterialDesignInkDropAnimationSpeed[] = {
{IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
{IDS_FLAGS_MATERIAL_DESIGN_INK_DROP_ANIMATION_FAST,
@@ -776,8 +804,8 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_EXPERIMENTAL_WEB_PLATFORM_FEATURES_NAME,
IDS_FLAGS_EXPERIMENTAL_WEB_PLATFORM_FEATURES_DESCRIPTION, kOsAll,
SINGLE_VALUE_TYPE(switches::kEnableExperimentalWebPlatformFeatures)},
- {"enable-web-bluetooth", IDS_FLAGS_WEB_BLUETOOTH_NAME,
- IDS_FLAGS_WEB_BLUETOOTH_DESCRIPTION,
+ {"enable-web-bluetooth", // FLAGS:RECORD_UMA
+ IDS_FLAGS_WEB_BLUETOOTH_NAME, IDS_FLAGS_WEB_BLUETOOTH_DESCRIPTION,
kOsCrOS | kOsMac | kOsAndroid | kOsLinux,
SINGLE_VALUE_TYPE(switches::kEnableWebBluetooth)},
#if defined(ENABLE_EXTENSIONS)
@@ -951,6 +979,18 @@ const FeatureEntry kFeatureEntries[] = {
ash::switches::kAshEnableStableOverviewOrder,
ash::switches::kAshDisableStableOverviewOrder),
},
+ {
+ "ash-max-previews-to-use-mask",
+ IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_MASK_NAME,
+ IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_MASK_DESCRIPTION, kOsCrOS,
+ MULTI_VALUE_TYPE(kAshMaxWindowsToUseMaskInOverviewChoices),
+ },
+ {
+ "ash-max-previews-to-use-shape",
+ IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_SHAPE_NAME,
+ IDS_FLAGS_ASH_MAX_PREVIEWS_TO_USE_SHAPE_DESCRIPTION, kOsCrOS,
+ MULTI_VALUE_TYPE(kAshMaxWindowsToUseShapeInOverviewChoices),
+ },
#endif // defined(USE_ASH)
#if defined(OS_CHROMEOS)
{"material-design-ink-drop-animation-speed",
@@ -1979,8 +2019,8 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_ENABLE_WEB_PAYMENTS_DESCRIPTION, kOsAndroid,
FEATURE_VALUE_TYPE(features::kWebPayments)},
#endif // defined(OS_ANDROID)
- // NOTE: Adding new command-line switches requires adding corresponding
- // entries to enum "LoginCustomFlags" in histograms.xml. See note in
+ // NOTE: Adding new command-line switches requires adding corresponding
+ // entries to enum "LoginCustomFlags" in histograms.xml. See note in
// histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698