OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_GESTURE_RECO
GNIZER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_GESTURE_RECO
GNIZER_H_ |
| 7 |
| 8 #import <UIKit/UIPanGestureRecognizer.h> |
| 9 |
| 10 // Subclass of UIPanGestureRecognizer that works around a bug where the targets' |
| 11 // action is not called when the gesture ends while "Speak selection" is |
| 12 // enabled (crbug.com/699655). |
| 13 // This subclass works around the bug by calling the action of the target passed |
| 14 // in the constructor when |reset| is called. |
| 15 @interface OverscrollActionsGestureRecognizer : UIPanGestureRecognizer |
| 16 @end |
| 17 |
| 18 #endif // IOS_CHROME_BROWSER_UI_OVERSCROLL_ACTIONS_OVERSCROLL_ACTIONS_GESTURE_R
ECOGNIZER_H_ |
OLD | NEW |