Index: ui/touch_selection/touch_selection_controller_aura.cc |
diff --git a/ui/touch_selection/touch_selection_controller_aura.cc b/ui/touch_selection/touch_selection_controller_aura.cc |
index cd2f1ae7aba39b73c927f7413932ef4c43882284..5efdb48d6f925b889a00db7887daf951755bae85 100644 |
--- a/ui/touch_selection/touch_selection_controller_aura.cc |
+++ b/ui/touch_selection/touch_selection_controller_aura.cc |
@@ -16,7 +16,8 @@ |
namespace ui { |
TouchSelectionControllerAura::TouchSelectionControllerAura( |
- TouchSelectionControllerAuraClient* client) |
+ TouchSelectionControllerAuraClient* client, |
+ TextSelectionGranularityStrategy selection_granularity_strategy) |
: client_(client), |
motion_event_(new MotionEventAura), |
scroll_in_progress_(false), |
@@ -30,12 +31,18 @@ TouchSelectionControllerAura::TouchSelectionControllerAura( |
this, |
base::TimeDelta::FromMilliseconds(tap_timeout_ms), |
touch_slop, |
- true)); |
+ true, |
+ selection_granularity_strategy)); |
} |
TouchSelectionControllerAura::~TouchSelectionControllerAura() { |
} |
+void TouchSelectionControllerAura::SetVelocityStrategyParameters( |
+ int halfDecayMs, int threshold) { |
+ controller_->SetVelocityStrategyParameters(halfDecayMs, threshold); |
+} |
+ |
void TouchSelectionControllerAura::OnSelectionEditable(bool editable) { |
controller_->OnSelectionEditable(editable); |
UpdateQuickMenu(); |