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
3 // found in the LICENSE file.
5 #ifndef IOS_CHROME_BROWSER_UI_REVERSED_ANIMATION_H_
6 #define IOS_CHROME_BROWSER_UI_REVERSED_ANIMATION_H_
8 #import <UIKit/UIKit.h>
10 // Returns an animation that reverses |animation| when added to |layer|.
11 CAAnimation
* CAAnimationMakeReverse(CAAnimation
* animation
, CALayer
* layer
);
13 // Removes the animation for |key| from each CALayer in |layers|, creates
14 // reversed versions using |CAAnimationMakeReverse|, then adds the reversed
15 // animation back to the layers under the same key.
16 void ReverseAnimationsForKeyForLayers(NSString
* key
, NSArray
* layers
);
18 #endif // IOS_CHROME_BROWSER_UI_REVERSED_ANIMATION_H_