Chromium Code Reviews| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 GRADIENT_FRAME_INCOGNITO_INACTIVE, | 119 GRADIENT_FRAME_INCOGNITO_INACTIVE, |
| 120 GRADIENT_TOOLBAR, | 120 GRADIENT_TOOLBAR, |
| 121 GRADIENT_TOOLBAR_INACTIVE, | 121 GRADIENT_TOOLBAR_INACTIVE, |
| 122 GRADIENT_TOOLBAR_BUTTON, | 122 GRADIENT_TOOLBAR_BUTTON, |
| 123 GRADIENT_TOOLBAR_BUTTON_INACTIVE, | 123 GRADIENT_TOOLBAR_BUTTON_INACTIVE, |
| 124 GRADIENT_TOOLBAR_BUTTON_PRESSED, | 124 GRADIENT_TOOLBAR_BUTTON_PRESSED, |
| 125 GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE, | 125 GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE, |
| 126 #endif // OS_MACOSX | 126 #endif // OS_MACOSX |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 // The int value has no special meaning, but should not conflict with | |
| 130 // the other property enums above. | |
| 131 enum IncognitoThemeProperty { | |
| 132 COLOR_TOOLBAR_INCOGNITO = 2000, | |
| 133 }; | |
| 134 | |
| 135 static int PropertyToIncognitoProperty(int id); | |
|
Peter Kasting
2015/12/09 01:31:59
I thought you were going to eliminate this functio
Evan Stade
2015/12/09 01:57:06
ah, ok, I guess we can do that. I thought you just
| |
| 136 | |
| 129 // Used by the browser theme pack to parse alignments from something like | 137 // Used by the browser theme pack to parse alignments from something like |
| 130 // "top left" into a bitmask of Alignment. | 138 // "top left" into a bitmask of Alignment. |
| 131 static int StringToAlignment(const std::string& alignment); | 139 static int StringToAlignment(const std::string& alignment); |
| 132 | 140 |
| 133 // Used by the browser theme pack to parse alignments from something like | 141 // Used by the browser theme pack to parse alignments from something like |
| 134 // "no-repeat" into a Tiling value. | 142 // "no-repeat" into a Tiling value. |
| 135 static int StringToTiling(const std::string& tiling); | 143 static int StringToTiling(const std::string& tiling); |
| 136 | 144 |
| 137 // Converts a bitmask of Alignment into a string like "top left". The result | 145 // Converts a bitmask of Alignment into a string like "top left". The result |
| 138 // is used to generate a CSS value. | 146 // is used to generate a CSS value. |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 152 | 160 |
| 153 // Returns the default color for the given color |id| COLOR_* enum value. | 161 // Returns the default color for the given color |id| COLOR_* enum value. |
| 154 // Returns gfx::kPlaceholderColor if |id| is invalid. | 162 // Returns gfx::kPlaceholderColor if |id| is invalid. |
| 155 static SkColor GetDefaultColor(int id); | 163 static SkColor GetDefaultColor(int id); |
| 156 | 164 |
| 157 private: | 165 private: |
| 158 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); | 166 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); |
| 159 }; | 167 }; |
| 160 | 168 |
| 161 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 169 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
| OLD | NEW |