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

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

Issue 2271523002: Adds emoji/handwriting/vocie buttons on opt-in IME menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments and sync. Created 4 years, 3 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 | « ash/common/system/tray/tray_constants.h ('k') | ash/resources/vector_icons/BUILD.gn » ('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 0b10d266afd8b797c09044a8bf1e20c34168d1bd..e1196a3bb759ba06c137e43ea88af397fbe12db7 100644
--- a/ash/common/system/tray/tray_constants.cc
+++ b/ash/common/system/tray/tray_constants.cc
@@ -30,11 +30,6 @@ const int kTrayImageItemHorizontalPaddingBottomAlignment = 1;
const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1;
const int kTrayImageItemVerticalPaddingVerticalAlignment = 1;
-// Size of IME menu tray.
-const int kTrayImeIconSize = 40;
-const int kTrayImeBottomRowPadding = 5;
-const int kTrayImeBottomRowPaddingBetweenItems = 2;
-
// Size of tray items on the primary axis.
const int kTrayItemSize = 32;
@@ -89,6 +84,7 @@ const int kTrayIconSize = 16;
const SkColor kTrayIconColor = SK_ColorWHITE;
const int kMenuIconSize = 20;
const SkColor kMenuIconColor = gfx::kChromeIconGrey;
+const int kMenuButtonSize = 48;
const int kHitRegionPadding = 4;
const SkColor kSeparatorColor = SkColorSetA(SK_ColorWHITE, 0x4D);
@@ -100,6 +96,7 @@ int GetTrayConstant(TrayConstant constant) {
const int kTrayPaddingFromEdgeOfShelf[] = {3, 3, 4};
const int kTrayPopupItemHeight[] = {46, 46, 48};
const int kVirtualKeyboardButtonSize[] = {39, 39, kTrayItemSize};
+ const int kTrayImeMenuIcon[] = {40, 40, kTrayItemSize};
const int mode = MaterialDesignController::GetMode();
DCHECK(mode >= MaterialDesignController::NON_MATERIAL &&
@@ -116,6 +113,8 @@ int GetTrayConstant(TrayConstant constant) {
return kTrayPopupItemHeight[mode];
case VIRTUAL_KEYBOARD_BUTTON_SIZE:
return kVirtualKeyboardButtonSize[mode];
+ case TRAY_IME_MENU_ICON:
+ return kTrayImeMenuIcon[mode];
}
NOTREACHED();
return 0;
« no previous file with comments | « ash/common/system/tray/tray_constants.h ('k') | ash/resources/vector_icons/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698