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

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

Issue 1455193003: Draw popup window toolbars as only containing a location bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@arbitrary_heights
Patch Set: Glass cleanups Created 5 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 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 kFindBarVerticalOffset[] = {1, 6, 6}; 11 const int kFindBarVerticalOffset[] = {1, 6, 6};
12 const int kIconLabelViewInternalPadding[] = {3, 2, 2}; 12 const int kIconLabelViewInternalPadding[] = {3, 2, 2};
13 const int kIconLabelViewTrailingPadding[] = {2, 8, 8}; 13 const int kIconLabelViewTrailingPadding[] = {2, 8, 8};
14 const int kLocationBarBorderThickness[] = {2, 1, 1}; 14 const int kLocationBarBorderThickness[] = {2, 1, 1};
15 const int kLocationBarBubbleHorizontalPadding[] = {1, 4, 4}; 15 const int kLocationBarBubbleHorizontalPadding[] = {1, 4, 4};
16 const int kLocationBarBubbleVerticalPadding[] = {1, 4, 4}; 16 const int kLocationBarBubbleVerticalPadding[] = {1, 4, 4};
17 const int kLocationBarHeight[] = {0, 28, 32}; 17 const int kLocationBarHeight[] = {27, 28, 32};
18 const int kLocationBarHorizontalPadding[] = {3, 6, 6}; 18 const int kLocationBarHorizontalPadding[] = {3, 6, 6};
19 const int kLocationBarVerticalPadding[] = {2, 2, 2}; 19 const int kLocationBarVerticalPadding[] = {2, 2, 2};
20 const int kNewTabButtonWidth[] = {34, 34, 34}; 20 const int kNewTabButtonWidth[] = {34, 34, 34};
21 const int kOmniboxDropdownBorderInterior[] = {6, 0, 0}; 21 const int kOmniboxDropdownBorderInterior[] = {6, 0, 0};
22 const int kOmniboxFontPixelSize[] = {16, 14, 14}; 22 const int kOmniboxFontPixelSize[] = {16, 14, 14};
23 const int kTabCloseButtonTrailingPaddingOverlap[] = {2, 2, 2}; 23 const int kTabCloseButtonTrailingPaddingOverlap[] = {2, 2, 2};
24 const int kTabFaviconTitleSpacing[] = {4, 4, 4}; 24 const int kTabFaviconTitleSpacing[] = {4, 4, 4};
25 const int kTabMaximumTitleWidth[] = {175, 175, 175}; 25 const int kTabMaximumTitleWidth[] = {175, 175, 175};
26 const int kTabPinnedContentWidth[] = {25, 25, 25}; 26 const int kTabPinnedContentWidth[] = {25, 25, 25};
27 #if defined(OS_MACOSX) 27 #if defined(OS_MACOSX)
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 kToolbarBottomPadding[mode], 140 kToolbarBottomPadding[mode],
141 kToolbarRightPadding[mode]); 141 kToolbarRightPadding[mode]);
142 case TOOLBAR_BUTTON: { 142 case TOOLBAR_BUTTON: {
143 const int inset = kToolbarButtonPadding[mode]; 143 const int inset = kToolbarButtonPadding[mode];
144 return gfx::Insets(inset, inset, inset, inset); 144 return gfx::Insets(inset, inset, inset, inset);
145 } 145 }
146 } 146 }
147 NOTREACHED(); 147 NOTREACHED();
148 return gfx::Insets(); 148 return gfx::Insets();
149 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698