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

Side by Side Diff: chrome/browser/ui/views/layout_constants.cc

Issue 1354823002: Render the tab close button as a vector-based icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/ui/views/layout_constants.h" 5 #include "chrome/browser/ui/views/layout_constants.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/resource/material_design/material_design_controller.h" 8 #include "ui/base/resource/material_design/material_design_controller.h"
9 9
10 int GetLayoutConstant(LayoutConstant constant) { 10 int GetLayoutConstant(LayoutConstant constant) {
11 const int kIconLabelViewTrailingPadding[] = {2, 8, 8}; 11 const int kIconLabelViewTrailingPadding[] = {2, 8, 8};
12 const int kLocationBarBubbleHorizontalPadding[] = {1, 5, 5}; 12 const int kLocationBarBubbleHorizontalPadding[] = {1, 5, 5};
13 const int kLocationBarBubbleVerticalPadding[] = {1, 3, 3}; 13 const int kLocationBarBubbleVerticalPadding[] = {1, 3, 3};
14 const int kLocationBarHeight[] = {0, 28, 32}; 14 const int kLocationBarHeight[] = {0, 28, 32};
15 const int kLocationBarHorizontalPadding[] = {3, 6, 6}; 15 const int kLocationBarHorizontalPadding[] = {3, 6, 6};
16 const int kLocationBarVerticalPadding[] = {2, 2, 2}; 16 const int kLocationBarVerticalPadding[] = {2, 2, 2};
17 const int kOmniboxDropdownBorderInterior[] = {6, 0, 0}; 17 const int kOmniboxDropdownBorderInterior[] = {6, 0, 0};
18 const int kOmniboxFontPixelSize[] = {16, 14, 14}; 18 const int kOmniboxFontPixelSize[] = {16, 14, 14};
19 const int kTabCloseButtonTrailingPaddingOverlap[] = {3, 3, 3}; 19 const int kTabCloseButtonTrailingPaddingOverlap[] = {2, 2, 2};
20 const int kTabFaviconTitleSpacing[] = {4, 4, 4}; 20 const int kTabFaviconTitleSpacing[] = {4, 4, 4};
21 const int kTabMaximumTitleWidth[] = {175, 175, 175}; 21 const int kTabMaximumTitleWidth[] = {175, 175, 175};
22 const int kTabPinnedContentWidth[] = {25, 25, 25}; 22 const int kTabPinnedContentWidth[] = {25, 25, 25};
23 #if defined(OS_MACOSX) 23 #if defined(OS_MACOSX)
24 const int kTabstripTabOverlap[] = {19, 19, 19}; 24 const int kTabstripTabOverlap[] = {19, 19, 19};
25 #else 25 #else
26 const int kTabstripTabOverlap[] = {26, 26, 26}; 26 const int kTabstripTabOverlap[] = {26, 26, 26};
27 #endif 27 #endif
28 const int kTabstripToolbarOverlap[] = {3, 3, 3}; 28 const int kTabstripToolbarOverlap[] = {3, 3, 3};
29 const int kTabstripTopShadowHeight[] = {3, 3, 3}; 29 const int kTabstripTopShadowHeight[] = {3, 3, 3};
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 case TOOLBAR_VIEW: 113 case TOOLBAR_VIEW:
114 return gfx::Insets(kToolbarViewTopVerticalPadding[mode], 114 return gfx::Insets(kToolbarViewTopVerticalPadding[mode],
115 kToolbarViewLeftEdgeSpacing[mode], 115 kToolbarViewLeftEdgeSpacing[mode],
116 kToolbarViewBottomVerticalPadding[mode], 116 kToolbarViewBottomVerticalPadding[mode],
117 kToolbarViewRightEdgeSpacing[mode]); 117 kToolbarViewRightEdgeSpacing[mode]);
118 } 118 }
119 NOTREACHED(); 119 NOTREACHED();
120 return gfx::Insets(); 120 return gfx::Insets();
121 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698