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

Side by Side Diff: ios/chrome/browser/ui/find_bar/find_bar_touch_forwarding_view.mm

Issue 2664233004: [ObjC ARC] Converts ios/chrome/browser/ui/find_bar:find_bar to ARC. (Closed)
Patch Set: reorder keywords Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/find_bar/find_bar_touch_forwarding_view.h ('k') | ios/chrome/browser/ui/find_bar/find_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698