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

Side by Side Diff: ash/common/system/tray/tray_constants.cc

Issue 2592583002: UI changes on opt-in IME menu. (Closed)
Patch Set: sync Created 3 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 unified diff | Download patch
« no previous file with comments | « ash/common/system/chromeos/ime_menu/ime_menu_tray.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/system/tray/tray_constants.h" 5 #include "ash/common/system/tray/tray_constants.h"
6 6
7 #include "ash/common/material_design/material_design_controller.h" 7 #include "ash/common/material_design/material_design_controller.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/color_palette.h" 10 #include "ui/gfx/color_palette.h"
(...skipping 18 matching lines...) Expand all
29 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; 29 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1;
30 30
31 // Size of tray items on the primary axis. 31 // Size of tray items on the primary axis.
32 const int kTrayItemSize = 32; 32 const int kTrayItemSize = 32;
33 33
34 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; 34 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7;
35 35
36 // Vertical padding between status tray items when the shelf is vertical. 36 // Vertical padding between status tray items when the shelf is vertical.
37 const int kTrayLabelItemVerticalPaddingVerticalAlignment = 4; 37 const int kTrayLabelItemVerticalPaddingVerticalAlignment = 4;
38 38
39 const int kTrayMenuBottomRowPadding = 5; 39 const int kTrayMenuBottomRowPadding = 3;
40 const int kTrayMenuBottomRowPaddingBetweenItems = -1; 40 const int kTrayMenuBottomRowPaddingBetweenItems = -1;
41 const int kTrayMenuMinimumWidth = 300; 41 const int kTrayMenuMinimumWidth = 300;
42 const int kTrayMenuMinimumWidthMd = 352; 42 const int kTrayMenuMinimumWidthMd = 352;
43 43
44 const int kTrayPopupAutoCloseDelayInSeconds = 2; 44 const int kTrayPopupAutoCloseDelayInSeconds = 2;
45 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5; 45 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5;
46 const int kTrayPopupPaddingHorizontal = 18; 46 const int kTrayPopupPaddingHorizontal = 18;
47 const int kTrayPopupPaddingBetweenItems = 10; 47 const int kTrayPopupPaddingBetweenItems = 10;
48 const int kTrayPopupButtonEndMargin = 10; 48 const int kTrayPopupButtonEndMargin = 10;
49 const int kTrayPopupUserCardVerticalPadding = 10; 49 const int kTrayPopupUserCardVerticalPadding = 10;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 case TRAY_IME_MENU_ICON: 167 case TRAY_IME_MENU_ICON:
168 return kTrayImeMenuIcon[mode]; 168 return kTrayImeMenuIcon[mode];
169 case TRAY_IMAGE_ITEM_PADDING: 169 case TRAY_IMAGE_ITEM_PADDING:
170 return kTrayImageItemPadding[mode]; 170 return kTrayImageItemPadding[mode];
171 } 171 }
172 NOTREACHED(); 172 NOTREACHED();
173 return 0; 173 return 0;
174 } 174 }
175 175
176 } // namespace ash 176 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/ime_menu/ime_menu_tray.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698