Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / ui / reversed_animation.h
blobc0515b8e267e184399c7b6d78cba03d6b313d749
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_