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

Unified Diff: chrome/browser/about_flags.cc

Issue 16173011: Create entries in about://flags for tab capture scaling quality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 7 years, 7 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') | no next file » | 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 05dd26aa6a4f049c4d6351f11e56e418c219d71e..680bfa2e71b7d272e4f31e3f3b6c9e049d72cc70 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -229,6 +229,26 @@ const Experiment::Choice kSimpleCacheBackendChoices[] = {
switches::kUseSimpleCacheBackend, "on"}
};
+const Experiment::Choice kTabCaptureUpscaleQualityChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_FAST,
+ switches::kTabCaptureUpscaleQuality, "fast" },
+ { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_GOOD,
+ switches::kTabCaptureUpscaleQuality, "good" },
+ { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_BEST,
+ switches::kTabCaptureUpscaleQuality, "best" },
+};
+
+const Experiment::Choice kTabCaptureDownscaleQualityChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_FAST,
+ switches::kTabCaptureDownscaleQuality, "fast" },
+ { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_GOOD,
+ switches::kTabCaptureDownscaleQuality, "good" },
+ { IDS_FLAGS_TAB_CAPTURE_SCALE_QUALITY_BEST,
+ switches::kTabCaptureDownscaleQuality, "best" },
+};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the experiment is the internal name. If you'd like to
@@ -1487,6 +1507,22 @@ const Experiment kExperiments[] = {
SINGLE_VALUE_TYPE(switches::kEnableOmniboxAutoCompletionForIme)
},
#endif
+#if defined(USE_AURA)
+ {
+ "tab-capture-upscale-quality",
+ IDS_FLAGS_TAB_CAPTURE_UPSCALE_QUALITY_NAME,
+ IDS_FLAGS_TAB_CAPTURE_UPSCALE_QUALITY_DESCRIPTION,
+ kOsAll,
+ MULTI_VALUE_TYPE(kTabCaptureUpscaleQualityChoices)
+ },
+ {
+ "tab-capture-downscale-quality",
+ IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_NAME,
+ IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_DESCRIPTION,
+ kOsAll,
+ MULTI_VALUE_TYPE(kTabCaptureDownscaleQualityChoices)
+ },
+#endif
};
const Experiment* experiments = kExperiments;
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698