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

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

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 unified diff | Download patch
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 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 9
10 typedef unsigned int SkColor; 10 typedef unsigned int SkColor;
(...skipping 10 matching lines...) Expand all
21 extern const int kBubblePaddingHorizontalSide; 21 extern const int kBubblePaddingHorizontalSide;
22 extern const int kBubblePaddingVerticalBottom; 22 extern const int kBubblePaddingVerticalBottom;
23 extern const int kBubblePaddingVerticalSide; 23 extern const int kBubblePaddingVerticalSide;
24 24
25 extern const int kTrayBubbleAnchorTopInsetBottomAnchor; 25 extern const int kTrayBubbleAnchorTopInsetBottomAnchor;
26 26
27 extern const int kTrayImageItemHorizontalPaddingBottomAlignment; 27 extern const int kTrayImageItemHorizontalPaddingBottomAlignment;
28 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; 28 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment;
29 extern const int kTrayImageItemVerticalPaddingVerticalAlignment; 29 extern const int kTrayImageItemVerticalPaddingVerticalAlignment;
30 30
31 extern const int kTrayImeIconSize;
32 extern const int kTrayImeBottomRowPadding;
33 extern const int kTrayImeBottomRowPaddingBetweenItems;
34
35 ASH_EXPORT extern const int kTrayItemSize; 31 ASH_EXPORT extern const int kTrayItemSize;
36 32
37 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; 33 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment;
38 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; 34 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment;
39 35
40 extern const int kTrayMenuBottomRowPadding; 36 extern const int kTrayMenuBottomRowPadding;
41 extern const int kTrayMenuBottomRowPaddingBetweenItems; 37 extern const int kTrayMenuBottomRowPaddingBetweenItems;
42 38
43 extern const int kTrayPopupAutoCloseDelayInSeconds; 39 extern const int kTrayPopupAutoCloseDelayInSeconds;
44 extern const int kTrayPopupAutoCloseDelayForTextInSeconds; 40 extern const int kTrayPopupAutoCloseDelayForTextInSeconds;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 85
90 // The size and foreground color of the icons appearing in the material design 86 // The size and foreground color of the icons appearing in the material design
91 // system tray. 87 // system tray.
92 extern const int kTrayIconSize; 88 extern const int kTrayIconSize;
93 extern const SkColor kTrayIconColor; 89 extern const SkColor kTrayIconColor;
94 90
95 // The size and foreground color of the icons appearing in the material design 91 // The size and foreground color of the icons appearing in the material design
96 // system menu. 92 // system menu.
97 extern const int kMenuIconSize; 93 extern const int kMenuIconSize;
98 extern const SkColor kMenuIconColor; 94 extern const SkColor kMenuIconColor;
95 extern const int kMenuButtonSize;
99 96
100 enum TrayConstant { 97 enum TrayConstant {
101 // A legacy height value used in non-MD calculations for applying additional 98 // A legacy height value used in non-MD calculations for applying additional
102 // borders on tray items. 99 // borders on tray items.
103 TRAY_ITEM_HEIGHT_LEGACY, 100 TRAY_ITEM_HEIGHT_LEGACY,
104 101
105 // Padding between items in the status tray area. 102 // Padding between items in the status tray area.
106 TRAY_SPACING, 103 TRAY_SPACING,
107 104
108 // Padding between the edge of shelf and the item in status tray area. 105 // Padding between the edge of shelf and the item in status tray area.
109 TRAY_PADDING_FROM_EDGE_OF_SHELF, 106 TRAY_PADDING_FROM_EDGE_OF_SHELF,
110 107
111 // The height of the rows in the system tray menu. 108 // The height of the rows in the system tray menu.
112 TRAY_POPUP_ITEM_HEIGHT, 109 TRAY_POPUP_ITEM_HEIGHT,
113 110
114 // The width and height of the virtual keyboard button in the status tray 111 // The width and height of the virtual keyboard button in the status tray
115 // area. For non-MD, adjustments are made to the button dimensions based on 112 // area. For non-MD, adjustments are made to the button dimensions based on
116 // the shelf orientation, so this constant does not specify the true 113 // the shelf orientation, so this constant does not specify the true
117 // user-visible button bounds. 114 // user-visible button bounds.
118 VIRTUAL_KEYBOARD_BUTTON_SIZE, 115 VIRTUAL_KEYBOARD_BUTTON_SIZE,
116
117 // The icon size of opt-in IME menu tray.
118 TRAY_IME_MENU_ICON,
119 }; 119 };
120 120
121 int GetTrayConstant(TrayConstant constant); 121 int GetTrayConstant(TrayConstant constant);
122 122
123 namespace test { 123 namespace test {
124 const int kSettingsTrayItemViewId = 10000; 124 const int kSettingsTrayItemViewId = 10000;
125 const int kAccessibilityTrayItemViewId = 10001; 125 const int kAccessibilityTrayItemViewId = 10001;
126 } // namespace test 126 } // namespace test
127 127
128 } // namespace ash 128 } // namespace ash
129 129
130 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 130 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/ime_menu/ime_menu_tray.cc ('k') | ash/common/system/tray/tray_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698