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 enum IncognitoThemeProperty { | |
|
pkotwicz
2015/12/04 23:16:49
Nit: Please add a comment that the int value of th
Evan Stade
2015/12/09 00:57:10
Done.
| |
| 130 COLOR_TOOLBAR_INCOGNITO = 2000, | |
| 131 }; | |
| 132 | |
| 133 static int IncognitoPropertyToProperty(int id); | |
| 134 static int PropertyToIncognitoProperty(int id); | |
|
Peter Kasting
2015/12/08 22:52:58
If you follow my suggestion in theme_service.cc, I
Evan Stade
2015/12/09 00:57:10
Done.
| |
| 135 | |
| 129 // Used by the browser theme pack to parse alignments from something like | 136 // Used by the browser theme pack to parse alignments from something like |
| 130 // "top left" into a bitmask of Alignment. | 137 // "top left" into a bitmask of Alignment. |
| 131 static int StringToAlignment(const std::string& alignment); | 138 static int StringToAlignment(const std::string& alignment); |
| 132 | 139 |
| 133 // Used by the browser theme pack to parse alignments from something like | 140 // Used by the browser theme pack to parse alignments from something like |
| 134 // "no-repeat" into a Tiling value. | 141 // "no-repeat" into a Tiling value. |
| 135 static int StringToTiling(const std::string& tiling); | 142 static int StringToTiling(const std::string& tiling); |
| 136 | 143 |
| 137 // Converts a bitmask of Alignment into a string like "top left". The result | 144 // Converts a bitmask of Alignment into a string like "top left". The result |
| 138 // is used to generate a CSS value. | 145 // is used to generate a CSS value. |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 152 | 159 |
| 153 // Returns the default color for the given color |id| COLOR_* enum value. | 160 // Returns the default color for the given color |id| COLOR_* enum value. |
| 154 // Returns gfx::kPlaceholderColor if |id| is invalid. | 161 // Returns gfx::kPlaceholderColor if |id| is invalid. |
| 155 static SkColor GetDefaultColor(int id); | 162 static SkColor GetDefaultColor(int id); |
| 156 | 163 |
| 157 private: | 164 private: |
| 158 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); | 165 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); |
| 159 }; | 166 }; |
| 160 | 167 |
| 161 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 168 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
| OLD | NEW |