| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 5 #ifndef CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
| 6 #define CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 6 #define CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 COLOR_TOOLBAR_BUTTON_STROKE_INACTIVE, | 108 COLOR_TOOLBAR_BUTTON_STROKE_INACTIVE, |
| 109 GRADIENT_FRAME_INCOGNITO, | 109 GRADIENT_FRAME_INCOGNITO, |
| 110 GRADIENT_FRAME_INCOGNITO_INACTIVE, | 110 GRADIENT_FRAME_INCOGNITO_INACTIVE, |
| 111 GRADIENT_TOOLBAR, | 111 GRADIENT_TOOLBAR, |
| 112 GRADIENT_TOOLBAR_INACTIVE, | 112 GRADIENT_TOOLBAR_INACTIVE, |
| 113 GRADIENT_TOOLBAR_BUTTON, | 113 GRADIENT_TOOLBAR_BUTTON, |
| 114 GRADIENT_TOOLBAR_BUTTON_INACTIVE, | 114 GRADIENT_TOOLBAR_BUTTON_INACTIVE, |
| 115 GRADIENT_TOOLBAR_BUTTON_PRESSED, | 115 GRADIENT_TOOLBAR_BUTTON_PRESSED, |
| 116 GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE, | 116 GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE, |
| 117 #endif // OS_MACOSX | 117 #endif // OS_MACOSX |
| 118 | |
| 119 // TODO(jonross): Upon the completion of Material Design work, evaluate | |
| 120 // which of these properties can be moved out of ThemeProperties. | |
| 121 | |
| 122 // Layout Properties for the Toolbar | |
| 123 PROPERTY_ICON_LABEL_VIEW_TRAILING_PADDING, | |
| 124 PROPERTY_LOCATION_BAR_BUBBLE_HORIZONTAL_PADDING, | |
| 125 PROPERTY_LOCATION_BAR_BUBBLE_VERTICAL_PADDING, | |
| 126 PROPERTY_LOCATION_BAR_HEIGHT, | |
| 127 PROPERTY_LOCATION_BAR_HORIZONTAL_PADDING, | |
| 128 PROPERTY_LOCATION_BAR_VERTICAL_PADDING, | |
| 129 PROPERTY_OMNIBOX_DROPDOWN_BORDER_INTERIOR, | |
| 130 PROPERTY_OMNIBOX_DROPDOWN_MIN_ICON_VERTICAL_PADDING, | |
| 131 PROPERTY_OMNIBOX_DROPDOWN_MIN_TEXT_VERTICAL_PADDING, | |
| 132 PROPERTY_TOOLBAR_BUTTON_BORDER_INSET, | |
| 133 PROPERTY_TOOLBAR_VIEW_BOTTOM_VERTICAL_PADDING, | |
| 134 PROPERTY_TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT, | |
| 135 PROPERTY_TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT_ASH, | |
| 136 PROPERTY_TOOLBAR_VIEW_ELEMENT_PADDING, | |
| 137 PROPERTY_TOOLBAR_VIEW_LEFT_EDGE_SPACING, | |
| 138 PROPERTY_TOOLBAR_VIEW_LOCATION_BAR_RIGHT_PADDING, | |
| 139 PROPERTY_TOOLBAR_VIEW_RIGHT_EDGE_SPACING, | |
| 140 PROPERTY_TOOLBAR_VIEW_STANDARD_SPACING, | |
| 141 PROPERTY_TOOLBAR_VIEW_TOP_VERTICAL_PADDING, | |
| 142 }; | 118 }; |
| 143 | 119 |
| 144 // Used by the browser theme pack to parse alignments from something like | 120 // Used by the browser theme pack to parse alignments from something like |
| 145 // "top left" into a bitmask of Alignment. | 121 // "top left" into a bitmask of Alignment. |
| 146 static int StringToAlignment(const std::string& alignment); | 122 static int StringToAlignment(const std::string& alignment); |
| 147 | 123 |
| 148 // Used by the browser theme pack to parse alignments from something like | 124 // Used by the browser theme pack to parse alignments from something like |
| 149 // "no-repeat" into a Tiling value. | 125 // "no-repeat" into a Tiling value. |
| 150 static int StringToTiling(const std::string& tiling); | 126 static int StringToTiling(const std::string& tiling); |
| 151 | 127 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 162 static const std::set<int>& GetTintableToolbarButtons(); | 138 static const std::set<int>& GetTintableToolbarButtons(); |
| 163 | 139 |
| 164 // Returns the default tint for the given tint |id| TINT_* enum value. | 140 // Returns the default tint for the given tint |id| TINT_* enum value. |
| 165 // Returns an HSL value of {-1, -1, -1} if |id| is invalid. | 141 // Returns an HSL value of {-1, -1, -1} if |id| is invalid. |
| 166 static color_utils::HSL GetDefaultTint(int id); | 142 static color_utils::HSL GetDefaultTint(int id); |
| 167 | 143 |
| 168 // Returns the default color for the given color |id| COLOR_* enum value. | 144 // Returns the default color for the given color |id| COLOR_* enum value. |
| 169 // Returns SK_ColorRED if |id| is invalid. | 145 // Returns SK_ColorRED if |id| is invalid. |
| 170 static SkColor GetDefaultColor(int id); | 146 static SkColor GetDefaultColor(int id); |
| 171 | 147 |
| 172 // Returns the default value for the given property |id|. Returns -1 if |id| | |
| 173 // is invalid. | |
| 174 static int GetDefaultDisplayProperty(int id); | |
| 175 | |
| 176 private: | 148 private: |
| 177 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); | 149 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); |
| 178 }; | 150 }; |
| 179 | 151 |
| 180 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 152 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
| OLD | NEW |