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

Side by Side Diff: ash/system/tray/tray_constants.cc

Issue 140323010: Ash:Shelf - Cleanup of Alternate Shelf (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 #include "ash/system/tray/tray_constants.h" 5 #include "ash/system/tray/tray_constants.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0); 66 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0);
67 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); 67 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0);
68 68
69 const int kTrayPopupMinWidth = 300; 69 const int kTrayPopupMinWidth = 300;
70 const int kTrayPopupMaxWidth = 500; 70 const int kTrayPopupMaxWidth = 500;
71 const int kNotificationIconWidth = 40; 71 const int kNotificationIconWidth = 40;
72 const int kNotificationButtonWidth = 32; 72 const int kNotificationButtonWidth = 32;
73 const int kTrayNotificationContentsWidth = kTrayPopupMinWidth - 73 const int kTrayNotificationContentsWidth = kTrayPopupMinWidth -
74 (kNotificationIconWidth + kNotificationButtonWidth + 74 (kNotificationIconWidth + kNotificationButtonWidth +
75 (kTrayPopupPaddingHorizontal / 2) * 3); 75 (kTrayPopupPaddingHorizontal / 2) * 3);
76 const int kTraySpacing = 8; 76 const int kTraySpacing = 4;
77 const int kAlternateTraySpacing = 4; 77 const int kShelfItemHeight = 38;
78 const int kShelfItemHeight = 31;
79 const int kAlternateShelfItemHeight = 38;
80 78
81 int GetTraySpacing() { 79 int GetTraySpacing() {
82 return ash::switches::UseAlternateShelfLayout() ? 80 return kTraySpacing;
83 kAlternateTraySpacing : kTraySpacing;
84 } 81 }
85 82
86 int GetShelfItemHeight() { 83 int GetShelfItemHeight() {
87 return ash::switches::UseAlternateShelfLayout() ? 84 return kShelfItemHeight;
88 kAlternateShelfItemHeight : kShelfItemHeight;
89 } 85 }
90 86
91 } // namespace ash 87 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698