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

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

Issue 2709903004: Consolidate some more ash tray constants. (Closed)
Patch Set: rebase/review Created 3 years, 10 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_item_view.cc ('k') | ash/common/system/tray/tray_popup_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_popup_header_button.cc
diff --git a/ash/common/system/tray/tray_popup_header_button.cc b/ash/common/system/tray/tray_popup_header_button.cc
index a945311a940a181ceefc866d4a9c81055ed778e4..07334c6cbdcfab93b2a9ffac8d2fd5c2ca2d85a2 100644
--- a/ash/common/system/tray/tray_popup_header_button.cc
+++ b/ash/common/system/tray/tray_popup_header_button.cc
@@ -57,8 +57,7 @@ const char* TrayPopupHeaderButton::GetClassName() const {
}
gfx::Size TrayPopupHeaderButton::GetPreferredSize() const {
- int size = GetTrayConstant(TRAY_POPUP_ITEM_MIN_HEIGHT);
- return gfx::Size(size, size);
+ return gfx::Size(kTrayPopupItemMinHeight, kTrayPopupItemMinHeight);
}
void TrayPopupHeaderButton::StateChanged(ButtonState old_state) {
« no previous file with comments | « ash/common/system/tray/tray_item_view.cc ('k') | ash/common/system/tray/tray_popup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698