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

Side by Side Diff: ios/chrome/browser/ui/bookmarks/bookmark_extended_button.mm

Issue 2741413005: [ObjC ARC] Converts ios/chrome/browser/ui/bookmarks:bookmarks_arc to ARC. (Closed)
Patch Set: Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/bookmarks/bookmark_extended_button.h" 5 #import "ios/chrome/browser/ui/bookmarks/bookmark_extended_button.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
9 namespace { 13 namespace {
10 // Apple's guidelines indicate that buttons should have a minimum touch area of 14 // Apple's guidelines indicate that buttons should have a minimum touch area of
11 // 44pt x 44pt. 15 // 44pt x 44pt.
12 CGFloat kMinimumLength = 44; 16 CGFloat kMinimumLength = 44;
13 } // namespace 17 } // namespace
14 18
15 @interface BookmarkExtendedButton () 19 @interface BookmarkExtendedButton ()
16 @property(nonatomic, assign) BOOL doesExtendEdges; 20 @property(nonatomic, assign) BOOL doesExtendEdges;
17 @end 21 @end
18 22
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 69
66 - (CGRect)accessibilityFrame { 70 - (CGRect)accessibilityFrame {
67 CGRect touchArea = [self touchArea]; 71 CGRect touchArea = [self touchArea];
68 CGRect touchAreaInWindowCoordinates = [self convertRect:touchArea toView:nil]; 72 CGRect touchAreaInWindowCoordinates = [self convertRect:touchArea toView:nil];
69 CGRect touchAreaInScreenCoordinates = 73 CGRect touchAreaInScreenCoordinates =
70 [self.window convertRect:touchAreaInWindowCoordinates toWindow:nil]; 74 [self.window convertRect:touchAreaInWindowCoordinates toWindow:nil];
71 return touchAreaInScreenCoordinates; 75 return touchAreaInScreenCoordinates;
72 } 76 }
73 77
74 @end 78 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698