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

Unified Diff: ui/app_list/app_list_constants.cc

Issue 162363002: Use the new animation tween type for app list folder animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/views/app_list_folder_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_constants.cc
diff --git a/ui/app_list/app_list_constants.cc b/ui/app_list/app_list_constants.cc
index c770460e3e745ede1928e8d71e3f0d644dbb726c..43f140d9dd07539a8e6a3bc25a566dd852badb65 100644
--- a/ui/app_list/app_list_constants.cc
+++ b/ui/app_list/app_list_constants.cc
@@ -36,14 +36,23 @@ const int kPageTransitionDurationInMs = 180;
// Duration in milliseconds for over scroll page transition.
const int kOverscrollPageTransitionDurationMs = 50;
-// Duration in milliseconds for the target page transition when opening or
-// closing a folder.
-const int kFolderTransitionInDurationMs = 200;
+// Duration in milliseconds for fading in the target page when opening
+// or closing a folder, and the duration for the top folder icon animation
+// for flying in or out the folder.
+const int kFolderTransitionInDurationMs = 400;
-// Duration in milliseconds for fading out the old page when opening or
-// closing a folder.
+// Duration in milliseconds for fading out the old page when opening or closing
+// a folder.
const int kFolderTransitionOutDurationMs = 30;
+// Animation curve used for fading in the target page when opening or closing
+// a folder.
+const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2;
+
+// Animation curve used for fading out the target page when opening or closing
+// a folder.
+const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::EASE_IN_3;
+
// Preferred number of columns and rows in apps grid.
const int kPreferredCols = 4;
const int kPreferredRows = 4;
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/views/app_list_folder_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698