summaryrefslogtreecommitdiffstats
path: root/ash/wm/window_animations.h
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 19:11:03 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 19:11:03 +0000
commit58f8a5d9b0e1e83a20b09874f95680387487e609 (patch)
tree9ba41b1da22452d052d4ac6fdb990117acca3b85 /ash/wm/window_animations.h
parentbfbd926c645996e34d0057166b93113d7900d5d3 (diff)
downloadchromium_src-58f8a5d9b0e1e83a20b09874f95680387487e609.zip
chromium_src-58f8a5d9b0e1e83a20b09874f95680387487e609.tar.gz
chromium_src-58f8a5d9b0e1e83a20b09874f95680387487e609.tar.bz2
ash: Make cross-fade duration based on area, not width
This better corresponds with the user's notion of the visual impact of the change, especially for animations where the width doesn't change much. BUG=none TEST=updated unit tests Review URL: https://chromiumcodereview.appspot.com/10561031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/window_animations.h')
-rw-r--r--ash/wm/window_animations.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/wm/window_animations.h b/ash/wm/window_animations.h
index 1d1a9f7..0a7c0bc 100644
--- a/ash/wm/window_animations.h
+++ b/ash/wm/window_animations.h
@@ -74,12 +74,12 @@ ASH_EXPORT void SetWindowVisibilityAnimationVerticalPosition(
ASH_EXPORT ui::ImplicitAnimationObserver* CreateHidingWindowAnimationObserver(
aura::Window* window);
-namespace internal {
-
// Animate a cross-fade of |window| from its current bounds to |new_bounds|.
ASH_EXPORT void CrossFadeToBounds(aura::Window* window,
const gfx::Rect& new_bounds);
+namespace internal {
+
// Returns the duration of the cross-fade animation based on the |old_bounds|
// and |new_bounds| of the window.
ASH_EXPORT base::TimeDelta GetCrossFadeDuration(const gfx::Rect& old_bounds,