chromium/ios/chrome/browser/shared/ui/util/page_animation_util.h

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_SHARED_UI_UTIL_PAGE_ANIMATION_UTIL_H_
#define IOS_CHROME_BROWSER_SHARED_UI_UTIL_PAGE_ANIMATION_UTIL_H_

#import <UIKit/UIKit.h>

// Utility for handling the animation of a page closing.
namespace page_animation_util {

// Animates `view` to its final position, then calls the given completion block
// when finished.
void AnimateOutWithCompletion(UIView* view, void (^completion)(void));

}  // namespace page_animation_util

#endif  // IOS_CHROME_BROWSER_SHARED_UI_UTIL_PAGE_ANIMATION_UTIL_H_