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

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: Updated with vectorized icons. 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
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 f37ae810be44fd680cc15a8e7de53974d8d4d52b..efb6f3c894b8792b579f3ce0e9e5dd6c630e4690 100644
--- a/ash/common/system/tray/tray_constants.cc
+++ b/ash/common/system/tray/tray_constants.cc
@@ -29,11 +29,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;
@@ -99,6 +94,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 &&
@@ -115,6 +111,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;

Powered by Google App Engine
This is Rietveld 408576698