| 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_
|
|
|