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

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: Rebase 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 kToolbarBottomPadding[mode], 111 kToolbarBottomPadding[mode],
112 kToolbarRightPadding[mode]); 112 kToolbarRightPadding[mode]);
113 case TOOLBAR_BUTTON: { 113 case TOOLBAR_BUTTON: {
114 const int inset = kToolbarButtonPadding[mode]; 114 const int inset = kToolbarButtonPadding[mode];
115 return gfx::Insets(inset, inset, inset, inset); 115 return gfx::Insets(inset, inset, inset, inset);
116 } 116 }
117 } 117 }
118 NOTREACHED(); 118 NOTREACHED();
119 return gfx::Insets(); 119 return gfx::Insets();
120 } 120 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_utils.cc ('k') | chrome/browser/ui/views/tabs/media_indicator_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698