| OLD | NEW |
| 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/layout_constants.h" | 5 #include "chrome/browser/ui/layout_constants.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/base/material_design/material_design_controller.h" | 9 #include "ui/base/material_design/material_design_controller.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const int kOmniboxDropdownBorderInterior[] = {6, 0, 0}; | 22 const int kOmniboxDropdownBorderInterior[] = {6, 0, 0}; |
| 23 const int kOmniboxFontPixelSize[] = {16, 14, 14}; | 23 const int kOmniboxFontPixelSize[] = {16, 14, 14}; |
| 24 const int kTabCloseButtonTrailingPaddingOverlap[] = {2, 0, 0}; | 24 const int kTabCloseButtonTrailingPaddingOverlap[] = {2, 0, 0}; |
| 25 const int kTabFaviconTitleSpacing[] = {4, 6, 6}; | 25 const int kTabFaviconTitleSpacing[] = {4, 6, 6}; |
| 26 const int kTabHeight[] = {29, 29, 33}; | 26 const int kTabHeight[] = {29, 29, 33}; |
| 27 const int kTabPinnedContentWidth[] = {25, 23, 23}; | 27 const int kTabPinnedContentWidth[] = {25, 23, 23}; |
| 28 #if defined(OS_MACOSX) | 28 #if defined(OS_MACOSX) |
| 29 const int kTabTopExclusionHeight[] = {0, 0, 0}; | 29 const int kTabTopExclusionHeight[] = {0, 0, 0}; |
| 30 const int kTabstripNewTabButtonOverlap[] = {8, 5, 6}; | 30 const int kTabstripNewTabButtonOverlap[] = {8, 5, 6}; |
| 31 const int kTabstripTabOverlap[] = {19, 16, 16}; | 31 const int kTabstripTabOverlap[] = {19, 16, 16}; |
| 32 const int kToolbarStandardSpacing[] = {3, 0, 8}; | |
| 33 #else | 32 #else |
| 34 const int kTabTopExclusionHeight[] = {2, 0, 0}; | 33 const int kTabTopExclusionHeight[] = {2, 0, 0}; |
| 35 const int kTabstripNewTabButtonOverlap[] = {11, 5, 6}; | 34 const int kTabstripNewTabButtonOverlap[] = {11, 5, 6}; |
| 36 const int kTabstripTabOverlap[] = {26, 16, 16}; | 35 const int kTabstripTabOverlap[] = {26, 16, 16}; |
| 36 #endif |
| 37 const int kToolbarStandardSpacing[] = {3, 4, 8}; | 37 const int kToolbarStandardSpacing[] = {3, 4, 8}; |
| 38 #endif | |
| 39 const int kTabstripToolbarOverlap[] = {3, 0, 0}; | 38 const int kTabstripToolbarOverlap[] = {3, 0, 0}; |
| 40 const int kToolbarContentShadowHeight[] = {0, 0, 0}; | 39 const int kToolbarContentShadowHeight[] = {0, 0, 0}; |
| 41 const int kToolbarContentShadowHeightAsh[] = {2, 0, 0}; | 40 const int kToolbarContentShadowHeightAsh[] = {2, 0, 0}; |
| 42 const int kToolbarElementPadding[] = {0, 0, 8}; | 41 const int kToolbarElementPadding[] = {0, 0, 8}; |
| 43 const int kToolbarLocationBarRightPadding[] = {0, 4, 8}; | 42 const int kToolbarLocationBarRightPadding[] = {0, 4, 8}; |
| 44 | 43 |
| 45 const int mode = ui::MaterialDesignController::GetMode(); | 44 const int mode = ui::MaterialDesignController::GetMode(); |
| 46 switch (constant) { | 45 switch (constant) { |
| 47 case FIND_BAR_TOOLBAR_OVERLAP: | 46 case FIND_BAR_TOOLBAR_OVERLAP: |
| 48 return kFindBarVerticalOffset[mode]; | 47 return kFindBarVerticalOffset[mode]; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 const int kNewTabButtonHeight[] = {18, 18, 21}; | 145 const int kNewTabButtonHeight[] = {18, 18, 21}; |
| 147 | 146 |
| 148 const int mode = ui::MaterialDesignController::GetMode(); | 147 const int mode = ui::MaterialDesignController::GetMode(); |
| 149 switch (size) { | 148 switch (size) { |
| 150 case NEW_TAB_BUTTON: | 149 case NEW_TAB_BUTTON: |
| 151 return gfx::Size(kNewTabButtonWidth[mode], kNewTabButtonHeight[mode]); | 150 return gfx::Size(kNewTabButtonWidth[mode], kNewTabButtonHeight[mode]); |
| 152 } | 151 } |
| 153 NOTREACHED(); | 152 NOTREACHED(); |
| 154 return gfx::Size(); | 153 return gfx::Size(); |
| 155 } | 154 } |
| OLD | NEW |