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

Unified Diff: ui/touch_selection/selection_granularity.h

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
« no previous file with comments | « content/public/common/content_switches.cc ('k') | ui/touch_selection/touch_handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/selection_granularity.h
diff --git a/ui/touch_selection/selection_granularity.h b/ui/touch_selection/selection_granularity.h
index 14a9bc101ee4412ca5a7ade62317736d3601067f..31c80a8907fbdbb0bfbe544cf8b67cc38f6676b1 100644
--- a/ui/touch_selection/selection_granularity.h
+++ b/ui/touch_selection/selection_granularity.h
@@ -15,6 +15,17 @@ enum TextSelectionGranularity {
PARAGRAPH_GRANULARITY
};
+enum TextSelectionGranularityStrategy {
+ // Always using CHARACTER_GRANULARITY
+ GRANULARITY_STRATEGY_DEFAULT,
+ // Switches between WORD_GRANULARITY and CHARACTER_GRANULARITY
+ // Depending on whether the selection or growing or shrinking
+ GRANULARITY_STRATEGY_DIRECTION,
+ // Switches between WORD_GRANULARITY and CHARACTER_GRANULARITY
+ // Depending on the handle move velocity.
+ GRANULARITY_STRATEGY_VELOCITY
+};
+
} // namespace ui
#endif // UI_TOUCH_SELECTION_SELECTION_GRANULARITY_
« no previous file with comments | « content/public/common/content_switches.cc ('k') | ui/touch_selection/touch_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698