Index: chrome/browser/about_flags.cc |
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc |
index 48d8576df52e2bada55ba35d105fac803873b2d6..4e17cd32e329b7b1f9bf64f303c19247f35e47e6 100644 |
--- a/chrome/browser/about_flags.cc |
+++ b/chrome/browser/about_flags.cc |
@@ -178,6 +178,16 @@ const Experiment::Choice kOverscrollHistoryNavigationChoices[] = { |
}; |
#endif |
+const Experiment::Choice kTouchTextSelectionStrategyChoices[] = { |
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
+ { IDS_TOUCH_SELECTION_STRATEGY_CHARACTER, |
+ switches::kTouchTextSelectionStrategy, |
jdduke (slow)
2015/04/21 14:45:08
I can't say I love the use of ordinals to describe
mfomitchev
2015/04/21 15:02:37
These will shown as strings in the about://flags U
jdduke (slow)
2015/04/21 15:13:40
Ah, I didn't realize the names already get pretty
|
+ "0" }, |
+ { IDS_TOUCH_SELECTION_STRATEGY_DIRECTION, |
+ switches::kTouchTextSelectionStrategy, |
+ "1" } |
+}; |
+ |
#if !defined(DISABLE_NACL) |
const Experiment::Choice kNaClDebugMaskChoices[] = { |
// Secure shell can be used on ChromeOS for forwarding the TCP port opened by |
@@ -1200,6 +1210,13 @@ const Experiment kExperiments[] = { |
switches::kDisableTouchEditing) |
}, |
{ |
+ "touch-selection-strategy", |
jdduke (slow)
2015/04/17 17:05:16
"touch-selection-strategy" values of 0/1 don't rea
mfomitchev
2015/04/17 17:14:37
Eventually I'd like to add another strategy: shrin
jdduke (slow)
2015/04/17 19:03:35
Acknowledged.
|
+ IDS_FLAGS_TOUCH_SELECTION_STRATEGY_NAME, |
+ IDS_FLAGS_TOUCH_SELECTION_STRATEGY_DESCRIPTION, |
+ kOsAndroid, // TODO(mfomitchev): Add CrOS/Win/Linux support soon. |
+ MULTI_VALUE_TYPE(kTouchTextSelectionStrategyChoices) |
+ }, |
+ { |
"enable-stale-while-revalidate", |
IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_NAME, |
IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_DESCRIPTION, |