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

Unified Diff: ui/app_list/app_list_constants.cc

Issue 140203003: Implement animation UI for opening/closing an app list folder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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 14f775060608f25863a56fb2c581158b4791ce70..5f45dec1bc0a450c86f3a0d874879528a134b548 100644
--- a/ui/app_list/app_list_constants.cc
+++ b/ui/app_list/app_list_constants.cc
@@ -36,11 +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 out the old page when opening or
+// closing a folder.
+const int kFolderTransitionOutDurationMs = 30;
+
// Preferred number of columns and rows in apps grid.
const int kPreferredCols = 4;
const int kPreferredRows = 4;
const int kPreferredIconDimension = 48;
+// Number of the top items in a folder, which are shown inside the folder icon
+// and animated when opening and closing a folder.
+const size_t kNumFolderTopItems = 4;
+
// Font style for app item labels.
const ui::ResourceBundle::FontStyle kItemTextFontStyle =
ui::ResourceBundle::SmallBoldFont;

Powered by Google App Engine
This is Rietveld 408576698