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

Unified Diff: ios/chrome/browser/ui/reversed_animation.mm

Issue 2569213002: [ObjC ARC] Reland of Converts ios/chrome/browser/ui:ui to ARC. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/reversed_animation.mm
diff --git a/ios/chrome/browser/ui/reversed_animation.mm b/ios/chrome/browser/ui/reversed_animation.mm
index 58ce55b77ea93c49c14a7dbd0e30d1f1e73e61b9..557c7d8d951ad691d808ad7efc027fcfbc238c2b 100644
--- a/ios/chrome/browser/ui/reversed_animation.mm
+++ b/ios/chrome/browser/ui/reversed_animation.mm
@@ -9,7 +9,10 @@
#include <cmath>
#include "base/logging.h"
-#include "base/mac/objc_property_releaser.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
@protocol ReversedAnimationProtocol;
typedef CAAnimation<ReversedAnimationProtocol> ReversedAnimation;
@@ -60,10 +63,7 @@ void UpdateReversedAnimation(ReversedAnimation* reversedAnimation,
#pragma mark - ReversedBasicAnimation
-@interface ReversedBasicAnimation
- : CABasicAnimation<ReversedAnimationProtocol> {
- base::mac::ObjCPropertyReleaser _propertyReleaser_ReversedBasicAnimation;
-}
+@interface ReversedBasicAnimation : CABasicAnimation<ReversedAnimationProtocol>
// Returns an animation that performs |animation| in reverse when added to
// |layer|. |parentBeginTime| should be set to the beginTime in absolute time
@@ -81,15 +81,6 @@ void UpdateReversedAnimation(ReversedAnimation* reversedAnimation,
@synthesize animationDirection = _animationDirection;
@synthesize animationTimeOffset = _animationTimeOffset;
-- (instancetype)init {
- self = [super init];
- if (self) {
- _propertyReleaser_ReversedBasicAnimation.Init(
- self, [ReversedBasicAnimation class]);
- }
- return self;
-}
-
- (instancetype)copyWithZone:(NSZone*)zone {
ReversedBasicAnimation* copy = [super copyWithZone:zone];
copy.originalAnimation = self.originalAnimation;
@@ -136,10 +127,7 @@ void UpdateReversedAnimation(ReversedAnimation* reversedAnimation,
#pragma mark - ReversedAnimationGroup
-@interface ReversedAnimationGroup
- : CAAnimationGroup<ReversedAnimationProtocol> {
- base::mac::ObjCPropertyReleaser _propertyReleaser_ReversedAnimationGroup;
-}
+@interface ReversedAnimationGroup : CAAnimationGroup<ReversedAnimationProtocol>
// Returns an animation that performs |animation| in reverse when added to
// |layer|. |parentBeginTime| should be set to the beginTime in absolute time
@@ -157,15 +145,6 @@ void UpdateReversedAnimation(ReversedAnimation* reversedAnimation,
@synthesize animationDirection = _animationDirection;
@synthesize animationTimeOffset = _animationTimeOffset;
-- (instancetype)init {
- self = [super init];
- if (self) {
- _propertyReleaser_ReversedAnimationGroup.Init(
- self, [ReversedAnimationGroup class]);
- }
- return self;
-}
-
- (instancetype)copyWithZone:(NSZone*)zone {
ReversedAnimationGroup* copy = [super copyWithZone:zone];
copy.originalAnimation = self.originalAnimation;
« no previous file with comments | « ios/chrome/browser/ui/orientation_limiting_navigation_controller.mm ('k') | ios/chrome/browser/ui/rtl_geometry.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698