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

Unified Diff: chrome/browser/about_flags.cc

Issue 903143003: wip: Touch Text Selection Prototypes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@selection_granularity_on_unified
Patch Set: Created 5 years, 10 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
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 6855a0c9e58cfb02def98ca5ddebc8f6e9bf73b7..0617d15198361eb32472d72d6e4c329a9c54b797 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -173,6 +173,18 @@ const Experiment::Choice kOverscrollHistoryNavigationChoices[] = {
};
#endif
+#if defined(USE_AURA) || defined(OS_ANDROID)
+const Experiment::Choice kTouchTextSelectionStrategyChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_TOUCH_SELECTION_STRATEGY_DIRECTION,
+ switches::kTouchTextSelectionStrategy,
+ "1" },
+ { IDS_TOUCH_SELECTION_STRATEGY_VELOCITY,
+ switches::kTouchTextSelectionStrategy,
+ "2" }
+};
+#endif
+
#if !defined(DISABLE_NACL)
const Experiment::Choice kNaClDebugMaskChoices[] = {
// Secure shell can be used on ChromeOS for forwarding the TCP port opened by
@@ -1113,6 +1125,15 @@ const Experiment kExperiments[] = {
ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing,
switches::kDisableTouchEditing)
},
+#if defined(USE_AURA) || defined(OS_ANDROID)
+ {
+ "touch-selection-strategy",
+ IDS_FLAGS_TOUCH_SELECTION_STRATEGY_NAME,
+ IDS_FLAGS_TOUCH_SELECTION_STRATEGY_DESCRIPTION,
+ kOsAll,
+ MULTI_VALUE_TYPE(kTouchTextSelectionStrategyChoices)
+ },
+#endif
{
"enable-stale-while-revalidate",
IDS_FLAGS_ENABLE_STALE_WHILE_REVALIDATE_NAME,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698