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

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

Issue 2491033006: Adjust positioning of cros tray bubbles. (Closed)
Patch Set: rebase and update bug link 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 #include "ash/common/system/tray/tray_constants.h" 5 #include "ash/common/system/tray/tray_constants.h"
6 6
7 #include "ash/common/material_design/material_design_controller.h" 7 #include "ash/common/material_design/material_design_controller.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/color_palette.h" 10 #include "ui/gfx/color_palette.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const int kHorizontalSeparatorHeight = 24; 97 const int kHorizontalSeparatorHeight = 24;
98 98
99 const SkColor kTrayPopupInkDropBaseColor = SK_ColorBLACK; 99 const SkColor kTrayPopupInkDropBaseColor = SK_ColorBLACK;
100 const float kTrayPopupInkDropRippleOpacity = 0.06f; 100 const float kTrayPopupInkDropRippleOpacity = 0.06f;
101 const float kTrayPopupInkDropHighlightOpacity = 0.08f; 101 const float kTrayPopupInkDropHighlightOpacity = 0.08f;
102 const int kTrayPopupInkDropInset = 4; 102 const int kTrayPopupInkDropInset = 4;
103 103
104 int GetTrayConstant(TrayConstant constant) { 104 int GetTrayConstant(TrayConstant constant) {
105 const int kTrayItemHeightLegacy[] = {38, kTrayItemSize, kTrayItemSize}; 105 const int kTrayItemHeightLegacy[] = {38, kTrayItemSize, kTrayItemSize};
106 const int kTraySpacing[] = {4, 0, 0}; 106 const int kTraySpacing[] = {4, 0, 0};
107 const int kTrayPaddingFromEdgeOfShelf[] = {3, 4, 4}; 107 const int kTrayPaddingFromEdgeOfShelf[] = {3, 3, 3};
108 const int kTrayPopupItemMinHeight[] = {46, 48, 48}; 108 const int kTrayPopupItemMinHeight[] = {46, 48, 48};
109 const int kTrayPopupItemMaxHeight[] = {138, 144, 144}; 109 const int kTrayPopupItemMaxHeight[] = {138, 144, 144};
110 // FixedSizedImageViews use the contained ImageView's width for 0 values. 110 // FixedSizedImageViews use the contained ImageView's width for 0 values.
111 const int kTrayPopupItemMainImageRegionWidth[] = {0, 48, 48}; 111 const int kTrayPopupItemMainImageRegionWidth[] = {0, 48, 48};
112 const int kTrayPopupItemMoreImageSize[] = {25, kMenuIconSize, kMenuIconSize}; 112 const int kTrayPopupItemMoreImageSize[] = {25, kMenuIconSize, kMenuIconSize};
113 const int kTrayPopupItemMoreRegionHorizontalInset[] = {10, 10, 10}; 113 const int kTrayPopupItemMoreRegionHorizontalInset[] = {10, 10, 10};
114 const int kTrayPopupItemLeftInset[] = {0, 4, 4}; 114 const int kTrayPopupItemLeftInset[] = {0, 4, 4};
115 const int kTrayPopupItemRightInset[] = {0, 0, 0}; 115 const int kTrayPopupItemRightInset[] = {0, 0, 0};
116 const int kTrayPopupItemMinStartWidth[] = {46, 48, 48}; 116 const int kTrayPopupItemMinStartWidth[] = {46, 48, 48};
117 const int kTrayPopupItemMinEndWidth[] = {40, 40, 40}; 117 const int kTrayPopupItemMinEndWidth[] = {40, 40, 40};
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 case TRAY_IME_MENU_ICON: 153 case TRAY_IME_MENU_ICON:
154 return kTrayImeMenuIcon[mode]; 154 return kTrayImeMenuIcon[mode];
155 case TRAY_IMAGE_ITEM_PADDING: 155 case TRAY_IMAGE_ITEM_PADDING:
156 return kTrayImageItemPadding[mode]; 156 return kTrayImageItemPadding[mode];
157 } 157 }
158 NOTREACHED(); 158 NOTREACHED();
159 return 0; 159 return 0;
160 } 160 }
161 161
162 } // namespace ash 162 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698