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

Unified Diff: ui/touch_selection/touch_selection_controller_aura.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
« no previous file with comments | « ui/touch_selection/touch_selection_controller_aura.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ui/touch_selection/touch_selection_controller_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698