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

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

Issue 2460443002: Revert of "Added common layout framework for system menu rows." (Closed)
Patch Set: 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 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // Padding between items in the status tray area. 109 // Padding between items in the status tray area.
110 TRAY_SPACING, 110 TRAY_SPACING,
111 111
112 // Padding between the edge of shelf and the item in status tray area. 112 // Padding between the edge of shelf and the item in status tray area.
113 TRAY_PADDING_FROM_EDGE_OF_SHELF, 113 TRAY_PADDING_FROM_EDGE_OF_SHELF,
114 114
115 // The height of the rows in the system tray menu. 115 // The height of the rows in the system tray menu.
116 TRAY_POPUP_ITEM_HEIGHT, 116 TRAY_POPUP_ITEM_HEIGHT,
117 117
118 // The left inset for all tray system menu rows.
119 TRAY_POPUP_ITEM_LEFT_INSET,
120
121 // The right inset for all tray system menu rows.
122 TRAY_POPUP_ITEM_RIGHT_INSET,
123
124 // The minimum default width for the left container of the system menu rows.
125 TRAY_POPUP_ITEM_MIN_START_WIDTH,
126
127 // The minimum default width for the right container of the system menu rows.
128 TRAY_POPUP_ITEM_MIN_END_WIDTH,
129
130 // The width and height of the virtual keyboard button in the status tray 118 // The width and height of the virtual keyboard button in the status tray
131 // area. For non-MD, adjustments are made to the button dimensions based on 119 // area. For non-MD, adjustments are made to the button dimensions based on
132 // the shelf orientation, so this constant does not specify the true 120 // the shelf orientation, so this constant does not specify the true
133 // user-visible button bounds. 121 // user-visible button bounds.
134 VIRTUAL_KEYBOARD_BUTTON_SIZE, 122 VIRTUAL_KEYBOARD_BUTTON_SIZE,
135 123
136 // The icon size of opt-in IME menu tray. 124 // The icon size of opt-in IME menu tray.
137 TRAY_IME_MENU_ICON, 125 TRAY_IME_MENU_ICON,
138 126
139 // Extra padding used beside a single icon in the tray area of the shelf. 127 // Extra padding used beside a single icon in the tray area of the shelf.
140 TRAY_IMAGE_ITEM_PADDING, 128 TRAY_IMAGE_ITEM_PADDING,
141 }; 129 };
142 130
143 int GetTrayConstant(TrayConstant constant); 131 int GetTrayConstant(TrayConstant constant);
144 132
145 namespace test { 133 namespace test {
146 const int kSettingsTrayItemViewId = 10000; 134 const int kSettingsTrayItemViewId = 10000;
147 const int kAccessibilityTrayItemViewId = 10001; 135 const int kAccessibilityTrayItemViewId = 10001;
148 } // namespace test 136 } // namespace test
149 137
150 } // namespace ash 138 } // namespace ash
151 139
152 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 140 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/size_range_layout_unittest.cc ('k') | ash/common/system/tray/tray_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698