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

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

Issue 23928004: ash:Shelf - Update position and hit box of status area. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | 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 {
11 11
12 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; 12 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7;
13 const int kPaddingFromBottomOfScreenBottomAlignment = 7; 13 const int kPaddingFromBottomOfScreenBottomAlignment = 7;
14 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; 14 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8;
15 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; 15 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9;
16 const int kPaddingFromBottomOfScreenVerticalAlignment = 10; 16 const int kPaddingFromBottomOfScreenVerticalAlignment = 10;
17 17
18 // Inset between the edge of the shelf region and the status tray. 18 const int kAlternateLayoutBubblePaddingHorizontalBottom = 6;
James Cook 2013/09/18 01:36:07 Maybe a quick comment about padding between what a
19 const int kAlternateLayoutBubblePaddingHorizontalSide = 10;
20 const int kAlternateLayoutBubblePaddingVerticalBottom = 3;
21 const int kAlternateLayoutBubblePaddingVerticalSide = 15;
22
19 const int kPaddingFromEdgeOfShelf = 3; 23 const int kPaddingFromEdgeOfShelf = 3;
20 24
21 // Top inset of system tray bubble for bottom anchor alignment. 25 // Top inset of system tray bubble for bottom anchor alignment.
22 const int kTrayBubbleAnchorTopInsetBottomAnchor = 3; 26 const int kTrayBubbleAnchorTopInsetBottomAnchor = 3;
23 27
24 const int kTrayImageItemHorizontalPaddingBottomAlignment = 1; 28 const int kTrayImageItemHorizontalPaddingBottomAlignment = 1;
25 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; 29 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1;
26 const int kTrayImageItemVerticalPaddingVerticalAlignment = 1; 30 const int kTrayImageItemVerticalPaddingVerticalAlignment = 1;
27 31
28 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; 32 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 return ash::switches::UseAlternateShelfLayout() ? 79 return ash::switches::UseAlternateShelfLayout() ?
76 kAlternateTraySpacing : kTraySpacing; 80 kAlternateTraySpacing : kTraySpacing;
77 } 81 }
78 82
79 int GetShelfItemHeight() { 83 int GetShelfItemHeight() {
80 return ash::switches::UseAlternateShelfLayout() ? 84 return ash::switches::UseAlternateShelfLayout() ?
81 kAlternateShelfItemHeight : kShelfItemHeight; 85 kAlternateShelfItemHeight : kShelfItemHeight;
82 } 86 }
83 87
84 } // namespace ash 88 } // namespace ash
OLDNEW
« ash/system/tray/tray_background_view.cc ('K') | « ash/system/tray/tray_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698