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

Unified Diff: chrome/browser/about_flags.cc

Issue 1006003003: Adding a chrome flag to control the touch selection granularity strategy used by Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unified_text_selection_ALL_3
Patch Set: Removing logging. Created 5 years, 9 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') | content/browser/renderer_host/render_process_host_impl.cc » ('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 7f41b7f2bcae79c6519c8e376d453503e43fae94..c0d616bf85d59060c66bae6f07879f4efa893877 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -173,6 +173,13 @@ const Experiment::Choice kOverscrollHistoryNavigationChoices[] = {
};
#endif
+const Experiment::Choice kTouchTextSelectionStrategyChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_TOUCH_SELECTION_STRATEGY_DIRECTION,
+ switches::kTouchTextSelectionStrategy,
jdduke (slow) 2015/04/17 15:20:29 I'd be OK if we just called this |kEnableSmartText
mfomitchev 2015/04/17 16:22:39 You are a bit ahead of me. Check out https://coder
+ "1" }
+};
+
#if !defined(DISABLE_NACL)
const Experiment::Choice kNaClDebugMaskChoices[] = {
// Secure shell can be used on ChromeOS for forwarding the TCP port opened by
@@ -1103,6 +1110,13 @@ const Experiment kExperiments[] = {
switches::kDisableTouchEditing)
},
{
+ "touch-selection-strategy",
+ IDS_FLAGS_TOUCH_SELECTION_STRATEGY_NAME,
+ IDS_FLAGS_TOUCH_SELECTION_STRATEGY_DESCRIPTION,
+ kOsAll,
+ MULTI_VALUE_TYPE(kTouchTextSelectionStrategyChoices)
+ },
+ {
"enable-stale-while-revalidate",
IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_NAME,
IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_DESCRIPTION,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698