| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/chrome/browser/ui/find_bar/find_bar_touch_forwarding_view.h" | 5 #import "ios/chrome/browser/ui/find_bar/find_bar_touch_forwarding_view.h" |
| 6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
| 7 @implementation FindBarTouchForwardingView | 11 @implementation FindBarTouchForwardingView |
| 8 @synthesize targetView = _targetView; | 12 @synthesize targetView = _targetView; |
| 9 | 13 |
| 10 - (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent*)event { | 14 - (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent*)event { |
| 11 if (self.targetView && [self pointInside:point withEvent:event]) { | 15 if (self.targetView && [self pointInside:point withEvent:event]) { |
| 12 return self.targetView; | 16 return self.targetView; |
| 13 } | 17 } |
| 14 | 18 |
| 15 return [super hitTest:point withEvent:event]; | 19 return [super hitTest:point withEvent:event]; |
| 16 } | 20 } |
| 17 | 21 |
| 18 @end | 22 @end |
| OLD | NEW |