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

Unified Diff: ash/common/system/tray/tray_constants.cc

Issue 2494943005: [ash-md] Added a delay between system menu default/detailed view transitions. (Closed)
Patch Set: Addressed danakj@ comments. Created 4 years, 1 month 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 | « ash/common/system/tray/tray_constants.h ('k') | ash/common/system/tray/tray_details_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_constants.cc
diff --git a/ash/common/system/tray/tray_constants.cc b/ash/common/system/tray/tray_constants.cc
index b0f71b1aa8a6ac99263d12e8a81fd1873212af17..1f4397e183c140878ece7779eadd5fd7d35c2ad0 100644
--- a/ash/common/system/tray/tray_constants.cc
+++ b/ash/common/system/tray/tray_constants.cc
@@ -117,6 +117,8 @@ int GetTrayConstant(TrayConstant constant) {
const int kTrayPopupItemRightInset[] = {0, 0, 0};
const int kTrayPopupItemMinStartWidth[] = {46, 48, 48};
const int kTrayPopupItemMinEndWidth[] = {40, 40, 40};
+ const int kTrayPopupTransitionToDefaultViewDelayMs[] = {0, 80, 100};
+ const int kTrayPopupTransitionToDetailedViewDelayMs[] = {0, 80, 100};
const int kVirtualKeyboardButtonSize[] = {39, kTrayItemSize, kTrayItemSize};
const int kTrayImeMenuIcon[] = {40, kTrayItemSize, kTrayItemSize};
const int kTrayImageItemPadding[] = {1, 3, 3};
@@ -150,6 +152,10 @@ int GetTrayConstant(TrayConstant constant) {
return kTrayPopupItemMinStartWidth[mode];
case TRAY_POPUP_ITEM_MIN_END_WIDTH:
return kTrayPopupItemMinEndWidth[mode];
+ case TRAY_POPUP_TRANSITION_TO_DEFAULT_DELAY:
+ return kTrayPopupTransitionToDefaultViewDelayMs[mode];
+ case TRAY_POPUP_TRANSITION_TO_DETAILED_DELAY:
+ return kTrayPopupTransitionToDetailedViewDelayMs[mode];
case VIRTUAL_KEYBOARD_BUTTON_SIZE:
return kVirtualKeyboardButtonSize[mode];
case TRAY_IME_MENU_ICON:
« no previous file with comments | « ash/common/system/tray/tray_constants.h ('k') | ash/common/system/tray/tray_details_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698