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

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

Issue 22291003: ash:Shelf Update Alternate Layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nl Created 7 years, 4 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
« no previous file with comments | « ash/system/tray/tray_constants.h ('k') | ash/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
8 9
9 namespace ash { 10 namespace ash {
10 11
11 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; 12 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7;
12 const int kPaddingFromBottomOfScreenBottomAlignment = 7; 13 const int kPaddingFromBottomOfScreenBottomAlignment = 7;
13 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; 14 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8;
14 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; 15 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9;
15 const int kPaddingFromBottomOfScreenVerticalAlignment = 10; 16 const int kPaddingFromBottomOfScreenVerticalAlignment = 10;
16 17
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); 59 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0);
59 60
60 const int kTrayPopupMinWidth = 300; 61 const int kTrayPopupMinWidth = 300;
61 const int kTrayPopupMaxWidth = 500; 62 const int kTrayPopupMaxWidth = 500;
62 const int kNotificationIconWidth = 40; 63 const int kNotificationIconWidth = 40;
63 const int kNotificationButtonWidth = 32; 64 const int kNotificationButtonWidth = 32;
64 const int kTrayNotificationContentsWidth = kTrayPopupMinWidth - 65 const int kTrayNotificationContentsWidth = kTrayPopupMinWidth -
65 (kNotificationIconWidth + kNotificationButtonWidth + 66 (kNotificationIconWidth + kNotificationButtonWidth +
66 (kTrayPopupPaddingHorizontal / 2) * 3); 67 (kTrayPopupPaddingHorizontal / 2) * 3);
67 const int kTraySpacing = 8; 68 const int kTraySpacing = 8;
69 const int kAlternateTraySpacing = 4;
70
71 // Returns kTraySpacing or kAlternateTraySpacing as applicable
72 // (Determined by ash::switches::UseAlternateShelfLayout).
73 int GetTraySpacing() {
74 return ash::switches::UseAlternateShelfLayout() ?
75 kAlternateTraySpacing : kTraySpacing;
76 }
68 77
69 } // namespace ash 78 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/tray_constants.h ('k') | ash/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698