OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "ios/web/web_state/ui/crw_touch_tracking_recognizer.h" | 5 #import "ios/web/web_state/ui/crw_touch_tracking_recognizer.h" |
6 | 6 |
7 @interface CRWTouchTrackingRecognizer () <UIGestureRecognizerDelegate> { | 7 @interface CRWTouchTrackingRecognizer () <UIGestureRecognizerDelegate> { |
8 __weak id<CRWTouchTrackingDelegate> _delegate; | 8 id<CRWTouchTrackingDelegate> _delegate; // weak |
9 } | 9 } |
10 @end | 10 @end |
11 | 11 |
12 @implementation CRWTouchTrackingRecognizer | 12 @implementation CRWTouchTrackingRecognizer |
13 | 13 |
14 @synthesize touchTrackingDelegate = _delegate; | 14 @synthesize touchTrackingDelegate = _delegate; |
15 | 15 |
16 - (id)initWithDelegate:(id<CRWTouchTrackingDelegate>)delegate { | 16 - (id)initWithDelegate:(id<CRWTouchTrackingDelegate>)delegate { |
17 if ((self = [super init])) { | 17 if ((self = [super init])) { |
18 _delegate = delegate; | 18 _delegate = delegate; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #pragma mark - | 51 #pragma mark - |
52 #pragma mark UIGestureRecognizerDelegate Method | 52 #pragma mark UIGestureRecognizerDelegate Method |
53 | 53 |
54 - (BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer | 54 - (BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer |
55 shouldRecognizeSimultaneouslyWithGestureRecognizer: | 55 shouldRecognizeSimultaneouslyWithGestureRecognizer: |
56 (UIGestureRecognizer*)otherGestureRecognizer { | 56 (UIGestureRecognizer*)otherGestureRecognizer { |
57 return YES; | 57 return YES; |
58 } | 58 } |
59 | 59 |
60 @end | 60 @end |
OLD | NEW |