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

Unified Diff: chrome/browser/ui/gesture_prefs_observer_factory_aura.cc

Issue 10037012: Three Finger Swipe (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove pinch/scroll start/end calls Created 8 years, 8 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 | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
diff --git a/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc b/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
index ded97817bffcbd290c7ecded9b89b2316f70e7d6..87ff5c00a8a1fcb98feb3ed5b646e79662ff2f36 100644
--- a/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
+++ b/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
@@ -49,6 +49,7 @@ const char* kPrefsToObserve[] = {
prefs::kLongPressTimeInSeconds,
prefs::kMaxSecondsBetweenDoubleClick,
prefs::kMaxSeparationForGestureTouchesInPixels,
+ prefs::kMaxSwipeDeviationRatio,
prefs::kMaxTouchDownDurationInSecondsForClick,
prefs::kMaxTouchMoveInPixelsForClick,
prefs::kMinDistanceForPinchScrollInPixels,
@@ -56,6 +57,7 @@ const char* kPrefsToObserve[] = {
prefs::kMinPinchUpdateDistanceInPixels,
prefs::kMinRailBreakVelocity,
prefs::kMinScrollDeltaSquared,
+ prefs::kMinSwipeSpeed,
prefs::kMinTouchDownDurationInSecondsForClick,
prefs::kPointsBufferedForVelocity,
prefs::kRailBreakProportion,
@@ -93,6 +95,9 @@ void GesturePrefsObserver::Update() {
GestureConfiguration::set_max_separation_for_gesture_touches_in_pixels(
prefs_->GetDouble(
prefs::kMaxSeparationForGestureTouchesInPixels));
+ GestureConfiguration::set_max_swipe_deviation_ratio(
+ prefs_->GetDouble(
+ prefs::kMaxSwipeDeviationRatio));
GestureConfiguration::set_max_touch_down_duration_in_seconds_for_click(
prefs_->GetDouble(
prefs::kMaxTouchDownDurationInSecondsForClick));
@@ -114,6 +119,9 @@ void GesturePrefsObserver::Update() {
GestureConfiguration::set_min_scroll_delta_squared(
prefs_->GetDouble(
prefs::kMinScrollDeltaSquared));
+ GestureConfiguration::set_min_swipe_speed(
+ prefs_->GetDouble(
+ prefs::kMinSwipeSpeed));
GestureConfiguration::set_min_touch_down_duration_in_seconds_for_click(
prefs_->GetDouble(
prefs::kMinTouchDownDurationInSecondsForClick));
@@ -161,6 +169,10 @@ void GesturePrefsObserverFactoryAura::RegisterUserPrefs(PrefService* prefs) {
GestureConfiguration::max_separation_for_gesture_touches_in_pixels(),
PrefService::UNSYNCABLE_PREF);
prefs->RegisterDoublePref(
+ prefs::kMaxSwipeDeviationRatio,
+ GestureConfiguration::max_swipe_deviation_ratio(),
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterDoublePref(
prefs::kMaxTouchDownDurationInSecondsForClick,
GestureConfiguration::max_touch_down_duration_in_seconds_for_click(),
PrefService::UNSYNCABLE_PREF);
@@ -189,6 +201,10 @@ void GesturePrefsObserverFactoryAura::RegisterUserPrefs(PrefService* prefs) {
GestureConfiguration::min_scroll_delta_squared(),
PrefService::UNSYNCABLE_PREF);
prefs->RegisterDoublePref(
+ prefs::kMinSwipeSpeed,
+ GestureConfiguration::min_swipe_speed(),
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterDoublePref(
prefs::kMinTouchDownDurationInSecondsForClick,
GestureConfiguration::min_touch_down_duration_in_seconds_for_click(),
PrefService::UNSYNCABLE_PREF);
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698