Index: ui/touch_selection/touch_selection_controller.h |
diff --git a/ui/touch_selection/touch_selection_controller.h b/ui/touch_selection/touch_selection_controller.h |
index 7ec25d1d442e6d13bbdcb9c7990f4e61120e039d..4161e770790ac5a972537cf6964526ca8f29f185 100644 |
--- a/ui/touch_selection/touch_selection_controller.h |
+++ b/ui/touch_selection/touch_selection_controller.h |
@@ -129,9 +129,11 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController |
void OnInsertionChanged(); |
void OnSelectionChanged(); |
- void ActivateInsertion(); |
+ // Returns true if insertion mode was newly (re)activated. |
+ bool ActivateInsertionIfNecessary(); |
void DeactivateInsertion(); |
- void ActivateSelection(); |
+ // Returns true if selection mode was newly (re)activated. |
+ bool ActivateSelectionIfNecessary(); |
void DeactivateSelection(); |
void ForceNextUpdateIfInactive(); |