Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / ui / side_swipe_gesture_recognizer.h
blob730ddada1a8b3b8034a3b3fec42c427676311e43
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_CHROME_BROWSER_UI_SIDE_SWIPE_GESTURE_RECOGNIZER_H_
6 #define IOS_CHROME_BROWSER_UI_SIDE_SWIPE_GESTURE_RECOGNIZER_H_
8 #import <UIKit/UIGestureRecognizerSubclass.h>
9 #import <UIKit/UIKit.h>
11 // This gesture recognizer is used because the default swipe gesture recognizer
12 // is too restrictive. The default swipe requires a particular velocity and
13 // distance that Chrome does not require.
14 // Another benefit of using a custom gesture recognizer is it can fail faster,
15 // so recognizers that depend on this recognizer can begin faster.
16 @interface SideSwipeGestureRecognizer : UIPanGestureRecognizer
18 // The distance from the edge of the screen in which a side swipe can start.
19 @property(nonatomic, assign) CGFloat swipeEdge;
20 // The distance from the edge of the screen from which a gesture starts.
21 @property(readonly, nonatomic) CGFloat swipeOffset;
22 // Starting point of swipe.
23 @property(readonly, nonatomic) CGPoint startPoint;
24 @property(nonatomic, assign) UISwipeGestureRecognizerDirection direction;
26 @end
28 #endif // IOS_CHROME_BROWSER_UI_SIDE_SWIPE_GESTURE_RECOGNIZER_H_